ORA-06512:OWA_UTIL AT LINE 354

Hello,
I created a new procedure to update the table through web page. I use html commands and owa_util package to get the user id
owa_util.get_cgi_env('REMOTE_USER')
I am using same code in lot of other procedures and they are all working.
When I run through SQL/PLS, I am getting errors:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "SYS.OWA_UTIL", line 354
ORA-06512: at "Profile.pmp_rfq_form, line 17 (Procedure name and line number where the command is )
ORA-06512: at line 21
Can anybody tell what is the problem. When I run through web, I get this error
The requested URL /pls/prolink/pmp_rfq_form was not found on this server.
Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Server at ORADEVAPP1IACDCA.corp.iacna.com Port 7778

Hi,
This error can occur because of many reasons, check in metalink about this error, thats suits your scenario.
Regards
PS: You would get lot many expert advise if you post this query in Oracle Application Server Forum. Because this is Oracle portal related query.

Similar Messages

  • ORA-06508,ORA-06512, why I should re-connect and after that it runs well?

    I have 2 package.
    package A depends on B.
    I call the package A in c++ code. At the begining, all work well.
    I compile package B successfully.
    But when I call package A in c++ code using a existing connection to the oracle, I get
    ORA-06508: PL/SQL:
    ORA-06512: 在 "PARTY.PKG_TRANSACTION", line 102
    ORA-06512: 在 "PARTY.PKG_CFMMC", line 1186
    when I kill this session in database server side and re-connect to the database, it runs well.
    what is wrong, why I should re-connect and then it runs well, and in the mean time, it does raise errors above if I use the old connection?

    It appears sometimes. But sometimes it does not appear.
    you can create 2 package.
    package a, package b.
    A depends on b.
    You can call the package A in the client side using c++ code.
    then compile the b(do not change and code of b, just recompile it) successfully.
    If you are lucky you can see the errors.

  • Ora-06512 and -01400

    I've created a procedure to insert one table and update another and I keep getting the ora-06512 at Movie_rent_sp line 31 and ora-01400 cannot insert NULL into mm_rental, rental_id. I've been trying to resolve these errors for the past two days and still can't figure out what's wrong.
    CREATE OR REPLACE PROCEDURE MOVIE_RENT_SP
    (P_MOVIE_ID IN MM_MOVIE.MOVIE_ID%TYPE,
    P_MEMBER_ID IN MM_RENTAL.MEMBER_ID%TYPE,
    P_PAYMENT_METHODS_ID IN MM_RENTAL.PAYMENT_METHODS_ID%TYPE)
    IS
    V_COUNT NUMBER;
    LV_MOVIE_QTY NUMBER(4);
    INVALID_MOVIE_ID EXCEPTION;
    INVALID_MEMBER_ID EXCEPTION;
    INVALID_PAYMENT_METHODS_ID EXCEPTION;
    BEGIN
    SELECT COUNT(MOVIE_ID)
    INTO V_COUNT
    FROM MM_MOVIE
    WHERE MOVIE_ID = P_MOVIE_ID;
    IF V_COUNT = 0 THEN
         RAISE INVALID_MOVIE_ID;
    END IF;
    IF P_MEMBER_ID NOT BETWEEN '10' AND '14' THEN
    RAISE INVALID_MEMBER_ID;
    END IF;
    IF P_PAYMENT_METHODS_ID > 5 THEN
    RAISE INVALID_PAYMENT_METHODS_ID;
    END IF;
    INSERT INTO MM_RENTAL (MOVIE_ID, MEMBER_ID, PAYMENT_METHODS_ID)
    VALUES(P_MOVIE_ID, P_MEMBER_ID, P_PAYMENT_METHODS_ID);
    UPDATE MM_MOVIE
    SET MOVIE_QTY = LV_MOVIE_QTY + 1
    WHERE MOVIE_ID = P_MOVIE_ID;
    COMMIT;
    EXCEPTION
    WHEN INVALID_MOVIE_ID THEN DBMS_OUTPUT.PUT_LINE('THERE IS NO MOVIE ID '||P_MOVIE_ID);
    WHEN INVALID_MEMBER_ID THEN DBMS_OUTPUT.PUT_LINE('THE MEMBER ID ' ||P_MEMBER_ID||' '||'DOES NOT EXIST');
    WHEN INVALID_PAYMENT_METHODS_ID
    THEN DBMS_OUTPUT.PUT_LINE(P_PAYMENT_METHODS_ID || 'IS AN INCORRECT PAYMENT METHOD. PLEASE RE-ENTER CORRECT PAYMENT METHOD ID');
    END;
    /

    Any suggestion on how I can fix the insert statement since the only requirements for this assignment was to take in the 3 params for the movie id, member id and payment method and inset a row into the rental table using those params?
    Thanks

  • ORA-01114, ORA-29701, ORA-06512

    I have got this errors. Can any experts help me to resolve this issue?
    Due to this application users getting errors. Thanks.
    Ora errors:
    ORA-01114: IO error writing block to file 65 (block # 1956)
    ORA-29701: unable to connect to Cluster Manager
    ORA-06512: at "ERROR_PKG", line 151
    ORA-06512: at "SET_SP", line 108
    ORA-06512: at line 1

    Thanks for the suggestion. I did not think this errors related to db versions/os versions.
    It is Oracle 10.2.0.4 running in Sun OS 5.10 and its running in ASM/RAC environment.
    Since I have limited access(APP DBA) I have raised the ticket to SYSDBA to look in to this issue with my inputs.
    My Inputs:
    It seems like ORA-29701 error is related to ASM(css daemon)/RAC and all the remaining error is due to that.
    Case 1:
    Run the following batch files in the $ORACLE_HOME/bin directory as root
    localconfig delete
    localconfig add
    Case 2:
    The CSSD daemon uses /tmp/.oracle directory to establish a local socket for communication with local clients such as RDBMS instances. So you might want to ensure this was not removed by accident.
    Solution:
    Reboot the node.
    Unfortually, the location of /tmp/.oracle cannot be changed (at least for 10g RAC)

  • ORA-06502/ORA-06512 at execution owa_util.mime_header

    Hi, APEX gurus!
    I try to write a procedure to display bfile contention /images/ into APEX page.
    I have a table :
    -TEMP_FLAGS (ID NUMBER(3) NOT NULL, NAME BFILE)
    - procedure display_country_flags_bfile
    display_country_flags_bfile (p_id NUMBER) is
    CURSOR c_flags(p_flag NUMBER) IS
    SELECT name
    FROM temp_flags_bfile
    WHERE id = p_flag;
    r_flags c_flags%ROWTYPE;
    v_bfile bfile;
    lgh_file number;
    v_dir_alias varchar2(256);
    v_filename varchar2(256);
    v_mime varchar2(255);
    begin
    open c_flags(p_id);
    fetch c_flags INTO r_flags;
    CLOSE c_flags;
    v_bfile := r_flags.name;
    dbms_lob.filegetname(v_bfile, v_dir_alias, v_filename);
    lgh_file := dbms_lob.getlength(v_bfile);
    Dbms_Lob.Fileopen(v_bfile, Dbms_Lob.File_Readonly);
    owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    htp.p('Content-length: '||lgh_file);
    htp.p('Content-Disposition: attachment; filename="'||v_filename||'"');
    owa_util.http_header_close;
    wpg_docload.download_file(v_bfile);
    Dbms_Lob.Fileclose(v_bfile);
    end display_country_flags_bfile;
    If i execute directly in Toad i get error below:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 354
    ORA-06512: at "SYS.OWA_UTIL", line 413
    ORA-06512: at "STAT.DISPLAY_COUNTRY_FLAGS_BFILE", line 20
    ORA-06512: at line 1
    In Report attributes of APEX page, i use HTML expression to populate column value as call this procedure with appropriate parameter but image just not showing.
    I appreciate any help and opinion.
    P.S. I'm a newbie in APEX and have minimal experience.
    P.S.2 I forgot - Oracle 10g XE and APEX 2.1 built-in
    Thanks, Rado
    Edited by: user7637288 on 16-Dec-2008 05:12

    Thanks, rafix.
    But i'm using Oracle XE with storage limit /1GB/ and i don't want store any images in database. I prefer to use bfile type with link to files on OS level.
    By the way , just for tests, i try to use blobs on my own table with simular procedure, which throws the same error - with owa_util.mime_header. And think that the problem is related to owa_util package.
    My APEX version is 2.1 - built-in in Oracle XE, not 3.1

  • ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SYS.OWA_UTIL"

    Was working on tutorial from the:
    Oracle Database Express Edition 2 Day Plus Application Express Developer Guide
    Working on the section 4: How to Control Form Layout.
    Ran into a problem trying to compile the Create HT-EMP Table script.
    keep getting this error for this particular segment creating the bu_ht_emp trigger:
    pp. 4-2 and 4-3
    CREATE OR REPLACE TRIGGER bi_ht_emp
    BEFORE INSERT ON ht_emp
    FOR EACH ROW
    BEGIN
    SELECT ht_emp_seq.nextval
    INTO :new.emp_id
    FROM DUAL;
    :new.rec_create_date := SYSDATE;
    END;
    ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SYS.OWA_UTIL", line 354....etc
    I've check the syntax for the entire script and it all checks out. Does anyone have a clue why this is failing?

    If I'm looking at the same DDL, not seeing where it would throw an owa_util error, are you running it in the apex script editor?
    Just plain sqlplus doesn't like the empty line stuck in with the list of check constraints on the emp_dept column, after fixing that up (and dropping the sequence that got created on the first pass) the DDL and insert runs fine-

  • Ora-06502:pl/sql and ora-06512 at sys.owa_util errors

    Greetings -
    I have just installed APEX 2.2 in my 9.2.0.7 database and am going through the exercises in the "2 Day+ Application Express Developer's Guide." I was making good progress, until I got to Chapter 5, How to Control Form Layout. I created the script "ht_emp", as instructed. Everything in the script works, except for the "create or replace trigger bi_ht_emp" part. It fails with the following errors:
    ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SYS.OWA_UTIL", lone 328 ORA-06512: at "SYS.HTP", line 862 ORA-06512: at "SYS.HTP", line 977 ORA-06512: at "SYS.HTP", line 995 ORA-06512: at "FLOWS_020200.WWV_FLOW_SW_API", line 428 ORA-01003: no statement parsed. I have confirmed that nls_length_semantics = BYTE
    Any suggestions?
    Thanks in advance - Gail

    Scott -
    Here's the part of the script that chokes --
    CREATE OR REPLACE TRIGGER bi_ht_emp
    BEFORE INSERT ON ht_emp
    FOR EACH ROW
    BEGIN
    SELECT ht_emp_seq.nextval
    INTO :new.emp_id
    FROM DUAL;
    :new.rec_create_date := SYSDATE;
    END;
    Thanks fro helping -
    Gail

  • Error - ORA-06512: at "SYS.OWA_UTIL" - when trying to download files.

    Hi, I have an application where I try to implement download of the attachments.
    I am trying to use Denes Kubicek approach
    http://apex.oracle.com/pls/otn/f?p=31517:15:4179200867819025:REMOVE_ID:NO::P15_DELETE_ID:4672033519340628563.
    When I run stored procedure I get this error message.
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.HTP", line 1368
    ORA-06512: at "SYS.HTP", line 1443
    ORA-06512: at "SYS.OWA_UTIL", line 413
    ORA-06512: at "RPA.LOADATTACHMENT", line 24
    ORA-06512: at line 6
    The code breaks at :
    OWA_UTIL.mime_header (NVL (v_mime, 'application/octet'), FALSE);
    Does anybody have any idea why it breaks?
    Thanks in advance.
    Robert
    Edited by: robik on 2-Feb-2011 5:58 AM

    Actually, the error comes up when I try to execute any of these lines:
    OWA_UTIL.mime_header (NVL (v_mime, 'application/octet'), FALSE);
    -- set the size so the browser knows how much to download
    HTP.p ('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    HTP.p ( 'Content-Disposition: attachment; filename="'
    || REPLACE (REPLACE (SUBSTR (v_file_name,
    INSTR (v_file_name, '/') + 1
    CHR (10),
    NULL
    CHR (13),
    NULL
    || '"'
    Is there any security issue?
    Robert

  • Upgrade oracle 9.2.0.8.0 to 10.2.03 ORA-06512: at "SYS.VERSION_SCRIPT", lin

    Upgrade oracle 9.2.0.8.0 to 10.2.03. while runing catupgrd.sql script. i am geting error.
    SELECT version_script AS file_name FROM DUAL
    ERROR at line 1:
    ORA-20000: Upgrade not supported from version
    ORA-06512: at "SYS.VERSION_SCRIPT", line 52
    Please help me.
    AT

    Strange. Metalink doc 316889.1 says you should be able to upgrade following versions directly to 10.2.0.3.0
    8.1.7.4 -> 10.2.X.X.X
    9.0.1.4 or 9.0.1.5 -> 10.2.X.X.X
    9.2.0.4 or higher -> 10.2.X.X.X
    10.1.0.2 or higher -> 10.2.X.X.X
    Not too sure but may be you need to contact Oracle support.

  • Getting ORA-06512: at "SYS.UTL_HTTP", line 1022 ORA-29270: too many open

    hi
    I am getting the following error while calling the procedure in the batch process
    ORA-06512: at "SYS.UTL_HTTP", line 1022
    ORA-29270: too many open HTTP requests
    Could you please help me on this? As this is getting affected in the live databases.
    ORA-06512: at "SYS.UTL_HTTP", line 1022
    ORA-29270: too many open HTTP requests
    CREATE OR REPLACE PROCEDURE Send_To_Spg(
    PTRANSACTION_ID               IN          VARCHAR2,
    PCHANNEL_TYPE               IN VARCHAR2 DEFAULT NULL,
    PCSS_ORDER_NUMBER          IN VARCHAR2 DEFAULT NULL,
    PTELEPHONE_NUMBER          IN VARCHAR2 DEFAULT NULL,
    PSCENARIO_TYPE               IN VARCHAR2 DEFAULT NULL,
    PCUSTOMER_REQUIRED_DATE IN          VARCHAR2 DEFAULT NULL,
    PCUSTOMER_REQUIRED_TIME IN          VARCHAR2 DEFAULT NULL,
    PCANCELLATION_REASON     IN          VARCHAR2 DEFAULT NULL,
    PCANCELLATION_NOTES          IN          VARCHAR2 DEFAULT NULL,
    PSMPF_RETENTION               IN          VARCHAR2 DEFAULT NULL,
    PEMERGENCY_WINBACK          IN          VARCHAR2 DEFAULT NULL,
    PCSS_PROJECT_ID               IN          VARCHAR2 DEFAULT NULL,
    PCSS_ORDER_NOTES          IN          VARCHAR2 DEFAULT NULL,
    PREASON_FOR_CESSATION     IN          VARCHAR2 DEFAULT NULL,
    P_RESPONSE                    OUT VARCHAR2,
    PSMART_USER_ID               IN VARCHAR2 DEFAULT NULL,
    PORACLE_ERROR               OUT VARCHAR2,
    PORACLE_ERROR_MESSAGE     OUT          VARCHAR2,
    PRESPONSE_TIME               OUT          NUMBER,
    PDATA_TRANSFER_STATUS     OUT          VARCHAR2)
    IS
    v_scenario_type               VARCHAR2(20); -- Varialble to Hold Time Out of every request to SPG
    v_transaction_time          NUMBER;          -- Total time in which Request to SPG was processed
    v_record_inserted_at     DATE;          -- Date/Time about the record insertion to the Error Handler
    v_start_time               NUMBER;          -- Variable to hold Start Time for calculationg Transaction Time
    v_url                         VARCHAR2(32767);-- URL to use when sending data to SPG
    vtransaction_id               VARCHAR2(18); -- Variable to hold Transaction ID for the request
    v_buffer                    VARCHAR2(32760);-- Variable to read response from the SPG interface
    v_timeout                    PLS_INTEGER; -- Time Out for each Transaction
    v_oracle_err_msg          VARCHAR2(600); -- Variable to hold Oracle Error Message
    v_resp                UTL_HTTP.RESP; -- Response Object
    v_req                UTL_HTTP.REQ; -- Request Object
    v_userid_pwd               SMT_ORACLE_PARAMETERS%ROWTYPE; --Variable declared to contain User ID & Password
    vl_RetCode          VARCHAR2(5000);
    vl_std_returnCode     VARCHAR2(3000);
    --PDATA_TRANSFER_STATUS Holds the Data Transfer Status which can have possible values as
    -- N => Data Has not been sent to SPG
    -- Y => Received Successful response from SPG
    -- F => On the First try to Send data to SPG Oracle Error Occured or response from SPG was a faulure
    -- S => On the Second try to Send data to SPG Oracle Error Occured or response from SPG was a faulure
    -- T => Data Has been transferred to the Error Log Table
    -- X => Data need not be transfered to Error Log Table.
    --Location of the timeout, URL & User Id & Password in Standing Data.
    c_url_stopwlr SMT_ORACLE_PARAMETERS.PARAMETER_CODE%TYPE:='SPG_WLR';-- Stop WLR URL
    c_url_cancelown SMT_ORACLE_PARAMETERS.PARAMETER_CODE%TYPE:='SPG_OWN';-- Cancel own URL
    c_url_cancelother SMT_ORACLE_PARAMETERS.PARAMETER_CODE%TYPE:='SPG_OTH';-- Cancel other URL
    c_url_amendcrd SMT_ORACLE_PARAMETERS.PARAMETER_CODE%TYPE:='SPG_CRD';--Amend CRD URL
    c_spg_useridpwd SMT_ORACLE_PARAMETERS.PARAMETER_CODE%TYPE:='SPGIDPWD'; --Contains user id and pwd
    ctimeout smt_parameters.parameter_code%TYPE:='SPGTO'; --This holds the timeout parameter
    BEGIN
         --In case the calling batch process can pass this value this SQL read will not be required & can be deleted
         --Read data transfer status for the transaction Id
         SELECT data_transfer_status INTO PDATA_TRANSFER_STATUS     FROM SPG_INTERFACE_TABLE
         WHERE transaction_id     =     PTRANSACTION_ID;
         --Record the start time
         v_start_time:=DBMS_UTILITY.GET_TIME;
         --If Data transfer status is S then send the record to error handler
         IF PDATA_TRANSFER_STATUS = 'S' THEN
              Error_Handler(PTRANSACTION_ID,PSMART_USER_ID,PORACLE_ERROR,PORACLE_ERROR_MESSAGE,v_record_inserted_at,PDATA_TRANSFER_STATUS);
         ELSE
         --In case Data Tranfer Status is something other than S then send the request to SPG
              --Initialise other variables which will be populated during the journey
              P_RESPONSE                    :=     '';
              PORACLE_ERROR               :=     NULL;
              PORACLE_ERROR_MESSAGE     :=     NULL;
              PRESPONSE_TIME               :=     0;
         --Read timeout parameter from standing data.
              BEGIN
                   SELECT VALUE INTO v_timeout FROM smt_parameters WHERE parameter_code=ctimeout;
              EXCEPTION
                   WHEN NO_DATA_FOUND THEN
                   v_timeout:=30;
              WHEN OTHERS THEN
                   v_timeout:=30;
              END;
         -- Construct the URL for Stop WLR Scenario
              IF PSCENARIO_TYPE = 'STOP_WLR' THEN
                   BEGIN
                   -- Read the Initial URL from Standing Data
                   SELECT VALUE
                        INTO v_url
                        FROM SMT_ORACLE_PARAMETERS
                        WHERE parameter_code = c_url_stopwlr
                        AND host_id = ( SELECT host_id
                                                      FROM SMART_HOSTS A
                                                      WHERE EXISTS ( SELECT 1
                                                                     FROM DB_PARAMETERS b
                                                                     WHERE A.hostname = b.hostname
                                                                     AND A.database_id = b.database_id));
                   --handle unforseen exception
                   EXCEPTION
                   WHEN NO_DATA_FOUND THEN
                        v_url:='Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_winback_details'; --After testing the same, URL will be fetched from the Query
                   WHEN OTHERS THEN
                        v_url:='Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_winback_details'; --After testing the same, URL will be fetched from the Query
                   END;
                   --construct the URL depending on the parameters to be passed to the url
                   v_url := v_url || '?';
                   v_url := v_url || 'p_data_entered=' || Smart_Urlencode('xmloverhttp') || '&';
                   v_url := v_url || 'p_channel_type=' || Smart_Urlencode(PCHANNEL_TYPE)|| '&';
                   v_url := v_url || 'p_css_start_order_no=' || Smart_Urlencode(PCSS_ORDER_NUMBER)|| '&';
                   v_url := v_url || 'p_tel_no=' || Smart_Urlencode(PTELEPHONE_NUMBER)|| '&';
                   v_url := v_url || 'p_crd=' || Smart_Urlencode(PCUSTOMER_REQUIRED_DATE)|| '&';
                   v_url := v_url || 'p_take_over_time=' || Smart_Urlencode(PCUSTOMER_REQUIRED_TIME)|| '&';
                   v_url := v_url || 'p_retainsmpf=' || Smart_Urlencode(PSMPF_RETENTION)|| '&';
                   --v_url := v_url || 'p_emergency_winback='                    || Smart_Urlencode(PEMERGENCY_WINBACK)|| '&';
                   v_url := v_url || 'p_projectno=' || Smart_Urlencode(PCSS_PROJECT_ID)|| '&';
                   v_url := v_url || 'p_ordernotes=' || Smart_Urlencode(PCSS_ORDER_NOTES)|| '&';
                   v_url := v_url || 'p_reason_cessation=' || Smart_Urlencode(PREASON_FOR_CESSATION);
              ELSIF PSCENARIO_TYPE='CANCEL_OWN' THEN
              --Fetch the URL for cancel own from standing data.
                   BEGIN
                        SELECT VALUE
                        INTO v_url
                        FROM SMT_ORACLE_PARAMETERS
                        WHERE parameter_code = c_url_cancelown
                        AND host_id = ( SELECT host_id
                                                      FROM SMART_HOSTS A
                                                      WHERE EXISTS ( SELECT 1
                                                                     FROM DB_PARAMETERS b
                                                                     WHERE A.hostname = b.hostname
                                                                     AND A.database_id = b.database_id));
              --handle unforseen exception
                   EXCEPTION
                             WHEN NO_DATA_FOUND THEN
                             v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_cancelown_details'; --After testing the same, URL will be fetched from the Query
                   WHEN OTHERS THEN
                             v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_cancelown_details'; --After testing the same, URL will be fetched from the Query
                   END;
              --construct the URL
              v_url := v_url || '?';
              v_url := v_url || 'p_data_entered=' ||Smart_Urlencode('xmloverhttp')|| '&';
              v_url := v_url || 'p_channel_type=' ||Smart_Urlencode(PCHANNEL_TYPE)|| '&';
              v_url := v_url || 'p_css_start_order_no=' ||Smart_Urlencode(PCSS_ORDER_NUMBER)|| '&';
              v_url := v_url || 'p_tel_no=' ||Smart_Urlencode(PTELEPHONE_NUMBER)|| '&';
              v_url := v_url || 'p_cancel_reason=' ||Smart_Urlencode(PCANCELLATION_REASON)|| '&';
              v_url:= v_url || 'p_cancel_notes=' ||Smart_Urlencode(PCANCELLATION_NOTES);
              ELSIF PSCENARIO_TYPE='CANCEL_OTHER' THEN
              --Fetch the URL for cancel own from standing data.
              BEGIN
              SELECT VALUE
                        INTO v_url
                        FROM SMT_ORACLE_PARAMETERS
                        WHERE parameter_code = c_url_cancelother
                        AND host_id = ( SELECT host_id
                                                      FROM SMART_HOSTS A
                                                      WHERE EXISTS ( SELECT 1
                                                                     FROM DB_PARAMETERS b
                                                                     WHERE A.hostname = b.hostname
                                                                     AND A.database_id = b.database_id));
              --handle unforseen exception
              EXCEPTION
                   WHEN NO_DATA_FOUND THEN
                        v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_cancelother_details'; --After testing the same, URL will be fetched from the Query
                   WHEN OTHERS THEN
                        v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_cancelother_details'; --After testing the same, URL will be fetched from the Query
              END;
              --construct the URL
              v_url := v_url || '?';
              v_url := v_url || 'p_data_entered=' ||Smart_Urlencode('xmloverhttp')|| '&';
              v_url := v_url || 'p_channel_type=' ||Smart_Urlencode(PCHANNEL_TYPE)|| '&';
              v_url := v_url || 'p_css_stop_order_no=' ||Smart_Urlencode(PCSS_ORDER_NUMBER)|| '&';
              v_url := v_url || 'p_tel_no=' ||Smart_Urlencode(PTELEPHONE_NUMBER)|| '&';
              v_url := v_url || 'p_cancel_reason=' ||Smart_Urlencode(PCANCELLATION_REASON);
              ELSIF Pscenario_type='AMEND_CRD' THEN
              --Fetch the URL for cancel own from standing data.
              BEGIN
              SELECT VALUE
                        INTO v_url
                        FROM SMT_ORACLE_PARAMETERS
                        WHERE parameter_code = c_url_amendcrd
                        AND host_id = ( SELECT host_id
                                                      FROM SMART_HOSTS A
                                                      WHERE EXISTS ( SELECT 1
                                                                     FROM DB_PARAMETERS b
                                                                     WHERE A.hostname = b.hostname
                                                                     AND A.database_id = b.database_id));
              --handle unforseen exception
              EXCEPTION
              WHEN NO_DATA_FOUND THEN
                   v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_amendcrd_details'; -- After testing the same , URL will be fetched from the Query
              WHEN OTHERS THEN
                   v_url := 'Http://wls.brassi1c.devenv1.bt.co.uk:64738/pls/spgenv/spg_btrc.add_btrc_amendcrd_details'; -- After testing the same , URL will be fetched from the Query
              END;
              --construct the URL
              v_url := v_url || '?';
              v_url := v_url || 'p_data_entered=' ||Smart_Urlencode('xmloverhttp')|| '&';
              v_url := v_url || 'p_channel_type=' ||Smart_Urlencode(PCHANNEL_TYPE)|| '&';
              v_url := v_url || 'p_css_start_order_no=' ||Smart_Urlencode(PCSS_ORDER_NUMBER)|| '&';
              v_url := v_url || 'p_tel_no=' ||Smart_Urlencode(PTELEPHONE_NUMBER)|| '&';
              v_url := v_url || 'p_crd='                         ||Smart_Urlencode(PCUSTOMER_REQUIRED_DATE)|| '&';
              v_url := v_url || 'p_css_change_order_numbers='||Smart_Urlencode(PCANCELLATION_REASON);
              END IF;
              --this is start of setting parameters for utl http object. the show begins...
              utl_http.set_transfer_timeout(v_timeout);
              --Set the wallet
              --XXXXX e.g.UTL_HTTP.SET_WALLET(?file:DirectoryPath?,'put password here?);
              --Set proxy
              --YYYYY e.g. utl_http.set_proxy(p_proxy_in, p_no_proxy_domains_in);
              v_url := REPLACE(v_url,'%27%27','%27'); -- Fix to ensure Double Quotes are converted to Single Quotes
              --set the required URL to utl http.
              v_req := utl_http.begin_request(v_url);
              --Authentication setting
              --Fetch the user id and password from stnding data.
              BEGIN
                   SELECT *
                        INTO v_userid_pwd
                        FROM SMT_ORACLE_PARAMETERS
                        WHERE PARAMETER_CODE=c_spg_useridpwd
                        AND HOST_ID = ( SELECT HOST_ID
                                            FROM SMART_HOSTS A
                                            WHERE EXISTS ( SELECT 1
                                                                FROM DB_PARAMETERS B
                                                                WHERE A.HOSTNAME = B.HOSTNAME
                                                                AND A.DATABASE_ID = B.DATABASE_ID));
              EXCEPTION
                   WHEN NO_DATA_FOUND THEN
                   P_RESPONSE := 'ORACLE_ERROR: USER id AND Password NOT configured IN SMT_ORACLE_PARAMETERS:SPGIDPWD';
                   WHEN OTHERS THEN
                   P_RESPONSE := 'ORACLE_ERROR: USER id AND Password NOT configured IN SMT_ORACLE_PARAMETERS:SPGIDPWD';
              END;
              --utl_http.set_authentication(v_req, p_username_in, p_password_in);
              utl_http.set_authentication(v_req, v_userid_pwd.description, v_userid_pwd.VALUE);
              v_resp := utl_http.get_response(v_req);
              --Fill in the the response time
              PRESPONSE_TIME := (DBMS_UTILITY.GET_TIME - v_start_time)/100;
              IF v_resp.reason_phrase = 'OK' THEN
                   -- Fetch the response
                   BEGIN
                        LOOP
                        utl_http.read_line(v_resp, v_buffer);
                             P_RESPONSE := P_RESPONSE || v_buffer;
                        END LOOP;
                             utl_http.end_response(v_resp);
                        EXCEPTION
                        WHEN utl_http.end_of_body THEN
                        utl_http.end_response(v_resp);
                        P_RESPONSE := P_RESPONSE || v_buffer;
                   END;
              ELSIF v_resp.reason_phrase <> 'OK' OR P_RESPONSE = '' THEN
                   --error handling starts
                   --If the HTTP Status is not OK then store the error information
                   PORACLE_ERROR_MESSAGE     :=     'Status Code: '|| v_resp.STATUS_CODE||'. Reason Phrase ' ||v_resp.reason_phrase;
                   P_RESPONSE                    :=     'ORACLE_ERROR: '||     ' Reason Phrase ' ||     v_resp.reason_phrase;
                   PORACLE_ERROR               :=     v_resp.STATUS_CODE;
              END IF;
              --In case we got successful response from SPG
              IF P_RESPONSE LIKE '%<RetCde>0</RetCde>%' THEN
                   PDATA_TRANSFER_STATUS     :=     'Y';
              ELSE
                   BEGIN
    SELECT message
                                  INTO vl_std_returnCode
                                  FROM SMT_MESSAGES
                                  WHERE MESSAGE_CODE='SPGANTIDTS';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
         vl_std_returnCode := '-12545,-29273,-1,401,';
    WHEN OTHERS THEN
                        vl_std_returnCode := '-12545,-29273,-1,401,';
    END;
                   --In case there was an error do not update Data Transfer Status
                   IF PORACLE_ERROR <> NULL AND INSTR(vl_std_returnCode, PORACLE_ERROR || ',', 1, 1) <> 0 THEN
                             PDATA_TRANSFER_STATUS:=PDATA_TRANSFER_STATUS;
                   ELSE
                        vl_RetCode := SUBSTR(P_RESPONSE, INSTR(P_RESPONSE,'<RetCde>', 1, 1),
                        INSTR(P_RESPONSE,'</RetCde>',1,1)+9 - INSTR(P_RESPONSE,'<RetCde>', 1, 1));
                        BEGIN
                             SELECT VALUE
                                  INTO vl_std_returnCode
                                  FROM SMT_ORACLE_PARAMETERS
                                  WHERE PARAMETER_CODE='SPGRCS'
                                  AND HOST_ID = ( SELECT HOST_ID
                                       FROM SMART_HOSTS A
                                       WHERE EXISTS ( SELECT 1
                                                           FROM DB_PARAMETERS B
                                                           WHERE A.HOSTNAME = B.HOSTNAME
                                                           AND A.DATABASE_ID = B.DATABASE_ID));
                   EXCEPTION
                        WHEN NO_DATA_FOUND THEN
                             vl_std_returnCode := '<RetCde>4244</RetCde><RetCde>4245</RetCde><RetCde>4246</RetCde>';
                        WHEN OTHERS THEN
                             vl_std_returnCode := '<RetCde>4244</RetCde><RetCde>4245</RetCde><RetCde>4246</RetCde>';
                        END;
                        IF INSTR(vl_std_returnCode, vl_RetCode, 1, 1) <> 0 THEN
                             --needs not to re attempted.
                             PDATA_TRANSFER_STATUS:='X';
                        ELSE
                             --In case we did'nt got SUCCESSFUL response FROM SPG THEN UPDATE the Data Transfer Status so that the failed requests can be picked up BY the NEXT batch job RUN
                             IF PDATA_TRANSFER_STATUS='N' THEN
                                  --initially if data transfer status was N then update it now to F
                                  PDATA_TRANSFER_STATUS     :=     'F';
                             ELSIF PDATA_TRANSFER_STATUS='F' THEN
                                  --initially if data transfer status was N then update it now to S
                                  PDATA_TRANSFER_STATUS     :=     'S';
                             END IF;
                        END IF;
                   END IF;
              END IF;
              --Now Update all the modified Values
         UPDATE SPG_INTERFACE_TABLE
                   SET     response          =     P_RESPONSE,
                   data_transfer_status     =     PDATA_TRANSFER_STATUS,
                   oracle_error               =     PORACLE_ERROR,
                   oracle_error_message     =     PORACLE_ERROR_MESSAGE,
                   response_time               =     PRESPONSE_TIME
                   WHERE transaction_id     =     PTRANSACTION_ID;
              COMMIT;
    END IF;
    EXCEPTION
         WHEN OTHERS THEN
         --Handling the unhandled exception
         PORACLE_ERROR               :=     SQLCODE;
         PORACLE_ERROR_MESSAGE     :=     SQLERRM;
         P_RESPONSE                    :=     'ORACLE_ERROR: '|| PORACLE_ERROR_MESSAGE;
         PRESPONSE_TIME               :=     (DBMS_UTILITY.GET_TIME - v_start_time)/100;
         SELECT data_transfer_status INTO PDATA_TRANSFER_STATUS
         FROM SPG_INTERFACE_TABLE
         WHERE transaction_id=PTRANSACTION_ID;
         --New functionality to update the oracle error and oracle error message and not the Data Transfer Status
    BEGIN
    SELECT message
    INTO vl_std_returnCode
    FROM SMT_MESSAGES
    WHERE MESSAGE_CODE='SPGANTIDTS';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    vl_std_returnCode := '-12545,-29273,-1,';
    WHEN OTHERS THEN
    vl_std_returnCode := '-12545,-29273,-1,';
    END;
         vl_RetCode     :=     PORACLE_ERROR || ',';
    IF INSTR(vl_std_returnCode, vl_RetCode, 1, 1) <> 0 THEN
    --If the error is found in above maintained standing data do not change the Data Transfer Status
                   pdata_transfer_status:=pdata_transfer_status;
    ELSE
              IF pdata_transfer_status='N' THEN
                             PDATA_TRANSFER_STATUS     :=     'F';
                             DBMS_OUTPUT.PUT_LINE('DUE TO ERROR DATA COULDN''T GET TRANSFERED TO SPG FOR TRANSACTION'||' '||PTRANSACTION_ID);
                             DBMS_OUTPUT.PUT_LINE(SQLERRM);
              ELSIF pdata_transfer_status='F' THEN
                             PDATA_TRANSFER_STATUS     :=     'S';
                             DBMS_OUTPUT.PUT_LINE('DUE TO ERROR DATA COULDN''T GET TRANSFERED TO SPG FOR TRANSACTION'||' '||PTRANSACTION_ID);
                             DBMS_OUTPUT.PUT_LINE(SQLERRM);
    ELSE
                             DBMS_OUTPUT.PUT_LINE('Failure WHEN sending data TO Error LOG. Data Transfer Status IS ' || PDATA_TRANSFER_STATUS || '. TRANSACTION ID '|| PTRANSACTION_ID);
              END IF;
    END IF;
              --Now update all the information gathered above to the table
         UPDATE SPG_INTERFACE_TABLE
              SET     response          =     P_RESPONSE,
              data_transfer_status     =     PDATA_TRANSFER_STATUS,
              oracle_error               =     PORACLE_ERROR,
              oracle_error_message     =     PORACLE_ERROR_MESSAGE,
              response_time               =     PRESPONSE_TIME
              WHERE transaction_id     =     PTRANSACTION_ID;
              COMMIT;
    END;
    /

    I have fixed the problem by own.
    Seems there are some while space in the endpoint url.
    Fix
    http_req:= utl_http.begin_request
    trim(l_endpoint_url)
    ,'POST'
    ,'HTTP/1.1'
    It works...
    Regards
    BS

  • Invoice Validation Error ORA-06512: at "APPS.AP_APPROVAL_PKG", line 111124

    All,
    I am getting below error message from log file after Invoice Validation program error out, please advise.
    I could not search on "ORA-06512: at "APPS.AP_APPROVAL_PKG", line 11124" search, but found other errors and able to see we are very much higher file version than the note id advised.
    Please help any one for this issue.
    Payables: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APPRVL module: Invoice Validation
    Current system time is 01-MAR-2013 03:40:12
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_option='All'
    p_inv_start_date='2013/02/01 00:00:00'
    p_inv_end_date='2013/02/28 00:00:00'
    p_trace_flag='N'
    p_commit_size='1000'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    Enter Password:
    MSG-00101: Error occured in BATCH_APPROVAL()
    MSG-00102: Error Code : -20001
    MSG-00103: Error Message : ORA-20001:
    ORA-06512: at "APPS.APP_EXCEPTION", line 72
    ORA-06512: at "APPS.AP_APPROVAL_PKG", line 11124
    MSG-00000: When Others:User-Defined Exception
    REP-1419: 'beforereport': PL/SQL program aborted.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1419: MSG-00101: Error occured in BATCH_APPROVAL()
    MSG-00102: Error Code : -20001
    MSG-00103: Error Message : ORA-20001:
    ORA-06512: at "APPS.APP_EXCEPTION", line 72
    ORA-06512: at "APPS.AP_APPROVAL_PKG", line 11124
    MSG-00000: When Others:User-Defined Exception
    REP-1419: 'beforereport': PL/SQL program aborted.
    Report Builder: Release 10.1.2.3.0 - Production on Fri Mar 1 03:40:15 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 42770000.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 01-MAR-2013 04:06:57
    ---------------------------------------------------------------------------

    Please post the details of the application release, database version and OS.
    Please also see these docs.
    Invoice Validation (APPRVL) Errors Out With ORA-20001: APP-SQLAP-10000: ORA-00060 [ID 1460249.1]
    R12: Invoice Validation Is Failing When Running With Parameter 'ALL' [ID 1115016.1
    R12 Payables Invoice Validation Error: Unexpected error occurred during Tax Calculation. [ID 961182.1
    Ap Invoice Validation Errors: P-1419: Msg-00101: Error Occured In Batch_approval [ID 1140828.1]
    Invoice Validation Error : REP-1419:ERROR OCCURED IN BATCH_APPROVAL() [ID 1120213.1]
    R12: Validate Invoice Errors APP-SQLAP-10000, ORA-01403 and ORA-20001 [ID 1308869.1]
    Thanks,
    Hussein

  • Exception occured during invocation of JCA binding ORA-01403: no data found ORA-06512: at line 1

    Dear Legends,
    My requirement is to call store procedure from BPEL. So for I created a BPEL with 2 assign activity and 1 Invoke activity to Invoke the DB adapter. After Deploying I tested the process but it shows the following error:
    <bpelFault><faultType>0</faultType><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'DB_SBL_SPROCS1' failed due to: Interaction processing error.
    Error while processing the execution of the SIEBEL.PORTAL_SPROCS.ACP_CONREGISTRATIONLOOKUP_WRAP API interaction.
    An error occurred while processing the interaction for invoking the SIEBEL.PORTAL_SPROCS.ACP_CONREGISTRATIONLOOKUP_WRAP API. Cause: java.sql.SQLException: ORA-01403: no data found
    ORA-06512: at line 1
    Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD.  This exception is considered not retriable, likely due to a modelling mistake.  To classify it as retriable instead add property nonRetriableErrorCodes with value "-1403" to your deployment descriptor (i.e. weblogic-ra.xml).  To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff.  All properties are integers.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary></part><part name="detail"><detail>ORA-01403: no data found
    ORA-06512: at line 1
    </detail></part><part name="code"><code>1403</code></part></bindingFault></bpelFault></fault><faultType>
    <message>0</message></faultType></messages></details></event><event sid="BpPrc0.1" cat="2" n="16" date="2013-08-08T05:39:39.121-04:00" type="4"><message>"BPELFault" has not been caught by a catch block.</message></event><event sid="BpPrc0.1" cat="2" n="17" date="2013-08-08T05:39:39.270-04:00" type="3"><message>The transaction was rolled back. The work performed for bpel instance "960968" was rolled back, but the audit trail has been saved for this instance.If this is a sync request, please resubmit the request from the client. If it is an async request, please recover from the recovery console by resubmitting the invoke message.</message></event></audit-trail>
    What does the above error says?
    1. Whether concern Grant or Execute Privileges is not properly provided to the user?
    2. Is there any Dangling Privileges are prevailing?
    3. Is that the Store Procedure to be Handled with an Error Handling by means of Exception?
    4. Is that I have been giving wrong test data?
    5. Is that No data being existing in the Procedure?
    6. Is that anything related to XA and NON-XA Data Source?
    Any kind of help would be much appreciated. Thanks in Advance.
    Thanks,
    Karthik

    Can you check the following ?
    a. Hopefully the when you execute the procedure using sql tool it works fine and returns data.
    b. Is there any input parameter available for procedure ?
    c. IF yes, is the parameter is mapped with the procedure parameter and populated with value before calling the procedure ?
    d. In the audit trial, you can see from the invoke activity to see whether the parameter is populated with value or not ?
    e. Check the input parameter by executing the procedure with sql tool to see whether this request is receiving any data in return or not ?
    Thanks,
    Vijay

  • ERROR at line 1: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-10700: preference does not exist: global_lexer ORA-06512: at "CTXSYS.DRUE", line 160 ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    database version 11.2.0.4
    rac two node
    CREATE INDEX MAXIMO.ACTCI_NDX3 ON MAXIMO.ACTCI
    (DESCRIPTION)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('lexer global_lexer language column LANGCODE')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    Like the error message says, you don't have a global_lexer.  So, you need to create a global_lexer and that lexer must have at least a default sub_lexer, then you can use that global_lexer in your index parameters.  Please see the demonstration below, including reproduction of the error and solution.
    SCOTT@orcl12c> -- reproduction of problem:
    SCOTT@orcl12c> CREATE TABLE actci
      2    (description  VARCHAR2(60),
      3      langcode     VARCHAR2(30))
      4  /
    Table created.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366
    SCOTT@orcl12c> -- solution:
    SCOTT@orcl12c> DROP INDEX actci_ndx3
      2  /
    Index dropped.
    SCOTT@orcl12c> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('global_lexer', 'multi_lexer');
      3    CTX_DDL.CREATE_PREFERENCE ('english_lexer', 'basic_lexer');
      4    CTX_DDL.ADD_SUB_LEXER ('global_lexer', 'default', 'english_lexer');
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    Index created.

  • Getting ORA-06512: at "APPS.FND_MSG_PUB", line 279 error in Oracle Sourcing

    Hi,
    We have recently applied Sourcing Rollup 2 J patch in our instance. After this, when the users change their timezone, the system behaves weirdly. The Server timezone and Client timezone are set to Dubai timezone (GMT+4) at site level. If the user is using this timezone, there is no issues. But when the user changes the timezone to something else (anything > GMT+4 or anything < GMT+4), he cannot publish auctions. He is getting error like:
    oracle.apps.fnd.framework.OAException: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.FND_MSG_PUB", line 279
    ORA-06512: at "APPS.HZ_TIMEZONE_PUB", line 877
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.FND_MSG_PUB", line 279
    ORA-06512: at "APPS.HZ_TIMEZONE_PUB", line 1088
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.PON_OEX_TIMEZONE_PKG", line 41
    ORA-06512: at "APPS.PON_AUCTION_PKG", line 1052
    ORA-06512: at line 1
    We feel like this is some issues with the system. Some times, this works, sometimes different kind of errors are seen. When user is trying to log in, another error like the following is seen:
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SQL_PLSQL_ERROR. Tokens: ROUTINE = AppsConnectionManager.appsInitialize(int,int,int,int,Connection):-1,-1,-1,0,oracle.jdbc.driver.OracleConnection@192a848; REASON = java.sql.SQLException: ORA-20001: Oracle error -6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    has been detected in FND_GLOBAL.INITIALIZE.
    ORA-06512: at "APPS.APP_EXCEPTION", line 70
    ORA-06512: at "APPS.FND_GLOBAL", line 64
    ORA-06512: at "APPS.FND_GLOBAL", line 1028
    ORA-06512: at "APPS.FND_GLOBAL", line 541
    ORA-06512: at line 1
    When we bounced server, this error went away. But the first error still persists. What could be the reason for this?
    Regards,
    Arun

    I traced through the packages. Here is the result:
    1. PON_AUCTION_PKG line 1052;
    x_newstarttime := PON_OEX_TIMEZONE_PKG.CONVERT_TIME(p_open_bidding_date,x_oex_timezone,x_timezone);
    'x_oex_timezone' is the 'Server Timezone' profile value at site level. 'x_timezone' is the user's timezone. If the user's timezone is not a valid zone (checking done in PON_OEX_TIMEZONE_PKG.VALID_ZONE procedure), this param is assigned the value of 'x_oex_timezone'.
    2. The PON_OEX_TIMEZONE_PKG.CONVERT_TIME procedure calls the procedure HZ_TIMEZONE_PUB.Get_Time(), and I hope here the issue starts. The OUT parameters to this procedure are toDate, status, msg_count and msg_data. Note that here the msg_data is defined as VARCHAR2(100).
    3. Within the procedure HZ_TIMEZONE_PUB.Get_Time(), the error is raised from line 877. This is a WHEN OTHERS case of this procedure. This is from the API ;
    FND_MSG_PUB.Count_And_Get(
    p_encoded => FND_API.G_FALSE,
    p_count => x_msg_count,
    p_data => x_msg_data);
    4. Next error from FND_MSG_PUB is from line 279. This is within the procedure FND_MSG_PUB.Count_And_Get, when executing the following statement:
    p_data := Get ( p_msg_index => G_FIRST ,
    p_encoded => p_encoded );
    5. The 'GET' procedure, sets the value from global table 'G_msg_tbl( G_msg_index ).encoded_message ' to the p_data variable, and here is a potential slippage. The global variable can hold a value of upto 2000 characters. But the p_data is originally defined to be of size VARCHAR2(100). I think this can cause the issue. I am not sure what is the message getting assigned to the global variable here.
    Could this be the problem? Inside the code, some assignments to fnd_mesage are done. But some of those messages are not present in our database (fnd_new_messages). Any clue on this would be greatly helpful.
    Thanks,
    Arun

  • Impdump fails with ORA-06512: at "SYS.KUPW$WORKER", line 6345

    Hi All,
    We are trying to import a data from PROD to test using datapump utility.
    Its is failing with the below error.
    Import: Release 10.2.0.4.0 - 64bit Production on Friday, 01 July, 2011 11:32:12
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYS"."SYS_IMPORT_SCHEMA_02" successfully loaded/unloaded
    Starting "SYS"."SYS_IMPORT_SCHEMA_02": /******** AS SYSDBA remap_tablespace=FCATDB:USERS SCHEMAS=FCATDB:FCATDB directory=EXPDP_DIR dumpfile=expdp_fcatdb.dmp logfile=probin1.log
    Processing object type SCHEMA_EXPORT/USER
    ORA-39083: Object type USER failed to create with error:
    ORA-02380: profile BOB does not exist
    Failing sql is:
    CREATE USER "FCATDB" IDENTIFIED BY VALUES '57433E901EB2CA43' DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP" PROFILE "BOB"
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    ORA-39083: Object type SYSTEM_GRANT failed to create with error:
    ORA-01917: user or role 'FCATDB' does not exist
    Failing sql is:
    GRANT SELECT ANY SEQUENCE TO "FCATDB"
    ORA-39083: Object type SYSTEM_GRANT failed to create with error:
    ORA-01917: user or role 'FCATDB' does not exist
    Failing sql is:
    GRANT CREATE SYNONYM TO "FCATDB"
    ORA-39083: Object type SYSTEM_GRANT failed to create with error:
    ORA-01917: user or role 'FCATDB' does not exist
    Failing sql is:
    GRANT SELECT ANY TABLE TO "FCATDB"
    ORA-39083: Object type SYSTEM_GRANT failed to create with error:
    ORA-01917: user or role 'FCATDB' does not exist
    Failing sql is:
    GRANT UNLIMITED TABLESPACE TO "FCATDB"
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    ORA-39083: Object type ROLE_GRANT failed to create with error:
    ORA-01917: user or role 'FCATDB' does not exist
    Failing sql is:
    GRANT "CONNECT" TO "FCATDB"
    ORA-39083: Object type ROLE_GRANT failed to create with error:
    ORA-01917: user or role 'FCATDB' does not exist
    Failing sql is:
    GRANT "RESOURCE" TO "FCATDB"
    ORA-39083: Object type ROLE_GRANT failed to create with error:
    ORA-01917: user or role 'FCATDB' does not exist
    Failing sql is:
    GRANT "DBA" TO "FCATDB"
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    ORA-39083: Object type DEFAULT_ROLE failed to create with error:
    ORA-01918: user 'FCATDB' does not exist
    Failing sql is:
    ALTER USER "FCATDB" DEFAULT ROLE ALL
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    ORA-39083: Object type PROCACT_SCHEMA failed to create with error:
    ORA-31625: Schema FCATDB is needed to import this object, but is unaccessible
    ORA-01435: user does not exist
    Failing sql is:
    BEGIN
    sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'BOBL_PRO', inst_scn=>'71243687320');COMMIT; END;
    Processing object type SCHEMA_EXPORT/SYNONYM/SYNONYM
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_ACPKS_MISC" FOR "BOB"."ACPKS_MISC"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_ACTBS_ACCBAL_HISTORY" FOR "ACTBS_ACCBAL_HISTORY"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_ACTBS_ACCSTATS_PTD" FOR "ACTBS_ACCSTATS_PTD"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_ACVWS_ALL_AC_ENTRIES" FOR "ACVWS_ALL_AC_ENTRIES"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_BCTBS_CONTRACT_PARTIES" FOR "BCTBS_CONTRACT_PARTIES"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_BCTB_CONTRACT_MASTER" FOR "BCTB_CONTRACT_MASTER"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_BCTMS_DOCS_MASTER" FOR "BCTMS_DOCS_MASTER"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_BCTM_PRODUCT_MASTER" FOR "BCTM_PRODUCT_MASTER"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_BCVW_REPORTS" FOR "BCVW_REPORTS"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CATMS_CHECK_BOOK" FOR "CATMS_CHECK_BOOK"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CFTBS_CONTRACT_CHARGES" FOR "CFTBS_CONTRACT_CHARGES"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CFTBS_CONTRACT_INTEREST" FOR "CFTBS_CONTRACT_INTEREST"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CFTMS_FLOAT_RATE_DETAIL" FOR "CFTMS_FLOAT_RATE_DETAIL"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CFTMS_FLOAT_RATE_MASTER" FOR "CFTMS_FLOAT_RATE_MASTER"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CFTMS_PRODUCT_CHARGE" FOR "CFTMS_PRODUCT_CHARGE"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CFTMS_PRODUCT_ICCF" FOR "CFTMS_PRODUCT_ICCF"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CFTMS_PRODUCT_INTEREST" FOR "CFTMS_PRODUCT_INTEREST"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CFTMS_RATE_CODE" FOR "CFTMS_RATE_CODE"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CFTM_RATE_CODE" FOR "CFTM_RATE_CODE"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CHKHOL_AND_GET_NEXTWDAY" FOR "FN_CHKHOL_AND_GET_NEXTWDAY"@"FCATFCLINK.REGRESS.RDBMS.DEV.US.ORACLE.COM"
    ORA-39083: Object type SYNONYM failed to create with error:
    ORA-01917: user or role '' does not exist
    Failing sql is:
    CREATE SYNONYM "FCATDB"."FCC_CLTBS_ACCOUNT_MASTER" FOR "CLTBS_ACCOUNT_M
    Processing object type SCHEMA_EXPORT/TABLE/COMMENT
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA_HISTORY" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA_HISTORY" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."ADMINTXNUNAUTHDATA_HISTORY" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."DAILYTXNAMT" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."FCATFLEXMLAUDITLOG" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTALERTNOTIFIER" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTALERTNOTIFIER" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTALERTNOTIFIER" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTAPPSEQUENCE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTINITAUTHTYPES" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTPERSONALCUST" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."MSTTXN" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."TXN_TEMP_MSTCORPORATE" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"FCATDB"."TXN_TEMP_MSTCORPORATE" creation failed
    Processing object type SCHEMA_EXPORT/FUNCTION/FUNCTION
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.PUT_DDL [FUNCTION:"FCATDB"."FN_CHKHOL_AND_GET_NEXTWDAY"]
    ORA-44001: invalid schema
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 6345
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    c000000224567298 15032 package body SYS.KUPW$WORKER
    c000000224567298 6372 package body SYS.KUPW$WORKER
    c000000224567298 12800 package body SYS.KUPW$WORKER
    c000000224567298 12080 package body SYS.KUPW$WORKER
    c000000224567298 3346 package body SYS.KUPW$WORKER
    c000000224567298 6972 package body SYS.KUPW$WORKER
    c000000224567298 1314 package body SYS.KUPW$WORKER
    c00000022c7210b8 2 anonymous block
    Job "SYS"."SYS_IMPORT_SCHEMA_02" stopped due to fatal error at 11:32:41
    Please help me on this.
    Db version : 10.2.0.4
    Os : HP-UX.
    Thanks and Regards,

    ORA-01917: user or role 'FCATDB' does not existError: ORA 1917
    Text: user or role <name> does not exist
    Cause: An invalid user or role name was specified.
    Action: Check that a valid user or role name is used.
    If you are using IMPDP then no need to mention the user name, if the user is different then you can use remap_schema option,
    If dumpfile has only one schema then no need to mention the clause SCHEMAS also.
    change as SCHEMAS=FCATDB instead of SCHEMAS=FCATDB:FCATDB
    impdp /******** AS SYSDBA remap_tablespace=FCATDB:USERS SCHEMAS=FCATDB directory=EXPDP_DIR dumpfile=expdp_fcatdb.dmp logfile=probin1.log

Maybe you are looking for

  • PDF to Word Exporter not working in Acrobat 9 Pro

    On an iMAC 1) Open a PDF file in Abobe Acrobat 9 pro 2) File>Export>Word Document 3) The resulting Word document contains two blank pages, no text What am I doing wrong? Thank you!

  • HP Photosmart 5525 scanner

    Is there any way to scan a document to a MS Word Document?? Right now the only option I have is a PDF file and that doesn't convert very to a Word Doc. This question was solved. View Solution.

  • Error 606

    Adobe Media Encoder cannot be opened because of error 606. I googled this but it seemed to be mostly a Blackberry issue.

  • Re: corrupted database

    Interestly. If I trivially modify am action class and save it, I see the session variables in the variable view. It is as if I need to touch all the action classes to make it rebuild correctly. "Alan Berezin" <[email protected]> wrote in message news

  • I do not want the new tab with apps opening up when I open Firefox, how do I fix this?

    I just want the home page to open without the new tab with a search bar on it.