Help me to solve the simple but complicated problem ??

I wanted to use oracle stored function in my programme(inserts/update the data into multiple tables based certain values in related tables). I need to pass many values from java to calling function is there any way to pass my java values into oracle function as an array of values or by any other means and use the same values in my stored function? (Except val1, val2, val3, .. etc to function) .
Advance thanks to every body trying to reply

Oracle JDBC driver is JDBC 2.0 compliant. Right ?
And in JDBC 2.0 there exists the interface java.sql.Array
Oracle JDBC provides the class oracle.sql.ARRAY Have you thought of using it ? It may be what you are looking for.
Here is an example that comes with Oracle JDBC driver...
import java.sql.*;
import oracle.sql.*;
import oracle.jdbc.oracore.Util;
import oracle.jdbc.driver.*;
import java.math.BigDecimal;
public class ArrayExample
  public static void main (String args[])
    throws Exception
    // Register the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Connect to the database
    // You need to put your database name after the @ sign in
    // the connection URL.
    // The sample retrieves an varray of type "NUM_VARRAY",
    // materializes the object as an object of type ARRAY.
    // A new ARRAY is then inserted into the database.
    Connection conn =
      DriverManager.getConnection ("jdbc:oracle:oci8:@",
                                   "scott", "tiger");
    // It's faster when auto commit is off
    conn.setAutoCommit (false);
    // Create a Statement
    Statement stmt = conn.createStatement ();
    try
      stmt.execute ("DROP TABLE varray_table");
      stmt.execute ("DROP TYPE num_varray");    
    catch (SQLException e)
      // the above drop statements will throw exceptions
      // if the types and tables did not exist before. Just ingore it.
    stmt.execute ("CREATE TYPE num_varray AS VARRAY(10) OF NUMBER(12, 2)");
    stmt.execute ("CREATE TABLE varray_table (col1 num_varray)");
    stmt.execute ("INSERT INTO varray_table VALUES (num_varray(100, 200))");
    ResultSet rs = stmt.executeQuery("SELECT * FROM varray_table");
    showResultSet (rs);
    //now insert a new row
    // create a new ARRAY object   
    int elements[] = { 300, 400, 500, 600 };
    ArrayDescriptor desc = ArrayDescriptor.createDescriptor("NUM_VARRAY", conn);
    ARRAY newArray = new ARRAY(desc, conn, elements);
    PreparedStatement ps =
      conn.prepareStatement ("insert into varray_table values (?)");
    ((OraclePreparedStatement)ps).setARRAY (1, newArray);
    ps.execute ();
    rs = stmt.executeQuery("SELECT * FROM varray_table");
    showResultSet (rs);
    // Close all the resources
    rs.close();
    ps.close();
    stmt.close();
    conn.close();
  public static void showResultSet (ResultSet rs)
    throws SQLException
    int line = 0;
    while (rs.next())
      line++;
      System.out.println("Row "+line+" : ");
      ARRAY array = ((OracleResultSet)rs).getARRAY (1);
      System.out.println ("Array is of type "+array.getSQLTypeName());
      System.out.println ("Array element is of type code "+array.getBaseType());
      System.out.println ("Array is of length "+array.length());
      // get Array elements           
      BigDecimal[] values = (BigDecimal[]) array.getArray();
      for (int i=0; i<values.length; i++)
        BigDecimal value = (BigDecimal) values;
System.out.println(">> index "+i+" = "+value.intValue());

