How pass date parametet in procedure while executing

I am written procerdure in which I have to pass parameter the datatype is date how can I am able to pass the date while executing
please help me

ya its from the cient application but I am checking that procedure is executing properly or not so I passing it through prompt.
I am executing in tha same format given by u, its displaying following error
BEGIN HANGER_FAILURE_PROCEDURE (to_date('01-jan-05','dd-mon-yy') ); END;
ERROR at line 1:
ORA-01001: invalid cursor
ORA-06512: at "SYSTEM.HANGER_FAILURE_PROCEDURE", line 62
ORA-06512: at line 1
===============================
And my procedure is
CREATE OR REPLACE PROCEDURE HANGER_FAILURE_PROCEDURE (startDate IN FRIT_HANGER.AGING_START_TIME%TYPE ) IS
shiftDescription SHIFT.DESCRIPTION%TYPE;
failure_number HANGER_FAILURE.FAILURE_NUMBER%TYPE;
failure HANGER_FAILURE.FAILURE_NUMBER%TYPE;
fritID LVT_TEST.FRIT_ID%TYPE ;
lvt_description LVT.DESCRIPTION%TYPE;
test_time LVT_TEST.TEST_TIME%TYPE ;
mikr LVT_TEST.MIKR%TYPE;
mikr_res LVT_TEST.MIKR_PASSED%TYPE;
mikg LVT_TEST.MIKG%TYPE;
mikg_res LVT_TEST.MIKG_PASSED%TYPE;
mikb LVT_TEST.MIKB%TYPE;
mikb_res LVT_TEST.MIKB_PASSED%TYPE;
coe2r LVT_TEST.COE2R%TYPE;
coe2r_res LVT_TEST.COE2R_PASSED%TYPE;
coe2g LVT_TEST.COE2G%TYPE;
coe2g_res LVT_TEST.COE2G_PASSED%TYPE;
coe2b LVT_TEST.COE2B%TYPE;
coe2b_res LVT_TEST.COE2B_PASSED%TYPE;
grparameter AGING_TEST.GR%TYPE;
ccr VTS_TEST.CCR%TYPE;
ccg VTS_TEST.CCG%TYPE;
ccb VTS_TEST.CCB%TYPE;
aging_hangerId AGING_HANGER.AGING_HANGER_ID%TYPE;
aging_start_time FRIT_HANGER.AGING_START_TIME%TYPE;
failure_type HANGER_FAILURE_TYPE.HANGER_FAILURE_TYPE_ID%TYPE;
CURSOR result_lvt(sdate FRIT_HANGER.AGING_START_TIME%TYPE) IS
SELECT
AGING_HANGER.AGING_HANGER_ID,
LVT.DESCRIPTION,
FRIT_HANGER.AGING_START_TIME,
LVT_TEST.FRIT_ID,
LVT_TEST.TEST_TIME,
LVT_TEST.MIKR,
LVT_TEST.MIKR_PASSED,
LVT_TEST.MIKG,
LVT_TEST.MIKG_PASSED,
LVT_TEST.MIKB,
LVT_TEST.MIKB_PASSED,
LVT_TEST.COE2R,
LVT_TEST.COE2R_PASSED,
LVT_TEST.COE2G,
LVT_TEST.COE2G_PASSED,
LVT_TEST.COE2B,
LVT_TEST.COE2B_PASSED
FROM LVT_TEST,LVT,FRIT_HANGER,AGING_HANGER
WHERE LVT_TEST.LVT_ID=LVT.LVT_ID
AND
FRIT_HANGER.AGING_HANGER_ID=AGING_HANGER.AGING_HANGER_ID
AND LVT_TEST.FRIT_ID=FRIT_HANGER.FRIT_ID
AND FRIT_HANGER.AGING_START_TIME>sdate
ORDER BY FRIT_HANGER.AGING_START_TIME;
BEGIN
IF result_lvt%ISOPEN THEN
OPEN result_lvt(startDate);
END IF;
LOOP
FETCH result_lvt
INTO aging_hangerId, lvt_description, aging_start_time, fritID, test_time, mikr, mikr_res, mikg, mikg_res, mikb, mikb_res, coe2r, coe2r_res, coe2g, coe2g_res, coe2b, coe2b_res;
exit when result_lvt%NOTFOUND;
SELECT GR INTO grparameter
FROM AGING_TEST
WHERE
TEST_TIME = (SELECT MAX(TEST_TIME) FROM AGING_TEST WHERE FRIT_ID = fritID);
SELECT CCR, CCG, CCB INTO ccr,ccg,ccb
FROM VTS_TEST
WHERE TEST_TIME = (SELECT MAX(TEST_TIME) FROM VTS_TEST WHERE FRIT_ID = fritID);
SELECT DESCRIPTION INTO shiftDescription
FROM SHIFT
WHERE START_TIME=TRUNC( aging_start_time);
IF( mikr_res=0 OR mikg_res = 0 OR mikb_res = 0 )
THEN
SELECT MAX(FAILURE_NUMBER) INTO failure
FROM HANGER_FAILURE
WHERE AGING_HANGER_ID=aging_hangerId
AND TO_DATE(AGING_START_TIME) = TO_DATE(aging_start_time)
AND
SHIFT_DESCRIPTION = shiftDescription;
failure_number:=failure+1;
SELECT HANGER_FAILURE_TYPE_ID INTO failure_type
FROM HANGER_FAILURE_TYPE
WHERE DESCRIPTION='MIK';
INSERT INTO HANGER_FAILURE (HANGER_FAILURE_ID, HANGER_FAILURE_TYPE_ID, AGING_HANGER_ID,
SHIFT_DESCRIPTION, AGING_START_TIME, FAILURE_NUMBER, LVT_DESCRIPTION,FRIT_ID,TEST_TIME, MIKR, MIKG, MIKB, COE2R, COE2G, COE2B, GR,CCR, CCG ,CCB ) VALUES(HANGER_FAILURE_ID_GENERATOR.NEXTVAL, failure_type, aging_hangerId, shiftDescription,aging_start_time,failure_number ,lvt_description, fritID,test_time, mikr,mikg,mikb,coe2r,coe2g,coe2b,grparameter,ccr,ccg,ccb);
ELSE
DBMS_OUTPUT.PUT_LINE('Doesn''t occur any MIK failure');
END IF;
IF (coe2r_res = 0 OR coe2g_res = 0 OR coe2b_res = 0)
THEN
SELECT MAX(FAILURE_NUMBER) INTO failure
FROM HANGER_FAILURE
WHERE AGING_HANGER_ID=aging_hangerId
AND TO_DATE(AGING_START_TIME) = TO_DATE(aging_start_time)
AND
SHIFT_DESCRIPTION = shiftDescription;
failure_number :=failure+1;
SELECT HANGER_FAILURE_TYPE_ID INTO failure_type
FROM HANGER_FAILURE_TYPE
WHERE DESCRIPTION='COE2';
INSERT INTO HANGER_FAILURE (HANGER_FAILURE_ID,HANGER_FAILURE_TYPE_ID,AGING_HANGER_ID,
SHIFT_DESCRIPTION,AGING_START_TIME ,FAILURE_NUMBER, LVT_DESCRIPTION,FRIT_ID,TEST_TIME,MIKR,MIKG,MIKB,COE2R,COE2G,
COE2B,GR ,CCR,CCG ,CCB ) VALUES(HANGER_FAILURE_ID_GENERATOR.NEXTVAL, failure_type, aging_hangerId, shiftDescription,aging_start_time,failure_number ,lvt_description, fritID,test_time, mikr,mikg,mikb,coe2r,coe2g,coe2b,grparameter,ccr,ccg,ccb);
ELSE
DBMS_OUTPUT.PUT_LINE('Doesn''t occur any COE2 failure');
END IF;
END LOOP;
CLOSE result_lvt;
END;
plz help me

