Error in the call to a procedure that is packed on another schema with the alias name

Hi all

I call a packaged procedure that has the type as a parameter collection that resides in the remote database by using synonyms.for which I am creating a synonym in my current schema.

Below the package in the remote database:
CREATE or REPLACE PACKAGE test_hlr BODY
AS
PROCEDURE raj_test)
pi_username IN VARCHAR2,
pi_serial_no IN arr_numb, - type of user-defined collection
po_error_code OUT NUMBER
)
AS
BEGIN
BECAUSE me IN pi_serial_no. FIRST... pi_serial_no. LAST
LOOP
INSERT INTO hlr_raj
(user_name, serial_no
)
VALUES (pi_username, pi_serial_no (i)
);
END LOOP;
END;
END;



I'm create synonym of package in my current database and call this package synonymous as shown below

create synonym ram_test for ram_test@dblink

CREATE or REPLACE PACKAGE test_bnr BODY
AS

PROCEDURE ram_test)
pi_username1 IN VARCHAR2,
pi_serial_no1 IN arr_numb, - type of user-defined collection
po_error_code OUT NUMBER
)
AS

BEGIN
test_hlr.raj_test (pi_username = > pi_username1,)
pi_serial_no = > pi_serial_no1,
po_error_code = > po_error_code
);
END;
END;

When compiling above package am getting error below
PLS-00306: wrong number or types of arguments in the call to ' RAJ_TEST


If I remove the collection type and use types of primitive data and then do not get error.

Please give suggestions, about the same.

Kind regards
Sri Ram.

There is no need to declare the type arr_numb locally. In fact, two types with exact same statement and namesake are not the same type. Each type has a unique OID. You can specify own OID. Then you can create the types the and remote with same OID. But if the type is the type of PL/SQL it didn't need to. For example. ON remote DB:

create or replace
  package pkg1
    as
      type arr_numb is table of number;
      procedure p1(
                   p_numb_arr IN arr_numb,
                   p_sum OUT number
                  );
end;
/
create or replace
  package body pkg1
    as
      procedure p1(
                   p_numb_arr IN arr_numb,
                   p_sum OUT number
                  )
        is
        begin
            for i in 1..p_numb_arr.count loop
              p_sum := nvl(p_sum,0) + p_numb_arr(i);
            end loop;
      end;
end;
/

Now locally:

set serveroutput on
declare
    v_numb_arr pkg1.arr_numb@sol10;
    v_sum number;
begin
    v_numb_arr := pkg1.arr_numb@sol10(1,2,3,4,5,6,7,8,9);
    pkg1.p1@sol10(v_numb_arr,v_sum);
    dbms_output.put_line(v_sum);
end;
/
45

PL/SQL procedure successfully completed.

SQL> 

SY.

Tags: Database

