Receive ORA-06512 in SYS.OWM_DDL_PKG on DBMS_WM.BeginDDL call

I'm attempting to DBMS_WM.BeginDDL on a versioned table, and I receive the following:
ERROR at line 1:
ORA-06512: at "SYS.OWM_DDL_PKG", line 2569
ORA-06512: at "SYS.LT", line 11143
ORA-06512: at line 1
Any ideas on where this is coming from?
Thanks.

Hi,
This could be a couple of things.
If the table has a domain index, make sure that the user has the 'create table' and 'create sequence' privileges.
If that is not the case, this is most likely one of a couple of issues with beginDDL that has already been identified and fixed in the workspace manager 9.2.0.3.0 release. This kit is available on Metalink.
Ben

Similar Messages

  • 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

  • ORA-6512: at "SYS.OWM_DDL_PKG" line 3228

    I am using Oracle Workspace Manager Version 9.2.0.7, as my process
    attempts to perform DBMS_WM.BeginDDL on a versioned table, i am getting the following error:
    ORA-6512: at "SYS.OWM_DDL_PKG" line 3228
    ORA-6512: at "SYS.LT", line 11831
    ORA-6512: at line 1
    Any suggestions on what might be the cause of this problem?
    Thanks!!

    No, I would need a lot more information to be able to determine what the cause of the problem is. Are you able to create a testcase that easily reproduces the problem ? If so, feel free to post it here, or create a TAR with the necessary information.
    Regards,
    Ben

  • 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.

  • 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

  • ORA-06512: at "SYS.DBMS_XMLGEN", (ORA-00942: table or view does not exist)

    Hey Guys, it's Xev.
    I decide to  use SQL and XML and it works in one scenario, but in another scenario, it doesn't.
    Here is the Code, I am passing in two variables, First, I pass in the table_name and then i pass in the schema.
    If I am doing this with the "user" connected and it's looking in it's own schema, it's find the results, like so, but if i try to execute this code while not
    connected to the same user i am searching on i get this error.
    ORA-19202: Error occurred in XML processing
    ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_XMLGEN", line 288
    ORA-06512: at line 1
    19202. 00000 -  "Error occurred in XML processing%s"
    *Cause:    An error occurred when processing the XML function
    *Action:   Check the given error message and fix the appropriate problem
    This code works only of you are connected to the user that you are searching on.
    But if you search for another user tables, it's blows up and gives the XML error above...
    SET SERVEROUTPUT ON
    exec DBMS_OUTPUT.ENABLE(1000000);
    VAR search_string VARCHAR2(28)
    EXEC :search_string := '^[0-9]{3}-[0-9]{2}-[0-9]{4}$'
    COLUMN "Searchword"     FORMAT A28
    COLUMN "Table"     FORMAT A9
    COLUMN "Column/Value" FORMAT A50
    SELECT DISTINCT SUBSTR (:search_string, 1, 28) "Searchword",
                     SUBSTR (table_name, 1, 14) "Table",
                     SUBSTR (t.column_value.getstringval (), 1, 50) "Column/Value"
        FROM   dba_tab_cols,
        --where owner = ('&SCHEMA_NAME')
                TABLE
                  (XMLSEQUENCE
                 (DBMS_XMLGEN.GETXMLTYPE
                    ( 'SELECT ' || column_name ||
                     ' FROM ' || table_name ||
                   ' WHERE REGEXP_LIKE
                         (' || column_name || ','''
                        || :search_string || ''')'
                  ).extract ('ROWSET/ROW/*'))) t
      --WHERE  table_name IN ('FIND_TEST')
      WHERE table_name = upper('&TABLE_NAME')
      AND OWNER = upper('&SCHEMA_NAME')
      ORDER  BY "Table"
    Can someone please explain how (DBMS_XMLGEN) works, and why it's throwing that error??
    thanks,
    Xev.

    It has nothing to do with DBMS_XMLGEN.GETXMLTYPE. It simply means user executing your SQL has no select privilege on table &SCHEMA_NAME.&TABLE_NAME.
    SY.

  • 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

  • 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-06512: at "SYS.UTL_FILE

    Hi All,
    Please have a look into the issue and respond me accordingly...
    Wed Jun 9 22:20:07 MDT 2010
    Checked for pattern ORA-. Excluded these patterns checked by other processes - ORA-16 ORA-32 and excluded these patterns that were not desired - ORA-1652
    ORA-12012: error on auto execute of job 400721
    ORA-29285: file write error
    ORA-06512: at "SYS.UTL_FILE", line 77
    ORA-06512: at "SYS.UTL_FILE", line 691
    ORA-06512: at "COMMISSIONS.CM_CREATE_INVREP", line 251
    ORA-06512: at "COMMISSIONS.CM_CREATE_INVREP", line 1216
    ORA-29285: file write error
    ORA-06512: at line 1
    Database is :-10.2.0.4.0
    Server :-HP-UX
    Thanks
    Vimlendu

    Please check if you read/write permission on UTL_FILE directory location.
    Also check out for available space.
    Regards
    Rajesh

  • ORA-12012: error on auto execute of job 754461 ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing ORA-06512: at "SYS.UTL_SMTP", line 20 ORA-06512: at "SYS.UTL_SMTP",

    Hi ,
    I am getting below error frequently in alert log of database.
    ORA-12012: error on auto execute of job 754461
    ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, parameters in command "RCPT TO:" unrecognized or missing
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at "APPS.EIS_UTIL_PKG", line 94
    ORA-06512: at "APPS.HKD_PO_ADDON_PKG", line 110
    ORA-06512: at line 1

    You have a job running in the database. Its job ID is 754461
    It looks as if that job runs APPS.HKD_PO_ADDON_PKG
    That job is attempting to send mail using UTL_SMTP and apparently passing some strange value to SMTP server for the RCPT TO: parameter.

  • ORA-06512: in SYS.SECURE_DML, line 5

    Hi all,
    I'm trying to create a procedure that is called by a trigger like this:
    CREATE OR REPLACE PROCEDURE SECURE_DML is
    BEGIN
    if (TO_CHAR(SYSDATE, 'DY') IN ('SAB','DOM')) OR (TO_CHAR(SYSDATE, 'HH24:MI')
    NOT BETWEEN '08:00' AND '17:00') THEN
    RAISE_APPLICATION_ERROR(-20500, 'Inserções de funcionários somente no horário comercial');
    end if;
    end;
    alter SESSION set nls_date_format ='DY HH24:MI';
    CREATE OR REPLACE TRIGGER secure_dml2
    BEFORE INSERT ON SCOTT.EMP2
    BEGIN
    exec procedure SECURE_DML;
    end;
    alter SESSION set nls_date_format ='DY HH24:MI';
    insert into SCOTT.emp2(empno, ename, sal, deptno) values(7935, 'SANDRA', 1203, 10);
    The error that display is:
    ORA-06512: in SYS.SECURE_DML line 5
    ORA-06512: in SYS.SECURE_DML2 line 2
    What should I do to remove these erros?
    Thanks
    Edited by: 994323 on 16/03/2013 20:05

    You post in wrong forum. Mark correct answer and close this thread. Post at {forum:id=75}

  • 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

  • ORA-06512 at sys.XML_SCHEMA_NAME_PRESENT

    Hi ,
    I am using SQL Devp. When i am clicking on Other Users i am getting following error.
    ORA-00942 Table or view doesn't exists.
    ORA-06512 at sys.XML_SCHEMA_NAME_PRESENT
    Can any one of you please help me?

    None of permissions are revoked from sys dba. I verified it.
    One more point to add this behavior is .. It is working fine when i am clicking it from SQL devp which is upgraded version.

  • ORA-06512: at "DEV3_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY"

    RUNNING XE and Weblogic Server with SOA.
    When starting Weblogic server with SOA components, getting the following error:
    <Jun 26, 2012 10:00:32 AM MDT> <Warning> <oracle.integration.platform.blocks.eve
    nt.saq> <SOA-31013> <Error handling message (rolling back).
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_AQ", line 335
    ORA-06512: at "DEV3_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY", line 14
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.
    java:213)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableSta
    tement.java:1111)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:1488)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
    aredStatement.java:3769)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
    ement.java:3954)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStat
    ement.java:9353)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePrepa
    redStatementWrapper.java:1539)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.jav
    a:99)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.read
    OAOODelivery(SAQBusinessEventBus.java:1585)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.hand
    leSingleOAOODelivery(SAQBusinessEventBus.java:858)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.hand
    leQueueEvents(SAQBusinessEventBus.java:731)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.acce
    ss$000(SAQBusinessEventBus.java:90)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus$1.ru
    n(SAQBusinessEventBus.java:372)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run
    (WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManag
    er.java:184)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    When trying to debug and compile invalid objects I get the following:
    SQL> ED
    Wrote file afiedt.buf
    1* ALTER PACKAGE DBMS_AQADM_SYS COMPILE
    SQL> ALTER PACKAGE DBMS_AQADM_SYS COMPILE
    2 /
    Warning: Package altered with compilation errors.
    SQL> SHOW ERRORS
    No errors.
    SQL> show errors DBMS_AQADM_SYS
    Usage: SHOW ERRORS [{ FUNCTION | PROCEDURE | PACKAGE |
    PACKAGE BODY | TRIGGER | VIEW
    | TYPE | TYPE BODY | DIMENSION
    | JAVA SOURCE | JAVA CLASS } [schema.]name]
    SQL> SHOW ERRORS PACKAGE BODY DBMS_AQADM_SYS
    Errors for PACKAGE BODY DBMS_AQADM_SYS:
    LINE/COL ERROR
    495/5 PL/SQL: SQL Statement ignored
    496/17 PL/SQL: ORA-00942: table or view does not exist
    1316/6 PL/SQL: SQL Statement ignored
    1317/39 PL/SQL: ORA-00942: table or view does not exist
    1389/7 PL/SQL: SQL Statement ignored
    1391/42 PL/SQL: ORA-00942: table or view does not exist
    1468/20 PL/SQL: Item ignored
    1468/20 PLS-00201: identifier 'SYSTEM.AQ$_QUEUES' must be declared
    1471/5 PL/SQL: SQL Statement ignored
    1471/27 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    LINE/COL ERROR
    1471/33 PL/SQL: ORA-00904: : invalid identifier
    1480/5 PL/SQL: SQL Statement ignored
    1480/24 PL/SQL: ORA-00942: table or view does not exist
    1490/6 PL/SQL: SQL Statement ignored
    1492/15 PL/SQL: ORA-00904: "OBJNO": invalid identifier
    1492/15 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    1502/9 PL/SQL: Statement ignored
    1503/13 PLS-00320: the declaration of the type of this expression is

    RUNNING XE and Weblogic Server with SOA.
    When starting Weblogic server with SOA components, getting the following error:
    <Jun 26, 2012 10:00:32 AM MDT> <Warning> <oracle.integration.platform.blocks.eve
    nt.saq> <SOA-31013> <Error handling message (rolling back).
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_AQ", line 335
    ORA-06512: at "DEV3_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY", line 14
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.
    java:213)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableSta
    tement.java:1111)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:1488)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
    aredStatement.java:3769)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
    ement.java:3954)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStat
    ement.java:9353)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePrepa
    redStatementWrapper.java:1539)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.jav
    a:99)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.read
    OAOODelivery(SAQBusinessEventBus.java:1585)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.hand
    leSingleOAOODelivery(SAQBusinessEventBus.java:858)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.hand
    leQueueEvents(SAQBusinessEventBus.java:731)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.acce
    ss$000(SAQBusinessEventBus.java:90)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus$1.ru
    n(SAQBusinessEventBus.java:372)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run
    (WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManag
    er.java:184)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    When trying to debug and compile invalid objects I get the following:
    SQL> ED
    Wrote file afiedt.buf
    1* ALTER PACKAGE DBMS_AQADM_SYS COMPILE
    SQL> ALTER PACKAGE DBMS_AQADM_SYS COMPILE
    2 /
    Warning: Package altered with compilation errors.
    SQL> SHOW ERRORS
    No errors.
    SQL> show errors DBMS_AQADM_SYS
    Usage: SHOW ERRORS [{ FUNCTION | PROCEDURE | PACKAGE |
    PACKAGE BODY | TRIGGER | VIEW
    | TYPE | TYPE BODY | DIMENSION
    | JAVA SOURCE | JAVA CLASS } [schema.]name]
    SQL> SHOW ERRORS PACKAGE BODY DBMS_AQADM_SYS
    Errors for PACKAGE BODY DBMS_AQADM_SYS:
    LINE/COL ERROR
    495/5 PL/SQL: SQL Statement ignored
    496/17 PL/SQL: ORA-00942: table or view does not exist
    1316/6 PL/SQL: SQL Statement ignored
    1317/39 PL/SQL: ORA-00942: table or view does not exist
    1389/7 PL/SQL: SQL Statement ignored
    1391/42 PL/SQL: ORA-00942: table or view does not exist
    1468/20 PL/SQL: Item ignored
    1468/20 PLS-00201: identifier 'SYSTEM.AQ$_QUEUES' must be declared
    1471/5 PL/SQL: SQL Statement ignored
    1471/27 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    LINE/COL ERROR
    1471/33 PL/SQL: ORA-00904: : invalid identifier
    1480/5 PL/SQL: SQL Statement ignored
    1480/24 PL/SQL: ORA-00942: table or view does not exist
    1490/6 PL/SQL: SQL Statement ignored
    1492/15 PL/SQL: ORA-00904: "OBJNO": invalid identifier
    1492/15 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    1502/9 PL/SQL: Statement ignored
    1503/13 PLS-00320: the declaration of the type of this expression is

  • Gathering Table Statistics throws errors ORA-20001 and ORA-06512 on 11g

    Hi Forum!
    I try to gather statistics on a 11.2.0.1 DB for a Siebel application.
    The script which generates the statistics errors out and I don't know why. so I tried to query sys.dba_tab_statistics manually, but event then I receive an error:
    select * from sys.dba_tab_statistics
    ORA-20001: BIN$PV5XQQHLSAYJ0KPMEY1MHG==$0 is an invalid identifier
    ORA-06512: in "SYS-DBMS_STATS", Zeile 2082
    ORA-06512: in "SYS-DBMS_STATS", Zeile 2098
    ORA-06512: in "SYS-DBMS_STATS", Zeile 26789
    Any ideas?
    Edited by: Penky on Oct 10, 2011 2:51 PM

    Penky wrote:
    Note that I even get the error when doing a straight select * from dba_tab_statistics which I think should work fine, no?Is that:
    select * from dba_tab_statisticsor
    select * from sys.dba_tab_statisticsIt's unusual for a SYS view to error, unless that's a specific bug in that version of the database, though I wonder if there are other schemas, such as SYS which have got something in their recycle bin (not that anyone should have been creating and/or dropping things in SYS)?

Maybe you are looking for

  • My USB 3.0 ports stop working, why?

    Hello! I have a Line 6 UX2 audio interface since 5-6 years back, not sure. It has been working perfectly with several Macbooks, an iMac and a Windows PC. I bought the new Macbook Pro Retina (2.6 GHz, 16 GB RAM) and it worked for a while. The symptom

  • SOAP Response Message Capture in PI 7.1

    Hi I am working on Proxy to SOAP scenario and web service is synchronous to the external vendor, ECC Sends a message to External Vendor by using the Web service(ClaimSearch Request Proxy) and would be receiving the response back from the External ven

  • Video with sound but no visual

    i purchased video from tv shows. it downloaded ok but when i try to watch on the quick time i get no picture. i can hear the show playing but the screen is solid purple. how can i fix this?

  • How to know which graphics card is currently in use? (2010 MBP)

    Is there a way to check which graphics card is currently in use? I have the new 2010 15" 2.66 ghz MBP.

  • MS SQL Server error

    Hi All, This is my environment : Portal : WebLogic Portal 8.1 SP3. DB : MS SQL Server 2000 SP3. OS : Microsoft 2000 Advanced Sever SP3. When I create a Desktop and choose the option of Change the Resources with conflicting resources in the library op