Reading of several objects of type table returned

Hi gurus,
I have a procedure that is called by a Java code.
There are 2 (type VARCHAR) input parameters and output parameters 3 viz TWO objects of type Table and a cursor type.
As out parameters are objects, not simple variables, I'm not able to test this procedure in Oracle SQL developer, please help me to do so.

Concerning
Villepreux

Published by: Villepreux on February 4, 2010 14:47

Create an anonymous block like this and run.

declare
  OutParameter1 ;
  OutParameter2 ;
  OutParameter3 ;
begin
  procedure_name(InParameter1, InParameter2, OutParameter1, OutParameter2, OutParameter3);
end;

Tags: Database

Similar Questions

  • The call of several objects in a table

    Hello

    I tried to figure out how to appeal to several objects in a table.

    What I want to do is set the value of certain objects display in a table at certain points.

    Thus, for example;

    var CheckBox1 = this.getField("CheckBox1").value;
    var CheckBox2 = this.getField("CheckBox2").value;
    var arrObj = [
    "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten"];
    
    if (CheckBox1 = "Yes") {
         if (CheckBox2 = "Yes") {
              arrObj[1].display = display.hidden;
              arrObj[7, 8, 9].display = display.visible;
              arrObj[4, 5, 6].display = display.noView;
              arrObj[2, 3].display = display.noPrint;
         }
         else if ...
              //do something else
    }
    

    So instead of writing 10 different set out I can condense up to maximum 4 or less in function.

    However, all the ways I tried to do it didn't and I can't find any clear examples on the web.

    Any suggestions?

    As always, any help is very appreciated.

    Thank you in advance.

    This is a potential problem with your code: in a table JavaScript, the first element is element 0 and not 1.

    Try this instead (it's just the inner loop):

    var a1 = [7, 8, 9];
    var a2 = [4, 5, 6];
    var a4 = [2, 3];
    
    if (CheckBox2 == "Yes") {
        arrObj[1].display = display.hidden;
        for (var i in a1)
            arrObj[a1[i]].display = display.visible;
        for (var i in a2)
            arrObj[a2[i]].display = display.noView;
        for (var i in a3)
            arrObj[a3[i]].display = display.noPrint;
    }
    
  • Flex services with several types of return

    Hello

    We create a webapplication with flex and php.

    Everything works fine, until we got to the part of the library of the application.

    Each service has so far had only 1 return type (for example: user, group,...)

    Now for the library, we want to return a collection of ArrayCollection of different types of objects. To be more precise the LibraryService must return a collection ArrayCollection containing objects of folder and file.

    But how to configure this in Flex (Flash Builder 4 (standard))?

    So far it converts all objects of type Object, I really wish it was the folder or the file

    The only solution we can think of right now is to create a new library object which will contain 2 ArrayCollections, file type and file type. This might work of course, but I wonder if there is a better solution for this OR that I can configure several types of return for a service.

    Ideas/advice is greatly appreciated.

    Look at Zend or AMFPHP.

  • Returns the name of the object in a table

    Hello

    I received the canvas of the objects stored in a table. Each painting has its name property.

    Is it possible to return a specific name?

    Actually I need an index number of this table, where I spend a name property of the object within this table (the name is taken from the event). Something like this:

    x = array.indexOf (canvasName = event.currentTarget.name)

    Why can't you just to target the instance?  It's enough to tell the difference between different objects.

    x = array.indexOf (event.currentTarget);

  • Problem of transmission of the data of the object of the table via an IF statement

    I have problems with a data member of an object passing a table via an IF statement.  In my function, if I just display the type of an object selected in the list, it will return trip or Fill-Up on the screen, which is correct.

    If I use an IF statement to check the type first to see if it matches a string, it always by default the first game.  Suite of the code below, "it is a journey" always gets selected, even if the type matches "fill."

    What I am doing wrong?

    public void showEntry(e:ListEvent):void {}

    clearWindow();

    drawManageWindow();

    If (e.data.type = "Trip")

    {

    clearWindow();

    drawManageWindow();

    var showtype:Label = newLabel();

    ShowType.Text =

    "Show trip."

    ShowType.x = 500;

    ShowType.y = 40;

    ShowType.Height = 30;

    ShowType.Width = 485;

    addChild (showtype);

    }

    else if (e.data.type = "gas Fill-Up")

    {

    clearWindow();

    drawManageWindow();

    var showtype:Label = newLabel();

    ShowType.Text =

    "Show the Fill-Up."

    ShowType.x = 500;

    ShowType.y = 40;

    ShowType.Height = 30;

    ShowType.Width = 485;

    addChild (showtype);

    }

    }

    I'm surprised that the compiler is run, did disable strict mode?

    For compare equality using ==

  • Hash table returns null

    It's the stumping me. I add a key and a value in a hash table, pass in the key and retrieve the value. Basic enough, but when I go to retrieve the value a second time (after the restart of the application), it returns null.

    If it isn't exactly the code that would be the basic scheme:

    class A
    {
         private static Hashtable table = new Hashtable();
    
         public static Object getObject(Class clazz)
         }
              return A.table.get(clazz);
         }
    
         public static void setObject(Class clazz, Object obj)
         }
              A.table.put(clazz, obj);
         }
    
         //Code stuff...
    }
    
    class B
    {
         public static void main(String[] args)
         {
              A.setObject(C.class, new C());
              Object obj = A.getObject(C.class); //This works
         }
    
         //Code stuff...
    }
    
    class C
    {
         //Code stuff...
    }
    

    What happens on the 9550 Simulator and is fixed after restarting the Simulator but work always and only the first time through. If the app is closed, then reopened, then it returns null, even if the hash table was always the same items.

    Ah. When you run the application a second time, he rebuilt serializers to persistent store. Unfortunately, your objects of the class are new instances, so that they cannot be used as persistent hash keys. I suggest you use class names as keys rather than objects of class themselves.

  • Exception of the UI by clicking provisioned resource... Houston-25003: LDAPUserForm1UD_LDAP_GRPVO object of type View object is not found

    Hi all

    Under the tab accounts for a user, whenever I click on the resource brought online, I get the following error on the user interface.

    Messages for this page are listed below.

    Error

    Houston-25003: LDAPUserForm1VO object of type View object is not found.

    Error

    Houston-25003: LDAPUserForm1UD_LDAP_GRPVO object of type View object is not found.

    Error

    oracle.jbo.NoObjException: Houston-25003: LDAPUserForm1UD_LDAP_GRPVO object of type View object is not found.

    Error

    Localized message is not available.  Error returned is: oracle.jbo.NoObjException: Houston-25003: LDAPUserForm1UD_LDAP_GRPVO object of type View object is not found.

    I understand that LDAPUserForm1UD_LDAP_GRPVO is the name of the child form to the resource of the LDAP user. While they inspected the child form, I find this design console.


    LDAPUserForm1VO is the form created for the LDAP instance. SDM export shows that this exists in the location "oracle\iam\ui\runtime\form\view\pages\mdssys\cust\site\site\LDAPUserForm1CreateForm.jsff.xml".


    In addition, if I try to create a new form for this Instance of the Application, it fails with the exception:


    • oracle.jbo.NoDefException: Houston-25002: definition of the type of the view definition sessiondef.oracle.iam.ui.runtime.form.model.LDAPUserVersion6.view.LDAPUserVersion6UD_LDAP_ROLVO is not found.



    While I can see the error, I'm not able to find a solution to what for what is absent and where!

    Clues from anyone, which was faced with this or at least help troubleshooting would be great.

    -Thank you,

    Def-ender

    If your sandboxes have the elements of form generation on the side of the administration of the system, then most likely you have replaced a sandbox created after the publication by a prior created sandbox which does not contain the information from the form in the file CatalogAM.xml. I think that's the name. To oracle support site, there are best practices sandbox offline that you can search. I'm restoring your mds changes and then recreate these forms and publish every sandbox in order before new forms are created.

    -Kevin

  • Insert the object into the table

    Hi all

    I would insert my type of object in a table without specifying the name of the variable.

    That's my bad example:

    create or replace type MY_TYPE_OBJ as object 
    (
      val1 number,
      val2 number,
      val3 number
    );
    /
    
    CREATE TABLE MY_TABLE of MY_TYPE_OBJ;
    /
    
    declare 
        myType   MY_TYPE_OBJ;
    begin
    
      myType := new MY_TYPE_OBJ(1, 2, 3);
    
      insert into MY_TABLE values (myType.val1, myType.val2, myType.val3);
      
    end;
    /
    
    

    As you can see, on my last procedure, I had to use the insert into statement with val1, val2, val3 name filed.

    Is there a quicker way to insert an object into a table? In the production environment of the object type that almost 100 filed is not so friendly to write each one by one.

    Thank you

    Federico

    Example:

    SQL> create or replace type TFoo as object(
      2          attr1   integer,
      3          attr2   varchar2(10),
      4          attr3   date
      5  );
      6  /
    
    Type created.
    
    SQL>
    SQL> create table footab of TFoo(
      2          attr1 primary key,
      3          attr2 not null
      4  ) organization index
      5  /
    
    Table created.
    
    SQL>
    SQL> declare
      2          foo     TFoo;
      3  begin
      4          foo := new TFoo( 1, 'test1', trunc(sysdate) );
      5          insert into footab values foo;
      6  end;
      7  /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> select * from footab;
    
         ATTR1 ATTR2      ATTR3
    ---------- ---------- -------------------
             1 test1      2014/08/27 00:00:00
    
    SQL>
    

    I agree though - be careful with tables of objects and now their technical implementation and advantages and disadvantages.

  • Read only view object replaces all of my attributes transitional when I change it

    We have a read only view object that is a large query that calls a stored procedure.   If I change the query and simply add a space character and save it, all the attributes change to be transitional and it completely breaks the view object.   The query uses an alias for each of the selected values, and I was able to replicate this with the simple query stand alone below.

    SELECT "Value1" as requestId,

    'value2' as accountId,

    "value3" as "Mr_Barcode1."

    "value4" as "dr_date."

    "Value5" as "dr_user_first_name".

    Of the DOUBLE

    Create a read-only display object and paste the query above in the sql pane and keep.   It creates correctly calculated for the 5 columns returned attributes.    Then enter and modify the query and change anything (add a space) and save.   The last 3 attributes get changed to transients and the expression gets deleted in each attribute

    It's about Jdeveloper 11.1.1.4.   I thought I would post here first of all before you try open a bug with Oracle.

    I discovered that the problem is related to what the quotes around the alias.  The person who created this originally borrowed display object from another application and the alias sql was points/periods in the names and the only way that works if you put quotes around it as below.   That works well in SQL Developer, but I get the obvious mentioned the problem when using this query in jdeveloper.   If I remove the points and the quotes in the alias I don't encounter this problem.

    SELECT "Value1" as request_Id,

    'value2' as argument account_Id,

    "value3" as "d.barcode_Id."

    "value4" as "d.date1."

    "Value5" as "d.first_Name".

    Of the DOUBLE

    Gets the XML in view objects defined like this (apostrophes around the double quotes).  It works the first time you save but when you edit the expression is removed, it gets changed to a transitional.

    AliasName = ' "dr_date."

    Expression = ""dr_date"

    I still think it's a bug, but now I can work around it.

  • Help to extract data Clob to a column in a table that has several lines in a table

    Help to extract data Clob to a column in a table that has several lines in a table

    It works for only the first line

    CREATE or REPLACE DIRECTORY XMLDIR AS ' / orabackups';

    Grant read, write on DIRECTORY XMLDIR to the public;

    () dbms_xslprocessor.clob2file

    beef in CLOB,

    XMLDIR IN VARCHAR2,

    "testfile2.txt" IN VARCHAR2);

    DECLARE

    buf CLOB.

    BEGIN

    SELECT H15_DOC

    IN buf

    OF H15TEST. H15_STAGE

    where rownum = 1;

    dbms_xslprocessor.clob2file (buf, 'XMLDIR', 'testfile2.txt');

    END;

    /

    -This error code

    CREATE or REPLACE DIRECTORY XMLDIR AS ' / orabackups';

    Grant read, write on DIRECTORY XMLDIR to the public;

    () dbms_xslprocessor.clob2file

    XData in CLOB,

    XMLDIR IN VARCHAR2,

    "testfile2.txt" IN VARCHAR2,

    CSID in NUMBER: = 0);

    DECLARE

    CURSOR xmlmycur IS SELECT H15_DOC

    OF H15TEST. H15_STAGE

    where rownum = 102140;

    l_clob CLOB.

    XData CLOB.

    BEGIN

    DBMS_LOB.CREATETEMPORARY (l_clob, true);

    DBMS_LOB.CREATETEMPORARY (xdata, true);

    OPEN xmlmycur.

    LOOP

    SEEK xmlmycur INTO xdata;

    dbms_xslprocessor.clob2file (xdata, 'XMLDIR', 'testfile2.txt');

    EXIT WHEN xmlmycur % notfound;

    END LOOP;

    CLOSE Xmlmycur;

    END;

    /

    ORA-21560: 3 argument is null, invalid or out of range

    ORA-06512: at "SYS." DBMS_LOB", line 991

    ORA-06512: at "XDB". DBMS_XSLPROCESSOR', line 324

    ORA-06512: at line 15 level

    FYI, it seems that the file being created will exceed 5 gig

    Yes, it is a known issue with DBMS_XSLPROCESSOR.clob2file with big files.

    Here is a slightly modified version of the code that I posted earlier, fixing WRITE_ERROR except:

    DECLARE

    v_file utl_file.file_type;

    -write a unique to clob

    procedure write_clob (p_content in clob) is

    v_buffer varchar2 (32767).

    V_POSITION pls_integer: = 1;

    v_amount pls_integer: = 32767;

    Start

    loop

    Start

    DBMS_LOB. Read (p_content, v_amount, v_position, v_buffer);

    exception

    When no_data_found then exit;

    end;

    UTL_FILE.put_raw (v_file, utl_raw.cast_to_raw (v_buffer), true);

    V_POSITION: = v_position + v_amount;

    end loop;

    end;

    BEGIN

    -Open the file

    v_file: = utl_file.fopen ('TEST_DIR', 'testfile2.txt', 'wb', 32767);

    -loops through the lines

    for r in)

    Select h15_doc

    of h15test.h15_stage

    )

    loop

    write_clob (r.h15_doc);

    end loop;

    UTL_FILE.fclose (v_file);

    END;

    /

  • Create object of type integer error String

    Hi all

    I use JDev 12.1.2.0.0

    I created a selectManyChoice based on a data control that I did a view with a single column (which is a string).

    I set the properties of the component to be immediate = true and autosubmit = true and I have a method that I have already tried with other components like that and I know it works, but the method runs. It gives the following error:

    < 21 February 2014 10:04:41 AM GMT > < error > < oracle.adfinternal.controller.application.AdfcExceptionHandler > < ADFC-50016 > < ADFc: when Manager application exception exception handling threw a new exception.

    oracle.jbo.domain.DataCreationException: Houston-25009: failed to create an object of type: java.lang.Integer type: java.lang.String with value: General BI seller

    ....

    Caused by: java.lang.NumberFormatException: for input string: "General BI vendor.

    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

    at java.lang.Integer.parseInt(Integer.java:492)

    at java.lang.Integer.valueOf(Integer.java:582)

    .....

    I think that his is a normal behavior of the component, it tries to convert the full text but I've not specified for this component and I have other elements (selectManyChoices) that return string values where this doesn't happen.

    How can I fix?

    Here is the code for my component:

    < af:selectManyChoice value = "#{bindings." TypeSellerList1.inputValue}.

    label = "#{bindings." TypeSellerList1.label}"id ="smc3.

    autoSubmit = 'true' immediate = "true".

    valueChangeListener = "#{OBIEE_managed_bean.» TypeSellerListSelection} ">"

    < f: selectItems value = "#{bindings." TypeSellerList1.items}"id ="si6"/ >

    < f: validator binding = "#{bindings." TypeSellerList1.validator} "/ >"

    < / af:selectManyChoice >

    Any idea on how to solve this problem?

    Respect and thanks for the help,

    Frederico.

    I'm very well thank you Frederico. Hope you are fine as well.

    I just saw that you have a validators on your component. Try commenting on this line and test again.

    Thank you for your congratulations

    Antonis

  • Smart Guides: align several objects that contain inline features

    I find it extremely difficult in some cases to adjust and align several objects which

    contain a related inline 1px.

    I have extremely to zoom to align objects to fit the exact position in order

    to book several objects that contain a built-in inline 1px line.

    Display > bearings commented

    is Active and the objects snap to the adjoining objects I want to be aligned, but still, the

    objects containing a 1px inline line must be adjusted by zooming (in some

    case of 4000%) in order to adapt the layout with precision.

    In some very specific cases I don't even need to re-order elements in his z axis

    ()Fix > put to the or Arrange > Send to back on the same layer) to

    lines visible If I use one color background which may overlap the object below.

    (Even if I use features inline only)

    Especially for creating lists and similar provisions of tables, this procedure by zooming in and

    several times can be really much time even using commented on.

    I put any race inline. However, blink of an eye's blink of an eye, it must fit exactly. Even in zoom 4000% .

    I don't really want to check and re - check if the objects are really good and precisely aligned. I had this

    question by creating a large website for a client. They don't pay for extra time to be invested

    to make the layout work and items to fit perfectly and I was wrong to give them arguments why

    It took so long to do the final page layouts (ticket and time tracking as the developers might be )

    very well known to.).

    Yes, customers wants to perfect, and if an Update or a fixed layout comes along, I start all over again do

    It works perfectly on the retina and non-retine poster on many machines for the client and management.

    PS: As developers know, a single update can have influence on many other web pages if you

    create designs, layouts and active for a frontend/backend development team.

  • Can not pass an object of type to the void workflow.

    Hello

    I want to do a log of every action in an external file.

    In an action, I create an object of type FileWriter(). Opening the connection and then returning this object from main workflow.

    In the main workflow, we catch the output of the action in "logFile" variable that is declared as an attribute of type "Any".

    Also, main workflow has a workflow of void. I'm passing 'logFile' object for this void as an input workflow to collect newspapers. But I get an error saying:

    "TypeError: can't call method"writeLine"null".

    So how to send attributes to the void in the form of an object workflow?

    It works for variables of type object, not as a number, String, composite type etc.

    Kind regards

    Shubahda

    Reflection, I think now this behavior is probably normal/expected.

    FileWriter objects are objects that are not serializable/searchable script. I'll check with colleagues who are more familiar with the implementation of the transition from setting how such objects can be manipulated (maybe there's a way to wrap them up other than "Any"), but it will happen after the holidays.

    In the meantime, do you really need to pass objects FileWriter autour? Is it possible to have an action of logging, accepting as inputs the message and (possibly) means the name of the log file, which will open the log file, write the message and close the log file? And call this action in any workflow job/slot-workflow/scripts box where you want to save something. Yes, the log file will be opened/closed frequently (for each log message), but the drop in performance should not be so great.

  • Is there a tool or function (in Illustrator or InDesign) that selects any form and 'punches' a 'hole' of this form down through several objects for the paper or the work plan?

    Is there a tool or function (in Illustrator or InDesign) that selects any form and 'punches' a 'hole' of this form down through several objects for the paper or the work plan?

    Your objects punch must be in a large group; It will cut through all that is below.

    Create the shape you want to cut and set it to black Uni. Select your group and your form and (in the transparency palette), click make mask.

    Uncheck the Clip, and then return to the palette.

  • Increase in maximum lines in several objects in selection

    Greetings,

    because making a checkbox to select rows in table is a pain, I decided to drop my

    An array of objects of view on page like any select several objects exist

    (ADF to select several options, ADF select several shuttles, ADF select multiple Checkbox, ADF select many Listbox) etc.

    and yet im facing the same problem. What I chose rows is still limited to 10. I can't find

    definition of limitation of the line that I can turn off and display all lines must be indicated.

    Can you help me on this please?

    Hello

    Open the file PageDef and change the RangeSize of the iterator to-1 to query all data

    Frank