Similar Messages

  • HT1918 I would like to change my Visa card from the account but its not changing and the billing information is not changing and I can't purchase any thing from my account its now not usable please help me to solve the problem

    I would like to change my Visa card from the account but its not changing and the billing information is not changing and I can't purchase any thing from my account its now not usable please help me to solve the problem

    You made a purchase and exhausted the credit on your card before it processed. All purchases are final. Contact iTunes Store support. You need to settle up before you can purchase or download anything else.

  • My login option turned to disabled ,according  to the tips ,i've changed my passwords many times, but i still can't login my itunes store ,who can help me to solve the problem?

    My login option turned to disabled ,according  to the tips ,i've changed my passwords many times, but i still can't login my itunes store ,who can help me to solve the problem?

    Try here >  Can't connect to the iTunes Store
    Try disabling anti virus software and turning off the Firewall.

  • Help me to solve the Error occuring after importing the VO,EO files

    Hi,
    I created EO,VO by extending the Seeded EO,VO respectively, Substitute the BC4J also.
    i import the files using jpximport
    its successfully imported, and i'm facing error while opening the application under that responsibility.
    when i try to open the cash forecasting application it shows error.
    i mentioned the some part of the error below
    oracle.apps.fnd.framework.OAException: Could not load application module 'oracle.apps.ce.forecast.cf.server.ForecastAM'.
    ## Detail 0 ##
    JBO-30003: The application pool (legend.igloocorp.comTEST13000oracle.apps.ce.forecast.cf.server.ForecastAM) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg=JBO-25002: Definition xxi.oracle.apps.ce.schema.server.IglFcTrxCellsEO of type Entity Definition not found
    i checked the error in google and metalink for the following no.
    JBO-30003 is generally either a simple misconfiguration in the bc4j.xcfg file - e.g. the JDBC connection information is wrong. Or the database is simply not available.
    but i checked those settings also. every thing is working fine.
    please any one help me to solve the issues.
    whether i need to extend AM file also.
    Thanks
    Aswath Thaniga

    As per Oracle recommendation your path should be
    /xxi/oracle/apps/xxi/oracle/apps/ce/schema/server/ -- in case of custom application
    /xxi/oracle/apps/pos/oracle/apps/ce/schema/server/ -- in case of extensions.
    where xxi is your company name.. don't say xxi as such..
    If your company name is microsoft, then micro.oracle.apps... ...
    But it doesn't got anything to do with your error... Please execute the following command
    ls -lrt $JAVA_TOP/oracle/apps/xxi/oracle/apps/ce/schema/server/
    and post the results.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • An error encounter on test devise (real devise) i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    Hello, I am using tesseract api in my app, which run perfectly on simulator but on test devise (real devise) it is showing an error i.e "apple mach -o linker error linker command failed with exit code 1", please any body help me to solve the problem

    if you can't compile the webutil.pll in your forms developer you need to set the forms_builder_classpath in you windows registry. You have to add the frmwebutil.jar,jacob.jar to the registry key. The configuration files you mention are for running the forms.

  • Hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    nishaadp wrote:
    ... it stucks with the apple logo ,  nothing works. Is anything i can do?
    See Here for
    Frozen or unresponsive iPhone

  • My iPod says to connect to iTunes, and then it crashes, error 3014, I've tried everything it says that might solve the error but nothing,

    my iPod says to connect to iTunes, and then it crashes, error 3014, I've tried everything it says that might solve the error but nothing

    Not knowing what everything is:
    Error 3194, Error 17, or "This device isn't eligible for the requested build" - Apple Support
    - Try another cable                                                       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • I forgot the code for my iPhone to access the Home screen I do , please help me try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears

    I forgot the code for my iPhone to access the Home screen I do , please help me
    try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears

    Hello polo-angulo,
    I apologize, I'm a bit unclear on the nature and scope of the issue you are describing. If you are saying that you are getting an error code (3004) when you try to restore your iPhone (because you could not remember your passcode), you may find the information and troubleshooting steps outlined in the following articles helpful:
    Resolve iOS update and restore errors in iTunes - Apple Support
    Get help with iOS update and restore errors - Apple Support
    Sincerely,
    - Brenden

  • Thank you for providing immediate  feedback.   bt that solution did not help me to solve the problem.still am nt able to make outgoing calls. i dont find any problem in recieving calls also right. bt i dont have any problem in recieving calls.

    Thank you for providing immediate  feedback.   bt that solution did not help me to solve the problem.still am nt able to make outgoing calls. i dont find any problem in recieving calls also right. then i dont what is wrong with my iphone.The same sim which i used in iphone4s is working in all other phones.its not the problm of carrier.
    Iphone 4s Black 16gb

    Rather than starting a new thread every time it would be easier to follow you if you stick to the one thread

  • My ipod touch 4G got problem after update to iOS 6, it can not access the Apps store ,can not access safari,map, weather and so on, could someone help me to solve the problem, thanks in advance~~~

    My ipod touch 4G got problem after update to iOS 6, it can not access the Apps store ,can not access safari,map, weather and so on, could someone help me to solve the problem, thanks in advance~~~

    Force close the App Store app and reset the iPad. No data will be lost when you reset the device.
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Next, reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • I have a WiFi home connection. It works on my laptop but has stopped working on my iPad, which I tried resetting but it didn't help. It recognises the SSID but then asks for IP Address, Subnet Mask, Router etc. Any ideas on what to do?.

    I have a WiFi home connection. It works on my laptop but has stopped working on my iPad, which I tried resetting but it didn't help. It recognises the SSID but then asks for IP Address, Subnet Mask, Router etc. Any ideas on what to do?.

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • I have the following Imac and Iphoto 11 in Finder folder I upgrade the iphoto file  and  all the latest event files, can you help how to solve the problem? Thank you  Model Name iMac    Model Identifier:     iMa

    I have the following Imac and Iphoto 11 in Finder folder I upgrade the iphoto file  and I lost all the latest event files, can you help how to solve the problem? Thank you
    Model Name:     iMac
    Model Identifier:     iMac8,1   Processor Name:     Intel Core 2 Duo
    Processor Speed:     2.4 GHz

    http://support.apple.com/kb/HT2638?viewlocale=en_US&locale=en_US

  • Disable SSID broadcast solve the E4200 continuous flashing problem

    I was quite excited about E4200 I got yesterday. Everything works perfect except front LED light start blinking a few hours later. Don't know why it happens in a sudden and non-stop. 
    After several tries, I found that disabling SSID broadcast for both 2.4 and 5GHz stops the blinking.
    Of course, before doing that, I upgraded firmware to 1.0.02, reset to factory defaults and finally set up E4200 manually rather than using Cisco Connect.  
    Now the LED light is continuously lit.
    I hope this hint could help you to solve the poblem as well.

    I wonder if the 'flasjhing logo' problem (which indicates WPS connection is in process) could be due to using Cisco Connect initially.
    I am thinking of doing a '30-30-30' rest, using the web browser for all the configuration.(I have been doing this ever since ditching Cisco Connect early on).

  • HT5312 I did all the steps, but my problem is that they are asking me some questions that I did not select when I created my Apple ID, so I clicked where it said reset security questions info... and then when I went to my email, they didn't sended me anyt

    I did all the steps, but my problem is that they are asking me some questions that I did not selected when I created my Apple ID, so I clicked where it said reset security quiestion info...... And then when I went and cheked my email, they did not send anything to me!
    This problem started 1 month ago!
    Ivana1728

    The email response is automated, and almost certainly is detected as "junk" or "spam". So, try again and check your spam folders for their reply.

  • Please help me to solve the problem ---it's urgent

    hi everybody
    my application is deployed on the weblogic 9.0. I am using the VB DLL through which i am sending the request to the servlet.
    When i am pressing the "Color" button in VBDLL to retrieve the color information, server takes the long time nearly 10-12 minutes to return back the color information but it throws the following error
    <Error> <WebLogicServer> <BEA-000337> <[STUCK] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "621" seconds working on the request "Http Request: /sales/appFindSize.jsp", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
    java.lang.Object.wait(Native Method)
    java.lang.Object.wait(Object.java:474)
    javelin.client.JobWaiter.blockUntilFinished(JobWaiter.java:45)
    javelin.client.ClientUtilsImpl.build(ClientUtilsImpl.java:838)
    weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:244)
    weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200)
    weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:224)
    weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:383)
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:298)
    weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3022)
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925)
    weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848)
    weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1288)
    weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    please help me to solve this error it is urgent.
    Thanks in advance
    Pandurang S. Pokharkar

    Exchange rates can be entered as a direct or indirect quotation. You can maintain two prefixes that
    can be used to differentiate between direct and indirect quotations exchange rates during input and
    display. If you don´t set up a prefix, the standard setting is valid:
    &#159; “” (blank, without a prefix) for direct quotation exchange rates
    &#159; “/” for indirect quotation exchange rates
    n Scenario 1: If you use mainly direct quotation exchange rates and indirect quotation occurs seldom,
    use the default configuration. In this way you can enter direct quotation exchange rates without a
    prefix.
    n Scenario 2: If, in addition to direct quotation exchange rates, the handling of indirect quotation is
    required, you should define a prefix that is not “blank” for both quotation types, e.g.:
    &#159; “*” for direct quotation exchange rates, “/” for indirect quotation exchange rates
    &#159; If you follow this suggestion, the configuration does not allow exchange rates to be entered
    without a prefix, an error message occurs. Thus users are forced to consider which the correct
    quotation is and enter the rate with a valid prefix.
    n Scenario 3: If indirect quotation is the major notation at your company, you can configure the
    settings this way:
    &#159; “*” for direct quotation exchange rates, “ ” (blank) for indirect quotation exchange rates
    &#159; This configuration allows indirect quotation exchange rates to be entered without a prefix whereas
    the less used direct quotation exchange rates have to be entered with a prefix.

