Can pass us a Collection (table) to a procedure in another package

Hi all

I have a package in which I have a collection (array of user-defined records).
I filled it with some values.
Now, I want to write a procedure in a centralized set B to display these values.
I created the same type and table B package.
Now, I want to move the collection from Package to package B procedure and display these values. (I don't want to have that in A Package B package is our centralized support package).
When I do if I get the following error


LINE/COL ERROR
-------- -----------------------------------------------------------------
1899/8 PL/SQL: statement ignored
1899/8 PLS-00306: wrong number or types of arguments in the call to
'DISPLAY_OUTPUT1 '.


I can't past collection like that even if I said the same kind of collection in package B to receive the Package A collection?

Thank you
Pramod Garre

Hello

Make the type in the package, a global variable and
Try to declare the type in packageB as packageA.yourtype%type.

G.

Tags: Database

Similar Questions

  • I can pass a pl/sql table as a parameter for a database adapter

    Hello

    I'm moving mutiple files back to a pl/sql stored procedure using a BPEL database adapter. Does anyone know if it is possible to make pl/sql tables to bpel as a parameter?

    The version of the database that we use is 8.1.7 and so I do not think that we use XMl types for transmitting data.

    Yes you can not spend the function PL/SQL nested tables in JDBC. You can pass simple values such as VARCHAR2, NUMBER and Oracle SQL object types (VARRAY, nested TABLE, OBJECT).

    Types defined in PL/SQL are simply not supported by the JDBC driver (except the basic support for the index per table, but 1 level of depth). PL/SQL types are not very good to use, because then you can not use them in SQL in PL/SQL statements, SQL types do not have these limitations.

  • Pass complex Types with chains to stored procedures: become null

    Hello

    I would like to pass an array of strings or a type of custom to a PL/SQL stored procedure object, you use the JDBC thin driver. It is possible if the tables or object types contain integers. With strings (resp. varchar2) However, I encountered a repetitive problem, no matter what I tried: the varchar2 field seems to be null in the stored procedure.

    There is something special with the passage of short strings?

    I tested with Oracle version server 10.2.0.3, 10.2.0.4 and 11.1.0.7.0.
    JDBC Thin drivers used are ojdbc14.jar is of 10.2.0.4 and ojdbc5.jar 11.1.0.7.0.
    I use Java 5.

    Tested approaches include:
    -oracle.sql.StructDescriptor, preparedStatement.setSTRUCT, or setStruct
    -Pass a Java type that implements the SQLData with preparedStatement.setObject
    -Pass a Java type that implements ORAData and ORADataFactory

    I tested it with an example of metalink (Doc ID 458572.1), and as I said, this example shows the same problem: strings passed appear as null - in three versions of Oracle that I tested. The example has been changed only with respect to the scheme name.
    ()Doc ID 458572.1 refers to a bug that shows the behavior I describe here, but this bug should be fixed in 10.2.0.4 and 11).

    I can paste some of my source code, but I feel that the solution could be found elsewhere, such as problems, version mismatch, the character set...

    Any ideas on the specialties with passage of strings in types of objects or paintings? My strings are null. (For tables, I get the right amount of NULL values).
    I even checked that I can pass a string argument simple to a procedure that worked indeed.

    Kind regards
    Carsten

    There is something special with the passage of short strings?

    Yes, this is a common problem. You must include orai18n.jar classpath. BTW it is documented here and here.

  • Create temporary table in the procedure

    I have a procedure which can be called at any time by multiple users. So I cann't use table in there, because on each call, the table is truncated and inserted. How can I create a temporary table in the procedure?

    Temporary tables in Oracle are different from other RDBMS like SQL Server.

    In Oracle, you create a global temporary table ONCE as part of the design of your database.

    create a global temporary table MyTableName (... columns...) on commit preserve rows;

    You can then use this table in your code as you would any other table.

    The difference is that any data that you insert in this table are only available/visible so that the code runs in the session, and if delete you / truncate the table it only removes the data for this session.  In this way, several sessions we can table without interfering with each other.

    (Note: instead of "preserve" you can change this to "delete" If you want that deleted data automatically when a commit is issued in your session, otherwise the data will be automatically deleted at the end of the session)

  • How to view the monthly/annual statistics in terms of time past/calories burned, broken down by each individual activity such as run elliptical/outside etc. Y at - it a third party application that can help me to collect and display these data?

    How to view the monthly/annual statistics in terms of time past/calories burned, broken down by each individual activity such as run elliptical/outside etc. Y at - it a third party application that can help me to collect and display these data?

    Hello

    It is not currently possible to review the data the application integrated in activity or training on this basis. If you want Apple to consider adding this feature, you can suggest here:

    https://www.Apple.com/feedback/watch.html

    However, health and fitness data from other sources, iPhone, and Apple Watch are registered and grouped within the health on iPhone app. These data can be exported, which you may find useful to track the cumulative progress and/or analyze your activity more in detail.

    IPhone app activity also has a button for sharing (top right of the screen) that allows to share data - including social media, Messages, Mail, Notes, and a printer.

    Include third-party applications that can be useful, for example:

    Access to QS

    -"Access your HealthKit data in a table so you can Explorer using numbers, Excel, R, or any other tool compatible CSV."

    - https://itunes.apple.com/gb/app/qs-access/id920297614?mt=8

    SpectaRun workouts

    -"View from the workouts of your Apple Watch on your iPhone and to export these workouts so you can download them to your favorite online running community."

    - https://itunes.apple.com/gb/app/spectarun-workouts/id991723862?mt=8

    Data can also be exported directly from the application of the health (Health Data > All - Share at the top button on the right).

    Check the descriptions and support resources for third party applications for supported details of import and data analysis features.

    More information:

    Use the activity on your Apple Watch - Apple Support

    Use of the workout on your Apple Watch - Apple Support

    http://www.Apple.com/watch/health-and-fitness/

  • Passing the ID of a record to add in another table

    I have a database of base with candidates and profiles of boards in two tables, as well as interconnection table CandidateProfiles.

    I have here a page that I use to add new candidates and we hope to fix all the profiles for each candidate, which, upon presentation, will add new candidates ot in detail the candidates table and add records to the table of CandidateProfiles based on the ID of the newly created candidate and regardless of the check boxes are selected.

    It is the page Add candidates .

    The PHP code that I have check boxes add to the CandidateProfiles table is:

    $sql = "INSERT INTO CandidateProfiles (CandidateID, ProfileID) VALUES";

    $ck = $_POST ['ckbox"];

    foreach ($ck As $GetIndex = > $GetValue) {}
    If ($GetValue == 'on') {}
    $sql. = "("{$_POST ['CandidateID']}', '$GetIndex'), ";"
    }
    }

    $sql = rtrim ($sql, ",");

    mysql_query ($SQL);

    The bold line is the error line 69.

    It works however in part - as added new records in the CandidateProfiles table with the correct profileIDs but with a 0 CandidateID. So I just need to figure out how to change the CandidateID being added to the CandidateProfiles table between 0 and the ID of the new record added...

    Iain

    Just to say that I managed to get everything make-it did pretty much what I needed IE a page where new candidates can be added to a table of candidates, subject to a second page where profiles can be attached to the candidate just added - so the newly added candidate CandidateID is passed to the page AddProfiles where profiles are added by selecting however several checkboxes.

  • I wonder if I can pass my carrier unlocked iphone 4 iOS to iOS 7 8? or it will lock again after the upgrade?

    I wonder if I can pass my carrier unlocked iphone 4 iOS to iOS 7 8? or it will lock again after the upgrade?

    1 n ° iPhone 4S can only be directly updated to 9.3.3.

    2. update of the iOS on an iPhone that was originally sold as unlocked or is released by the carrier won't it relock.

    (143770)

  • How can I update by program table combo box control type def?

    I use LV 8.6.1 and I am trying to create a table control panel object in which the user can select an item to list box for each element of the array.  I also have to periodically update the list of values.  Currently, I have configured the drop-down list box (selection of Automation sequence - see attached) as a type non-stricte def so I can write news channels to the list values when I need to.  But I can't seem to find a way to get the table (list of batches - see rasthaus) fill the new value drop-down list box.

    Automation box refelcts the new string sequence selection that I add programmatically, but the combo boxes in the batch list table control do not have the new channel.

    Anyone have any ideas?

    I have attached the screenshot of the drop-down list and table controls.

    Thank you

    Dan

    I considered that mention strings and values have a property that cannot be stored in a typedef, but when I tried it out, it seemed that it was.  So I just did not comment on that.  Maybe the strings and values may be among the typedef, maybe not.  The values of the controls certainly cannot.  Strings and values can be in kind of a gray area.  But you can certainly expect changes to a control to automatically update another control, because they are typedefs.  You cannot change the typedefs during execution.

    Let's put another example that has nothing to do with the values.  You have a regular typedef of a digital.  It is saved with the text in red in scientific notation.  You place two instances of this on your drawing.  You can programmatically change each other colors or other digital formats.  A change does not affect the other.  If it's a strict typedef, you would be locked in the way in which it was saved and could not change it programmatically.

    Take a look at this.  If you cannot programmatically, to update your channel list and values for a single combobox (a scalar string) you will be able to put up-to-date for when the combobox control is the data type for a table.  Simply get a reference to the element of the array.  It does not use typedefs anyway.

  • How can I write in a table cell (row, column appear) in a databae?

    How can I write in a table cell (row, column appear) in a database using LabVIEW Database Toolkit? I use Ms Access. Suppose I have three columns in a table, I write 1 row of the 1st column, then 1st rank of the 3rd column. The problem I have is after writing the 1st column of 1st row, the reference goes to the second row, and if I write in the 3rd column, he goes to the 2nd row 3rd column. Any suggestion?

    When you perform a SQL INSERT command, you create a new line. If you want to change an existing line, you must use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column = some_value). The some_column could be the unique ID of each line, date and time, etc.

    I don't know what is the function to use in the Toolbox to execute a SQL command, since I do not use the Toolbox. Also, I don't understand why you don't do a single INSERT. It would be much faster.

  • How can we achieve a scroll table with scrollPolicy = "page".

    JDEV version 12.1.3.0

    Hi Experts,

    I have a table in a popup and scrollPolicy = "page". I want to delete paging and want instead a roll to the table. So is it possible that I can make

    scrolling of table with scrollPolicy = "page".

    Thank you

    AR

    N ° it would make no sense. The strategy of scrolling to scroll and paging should be gone.

    Timo

  • Can u explain someone on table mutation error pls...

    Can u explain someone on table mutation error pls...

    Hello

    Explain what, exactly?

    As always, if you get an error, check the manual for Oracle error messages: http://docs.oracle.com/database/121/ERRMG/toc.htm

    Use a search engine to find related sites, such as Tom ask: https://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551198119097816936

  • Why can't I create a table or a column whose name begins with a number?

    Why can't I create a table or a column whose name begins with a number?  I can't seem to find an answer when I Googled it.

    Thank you

    Yoann

    Hello

    jimmy437 wrote:

    Why can't I create a table or a column whose name begins with a number?  I can't seem to find an answer when I Googled it.

    Thank you

    Yoann

    You can;  Simply enclose it quotation marks name whenever you use it.

    For example:

    CREATE TABLE '3-26.
    (
    'name 1' VARCHAR2 (10)
    );

    INSERT INTO '3-26' ('1 St Name') VALUES ('FUBAR');

    SELECT '1 name '.
    "3-26;

    Remember, what inside quotes is case-sensitive, so you can't refer to that column as "1st NAME.

    Using quotation marks (and capitalizing exactly as expected) is such a pain that most people don't bother.

  • Can I export and collect all the image files in my Muse site?

    Can I export and collect all the image files in my Muse site?

    Hello Peter,.

    Please go to file > export to HTML format and export your site in a folder you want.

    In the same folder, you will be able to see a folder named "Images" that will contain all the images used in the site.

    Kind regards

    Vivek

  • We can create a view or table with a form button?

    We can create a view or table with a form button using forms 6i?
    If Yes, what will be the command?

    Gul says:
    We can create a view or table with a form button using forms 6i?
    If Yes, what will be the command?

    Yes. You can. Use the FORMS_DDL built-in. For example

    BEGIN
      Forms_DDL('create table temp(n NUMBER)');
      IF NOT FORM_SUCCESS THEN
        Message ('Table Creation Failed');
      ELSE
        Message ('Table Created');
      END IF;
    END; 
    

    Hope this helps

    Hamid

  • I can't install Master Collection CS6 CD2

    I can't install Master Collection CS6 CD2

    I buy the new ultra laptop about a week ago and buy Master Collection CS6 also.

    But my knees not CD-ROMs. So I can't install Master Collection CS6.

    And I heard that Master Collection CS6 of Korea (see download) is not developed.

    so, I don't know what I can do to install.

    I have a new trick (have the CD), so I made once more to install.

    but CD2 is not cognition to my knees.

    I'm sorry to say but the personal Korea from Adobe is so irresponsible.

    They said "Just do it" or "you must buy the STRANGE." ..........

    They don't talk to me, no real solution.

    Please help me, I want to use Master Collection CS6 as soon as possible.

    Download the test installation files and installation using your serial number http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html

Maybe you are looking for

  • Exchange services

    A few times when I use my e bike suddenly a pop message product which "Unfortunately Exchange Services stopped of ' how can I turn it off? Please help me...

  • power cable

    The cable came with my HP Pavilion dm1-4108Au watch LS-15, which was published in the mail Courier dated August 28, 2014 as "recall of power cord. Could you please issue a replacement.

  • Unable to print an e-mail with the error message: "local print spooler is not running.

    Original title: whenever I have try printing an E mail I get message that "local print spooler is not running."  Someone at - it a simple way to fix this problem? I tried to add a printer change ink cartridges and I still can't seem to work.  I recei

  • lost my ability to select scan to file when I select the devices and printers to my HP computer.

    Have Hp 8600 pro officesjet. Used to be able to select devices and printers and get a window w/scan to file or computer option, select it to? What should I do to get it back? Have HP laptop w/windows 7 pro, thanks, G

  • Compaq Mini 110 c - 1100 AC and Windows 7

    I recently tried to install Windows 7 Home Premium on my Compaq Mini 110 c - 1100CA, but the only thing that arises when it reads the disc is "your computer cannot run this version of Windows. You need a compatible with your computer installation dis