Maybe you are looking for

  • I need to backup iphone on itunes if I use icloud

    Hello I'm out of disk space hard and currently use icloud for our two phones and two ipads. I have backups on my Mac iTunes which is about 90 GB. What I always have these backups to local hard drive iTunes if I am using iCloud. Would like to have the

  • Having to use Option &gt; start every time power.

    Reinstalled a clean El Capitan after replacing the HARD drive.  Now under OS X 10.11.3 after having replaced the HD with an SSD.  Now when I quit or allow to sleep for a while I always get the question mark flashing dreaded.  If I start using Option,

  • Satellite C660 - white screen after reboot

    I closed my laptop Toshiba Satellite C660-22V. I restarted immediately, but the screen is blank. The laptop was always well done loading noises it is. Any ideas on how to solve this problem?

  • Replacement of satellite 1900-305 CD R/W

    I want to replace the burner Toshiba SD - R2212 CD with DVD burner (I thought the NEC 6650a). A hunt on the web indicates that this laptop is waiting the optical drive to be a master on the second IDE channel. Is this correct? I also read (from a for

  • Stay of execution in memory after the release

    Hi all I have the program to do the following at the end: the program using the developer suite, I have no problem of exit, exit perfectly without remaining in the memory list. After I create an exe file and do the same thing to exit the program exe