Can a procedure receive an array as income paramenter?

Can I send an array as an income parameter to a procedure?
If it is posible, how should I declare the array? And what functions can I use to read/create the array?
I really dont know if PLSQL works with arrays. If it works I would like to know how to use it.
If it's not posible work with arrays, where can I find function documentation.
Is there any functions to works with lists? For exemple, a list of primary keys comma separated "1,2,1000,50,etc" that I can split into a loop?
tks for any help

Note that while PL/SQL has no problem passing arrays of parameters around, if you are trying to call the procedure from another programming language-- Java, .Net, PHP, etc-- it's quite possible that your client language/ API requires some additional setup or configuration to be able to pass arrays to Oracle and/or that the client language/ API imposes some limitations on exactly how the arrays need to be declared (PL/SQL has 3 different collection types, those collections can be declared as PL/SQL or SQL types, they can be collections of scalars, records, or objects, etc). There is likely an OTN forum, or some sample code on OTN, dedicated to your particular language/ API on OTN that would be able to clarify any requirements particular to the client language.
Justin

Similar Messages

  • My husband is also receiving all of my incoming calls. Cloud is not on and we tried powering down. What else can we do?

    My husband is receiving all of my incoming calls. Both phones ring when I get a call, but not when he gets a call. I cloud is off and we powered down our phones? Now what?

        We want to keep both phones ringing when they should, humzee! This is common when the same Apple ID has been entered on both devices. If this is the case you will want to create a new Apple ID on one of the devices.
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWsupport

  • How can I pass an empty array to a parameter of type PLSQLAssociativeArray

    How can I pass an empty array to a parameter of type PLSQLAssociativeArray in VB? I defined the parameter like this
    Dim myArray() as String = new String() {}
    Dim myPara as new Oracle.DataAccess.Client.OracleCollectionType.PLSQLAssociativeArray
    myPara = 0
    myPara.Value = myArray
    When I execute my stored procedure giving the above parameter, I got error saying OracleParameter.Value is invalid.
    I have tried to give it the DBNull.Value, but it doesn't work either.
    Note: everything works fine as long as myArray has some item in there. I just wonder how I can make it works in case I have nothing.
    Thank you,

    How can I pass an empty array to a parameter of type PLSQLAssociativeArray in VB? I defined the parameter like this
    Dim myArray() as String = new String() {}
    Dim myPara as new Oracle.DataAccess.Client.OracleCollectionType.PLSQLAssociativeArray
    myPara = 0
    myPara.Value = myArray
    When I execute my stored procedure giving the above parameter, I got error saying OracleParameter.Value is invalid.
    I have tried to give it the DBNull.Value, but it doesn't work either.
    Note: everything works fine as long as myArray has some item in there. I just wonder how I can make it works in case I have nothing.
    Thank you,

  • How to pass and receive an array from a form.

    For example, now i want to input my students achievement of an exam.
    I should input tow fields of data of every student: studentID,achievement.
    And i want to post a few of records each time (eg 10 records).
    So i should use an array data[10][2] to store 10 records each.
    But i don't know how to write it in HTML form. should i use the same name in all the ten <input> fields? or should i do as below:
    <form method = "post" ....>
    <input type = "text" name = "studentID[0][0]"></input>
    <input type = "text" name = "achievement[0][1]"></input>
    <input type = "text" name = "studentID[9][0]"></input>
    <input type = "text" name = "achievement[9][1]"></input>
    </form>
    And how can i receive this array using JSP or JSTL or Servlet?
    Can u give me an simple example?

    I think this will be usefull to you. If ok convert it for 2 dimensional array in the loop
    <form>
    <%
            for(int i=1;i<=10;i++)
    %>
            <input type="text" name="student[<%=i%>]"/>
    <%
    %>
    </form>

  • Invoking stored procedure that returns array(oracle object type) as output

    Hi,
    We have stored procedures which returns arrays(oracle type) as an output, can anyone shed some light on how to map those arrays using JPA annotations? I tried using jdbcTypeName but i was getting wrong type or argument error, your help is very much appreciated. Below is the code snippet.
    JPA Class:
    import java.io.Serializable;
    import java.sql.Array;
    import java.util.List;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import org.eclipse.persistence.annotations.Direction;
    import org.eclipse.persistence.annotations.NamedStoredProcedureQuery;
    import org.eclipse.persistence.annotations.StoredProcedureParameter;
    * The persistent class for the MessagePublish database table.
    @Entity
    @NamedStoredProcedureQuery(name="GetTeamMembersDetails",
         procedureName="team_emp_maintenance_pkg.get_user_team_roles",
         resultClass=TeamMembersDetails.class,
         returnsResultSet=true,
         parameters={  
         @StoredProcedureParameter(queryParameter="userId",name="I_USER_ID",direction=Direction.IN,type=Long.class),
         @StoredProcedureParameter(queryParameter="employeeId",name="I_EMPLOYEEID",direction=Direction.IN,type=Long.class),
         @StoredProcedureParameter(queryParameter="TEAMMEMBERSDETAILSOT",name="O_TEAM_ROLES",direction=Direction.OUT,jdbcTypeName="OBJ_TEAM_ROLES"),
         @StoredProcedureParameter(queryParameter="debugMode",name="I_DEBUGMODE",direction=Direction.IN,type=Long.class)
    public class TeamMembersDetails implements Serializable {
         private static final long serialVersionUID = 1L;
    @Id
         private long userId;
         private List<TeamMembersDetailsOT> teamMembersDetailsOT;
         public void setTeamMembersDetailsOT(List<TeamMembersDetailsOT> teamMembersDetailsOT) {
              this.teamMembersDetailsOT = teamMembersDetailsOT;
         public List<TeamMembersDetailsOT> getTeamMembersDetailsOT() {
              return teamMembersDetailsOT;
    Procedure
    PROCEDURE get_user_team_roles (
    i_user_id IN ue_user.user_id%TYPE
    , o_team_roles OUT OBJ_TEAM_ROLES_ARRAY
    , i_debugmode IN NUMBER :=0)
    AS
    OBJ_TEAM_ROLES_ARRAY contains create or replace TYPE OBJ_TEAM_ROLES_ARRAY AS TABLE OF OBJ_TEAM_ROLES;
    TeamMembersDetailsOT contains the same attributes defined in the OBJ_TEAM_ROLES.

    A few things.
    You are not using a JDBC Array type in your procedure, you are using a PLSQL TABLE type. An Array type would be a VARRAY in Oracle. EclipseLink supports both VARRAY and TABLE types, but TABLE types are more complex as Oracle JDBC does not support them, they must be wrapped in a corresponding VARRAY type. I assume your OBJ_TEAM_ROLES is also not an OBJECT TYPE but a PLSQL RECORD type, this has the same issue.
    Your procedure does not return a result set, so "returnsResultSet=true" should be "returnsResultSet=false".
    In general I would recommend you change your stored procedure to just return a select from a table using an OUT CURSOR, that is the easiest way to return data from an Oracle stored procedure.
    If you must use the PLSQL types, then you will need to create wrapper VARRAY and OBJECT TYPEs. In EclipseLink you must use a PLSQLStoredProcedureCall to access these using the code API, there is not annotation support. Or you could create your own wrapper stored procedure that converts the PLSQL types to OBJECT TYPEs, and call the wrapper stored procedure.
    To map to Oracle VARRAY and OBJECT TYPEs the JDBC Array and Struct types are used, these are supported using EclipseLink ObjectRelationalDataTypeDescriptor and mappings. These must be defined through the code API, as there is currently no annotation support.
    I could not find any good examples or doc on this, your best source of example is the EclipseLink test cases in SVN,
    http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk/foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/plsql/
    http://dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk/foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/customsqlstoredprocedures/
    James : http://www.eclipselink.org

  • TS3899 I can no longer receive or send emails on my phone

    I can no longer receive or send emails on my phone - it says username and password is incorrect but i know it is as i changed it just to be sure.. any ideas?

    the server settings are in settings/mail etc .  Tap on email account under the accounts heading then tap on the account name on the next screen, then the outgoing mail server is shown there.  If you tap on advanced at the bottom of the screen the incoming settings are then shown

  • Why can't I receive gmail on my mac

    Why can't I receive anything on my gmail account on my mac, but I can on my phone which is Galaxys 5?

    You're using Apple's Mail as your email client, I'm assuming?
    Your settings should be:
    For your incoming IMAP server; Incoming server “map.gmail.com” with the default port of “993” and using SSL to connect.
    For your outgoing server; “smtp.gmail.com” with the post assignation of “465” using SSL to connect and using authentication with your user name and password.
    I know that these settings work in Apple’s Mail for me (although I don’t use it regularly - I prefer Microsoft’s Outlook).
    Check your settings again on your client and also on the gmail server.
    Good luck,
    Clinton
    MacBook Pro (15” Late 2011), OS X 10.??, 16GB Crucial RAM, 960GB M500 Crucial SSD, 27” Apple Thunderbolt Display

  • I can't send/receive any message/call but I can connect to the internet. What's wrong?

    I can't send/receive any message/call but I can connect to the internet. What's wrong?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Iphone 5 can't make/receive calls/text (possibly 2g issue)

    Hi,
    Just obtained an iPhone 5 on t-mobile. Everything seems to be working fine including 3g network/wifi. However, I can't make/receive any calls. I get full reception, EE written on the top left but outgoing calls always fail. Incoming calls also fail. I've checked with t-mobile, my SIM is fully activated and have also successfully tested my SIM in another iPhone 5.
    I've tried Apple's troubleshooting assistant here http://www.apple.com/uk/support/iphone/assistant/calls/. None of these worked.
    I've got an appointment booked in with Apple on the 14th but was hoping there might be a quick fix I can sort myself before then. Is anyone else having this issue?
    Any help is appreciated.
    Thanks,
    Yasin

    You restore the phone as new to get rid of the passcode.

  • I have BIS but can't send/receive email, surf with internet browser

    i have BB Curve 8520. My BIS was running smoothly (sending and receiving emails real time and surfing the net through BIS), until i noticed when i tried to reply to an email that came in, it won't send. i noticed that it's fluctuating. i was able to send the email after a few minutes... then a few minutes later, i received a replied email from my friend, and when i tried to send my reply, i wasn't able to. also, i can't surf using the browser with the "internet browser" as default. i tried using my wifi and then suddenly all my emails started coming in, all emails that were not able to go through hours ago. my big question was why do i need to turn on wifi just to receive emails. but since i had my BIS for 2 months now, i can send and receive emails and surf through BIS itself without turning on the wifi.  also, i can't use any of my apps like facebook, twitter, yahoo messenger, etc.  They used to work fine with BIS... but now, i have to turn on the wifi connection, so i could log in with them.  aren't these supposed to be running through BIS only?
    I have GPRS on top, not gprs.
    so, i wiped out my BB and deleted all third party apps. when this was done, i received emails telling me "Your handheld has been registered with the wireless network" and even got "Activation Server" emails telling me that the emails that i have previously set up are now up and running. so i thought my BB is now ok.. i tried surfing, it was okay. after like about 5 minutes, it was down again. tried sending email but can't... i turned on the wifi and boom! the emails started coming in again.
    i have the Host Routing Tables and my Service Books in my BB. I have GPRS (not gprs) on top which means i have active BIS.  i have registered my HRTs several times... and resending my service books... same thing...
    -My carrier has not reported any data outage.
    - I'm in an area where I've had RIM data services (for months now). It has always been working well. I've never really had any problems with my BIS until 4 days ago when it just suddenly stopped sending/receiving emails, surfing through internet browser, using facebook, twitter, ym apps, etc.. 
    -the big mystery is when i turn on the wifi, the emails suddenly go through and i can send emails. i can open apps that used to only run on BIS. this is ok i guess, but i could never do any of these if i'm not connected to wifi.
    -i've read somewhere that it may be some application error or something, so I've wiped out my BB thrice now, deleted all third party apps, everything is clean i guess, but still I end up with the same problem.
    -i updated my OS, same problem.. wiped it out... used BBSAK, reinstalled OS... same thing...
    can you help me out with this? i have tried battery pull, wipe out and OS reinstallation lots of times but same problem happens... 

    Hi tarifiq and welcome to the BlackBerry Support Community Forums!
    Can you send me a private message with your PIN so I can check this out for you?
    Thanks
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • I have a new iPhone 6 plus and all is OK. But the mail shows more than 400 'unread' messages whereas there are none in the mailbox or trash or anywhere else I have looked. I can send and receive with no problem. I'm sure I have no unread messages.

    I have a new iPhone 6 plus and all is OK. But the mail shows more than 400 'unread' messages whereas there are none in the mailbox or trash or anywhere else I have looked. I can send and receive with no problem. I'm sure I have no unread messages.

        jsavage9621,
    It pains me to hear about your experience with the Home Phone Connect.  This device usually works seamlessly and is a great alternative to a landline phone.  It sounds like we've done our fair share of work on your account here.  I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you.  I look forward to speaking with you.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • I want to update iCloud account with new apple id but don't know password for old apple id.  Plus can no longer receive email at old apple id.  How can I delete the current iCloud account on my iPhone if the previously stated conditions exist?

    I want to update iCloud account with new apple id but don't know password for old apple id.  Plus can no longer receive email at old apple id.  How can I delete the current iCloud account on my iPhone if the previously stated conditions exist?

    If the old ID is yours, and if it is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I can no longer receive me emails from my .mac account on my iMac even though I have been able to receive it for the past number of years, I have an iCloud account and it is sending my mail to my phone but not my desktop. What gives...

    I can no longer receive my emails from the icloud to my mac even though it has been doing it fine since I moved to the icloud a number of weeks now. I only get my mail if I log into icloud or I get it on my phone, it is not synching to my iMac. Can someone assist please.
    Thanks
    Don

    I tried something similar by adding a new mail account doing the apple id etc but it worked in that it would look for mail but no mail would come even though mail still goes to my phone I was loath to delete my original account just in case the new one did not work as well. So I guess I am a little stuck now.. I hope you can help me to sort it out.
    Thanks

  • How can I store received email in a folder on my iPad *

    How can I store received email in a folder on my iPad *
    I am trying to save certain messages on my iPad but don't know how to make a folder with email!

    You can only add folders to the email account if it is an IMAP account. If you see an EDIT button at the top of the window when you are in the email account - where you can see your inbox, sent and trash folders - if there is an edit button at the top of that window - you can tap that and then an Add Mailbox option appears at the bottom of the window.
    If you do not see that edit button, you do not have an IMAP account and you cannot add folders.

  • HT4061 I recently switched from my iphone to a samsung Galaxy S4, trading in my iphone. I now can not send/receive text messages from any iphones to my galaxy S4. Since I traded the iphone in, I can't access it to make any changes. Any ideas?

    I recently switched from my iphone to a samsung Galaxy S4, trading in my iphone. I now can not send/receive text messages from any iphones to my galaxy S4. Since I traded the iphone in, I can't access it to make any changes. Any ideas?

    http://support.apple.com/kb/TS5185

Maybe you are looking for

  • Powerbook G4 1.67 15" won't boot

    Hi, My A1106 Powerbook G4 15" is not starting up. The symptoms are a combination of power problems and logic board problems symptoms. Specifically: 1)By pressing the power button, the fans begin to work but there is no startup sound or beeps and the

  • Java File Concept

    hi guys, have some problem in console window, i want to print (AuditRecord object) attribute and this file(logInfo.log) have contain some object that is AuditRecord information and my code is FileInputStream file = new FileInputStream(new File("logIn

  • How to create table control without wizard....???

    Hello experts !! Plz tell me how to create table control without wizard. for sflight table. Scenario 1 I have one screen like 1000. There i have taken carrid, connid, fldate as criteria. Now i want to display Planetype, Price, Seatsmax in the table c

  • SAP Incentive and Commission Management Commission Desktop Config

    Hi Experts , I just wanted to know how the commission desktop( CACSMWB) can be configured differently for different user . I went through the Settings for Commission Clerk's Workplace and saw how different function code are created for different tran

  • Airport networking and KVM switchs...what to do?

    I am in the process of setting up my G5 Quad as my main video and graphics machine. I also have a G4(Quicksilver) that I will use for basic stuff. They are both Airport equipped and I currently have an Airport Extreme Base Station (not set up yet) an