How to get the list of parameters of a stored procedure in Oracle?

I'm calling an Oracle stored procedure and use the OCIBindByPos for each parameter.
Example:
/* Do the bind for date, using OCIIOV */
OCIBindByPos (stmthp, &bindhp2, errhp, 2, (void *)&bvec[0], 
              sizeof(buf_1[0]), SQLT_STR, 
              (void *)inddate, (ub2 *)alendate, (ub2 *)rcodedate, 0,
              (ub4 *)0,  OCI_IOV);
In this case, its necessary for a list of the parameters of the stored procedure, information such as type and the input/output parameter, etc.

I can get the parameters of a stored procedure using the DESCRIBE statement.
Example:
SQL> DESCRIBE SP_GETCITIES
PROCEDURE SP_GETCITIES
 Argument Name                  Type          In/Out Default?
 ---------------------- --------------------- ------ --------
 STATE_KEY              VARCHAR2               IN
 FECHA                  DATE                   IN
 RC1                    REF CURSOR             OUT

SQL>
Is there a better way to get the name, type, input/output for each parameter of an Oracle stored procedure, using the BEAK?

Best regards.

Antonio García (Mexico)

Hi Antonio,.

Take a look at "Describing metadata schema" in the programmer's Guide. He has this kind of information, which may be enough to get you going in the right direction. The guide is here:

http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e10646/oci06des.htm#i446492

In particular, see the code example in the section "describing the stored procedure.

Kind regards

Mark

Tags: Database