Maybe you are looking for

  • Need to add special characters in sap scripts

    Hi All,    I need to add special characters in sap script. I have used them as it is my script,but in the print preview i am able to see '#' instead of those special characters.Can anybody please tell me the way in which we can add special characters

  • Usb stick won't appear on XFCE4 desktop

    I have a regular, standard install of Arch. I used pacman -Syu to upgrade system. I have kernel 3.12.6-1-ARCH. Computer has been restarted. I have XFCE4 desktop environment. I have empty usb sticks formatted to ext4. These sticks won't show up on des

  • Please fix Lightroom-it is replicating files at will!

    Hello; Over the past 24 hours I have rebuilt my A PS LR Library, and it is still replicating files with the same file name. This might have happened when I imported multiple folders in an attempt to "streamline" my Lightroom Catalog, but the action a

  • Query Variable Help

    Dear Gurus, I was looking for a variable for Fiscal Year/Period in Busines content that can be a single entry, mandatory. I found one 0S_FPER. In the report, when I restrict Fiscal Year/Period with this variable, I wanted to select the 'offset' to -1

  • Nametags will not print logo

    I know this is a stupid question but I waited until the last minute to print nametags and can not get them to print the logo over the name. It is as if the computer thinks they are preprinted with it. It shows up in print preview correctly but it I g