Similar Questions

  • Error - Installer: wrapper. creatFile failed with error 123: the file name, directory name or volume label syntax is incorrect when installing any program.

    Original title: there is an error then that inistalling some programs such as, java, internet download manager and...

    There is an error then that inistalling some programs such as, java, internet download manager and...

    for example, I want inistall an application or a program like Java, but when I start to inistall, it works like adminstere then said: (Installer: wrapper. creatFile failed with error 123: the file name, directory name or volume label syntax is incorrect.)

    It even I mean to inistall Internet download manager and VLC...

    my pc is automatically updated and when updates are available whenever I download inistall,.

    Please help me, I love my windows Vista, tnx

    Hello Aliahriman,

    Please look at the post below and see if it will solve your "creatFile failed with error 123: the file name, directory name or volume label syntax is incorrect" question.
    He has helped others with a similar issue.
    http://social.answers.Microsoft.com/forums/en-us/VistaInstall/thread/3b180316-95c2-4613-8c38-8515481db22c

    If please reply back and let us know if this helps solve your problem.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Failed to start, error message - the user name or password is incorrect

    Original title: Windows key + R no solution

    I tried the suggested solutions winkey and none work. What I did is updated. To restart the computer it does not start starting System. It gives me the error message the user name or password is incorrect. I have nevrr had to use a password at startup.

    Hi Dolores,

    Thanks for posting your query on the Microsoft Communities.

    I understand that you cannot start Windows after you install an update. Let me try and help you with this question.

    1. What is the brand and model of the PC?

    2. what solution did you tried to use the Windows key + R?

    3. how many user accounts are defined on this computer?

    4. is this a child account?  The thread is in the parental controls category.

    5. I understand that you have not set a password for this account, but requires you to enter a password when you're on the logon screen?

    Check if you are able to start safe mode.

    http://Windows.Microsoft.com/en-us/Windows/Start-computer-safe-mode#start-computer-safe-mode=Windows-7

    If you are able to start safe mode, and then try to perform a System Restore from there.

    If you are not able to start safe mode, then I suggest you go to the Windows recovery environment and perform a system restore.

    http://Windows.Microsoft.com/en-us/Windows/what-are-system-recovery-options#what-are-system-recovery-options=Windows-7

    Let us know the result. If you have any other questions, we will be happy to help you.

  • How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    I have only:
    D: / images (where are necessary + not need files)
    -a list with only the necessary files
    -a list with new names for the files needed
    Thank you.

    Hi Pustiu,

    Thanks for posting in the Microsoft Community.

    You want to know how to select the files in a folder using a list with the files you want and after that rename only the files using another list with desired new names.

    I would have you post your query in the TechNet forums because it caters to an audience of it professionals.

    Your query will be better addressed there.

    Check out the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

  • Copy of complete site. I have a Web site. I would copy the entire site (complete with images) to another directory with a different name. Then, transfer to another hosting server. All ideas

    Copy of complete site. I have a Web site. I would copy the entire site (complete with images) to another directory with a different name. Then, transfer to another hosting server. Any ideas?

    Not sure that you need a different directory.

    If you are working on a local computer, create a new site with all the same settings for local files and change the remote server settings to match the second server.

    This ensures you that there is no difference between the two websites.

  • How to provide the Alias name for BOX Stmt?

    Hello

    How to provide the Alias name for the instruction BOX?

    --

    Thank you and best regards,

    Badr Hari

    1007980 wrote:

    Hello

    How to provide the Alias name for the instruction BOX?

    --

    Thank you best regards &,.

    Badr Hari

    You post any instructions BOX or a query.

    You just add an alias after him, as you do for any other column you select.

    Select case when deptno = 20, then 'Yes' else 'no' from the end IsItDept20 dept

    ISITDEPT20

    NO.

    Yes

    NO.

    NO.

  • Call a package.procedure that accepts an array type.

    I get the error message "Error (45.20): PLS-00330: incorrect use of the name of type or subtype" when I run the SP procedure when it calls the d.is_date procedure that accepts an array as the second parameter.

    Here's the short code for package.procedures that contain the "is_date.

    I tried several things and can't seem to get the SP to compile.
    Thank you.



    create or replace
    PROCEDURE SP ACE

    valid_out boolean;
    date of date_out;
    date_fmt_out varchar2 (30);

    type of Mask_Tabtype is
    table of varchar2 (30)
    index of directory;

    FMT Mask_Tabtype;

    BEGIN
    FMT (1): = 'fxDD-MON-RR ';
    FMT (2): = 'fxDD-MON-YYYY ';
    FMT (3): = 'fxDD-LUN;
    FMT (4): = ' fxMM/DD ";
    FMT (5): = ' fxMM/RRRR ";

    d.Is_Date ('test', Mask_Tabtype, Valid_out, Date_out, Date_Fmt_out);

    END SP;


    create or replace package d as

    type of Mask_Tabtype is
    table of varchar2 (30)
    index of directory;

    FMT Mask_Tabtype;

    Procedure Is_Date (Value_in in varchar2,
    Tab in Mask_Tabtype,
    Valid_out Boolean
    Date_out date,
    Date_Fmt_out out varchar2);
    end of;



    create or replace package body d as
    Whole Fmt_Count;
    Date of Date_Val: = null;
    Date_Fmt varchar2 (30): = ' fxMM/JJ/AAAA ";

    Procedure Is_Date (value_in in varchar2, Mask_Tabtype tab,
    Valid_out Boolean, Date_out date, Date_Fmt_Out out varchar2)
    is

    Start
    / * Logic here removed to make more small
    .........
    */
    End Is_date;
    End of;

    Ah, it's because you have tab_masktype stated in the package and in the calling code.

    Change your PS procedure declaration to be:

    Fmts d.Mask_Tabtype;
    

    and there is no need to declare Mast_tabtype in this procedure.

  • Sat T135D: error message 'the user name or password is incorrect' when connecting

    Hello!

    I bought a PC laptop Toshiba T 135 d, and after a few days, I worked with it, I changed something in the users account and now it gives me this error "the user name or password is incorrect" when connecting. I mention that I have not introduced any password before.

    Can you help me?

    > I changed something in the users account
    And how to help? Who knows what you did there.

    I can tell you that it's really bad situation now. Without correct password, you will not be able to start the new installation of the operating system using the HDD recovery procedure.

  • Update module intercepted error: 12007 the server name cannot be resolved

    AHI get dialogue when the computer starts windows 7 Professional update failure. The update module intercepts an error: the error code is 12007. The server name could not be resolved. Check that your internet connection is active and that no system of filtering or security is blocking the connection (Control Panel > Internet Options)

    I run a network home and the internet is connected but still this problem, I use Outlook 2003 Pro and have noticed desktop updtae KB907417 and ms outlook 2003 junk mail filter KB2466074 not sure if this the problem that all other windows update install, it may not update some aspects there are 3 files that will not update service of office 2003 pack 3 (sp3).

    Thank you 1 million in advance - too small Word uses IE8 32 bit as default browser

    Did cancel registration and re-register it, this seems to have solved the problem thanks for all your help

  • I am making a new user account, but when I try to call my computer says that he cannot have another name with characters inside

    Original title: new user account...

    I am making a new user account, but when I try to call it my computer says it cannot have another name with characters inside (>)

    Hello

    I suggest you try to create the new user account using the command:

    'control userpasswords2' run box or the start search box and then create the new user account.

    Follow the steps for the same thing:

    a. click Start, type control userpassword2 in the search box and press enter.

    Hope the information is useful.

  • Error message: "the file names would be too long for the destination folder.

    I move the files from internal hard drive to external hard drive using cut and paste.  I get a message "the file name would be too long for the destination folder.  You can shorten the file name and try again, or try a location with a shorter path. "I then gives me choices to skip or cancel.  What happens to files that are ignored?  Are they deleted?  I don't want to lose all the data, but there are more 2 000 files with this problem, so passing by and rename each one really isn't a viable solution.  I don't really understand how the file names were originally created/saved about a problem that is only now that I want to move them.  The disc source and destination are NTFS.  Is there a solution for this?  It is imperative that no data is lost.  Thanks for any help you can offer.

    On Wednesday, 10 April 2013, 12:16:23 + 0000, MADinIowa wrote:

    I move the files from internal hard drive to external hard drive using cut and paste.  I get a message "the file name would be too long for the destination folder.  You can shorten the file name and try again, or try a location with a shorter path. "I then gives me choices to skip or cancel.  What happens to files that are ignored?  Are they deleted?

    N ° to check that what I say is correct, create a new folder
    for the purposes of the trial and to make a copy of some files. To ensure that
    one of them has a long name (rename if necessary), and then try to copy
    These files on the external drive. When you get the message, choose
    'jump' and see what happens.

  • How can I change an application to use another library with a different name but the same name for public (easily)?

    When you perform comparisons between the programming approaches I create two libs with the same public calls but different internal components. Nothing special there. Unfortunately when I pass my test app to a lib to another, the application loader asks an all audiences of vi. But I thought I read somewhere that the application loader would get the idea where to look after that I saw the first public call to the new lib. Doesn't seem to work. With the help of 2010.

    Pull the lib not used out of the machine. Rename the current library under the same name that you used. Project save everything. Close to LabVIEW. Remove the current lib. Copy the another lib to the machine. Not necessarily easy but here's how I did similar exercises in the past.

  • Question on the alias name

    I'm trying to migrate the code of SQL server to PL - SQL

    I came across a scenario where my alias in SQL server column is something like 3 G - XXX - XXX - XXX. I have the choice of column aliases in a string variable

    But how can I have the same in pl - sql?

    When I tried like '' 3 G-XXX-XXX-XXX' ' that it compiled but not to run.

    My question is how I can I give column aliases in a string variable in the format above for PL - SQL

    Pls help.

    Hello

    If an alias (or any identifier) does not follow the normal rules (for example, if it begins with a digit, or that it contains '-of) then you have to put in quotes, as you did.  Remember, anything either inside of quotation marks is case-sensitive, so if the alias is '3 G-XXX-XXX-XXX', you cannot reference like "3 g-XXX-XXX-XXX".  In addition, spaces are allowed inside the quotes, so if the alias is beginning or spaces, you need to match exactly.

    You should avoid quotation marks; they have a lot more trouble than they are worth.

    I hope that answers your question.

    If this is not the case, after a test script full that we can run to recreate the problem.

  • How to give the alias name for business

    Hi all
    can one tell me select what to name the alias for the case expression.
    case
    When b = 1 then 'one '.
    else 'not 1'.
    end of case has,
    case
    When b = 2 then 'two '.
    another "step 2"
    cases of termination
    of test_t2
    /
    Error:
    end of case has,
    *
    ERROR on line 5:
    ORA-00923: THE KEYWORD not found where expected


    Thank you and best regards,
    Prakash P

    833560 wrote:
    Hi all
    can one tell me select what to name the alias for the case expression.
    case
    When b = 1 then 'one '.
    else 'not 1'.
    end of case has,
    case
    When b = 2 then 'two '.
    another "step 2"
    cases of termination
    of test_t2
    /
    Error:
    end of case has,
    *
    ERROR on line 5:
    ORA-00923: THE KEYWORD not found where expected

    Thank you best regards &,.
    Prakash P

    Try this please

    SELECT (case
                when b=1 then 'one'
                  else 'no 1'
                 end) b1,
    (case
    when b=2 then 'two'
    else 'no 2'
    end ) b2
    from  test_t2
    
  • Error: 'top' getter called on an object that does not implement the interface Window.

    How to solve this problem in every night?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    Create a new profile as a test to see if your profile is the source of the problem.

    See "create a profile":

    If the new profile works then you can transfer files from a profile already used in the new profile, but be careful not to copy files corrupted to avoid transporting more problems.

Maybe you are looking for

  • Need to link to OpenDirectory

    I want to require that customers attach to my Open Directory server. I thought I'd only run sudo serveradmin settings dirserv:MacOSXODPolicy: configured security level: required connection = yes But when I do that, I get an answer that dirserv:MacOSX

  • How do I add artwork to an artist?

    in the latest version of ITunes? On my iPhone 5s 9.0. [something] it shows some artists like having a photo of the artist not belonging is not on any album. I wish I could add a piece of art like this one to songs I downloaded and imported from bandc

  • It supports audio tunneling?

    The nexus 6 does support audio of tunneling as the nexus 5?

  • How can I get the sound to come back to my mac pro?

    I followed the 'aid' on getting no sound and I don't not what they say will be displayed on the output. Only Optoca; digital output port is

  • I have a laptop Windows XP and win7, connected via a wireless router.

    I have a portable desktop and win7 winXP connected via a wireless router.  Can see the XP machine with the file full access Win 7 but not vice versa.  On XP, clicking on C: of the laptop gives error "C: is not accessible. You have no permissions... "