Similar Questions

  • How to get the list of RDM?

    Hi all

    In our environment both of RDM is presented to different virtual machines in physical compatibility mode. It was very difficult for me to keep track

    Could you get it someone please let me know, how to get the list of the RDM presented to ESXI 5.0 host?

    Thank you!

    Ravindra Reddy

    Thank you... A P... for your response tools RV is the right tool, but I wanted to naa number of LUNS as well.

    After 2 hours, I had below power CLI command to get the list of the virtual machine.

    PowerCLI C:\ > Get - VM | Get-hard drive - DiskType "RawPhysical", "RawVirtual" | Select name, Parent, ScsiCanonicalName, DiskType | FL | Out-file C:\RDMlist.xlx

    Thank you!

  • How to get the list of active users in Essbase 6.5.6

    Hi gurus,

    How to get the list of active users in Essbase version 6.5.6

    I can't find any Esscmd list of active users...

    I used the command LISTLOGINS in ESSCMD, but it did not help me...

    pls suggest me an approach to find the list of active users.

    Thanks in advance...

    Hi guru,.

    When you connect to the application, you will find the security option---> connect you will find active use in the ESSBASE.

    If you need the list of users in the use of ESSBASE that recommends essmsh

    go for the race---> essmsh---> login user server use this tribute

    (1) session view all this;

    If you want to export the active users usebelow congratulate.

    2)

    spool to 'D:\suresh.txt ';

    poster session;

  • How to get the list of files for a virtual machine?

    Hello

    Virtual machines can have their files distributed on several issues (even through several data warehouses).

    PowerCLI gives us an easy way to retrieve the data warehouse associated with a virtual (Get-data store) machine, but it doesn't seem to be a built-in method to get the list of all records where a given virtual machine stores all its files. Or maybe I'm just blind ;-)

    Can anyone offer an overview on how to achieve this?

    Thank you

    No, that sounds like a good idea to copy/back up virtual machines.

    I adapted the script. She now returns one row for each unique record

    foreach($vm in Get-VM){
      $folders = $vm.ExtensionData.LayoutEx.File | %{$_.Name.Split('/')[0]} | Sort-Object -Unique  $folders | Select @{N="VM";E={$vm.Name}},@{N="Folder";E={$_}}
    }
    
  • How to get the list of video playback

    Hello

    can anyone suggest me how can I get the number of playlist, the name of all the playlist available in videos and the number of items in each list of reading...

    Thank you...

    QString currentpath(QDir::currentPath());)
    currentpath = music_database_path + "/ db/mmlibrary.db";

    SqlDataAccess sqlDataAccess (music_database_path);

    SqlData QVariantList = sqlDataAccess.execute ("Select c0filename, c2artist, c3album, c4genre, c5composer, c6title, audio_search_content c7description') .value();

    using this we can get all the file name, playlist, albums, genre, etc.

  • How to get the list permissions wise page name or menu-wise

    Hello

    I want to know this authorization list associated with a specific page or a menu. Please help me how to get that

    Check the following on the internet regarding the area of authorizedaction, which contains the information you need.

    http://peoplesoftwiki.blogspot.nl/2009/12/finding-barname-ItemName-and-all-about.html

    you want to hide the PeopleTools menu? If so, mke sure (s) he doesn't have the permision list that grants the permissions so that you do not want.

  • Please, I beg you! Need a c# example on how to get the list of all host ESX via SDK... I can connect... etc...

    Hello

    I am train to figure this out for a few hours now... and all I find is some examples related to the properties of the VM or something else.

    Now I am able to connect to the server and retrieve things like: Server date and time, version of the API etc...

    I would like to get a code example that would give me the list of ESX servers include within a Virtual Center Server... the last thing I used I got something like: If. Content.searchIndex.ToMo & lt; Indexderecherche & gt; (so). FindEntities & lt; HostSystem & gt; (null, null);...

    This well liked not... Maybe it was too easy...; (o)

    And if you also have a quick way to let me know how to retrieve a simple thing as a host network adapter config... as if I want to know if it is a static address or dhcp etc...

    PS. I have created also a ref to the service instance and service content.

    Here's an example to get the version of the API: (I want that same thing as host nic for setting... but have not yet found the correct syntax)

    var test = SERVICE_CONTENT.about.apiVersion.ToString ();

    MessageBox.Show ("test");

    Also... YES, I'm looking at the SDK prog. Guide... but all of the examples in which are in java... and a little far, the syntax is the same as c#

    Jon

    Thank you and I will award points to a significant response...

    consoleVnic is an array of HostVirtualNic. Therefore, you must print a specific item from the array and not the array itself. It seems that this is the problem.

  • How to get the list in a single column in a query

    Hello.

    I wonder if there is a way to get a query (no pl/sql code) a list of columns with a separator between them.

    I know I can get that without separators with an expression of cursor:
    SQL> with test_table as (
      2  select 1 col1, 'a' col2 from dual
      3  union
      4  select 1 col1, 'b' col2 from dual
      5  union
      6  select 1 col1, 'c' col2 from dual
      7  union
      8  select 2 col1, 'a' col2 from dual
      9  union
     10  select 2 col1, 'c' col2 from dual
     11  union
     12  select 2 col1, 'd' col2 from dual
     13  union
     14  select 2 col1, 'z' col2 from dual
     15  )
     16  select col1, cursor (select b.col2 from test_table b where b.col1 = a.col1 order by b.col2) col2_list from test_table a
     17  group by col1
     18  /
    
          COL1 COL2_LIST
    ---------- --------------------
             1 CURSOR STATEMENT : 2
    
    CURSOR STATEMENT : 2
    
    C
    -
    a
    b
    c
    
             2 CURSOR STATEMENT : 2
    
    CURSOR STATEMENT : 2
    
    C
    -
    a
    c
    d
    z
    But the result I want is (by using the separator ';'):
          COL1 COL2_LIST
    ---------- --------------------
             1 a;b;c
             2 a;c;d;z
    I don't know how to manage a cursor expression without using a pl/sql function block. Can it be done using analytical functions?

    Thanks in advance.

    Hello

    This is called 'aggregation of chain.
    This site:

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:2196162600402

    shows different ways to do this, including the SYS_CONNECT_BY_PATH solution which gave Blushadow.

    I got a lot of use of the first solution on this page, the function defined by the user STRAGG, that you can copy.

    Once you have installed STRAGG, your query is simply

    SELECT    col1
    ,         STRAGG (col2)     AS col2_list
    FROM      test_table
    GROUP BY  col1;
    

    The query above do not put items in a particular order.

    On Oracle 10 (and more) you can have a similar function, the WM_CONCAT (property WMSYS), already installed.
    WM_CONCAT is not documented, so you can't use it in your Production applications.

  • How to get the list view in iTunes 12.4.3 for Windows

    Guys, I'm LOSING MY MIND. I had to re - download iTunes (which I refused to update in eternity because I know of updated versions are generally never good), and this new Interface is making me remove my hair and cry. Not only is it completely intuitive, but it makes it incredibly difficult to navigate.

    I'm seeing all my music in classic list view, which I know he can do. When I first loaded it upward, she appeared in list view, but the time that I started clicking around, it became this heavy nightmare of the image. Every article I've read has a UI that I don't HAVE, where there is a drop-down list of some sort. Does anyone know how? I have attached a screenshot. BTW, that blue icon that you THINK would be seen list said just what is the next song. Complete waste of space. Jesus, just put it in a status bar, or scroll across the top.

    FYI: the only changes that I made in the preferences has been disable anything itunes store or apple related radio because literally ALL itunes became ads.

    How can I view my mode music list in iTunes 12.4?

    In the drop-down list, select music. Once in the music, in the sidebar, select the songs and you should be intraditional list view.

  • How to get the list of sms messages

    How do I enumerate the sms messages?

    Folder.List () does not work

    You cannot access the SMS messages on the device.

  • How to get the list complete in ips MMIC for all blades on each chassis

    Hi team

    We have several pods and each chassis we have 8 blades. We want to generate the ip details complete Mmic for all blades which is connected to the chassis.

    One kindly tell me, do we not have any script or easy method to generate the Mmic ip list details.

    Thanks in advance

    Mohan

    Hello Mohan

    (1) with the Powershell cmdlets

    https://communities.Cisco.com/docs/doc-56414

    (2) with XML

    http://www.Cisco.com/c/en/us/TD/docs/unified_computing/UCS/c/SW/API/b_ci...

    (3) with UCS Central

  • How to accept the array as a parameter of stored procedure

    Hi, this is the scenario

    the java team send me a table of numbers as an input for my procedure.

    the size of the array can be dynamic... I do not know the size

    what I have to do is

    I have to write a procedure that must accept this table as parameter
    crosses of the first element of the array too the end of the array to each value in the table

    and get on a table for this value and remove this line in the table

    How can I do?

    Please suggest

    concerning
    REDA

    Published by: raj_fresher on May 7, 2009 11:42

    Raj,

    Here is the code

    --This is you will create
    create or replace type TYP_PHONES as table of Varchar2(15) ;
    /
    --- This will be your procedure
    create or replace
    procedure give_me_an_array1( p_array in TYP_PHONES )
    as
    begin
    -- Do whatever you want to with the data you get
    for i in 1 .. p_array.count
    loop
    dbms_output.put_line( p_array(i) );
    end loop;
    end;
    /
    

    Tell your guy java to define this table as below

    String[] intArray= {"john","miller","scott"};
    ArrayDescriptor descriptor =ArrayDescriptor.createDescriptor( "TYP_PHONES", conn );
    ARRAY array_to_pass = new ARRAY( descriptor, conn, intArray );
    

    * [Full active code | http://db-oracl.blogspot.com/2009/05/passing-arrays-from-java.html] *.

    SS

  • How to get a list of the rooms

    Hello

    How to get the list of rooms associated with an ALCCS (Adobe LiveCycle Collaboration Service) account . I tried to use the caller class and the requestRoomList() method, but I don't get that. If anyone can guide me...

    you need a bit of luck.


    http://www.Adobe.com/2006/mxml"layout ="absolute"xmlns:rtc ="AfcsNameSpace">
       
            Import mx.automation.AutomationManager;
    import com.adobe.rtc.events.AccountManagerEvent;
    import com.adobe.rtc.authentication.AbstractAuthenticator;
    import com.adobe.rtc.util.AccountManager;
               
    private var acmanger:AccountManager;

    private void onRoomListReceiveHandler(event:AccountManagerEvent):void
    {

    }

    private void onLoginSuccessHandler(event:AccountManagerEvent):void
    {
    acmanger.requestRoomList ();
    }

    private void onLoginFaultHandler(event:AccountManagerEvent):void
    {

    var roomList:Array = event.list in the table;

    }

    private void onSync(event:Event):void
    {

    }
    private function createRoom (): void {}
    acmanger = new AccountManager();
    acmanger.accountURL = "https://connectnow.acrobat.com/youraccount";
    acmanger.isAuthenticated = false;
    acmanger. Authenticator = myAccount;
    acmanger. Login());
    acmanger.addEventListener (AccountManagerEvent.ROOM_LIST_RECEIVE, onRoomListReceiveHandler);
    acmanger.addEventListener (AccountManagerEvent.LOGIN_SUCCESS, onLoginSuccessHandler);
    acmanger.addEventListener (AccountManagerEvent.ACCESS_ERROR, onAccessErrorHandler);
    }
    private void onAccessErrorHandler(event:Event):void {}
                   
    }
    private void onCreateRoomHandler(event:AccountManagerEvent):void {}
                   
    }
    ]]>
       
       
           
               
           

       

       
       

  • How to get a list of files using BB10 native waterfall?

    Hello

    Please help me how to get the list of all the files in the root directory of the memory card. I try to use QDir::entryInfoList and then repeatedly use QFileInfo::isFile or isDir to search all files in the memory card. But I can't find the files or the directory of the path root only like that, I found., /, /, /, /. Can someone help me please?

    Thanks for any help.

    Victor.

    Take a look at https://developer.blackberry.com/native/reference/cascades/qdiriterator.html

  • get the project name to use in a procedure?

    How to get the project name to use in a procedure?
    example of < % = odiRef.getOption ("COMPATIBLE") % > - but the name of the project or your ID?
    the 11 ODI.
    Thank you

    Published by: ODI Dev user on 12/01/2010 16:42

    Hello

    Why you want to get the name of the project? When you place a repository of development to a repository of execution, where there is no concept of projects, what value do you offer you to get?

    BOS

Maybe you are looking for