Similar Messages

  • Error while passing date parameters in procedure and commit issue

    Hi
    1) I am doing a archiveing records and pls find my code below and i have couple of issue,pls find my code and want to ensure the commit is happening every 100000 rows inserted but i am archeiving a huge table but when i checks the table frequently it shows 0 records and after it shows count the actual rows around 20 million records.How can i ensure it commiting on every 100000 records. pls find my code my db version is 10g on windows
    CREATE OR REPLACE PROCEDURE doins as
    cnt number:=0;
    FOR x IN (select * from Call_log
    where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY'))
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY');
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    2) Error while passing date as parameter i am getting following errors while passing date parameter pls find my code and errors
    CREATE OR REPLACE PROCEDURE doins(p_date date) as
    cnt number:=0;
    begin
    FOR x IN (select * from Call_log
    where trunc(c_date) = to_char(p_date,'DD-MON-YYYY'))
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where trunc(c_date) = to_char(p_date,'DD-MON-YYYY');
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    end;
    exec doins(11-Aug-2008) then gives
    SQL> exec doins(11-Aug-2008);
    BEGIN doins(11-Aug-2008); END;
    ERROR at line 1:
    ORA-06550: line 1, column 16:
    PLS-00201: identifier 'AUG' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    if i gave exec doins(11-08-2008) it gaves
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'DOINS'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    rgds
    rosh

    CREATE OR REPLACE PROCEDURE doins(p_date varchar2) as
    cnt number:=0;
    begin
    FOR x IN (select A.rowid,A.* from Call_log A
    where trunc(c_date) = to_date(p_date,'DD-MON-YYYY'))
    --hope that's c_date columne is   DATE datatype
    LOOP
    INSERT INTO call_arch
    select * from Call_log
    where rowid=x.rowid;
    cnt := cnt + 1;
    IF( cnt = 10000 )
    THEN
    cnt := 0;
    commit;
    END IF;
    commit;
    END LOOP;
    end;
    thats your correct procedure - but NOT CORRECT ISSUE.
    You should use bulk collect with limit clause and forall clause to do it faster!!! Or Merge clause.

  • Dynamically passing data into a running while loop from a DAQ assist. in an ouside while loop

    Hello,  I'm currently a student working on a senior project and I'm trying to do a state machine that will turn off and turn on a compressor depending on time and coprocessor failure. 
    In the run state, wich is #1 on the case structure box I placed the DAQ assist.  Which takes in data from an accelerometer.  If the accelerometer's value is above the limit four times it will end the loop or if the time runs out it will end the loop. 
    The problem I am having is that i need to run four compressors.   I was thinking about having four case structures all within the outside loop, but I can only have the DAQ assist in one location.  This means that I now have to move the DAQ assist out of the run loop or run all four compressors in the one case structure.  If i remove the DAQ assist.  I can only get it take in data once when the loop starts and never again.  I understand why, but is there a way to dynamically pass data froma  DAQ assist.  into a running loop? 
    Also on a side note, i can't find a tutorial on how to really create a state machine using Enums.  Does any one know where to find this. 
    I have attached my curent program.
    Thank you for your help,
    Ryan
    Attachments:
    TEST STAND STATE MACHINE 2-28-07.vi ‏288 KB

    in labview choose file->new... then pick standard state machine and there are instructions.
    you can create a custom control and either use an enum, text ring or menu ring.  Edit the values and then save the control and drop into your vi and you can wire this to your case structure
    - James
    Using LV 2012 on Windows 7 64 bit

  • CF 9 How pass data in one grid to a query that populates another grid?

    I have a cfgrid from which a user would choose a data row. Based on the  values in the selected row, I would run to a query to get
    detailed data that would display in another grid. In that new grid, I would want to be able to insert and also maybe edit a row in that
    detailed grid.
    I haven't found any explanation of how to get the values of the selected row.
    Any other ideas on how to structure the process I described would also be really helpful.
    Thanks.

    I have a cfgrid from which a user would choose a data row. Based on the  values in the selected row, I would run to a query to get
    detailed data that would display in another grid. In that new grid, I would want to be able to insert and also maybe edit a row in that
    detailed grid.
    I haven't found any explanation of how to get the values of the selected row.
    Any other ideas on how to structure the process I described would also be really helpful.
    Thanks.

  • How to declare a table type while executing a Procdure??

    Hi All,
    I'm facing a problem that i'm not able to call a type as an input to a proc.
    My proc has two inputs as table type and other normal inputs.
    I'm using these table type to insert value into another table.
    But when i try and execute the procedure in a DECLARE - BEGIN - END block, i'm not able to define the type properly.
    Please help mw put on this??
    Thnx in advance!!!

    Are you trying to create stored procedure with table type parameter? If so, you either needto declare table type in sql or in a PL/SQL package. For example:
    SQL> create or replace
      2    type tbl_type
      3    as table of number
      4  /
    Type created.
    SQL> create or replace
      2    procedure p1(
      3                 p_tbl tbl_type
      4                )
      5      is
      6      begin
      7          for i in 1..p_tbl.count loop
      8            dbms_output.put_line(p_tbl(i));
      9          end loop;
    10  end;
    11  /
    Procedure created.
    SQL> set serveroutput on
    SQL> begin
      2      p1(tbl_type(1,3,5,99));
      3  end;
      4  /
    1
    3
    5
    99
    PL/SQL procedure successfully completed.
    SQL> create or replace
      2    package pkg1
      3      is
      4        type tbl_type is table of number;
      5  end;
      6  /
    Package created.
    SQL> create or replace
      2    procedure p2(
      3                 p_tbl pkg1.tbl_type
      4                )
      5      is
      6      begin
      7          for i in 1..p_tbl.count loop
      8            dbms_output.put_line(p_tbl(i));
      9          end loop;
    10  end;
    11  /
    Procedure created.
    SQL> set serveroutput on
    SQL> begin
      2      p2(pkg1.tbl_type(1,3,5,99));
      3  end;
      4  /
    1
    3
    5
    99
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Help understanding how to pass dates to procedures in a package?

    When I run the following script in SQL*Plus, I get no obvious errors, but the truncate does not happen and all the other processing doesn't happen. I ran a similar version in another tool and it worked. Much of the code is deleted here but I believe I don't fully understand passing dates in the procedure. I figure if one of the dates ends up null or something invalid, the procedure will run and give no results. If someone could correct me on how to pass variables, it would help greatly. As you can see, I am passing 2 dates in from an ACCEPT statement, passing them to 1 shell type procedure which runs other procedures and passes the dates to the procedures below it. This procedures calls the 3rd procedure and passes the same dates to it:
    ACCEPT CUR_PERIOD PROMPT 'Current Period (MM/DD/YYYY): ';
    ACCEPT PRIOR_PERIOD PROMPT 'Prior Period (MM/DD/YYYY): ';
    EXEC RCO.MONTH_END_PACK_1.MONTHENDPHASE1PROC('&CUR_PERIOD','&PRIOR_PERIOD');
    The spec looks like this:
    CREATE OR REPLACE PACKAGE MONTH_END_PACK_1 AS
         PROCEDURE MonthEndPhase1PROC(get_cur_period IN DATE, get_prior_period IN DATE);
         PROCEDURE W_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE);
         PROCEDURE WO_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE);
    END MONTH_END_PACK_1;
    The body looks like this:CREATE OR REPLACE PACKAGE BODY MONTH_END_PACK_1  AS
    PROCEDURE MonthEndPhase1PROC(get_cur_period IN DATE, get_prior_period IN DATE) IS
         BEGIN
              EXECUTE IMMEDIATE 'TRUNCATE TABLE RPT_DS1_CNT';
              EXECUTE IMMEDIATE 'TRUNCATE TABLE RPT_DS1_CNT_CAT';
              W_CAT_INFO_RPT_PROC(GET_CUR_PERIOD, GET_PRIOR_PERIOD);
         END;
    PROCEDURE W_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE) IS
         CUR_PERIOD DATE;
         PRIOR_PERIOD DATE;
         BEGIN
              -- Assign the dates to this procedure that were passed in above.
              CUR_PERIOD := GET_CUR_PERIOD;         --07/27/2007
              PRIOR_PERIOD := GET_PRIOR_PERIOD;     --06/27/2007
              -- Execute stored procedure, passing in dates.
              WO_CAT_INFO_RPT_PROC(CUR_PERIOD, PRIOR_PERIOD);
              -- Other code goes here
         END; -- W_CAT_INFO_RPT_PROC
    PROCEDURE WO_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE) IS
         CUR_PERIOD DATE;
         PRIOR_PERIOD DATE;
         BEGIN
              CUR_PERIOD := GET_CUR_PERIOD;
              PRIOR_PERIOD := GET_PRIOR_PERIOD;
              INSERT INTO RPT_DS1_CNT
              (select distinct trim(CVBI_KEY) as CVBI_KEY, vendor_id
              from
              (select m.cvbi_key, v.vendor_name
              from  rco.cogs_resource m,RCO.COGS_SRVCTYP st,rco.cogs_mkt ms,RCO.COGS_VENDOR v,
                (select distinct cvbi_key, vendor_id
                 from RCO.COGS_resource
                 where period = CUR_PERIOD)ak
              where  ak.cvbi_key = m.cvbi_key
              and  trim(m.cvbi_key) = trim(st.cvbi_key(+))
              and  period = CUR_PERIOD));
         END;
    END;
    /

    EXEC RCO.MONTH_END_PACK_1.MONTHENDPHASE1PROC(to_date('&CUR_PERIOD','MM/DD/YYYY'),to_date('&PRIOR_PERIOD','MM/DD/YYYY'));
    As you can see, I am passing 2 dates in from an ACCEPT statementUntil you convert them using TO_DATE they are just strings
    Message was edited by:
    3360
    Fixed date formats

  • Ad Hoc Query - While executing - System could not read any data

    Hello Techies,
    When I am excuting my Ad hoc query - for one personnel number for which Infotype 28 subtype 0001 has been maintained
    But system is throwing this error -
    System could not read any data
    Message no. AQ_AD_HOC226
    Diagnosis
    There is no data available for the specified selections.
    System response
    The results list in the lower part of the screen still displays the last list to be created.
    Please let me know why does it happening ?
    Thanks
    Jaydeep

    It was an date selection issue - as while executing the Ad hoc query - the reporting date is today -
    changed to all

  • How to  pass data between JDialog and its parent window ?

    Hi,
    I am new to swing. I want to know how pass data between a JDialog and its parent window.
    If you have any information please reply with example code.
    Thank You

    hi Encephalopathic ,
    I was looking for something like as it was given in the link provided by you.
    Thank you for reply It really helped me.

  • Error while executing file in Background

    Hi All,
    I need to schedule a job in background.where i need to read data from  excel file.
    while executing in background mode its saying 'Error while reading file'.
    but in foreground i can able to execute it.can anybody help me out.
    Thanks
    Sudha

    hi Sudha,
    I think the program tries to read from presentation server (with GUI_UPLOAD or something similary), which is not possible in background (because in background there is no presentation server).
    hope this helps
    ec

  • While executing DTP in DSO getting Error?

    Hi,
    I am extracting the data from a flat file..I am loading the data to DSO. While executing DTP i am getting this error
    "Dump: ABAP/4 processor: SAPSQL_AMBIGUOUS_FIELDNAME"
    My fields are SID,SNAME,SADD,SMOB. I did twice but again i am getting same error.
    After some time i changed that first field as SMID..Then DTP executes correctly...
    Can you please explain what happened in this case?
    Regards, 

    Hi
    Account determination for entry CAIN AUM ____ _ 7920 not possible
    This is a clear OBYC error
    Here CAIN is chart of accounts
    AUM is transaction key
    Go to OBYC select AUM double click that
    system will ask for chart of accounts give CAIN as chart of accounts
    maintain the necessary settings for 7920 and for the valuation grouping code
    Here system has not given what is your valuation grouping code
    In t code OMWD you can see what is the valuation grouping code assigned to your plant
    make the necessary settings
    I feel by chance or by mistake in your delivery doc there is a line item with 0 qty in both delivery and picking
    That is why system has gone for AUM  transaction key
    check that and delete that item and then without the above said settings being maintained the PGI can get processed
    Check and revert back
    Regards
    Raja

  • How much data is used to stream movies

    I have a data plan but I also have ultraviolet movies, I can't download them all to my iPhone 5c 16G .i was wondering how much data was being used while I am streaming rather that be from wifi or the phone as the internet provider. Any feedback would be great?

    Thanks Malcolm, I not sure if 442KB is the same as 203MB but thats what it ended up being taking 5 mins to update

  • In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String

    In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .

    Hi Srinath,
    The below blog might be useful
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
    PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
    regards,
    Harish

  • How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every so many hours.

    How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every so
    many hours.

    How big is the table on server B? Is that possible to bring the all data into a server A and merge the data locally?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every 4 hours.

    How do I merge data from table1 on server 1 to final table on server 2 with a stored procedure to execute every so many hours.

    Hello,
    If you had configure server2 as
    linked server on the server1, you can run the following statement inside stored proceduce to copy table data. And then create a job to the run stored proceduce every 4 hours.
    Insert Into Server2.Database2.dbo.Table2
    (Cols)
    Select Cols From Server1.Database1.dbo.Table1
    Or you can use the SQL Server Import and Export Wizard to export the data from server1 to server2, save the SSIS package created by the wizard on the SQL Server, create a job to run the SSIS package. 
    Reference:http://technet.microsoft.com/en-us/library/ms141209.aspx
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • While executing java stored procedure i got an error

    I have used this command to load java source into data base
    loadjava -user ENCORA/ENCORA C:\framework\Packages\testdevelopement\HOST.java
    but while executing i got an error.
    SQL> create or replace function run_cmd(p_cmd in varchar2) return number
    2 as
    3 language java
    4 name 'HOST.RunThis(java.lang.String[]) return integer';
    5 /
    Function created.
    SQL> create or replace procedure RC(p_cmd in varchar2)
    2 as
    3 x number;
    4 begin
    5 x := run_cmd(p_cmd);
    6 end;
    7 /
    Procedure created.
    SQL> set serveroutput on size 1000000
    SQL> exec dbms_java.set_output(1000000)
    PL/SQL procedure successfully completed.
    SQL> exec rc('/usr/bin/ps -ef');
    BEGIN rc('/usr/bin/ps -ef'); END;
    ERROR at line 1:
    ORA-29540: class HOST does not exist
    ORA-06512: at "ENCORA.RUN_CMD", line 0
    ORA-06512: at "ENCORA.RC", line 5
    ORA-06512: at line 1
    can any one suggest me how can i resolve this problem?

    Hi Uday,
    My guess is that there is a problem with your java stored procedure that is causing the "ExceptionInInitializer" error to be thrown. According to the javadoc:
    is thrown to indicate that an exception occurred during
    evaluation of a static initializer or
    the initializer for a static variable
    Since I didn't see any of your code in your post, I can't help you much more, I'm afraid. Perhaps if you would provide some more details, I may be able to help you some more. I think the following details would be helpful:
    1. Complete error message and stack trace you are getting.
    2. The section of your java code that you think is causing the problem.
    3. Oracle database version you are using.
    Good Luck,
    Avi.

Maybe you are looking for