Getting 0ra-06512 error

Hi,
I have created this procedure, but it gives me above mentioned error. Any suggestion will be aprreciated.
SQLST := SQLST || ' SELECT IDX, ORIG_IDX OFF_NAME_fORM, ST_TYPE1_FORM';
SQLST := SQLST || ' FROM '||UPPER(TABLENAME) ;
SQLST := SQLST || ' A WHERE A.ST_TYPE1 IS NOT NULL ';
SQLST := SQLST || ' AND NOT EXISTS(';
SQLST := SQLST || ' SELECT NULL FROM TRY.T B WHERE A.ST_TYPE1_FORM=B.LONG_NAME)';
DBMS_OUTPUT.PUT_LINE(SQLST);
BEGIN
EXECUTE IMMEDITE SQLST;
     END;
GETTING ERROR
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "AIQBAL.QC", line 66
ORA-06512: at line 1

Either you have not posted the actual procedure fully or declare keyword is missing.
Oracle doesn't like even this.
EXECUTE IMMEDITE SQLSTBy the way, why do you seem to be after Dynamic SQL always. Whatever question you posted in OTN seems to be with Dynamic SQL. Strange Business scenarios.
Cheers
Sarma.

Similar Messages

  • Getting the following error while parsing the values usng xml parser

    Hi
    I am getting the following error while parsing the values using the code in r12 instance on linux
    declare
    XML_PARSER XMLPARSER.PARSER;
    DOC XMLDOM.DOMDOCUMENT;
    DOCELEMENT DBMS_XMLDOM.DOMELEMENT;
    BEGIN
    -- NEW PARSER
    XML_PARSER := XMLPARSER.NEWPARSER;
    -- SET SOME CHARACTERISTICS
    XMLPARSER.SETVALIDATIONMODE(XML_PARSER, FALSE);
         IF P_DIR IS NOT NULL AND P_FILENAME IS NOT NULL
         THEN
         FND_FILE.PUT_LINE(FND_FILE.LOG,'DIRECTORY FOUND'||'-'||P_DIR);
         XMLPARSER.SETBASEDIR(XML_PARSER, P_DIR);     
         -- PARSE INPUT FILE
         FND_FILE.PUT_LINE(FND_FILE.LOG,'FILE FOUND'||'-'||P_FILENAME);
         XMLPARSER.PARSE(XML_PARSER, P_DIR || '/' || P_FILENAME);     
         -- GET DOCUMENT
         DOC := XMLPARSER.GETDOCUMENT(XML_PARSER);
         LOAD_SUPP(doc);
         ELSE
         DBMS_OUTPUT.PUT_LINE('DIRACTORY/FILENAME CANNOT BE NULL');
         END IF;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('DATA NOTINSERTED'||sqlerrm);
         ROLLBACK;
    END
    I am getting the following error
    DIRACTORYL-/home/appldevORA-0000: normal, successful completion
    FILE NAME-suppliersample_data.xmlORA-0000: normal, successful completion
    DATA NOTINSERTEDORA-31001: Invalid resource handle or path name "/home/appldev/suppliersample_data.xml"
    ORA-06512: at "SYS.XDBURITYPE", line 11
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 142
    ORA-29280: invalid directory path
    ORA-29280: invalid directory path
    ORA-29280: invalid directory path
    It could be great if some one could give a suggestion/solution.
    Thanks
    Ajesh

    Besides this is not the correct forum try to google the error message first before posting:
    http://ora-29280.ora-code.com/
    cheers

  • 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

  • Any idea while updating job and position --I am getting the following error

    Hi, I am trying to update job and position to the existing employee but getting the following error
    Error report:
    ORA-20001: The primary key specified is invalid
    Cause: The primary key values specified are invalid and do not exist in the schema.
    Action: Check the primary key values before attempting to carry out the operation again.
    ORA-06512: at "APPS.HR_ASSIGNMENT_API", line 16616
    ORA-06512: at line 35
    Code which I am using is as below
    declare
    l_assignment_id number;
    l_object_version_number number;
    l_special_ceiling_step_id number;
    LC_EFFECTIVE_END_DATE DATE;
    LC_EFFECTIVE_START_DATE DATE;
    LC_DATETRACK_UPDATE_MODE VARCHAR2(100);
    LC_GROUP_NAME VARCHAR2(1000);
    LC_CONCATENATED_SEGMENTS VARCHAR2(1000);
    L_ENTRIES_CHANGED_WARNING VARCHAR2(1000);
    LC_GSP_POST_PROCESS_WARNING VARCHAR2(1000):=NULL;
    LC_PEOPLE_GROUP_ID NUMBER:=NULL;
    LC_OBJECT_VERSION_NUMBER NUMBER:=NULL;
    LC_SOFT_CODING_KEYFLEX_ID NUMBER:=NULL;
    LC_SPECIAL_CEILING_STEP_ID NUMBER:=NULL;
    LC_GRADE_ID NUMBER:=NULL;
    LC_OTHER_MANAGER_WARNING BOOLEAN:=NULL;
    LC_SPP_DELETE_WARNING BOOLEAN:=NULL;
    LC_ORG_NOW_NO_MANAGER_WARNING BOOLEAN:=NULL;
    LCTAX_DISTRICT_CHANGED_WARNING BOOLEAN:=NULL;
    L_EMP_START_DATE DATE:=NULL;
    J_LOCATION_ID NUMBER;
    J_PAY_BASIS_ID NUMBER;
    J_SEGMENT5 number;
    J_SEGMENT3 number;
    J_SEGMENT2 number;
    J_GRADE_ID number;
    J_PAYROLL_ID number;
    begin
    l_assignment_id := 214;
    hr_assignment_api.update_emp_asg_criteria
    P_VALIDATE => FALSE
    ,P_EFFECTIVE_DATE => TRUNC(sysdate)
    ,P_DATETRACK_UPDATE_MODE => LC_DATETRACK_UPDATE_MODE
    ,P_ASSIGNMENT_ID => l_assignment_id
    ,P_GRADE_ID => J_GRADE_ID
    ,P_POSITION_ID => 5062
    ,P_JOB_ID => 3063
    ,P_PAYROLL_ID => J_PAYROLL_ID
    ,P_LOCATION_ID => 142--J_LOCATION_ID
    ,P_ORGANIZATION_ID => 81
    ,P_PAY_BASIS_ID => J_PAY_BASIS_ID
    ,p_segment5 => J_SEGMENT5
    ,p_segment2 => J_SEGMENT2
    ,p_segment3 => J_SEGMENT3
    ,P_OBJECT_VERSION_NUMBER => LC_OBJECT_VERSION_NUMBER
    ,P_SPECIAL_CEILING_STEP_ID => LC_SPECIAL_CEILING_STEP_ID
    ,P_PEOPLE_GROUP_ID => LC_PEOPLE_GROUP_ID
    ,P_SOFT_CODING_KEYFLEX_ID => LC_SOFT_CODING_KEYFLEX_ID
    ,P_GROUP_NAME => LC_GROUP_NAME
    ,P_EFFECTIVE_START_DATE => LC_EFFECTIVE_START_DATE
    ,P_EFFECTIVE_END_DATE => LC_EFFECTIVE_END_DATE
    ,P_ORG_NOW_NO_MANAGER_WARNING => LC_ORG_NOW_NO_MANAGER_WARNING
    ,P_OTHER_MANAGER_WARNING => LC_OTHER_MANAGER_WARNING
    ,P_SPP_DELETE_WARNING => LC_SPP_DELETE_WARNING
    ,P_ENTRIES_CHANGED_WARNING => L_ENTRIES_CHANGED_WARNING
    ,P_TAX_DISTRICT_CHANGED_WARNING => LCTAX_DISTRICT_CHANGED_WARNING
    ,P_CONCATENATED_SEGMENTS => LC_CONCATENATED_SEGMENTS
    ,P_GSP_POST_PROCESS_WARNING => LC_GSP_POST_PROCESS_WARNING);
    end;
    Thanks in advance
    Rajini

    Please post the details of the application release, database version and OS.
    What HRMS patchset you are on?
    Please see if these docs help.
    Getting "ORA-20001: The primary key specified is invalid" Error Using HR_ASSIGNMENT_API.UPDATE_EMP_ASG_CRITERIA API [ID 737145.1]
    Hr_assignment_api.Update_emp_asg_criteria Gives Ora-20001, Ora-06512 [ID 334491.1]
    Thanks,
    Hussein

  • Getting UTL FILE error trying to read from User_TUNE_MVIEW

    I am trying to set up a materialized view using the dbms_advisor.tune_mview which works and populates the user_tune_mview table. Supposedly I am supposed to be able to extract the suggested SQL from that table by
    a) logging on as sysdba and
    i) create directory MYDIR as 'C:\';
    ii) grant read,write on directory mydir to grantee (in my case aradmin)
    b) logging back on as aradmin (the user) and running,
    c)
    exec_dbms_advisor.create_file(dbms_advisor.get_task_script('TASK_Number'),
    'MYDIR','FIXME.txt');
    the last step does not work:
    instead I get a cascade of errors other people must have also encountered which are:
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 475
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.PRVT_ADVISOR", line 140
    ORA-06512: at "SYS.DBMS_ADVISOR", line 527
    ORA-06512: at line 2
    Since this is a called oracle package I am at a loss and hope that someone else ran into this and solved it.
    thanks in advance.

    What version pof the database are you using and what documentation are you reading regarding exec_dbms_advisor. I can not find anything.
    This may be related:
    Oracle Server Performance Technical Forum
    Thread Status: Active
    From: [email protected] 09-Nov-05 07:59
    Subject: Broken SQL Access Advisor
    RDBMS Version: 10.2.0.1.0
    Operating System and Version: MS Windows XP SP2
    Error Number (if applicable): ORA-13600
    Product (i.e. SQL*Loader, Import, etc.): SQL Access Advisor
    Product Version:
    Broken SQL Access Advisor
    When I try to create SQL Access Advisor task
    VARIABLE task_id NUMBER;
    VARIABLE task_name VARCHAR2(255);
    EXECUTE :task_name := 'MYTASK';
    EXECUTE DBMS_ADVISOR.CREATE_TASK ('SQL Access Advisor', :task_id, :task_name);
    I get this error
    begin DBMS_ADVISOR.CREATE_TASK ('SQL Access Advisor', :task_id, :task_name); end;
    ORA-13600: error encountered in Advisor
    ORA-13635: The value provided for parameter ADJUSTED_SCALEUP_GREEN_THRESH cannot be converted to a number.
    ORA-06512: at "SYS.PRVT_ADVISOR", line 3902
    ORA-06512: at "SYS.DBMS_ADVISOR", line 102
    ORA-06512: at line 1
    From: Joze Senegacnik 09-Nov-05 21:59
    Subject: Re : Broken SQL Access Advisor
    Ivo,
    I think you have encountered a bug. I get the same error on my 10.2. The ADJUSTED_SCALEUP_GREEN_THRESH parameter is defined in SYS.WRI$_ADV_DEF_PARAMETERS table having value 1.25. The other similar parameter OVERALL_SCALEUP_GREEN_THRESH has value of 1.5 (this one also causes a procedure crash). Both should be converted to a number type but obviously can't be. If you change their values to 1 and 2 respectively then the procedure successfully completes. Therefore I suspect that this is a bug and the best idea is to log a TAR. If you will not do it, I'll log it.
    Regards, Joze
    From: Joze Senegacnik 10-Nov-05 07:16
    Subject: Re : Broken SQL Access Advisor
    Ivo,
    Hmmmm..., in my previous post I overlooked the fact that the problem is the NLS setting for decimal point. If you set NLS_LANG=american_america.us7ascii then things work correctly. I would expect that Oracle would do a proper NLS handling inside their package.
    The other possibility is to properly set nls_numeric_characters parameter and then run your code.
    alter session set nls_numeric_characters='.,';
    Sorry for misleading information in my previous post.
    Regards, Joze
    From: [email protected] 10-Nov-05 07:24
    Subject: Re : Broken SQL Access Advisor
    That's it! There is a problem with decimal point, while we use comma (',') in Czech as decimal point, and therefore the conversion of '1.25' to number is unsuccessful...
    I'm not sure, if this a bug (looks like not-very-clever feature), if you think so, please create a TAR.
    Thanks for your help.
    From: Joze Senegacnik 10-Nov-05 07:41
    Subject: Re : Re : Broken SQL Access Advisor
    I don't consider this behaviour a bug. However, I would expect that Oracle would use proper NLS settings internally in the package.
    Regards, Joze

  • Getting ora-00900 error when calling the procedure with the dynamic sql.

    create or replace procedure dyn_update(tab in varchar2,col in VARCHAR2) as
    BEGIN
    execute IMMEDIATE 'update'||tab||'set'||col||'= 0 where order_id=2458';
    end;
    and when i call this procedure in sql developer or sql* plus using
    begin
    dyn_update('Orders',Order_status');
    end;
    I am getting the oracle 0ra 00900 error.
    can any one please help me

    just a tip:
    Create your dynamic string in a local variable, so you can easily see why it is giving an exception
    create or replace procedure dyn_update(tab in varchar2,col in VARCHAR2) as
       str varchar2(32767);
    BEGIN
       str := 'update '||tab||' set'||col||'= 0 where order_id=2458';
       dbms_output.put_line (str);
      execute IMMEDIATE str;
    end;

  • Getting ORA-06502 error. Don't know why. Please help!

    I am getting the following error msgs and don't understand why?
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "SMSRPT.SP_DATA_CHECK", line 22
    ORA-06512: at line 6
    Here is my procedure. Can someone look at it and explain to me what i could possibly be doing wrong here.
    create or replace
    PROCEDURE sp_data_check(p_date number) is
    --DECLARE
    v_table_name VARCHAR2(35);
         v_string VARCHAR2(1024);
         v_result number;
         v_output VARCHAR2(1024);
    v_report_date VARCHAR2(8);
    v_dt VARCJAR2(8);
    CRLF char(2) := chr(10)||chr(13);
         CURSOR c_table is
              select table_name
              from user_tab_columns
              where COLUMN_NAME = 'REPORT_DATE'
              and table_name NOT LIKE '%BIN%';
         BEGIN
    OPEN c_table;
         loop
              FETCH c_table into v_table_name;
              exit when c_table%NOTFOUND;
              v_string:='select decode(max(report_date),'||p_date||',1,0)'|| ' from ' || v_table_name;
              execute immediate v_string into v_result;
    v_report_date:='select max(report_date)'|| ' from ' || v_table_name;
    excute immediate v_report_date into v_dt;
              v_output:=v_output||CRLF||v_table_name||': '||v_dt;
    end loop;
    if v_result =0 then
    sp_send_mail('reports@localhost','[email protected]',
    'Report Date Not There','The following tables do not have the correct report_date information:'||v_output);
    end if;
    close c_table;
    END;
    The bold section of my code is what i added that broke it. Before adding these lines of code it all worked fine.

    That worked. Here is the revised working program
    create or replace PROCEDURE sp_data_check(p_date number) is
    --DECLARE
    v_table_name VARCHAR2(35);
         v_string VARCHAR2(1024);
         v_result number;
         v_output VARCHAR2(1024);
    v_report_date VARCHAR2(100);
    v_dt VARCHAR2(100);
    CRLF char(2) := chr(10)||chr(13);
         CURSOR c_table is
              select table_name
              from user_tab_columns
              where COLUMN_NAME = 'REPORT_DATE'
              and table_name NOT LIKE '%BIN%';
         BEGIN
    OPEN c_table;
         loop
              FETCH c_table into v_table_name;
              exit when c_table%NOTFOUND;
              v_string:='select decode(max(report_date),'||p_date||',1,0)'|| ' from ' || v_table_name;
              execute immediate v_string into v_result;
    v_report_date:='select max(report_date)'|| ' from ' || v_table_name;
    execute immediate v_report_date into v_dt;
              v_output:=v_output||CRLF||v_table_name||': '||v_dt;
    end loop;
    if v_result =0 then
    sp_send_mail('reports@localhost','[email protected]',
    'Report Date Not There','The following tables do not have the correct report_date information:'||v_output);
    end if;
    close c_table;
    END;

  • O2A Solution, OSM 7.0.3 -Submit Revision Order - Getting a database error

    Hello,
    we have created a custom SOM Cartridge for VoIP Orders which is called by O2A LF (CommunicationsProvisioningFulfillmentOrderPIP). We are trying to reproduce the following scenario.
    We submit a salesorder that has verbCode SIMULATE_FAIL_VOIP_SERVICEBUNDLE_FAULT. We enhance Control Map in the above mentioned Custom VoIP Cartridge.
    Fallout simulates successfully. Then we submit a new salesorder with process Verb Code, a significant data change (e.g. Password, Number, etc..) and Revision Number 2 . Amendment Order is created successfully at COM and SOM and redo Task of CommunicationsProvisioningFulfillmentOrderPIP Cartridge is happening to SOM. This creates a new VoIP Order at SOM actual provisioning but during the CommunicationsProvisioningFulfillmentOrderPIP update after VoIP order completion we are getting the following error...
    <AdminServer> <ExecuteThread: '12' for queue: 'oms.automation'> <oms-automation> <> <> <1330609363640> <BEA-010213> <Message-Driven EJB: CommunicationsServicesProvisioningOrderUpdateSITask.CommunicationsServicesProvisioningOrderUpdateBeanMDB's transaction was rolled back. The transaction details are: Xid=BEA1-663E3AB4D830560E5D6A(9023958),Status=Rolled back. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=60,XAServerResourceInfo[WLStore_osm_domain_oms_jms_store]=(ServerResourceInfo[WLStore_osm_domain_oms_jms_store]=(state=rolledback,assigned=AdminServer),xar=WLStore_osm_domain_oms_jms_store31156775,re-Registered = false),NonXAServerResourceInfo[WL_JDBC_LLR_POOL.oms_pool]=(ServerResourceInfo[WL_JDBC_LLR_POOL.oms_pool]=(state=rolledback,assigned=AdminServer),nonXAResource=JDBC LLR, pool=oms_pool, table=WL_LLR_ADMINSERVER),SCInfo[osm_domain+AdminServer]=(state=rolledback),properties=({weblogic.transaction.nonXAResource=WL_JDBC_LLR_POOL.oms_pool, weblogic.jdbc=t3://192.168.5.112:17001, weblogic.jdbc.llr=oms_pool}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+192.168.5.112:17001+osm_domain+t3+, XAResources={WLStore_osm_domain_oms_jms_store, WLStore_osm_domain_oss_jms_store, WSATGatewayRM_AdminServer_osm_domain, WLStore_osm_domain__WLS_AdminServer},NonXAResources={})],CoordinatorURL=AdminServer+192.168.5.112:17001+osm_domain+t3+).>
    java.sql.SQLException: ORA-20502: Automation context not found.
    ORA-06512: at "ORDERMGMT.OM_AUTOMATION_PKG", line 85
    ORA-06512: at line 1
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
         at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1223)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
         at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:98)
         at com.mslv.oms.dataaccesslayer.CallableProxy.executeStatement(Unknown Source)
    ####<Mar 1, 2012 3:42:48 PM EET> <Error> <oms> <john-1d006c4d54> <AdminServer> <ExecuteThread: '12' for queue: 'oms.automation'> <oms-automation> <BEA1-66673AB4D830560E5D6A> <> <1330609368781> <BEA-000000> <plugin.InnerEarExternalReceiverDispatcher: Fail to find the automationContext for the JMS message due to
    com.mslv.oms.automation.AutomationException: Fail to find the automationContext for the JMS message due to
         at oracle.communications.ordermanagement.automation.plugin.AbstractExternalReceiverDispatcher.a(Unknown Source)
         at oracle.communications.ordermanagement.automation.plugin.InnerEarExternalReceiverDispatcher.a(Unknown Source)
    com.mslv.oms.dataaccesslayer.ProxyException: ORA-20502: Automation context not found.
    If you have any experience about the above error pls help us to understand and resolve this.

    Hi, I took a closer look at your issue.
    here is the code where the error seems to come from
    let $ebm := if (fn:exists($taskData/oms:_root/oms:messageXmlData/provord:ProcessProvisioningOrderEBM))
    then $taskData/oms:_root/oms:messageXmlData/provord:ProcessProvisioningOrderEBM
    else error(xs:QName('osmError:ORDER_NOT_FOUND'), "Error getting ProcessProvisioningOrderEBM.")
    To me this must be an issue with the task data.
    The user executing this automator is osmlf.
    This user should be the member of the following roles:
    LocalFulfillmentRole
    LfFalloutRole
    Both have the same view assigned for the Provisioning order: CommunicationProvisioningOrderQueryTask.
    The user must not be a membe of other roles, this can lead to a different query task being picked by the system for the automator.
    In particular, there is the LocalFulfillmentSystemInteractionRole which has a different query task assigned for the order:
    LocalFulfillmentSystemInteractionTask
    And this one indeed does not include the element messageXmlData. So if by any chance the user osmlf was member of LocalFulfillmentSystemInteractionRole, this could lead precisely to the error you are getting.
    Let me know...
    Viktor
    Edited by: viktor.jarolim on 23 oct. 2012 23:55
    Edited by: viktor.jarolim on 23 oct. 2012 23:57

  • ORA-00001 and ORA-06512 error on  DBMS_WM.ResolveConflicts

    We are getting unique constraint error in Production Database. We are able to merge most of the workspaces with no issues. One workspace is givign errors on merge.
    Here is the code
    begin
    dbms_wm.gotoworkspace('denialletterspoc_onmzpulp');
    dbms_wm.setdiffversions('denialletterspoc_onmzpulp','LIVE');
    dbms_wm.SetConflictWorkspace('denialletterspoc_onmzpulp');
    commit;
    DBMS_WM.BeginResolve('denialletterspoc_onmzpulp');
    DBMS_WM.ResolveConflicts(
    workspace => 'denialletterspoc_onmzpulp',
    table_name => 'MCM_MESSAGE',
    where_clause => ' id in (8403026,10134822,8259485,8259488,8426289,8426287,10186643,8426288) ',
    keep => 'CHILD'
    exception when others then
    DBMS_WM.RollbackResolve('denialletterspoc_onmzpulp');
    raise;
    end;
    ORA-00001: unique constraint (T2.MCM_MESSAGE_PK) violated
    ORA-06512: at line 16
    I looked at the date in XXX_lt tables and it does not look suspecious. Please help us understand
    ORA-00001 and ORA-06512 error.
    Amit Gangwar

    Hi, Ben
    Our OWM_VERSION is 10.2.0.4.3.
    I tried disable and enable constraint MCM_MESSAGE_PK. But didn't fix our issue.
    Split where clause from " id in (...) " syntax to " id = ... " syntax will reduce performance heavily. And I did some test that " id in (...) " syntax works well in our dev env.
    I opened our trace file and get below plsql block. When I perform it get same error with our original codes. Please notice the part of "forall wm_indx in WM_rowids.first .. WM_rowids.last execute immediate 'begin insert into T2.MCM_MESSAGE_lt ... ...", error occurred here. But if I change the "forall" syntax to normal " for ... loop" syntax then no error here. Can you give me some advice or suggestion?
    DECLARE
    WM_rowids wmsys.lt_ctx_pkg.rowidTabType;
    WM_rowids_vt wmsys.lt_ctx_pkg.rowidTabType;
    WM_curver wmsys.lt_ctx_pkg.int_tab;
    WM_vtRow wmsys.lt_ctx_pkg.int_tab;
    WM_nextver wmsys.lt_ctx_pkg.nextver_tab;
    WM_found integer := 0;
    BEGIN
    dbms_wm.gotoworkspace('denialletterspoc_onmzpulp');
    dbms_wm.setdiffversions('denialletterspoc_onmzpulp','LIVE');
    dbms_wm.SetConflictWorkspace('denialletterspoc_onmzpulp');
    /* update the auxilliary table of snapshots */
    /* These are rows in the current version that have already been resolved once */
    update T2.MCM_MESSAGE_aux st
    set (snapShotChild, snapShotParent, versionParent) =
    (select p.WM_childds, p.WM_parentds, p.WM_parentver
    from T2.MCM_MESSAGE_pkc p
    where p.ID = st.ID),
    value = '0',
    wm_opcode = 'CC'
    where st.versionChild = 614
    and (ID) in (select ID
    from T2.MCM_MESSAGE_pkc p
    where (id in (8403026,
    10134822,
    8259485,
    8259488,
    8426289,
    8426287,
    10186643,
    8426288)));
    select distinct WM_ridchild bulk collect
    into WM_rowids
    from T2.MCM_MESSAGE_pkc
    where (id in (8403026,
    10134822,
    8259485,
    8259488,
    8426289,
    8426287,
    10186643,
    8426288))
    and WM_childver != 614;
    if (WM_rowids.first is not null) then
    WM_found := 1;
    forall wm_indx in WM_rowids.first .. WM_rowids.last
    update T2.MCM_MESSAGE_lt
    set retireTime = wmsys.owm_9ip_pkg.activeTimeForDML,
    nextver = wmsys.lt_ctx_pkg.getNextVer(nextver,
    614,
    version,
    'denialletterspoc_onmzpulp',
    'CRS_LEAF',
    22)
    where rowid = WM_rowids(wm_indx)
    returning wmsys.lt_ctx_pkg.getCurNextVer bulk collect into WM_nextver;
    /* These are the rows that have not yet been resolved after the latest BeginResolve */
    forall wm_indx in WM_rowids.first .. WM_rowids.last execute immediate
    'begin insert into T2.MCM_MESSAGE_lt(ID,DPS_APPLICATION_ID,TYPE_ID,NAME,PRIVILEGED,CAMPAIGN_ID,TEXT,FILE_NAME,GRAPHIC_WIDTH,GRAPHIC_HEIGHT,DESCRIPTION,ACTIVE,INCLUDE_IN_LIBRARY,MESSAGE_FILTER_ID,OP_USER_ID,OP_WORKSPACE,OP_TIME,version,createtime,retiretime,nextver,delstatus,ltlock)
    (select t1.ID,t1.DPS_APPLICATION_ID,t1.TYPE_ID,t1.NAME,t1.PRIVILEGED,t1.CAMPAIGN_ID,t1.TEXT,t1.FILE_NAME,t1.GRAPHIC_WIDTH,t1.GRAPHIC_HEIGHT,t1.DESCRIPTION,t1.ACTIVE,t1.INCLUDE_IN_LIBRARY,t1.MESSAGE_FILTER_ID,t1.OP_USER_ID,t1.OP_WORKSPACE,t1.OP_TIME,614, wmsys.owm_9ip_pkg.activeTimeForDML, null,:1, sign(delstatus)*(abs(delstatus)+1),
    wmsys.lt_ctx_pkg.checkngetlock(''C'', t1.ltlock, t1.nextver, ''denialletterspoc_onmzpulp'', 0,
    ''MODIFY'', t1.version, t1.delstatus, 0, 1)
    from T2.MCM_MESSAGE_lt t1
    where t1.rowid = :2); end;'
    using WM_nextver(wm_indx),
    WM_rowids(wm_indx)
    end if;
    if (WM_found = 1) then
    wmsys.lt_ctx_pkg.update_modified_tables('T2',
    'MCM_MESSAGE',
    614,
    'denialletterspoc_onmzpulp',
    22);
    end if;
    if (WM_found = 1) then
    forall wm_indx in WM_rowids.first .. WM_rowids.last
    delete from T2.MCM_MESSAGE_aux
    where (ID) in (select ID
    from T2.MCM_MESSAGE_lt
    where rowid = WM_rowids(wm_indx))
    and childState = 'denialletterspoc_onmzpulp';
    end if;
    /* now insert new syncing information about these rows */
    execute immediate 'insert into T2.MCM_MESSAGE_aux (
    select ID,
    p.WM_childstate, p.WM_parentstate,
    p.WM_childds, 614, p.WM_parentds, p.WM_parentver, ''0'',''CC''
    from T2.MCM_MESSAGE_pkc p
    where ( id in (8403026,10134822,8259485,8259488,8426289,8426287,10186643,8426288) ) )';
    END;
    Thanks
    Amos

  • Get line number error

    Hi
    Is there some way to get line number error when there is some exception ?
    I use oracle 9.2.02
    thank you in advance

    sybrand_b wrote:
    When you trap the exception you need to use dbms_utility.format_error_stack.
    Thid will not provide correct line numbers. This issue has been resolved in 10g or 11g, and 9iR2 is going completely out of support in July.FORMAT_ERROR_STACK will not provide any line numbers:
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> set serveroutput on format word_wrapped
    SQL> begin
      2      raise no_data_found;
      3    exception
      4      when no_data_found
      5        then
      6          dbms_output.put_line('ERROR_STACK: ' || DBMS_UTILITY.FORMAT_ERROR_STACK);
      7          dbms_output.put_line('ERROR_BACKTRACE: ' || DBMS_UTILITY.FORMAT_ERROR_BACKTRACE);
      8  end;
      9  /
    ERROR_STACK: ORA-01403: no data found
    ERROR_BACKTRACE: ORA-06512: at line 2
    PL/SQL procedure successfully completed.
    SQL>  SY.

  • ORA06502,06512 ERROR

    Hi Experts,
    I m getting the below errors while calling the function:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "UTL.DBMS_OUTPUT", line 116
    ORA-06512: at "UTL.DBMS_OUTPUT", line 65
    ORA-06512: at "UTL.DWH_PRODUCTION_SUM_QTDYTD", line 114Function:
    CREATE OR REPLACE FUNCTION Dwh_Production_Sum_Qtdytd(V_TBL_NAME IN VARCHAR2,V_COL_NAM IN VARCHAR2,V_RPRT_DATE VARCHAR2, V_FLTRCOL IN VARCHAR2,VALUE_OF IN VARCHAR2, V_ITEMCODE IN VARCHAR2)
    RETURN NUMBER  IS
            A_RET_VALUE NUMBER;
    V_REPORT_DATE DATE:=V_RPRT_DATE;
    V_FILTERCOL VARCHAR2(30):=UPPER(V_FLTRCOL);
    V_COL_NAME VARCHAR2(30):=UPPER(V_COL_NAM);
    V_TAB_NAME VARCHAR2(30):=UPPER(V_TBL_NAME);
    V_VALUE_TYPE VARCHAR2(8):=UPPER(VALUE_OF);
    V_ITEM_CODE VARCHAR2(10):=UPPER(V_ITEMCODE);
    V_QUARTER_NUMBER  NUMBER(1);
    V_QTY VARCHAR2(1000);
    V_CURRQTD_STRT VARCHAR2(11);
    V_CURRQTD_END  VARCHAR2(11);
    V_CURRQTD VARCHAR2(1000);
    V_PRVQTD_STRT VARCHAR2(11);
    V_PRVQTD_END VARCHAR2(11);
    V_PRVQTD VARCHAR2(1000);
    V_CURRYTD_STRT VARCHAR2(11);
    V_CURRYTD_END VARCHAR2(11);
    V_CURR_YTD VARCHAR2(1000);
    V_PRVYTD VARCHAR2(11);
    V_PRVYTD_STRT VARCHAR2(11);
    V_PRVYTD_END VARCHAR2(11);
    V_PRV_YTD VARCHAR2(1000);
    V_PRVYRMTH VARCHAR2(11);
    V_PRVMTH_STRT VARCHAR2(11);
    V_PRVMTH_END VARCHAR2(11);
    V_PRVYR_MTH VARCHAR2(1000);
    V_CURRQTD_SUM NUMBER(14,3):=0;
    V_PRVQTD_SUM NUMBER(14,3):=0;
    V_CURRYTD_SUM NUMBER(14,3):=0;
    V_PRVYTD_SUM NUMBER(14,3):=0;
    V_PRVYRMTH_SUM NUMBER(14,3):=0;
    BEGIN
    --------------------CURRENT QUARTER VALUE------------------------------
    WITH     PARAM          AS
         SELECT     TO_DATE ( V_REPORT_DATE
                   )     AS T
         FROM     DUAL
    SELECT     TRUNC (T, 'Q')               AS CURNT_QTR_ST_DT
    ,     ADD_MONTHS ( TRUNC (T, 'Q')
                 , 3
                 ) - 1          AS CURNT_QTR_END_DT
    ,     ADD_MONTHS ( TRUNC (T, 'Q')
                 , -3
                 )               AS PREV_QTR_ST_DT
    ,     TRUNC (T, 'Q') - 1          AS PREV_QTR_END_DT
                                               INTO V_CURRQTD_STRT, V_CURRQTD_END, V_PRVQTD_STRT, V_PRVQTD_END FROM     PARAM
    V_CURRQTD:='SELECT SUM('||V_COL_NAME||')  FROM  '||V_TAB_NAME|| ' WHERE '||V_FILTERCOL||' BETWEEN   TO_DATE('''||V_CURRQTD_STRT||''') ' || '  AND  TO_DATE('''||V_REPORT_DATE||''') AND ITEM_CODE= '''||V_ITEM_CODE||'''';
    DBMS_OUTPUT.PUT_LINE(V_CURRQTD);
    EXECUTE IMMEDIATE V_CURRQTD INTO V_CURRQTD_SUM;
    DBMS_OUTPUT.PUT_LINE(V_CURRQTD_SUM);-----------------------------------------here
    --------------------END OF CURRENT QUARTER------------------------------
    --------------------PREVIOUS QUARTER------------------------------------
    V_PRVQTD:='SELECT SUM('||V_COL_NAME||')  FROM  '||V_TAB_NAME|| ' WHERE '||V_FILTERCOL||' BETWEEN   TO_DATE('''||V_PRVQTD_STRT||''') ' || '  AND  TO_DATE('''||V_PRVQTD_END||''')AND ITEM_CODE= '''||V_ITEM_CODE||'''';
    DBMS_OUTPUT.PUT_LINE(V_PRVQTD);
    EXECUTE IMMEDIATE V_PRVQTD INTO V_PRVQTD_SUM;
    DBMS_OUTPUT.PUT_LINE(V_PRVQTD_SUM);
    --------------------END OF PREVIOUS QUARTER------------------------------
    --------------------CURRENT YTD-------------------------------------------
    SELECT ADD_MONTHS ( TRUNC ( ADD_MONTHS (V_REPORT_DATE, -3)
                                            , 'YYYY'
                        , 3              
                           ) INTO V_CURRYTD_STRT FROM DUAL;
    SELECT ADD_MONTHS (V_CURRYTD_STRT, 12)
                - 1  INTO V_CURRYTD_END FROM DUAL;
    V_CURR_YTD:='SELECT SUM('||V_COL_NAME||')  FROM  '||V_TAB_NAME|| ' WHERE '||V_FILTERCOL||' BETWEEN   TO_DATE('''||V_CURRYTD_STRT||''') ' || '  AND  TO_DATE('''||V_REPORT_DATE||''')AND ITEM_CODE= '''||V_ITEM_CODE||'''';
    DBMS_OUTPUT.PUT_LINE(V_CURR_YTD);
    EXECUTE IMMEDIATE V_CURR_YTD INTO V_CURRYTD_SUM;
    DBMS_OUTPUT.PUT_LINE(V_CURRYTD_SUM);
    --------------------END OF CURRENT YTD------------------------------------
    --------------------PREVIOUS YTD------------------------------------------
    SELECT ADD_MONTHS(TO_DATE(V_RPRT_DATE),-12) INTO V_PRVYTD FROM DUAL;
    SELECT ADD_MONTHS ( TRUNC ( ADD_MONTHS (V_PRVYTD, -3)
                                            , 'YYYY'
                        , 3              
                           ) INTO V_PRVYTD_STRT FROM DUAL;
    SELECT ADD_MONTHS (V_PRVYTD_STRT, 12)
                - 1  INTO V_PRVYTD_END FROM DUAL;
    --SELECT TRUNC(TO_DATE(V_PRVYTD),'YEAR') INTO V_PRVYTD_STRT FROM DUAL;
    --SELECT LAST_DAY (ADD_MONTHS (TO_DATE (V_PRVYTD_STRT), 11)) INTO V_PRVYTD_END FROM DUAL;
    V_PRV_YTD:='SELECT SUM('||V_COL_NAME||')  FROM  '||V_TAB_NAME|| ' WHERE '||V_FILTERCOL||' BETWEEN   TO_DATE('''||V_PRVYTD_STRT||''') ' || '  AND  TO_DATE('''||V_PRVYTD_END||''')AND ITEM_CODE= '''||V_ITEM_CODE||'''';
    DBMS_OUTPUT.PUT_LINE(V_PRV_YTD);-----------------------------------------here
    EXECUTE IMMEDIATE V_PRV_YTD INTO V_PRVYTD_SUM;
    DBMS_OUTPUT.PUT_LINE(V_PRVYTD_SUM);-----------------------------------here
    --------------------END OF PREVIOUS YTD--------------------------------------
    --------------------PREVIOUS YR SAME MONTH-----------------------------------
    SELECT ADD_MONTHS(V_REPORT_DATE,-12) INTO V_PRVYRMTH FROM DUAL;-----PREVIOUS YR SAME DATE
    SELECT TRUNC(TO_DATE(V_PRVYRMTH),'MM')INTO V_PRVMTH_STRT FROM DUAL;------1ST DATE OF PRV YR SAME MONTH
    WITH INP AS
    (SELECT TO_DATE(V_PRVMTH_STRT) INP FROM DUAL)
    SELECT LAST_DAY(INP) INTO  V_PRVMTH_END FROM INP;---------LAST DATE OF PRV YR SAME MONTH
    V_PRVYR_MTH:='SELECT SUM('||V_COL_NAME||')  FROM  '||V_TAB_NAME|| ' WHERE '||V_FILTERCOL||' BETWEEN   TO_DATE('''||V_PRVMTH_STRT||''') ' || '  AND  TO_DATE('''||V_PRVMTH_END||''')AND ITEM_CODE= '''||V_ITEM_CODE||'''';
    DBMS_OUTPUT.PUT_LINE(V_PRVYR_MTH);
    EXECUTE IMMEDIATE V_PRVYR_MTH INTO V_PRVYRMTH_SUM;
    DBMS_OUTPUT.PUT_LINE(V_PRVYRMTH_SUM);
    --------------------END OF PREVIOUS YR SAME MONTH-----------------------------------
    --------------------IF CODN. TO GET THE VALUES AS GIVEN DURATION-------------
    DBMS_OUTPUT.PUT_LINE('CURR_QTD'||'          '||'PRVQTD'||'         '||'CURR_YTD'||'           '||'PRV_YTD'||'           '||'PRVYRMTH');
    DBMS_OUTPUT.PUT_LINE(V_CURRQTD_SUM||'    '||V_PRVQTD_SUM||'      '||V_CURRYTD_SUM||'    '||V_PRVYTD_SUM||'        '||V_PRVYRMTH_SUM);
    IF(VALUE_OF = 'CURRQTD') THEN
       A_RET_VALUE := V_CURRQTD_SUM;
    ELSIF(VALUE_OF = 'PRVQTD') THEN
       A_RET_VALUE := V_PRVQTD_SUM;
    ELSIF (VALUE_OF = 'CURRYTD') THEN
       A_RET_VALUE := V_CURRYTD_SUM;
    ELSIF (VALUE_OF = 'PRVYTD') THEN
       A_RET_VALUE := V_PRVYTD_SUM;
    ELSIF (VALUE_OF = 'PRVYRMTH') THEN
       A_RET_VALUE := V_PRVYRMTH_SUM;
    END IF;
    --------------------END OF IF CONDITION--------------------------------------
    RETURN A_RET_VALUE;  
    END Dwh_Production_Sum_Qtdytd;
    /Can any1 throw some light to resolve:
    Thnx in Advance

    Hi,
    ORA-06502: PL/SQL: numeric or value error string
    Cause: An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
    Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.  for example
    declare
       v_number number(2);
    begin
       v_number := 100;
    end;
    you are trying to assing precision 3 while you declared 2 only.
    declare
       v_number number(2);
    begin
       v_nmber := 'a';
    end;
    you have declare number varialble and assingnign character value to it.your below assignment is having problem.
    DBMS_OUTPUT.PUT_LINE(V_PRVYTD_SUM);-----------------------------------here
    Edited by: Chanchal Wankhade on Jan 3, 2013 4:42 AM

  • Getting Page Load Error while opening a Opportunity in new window

    Hi All,
    outbound SSO is enabled.
    when i try to punch-in to my application from CRM through opportunity web link with Web Link Target as "open in custom tab" its working properly, but when i have Web Link Target as "open in new window" i am getting page load error. previously with out Outbounf SSO it is working properly.
    Do i need enable any settings in CRM
    thanks

    when the web link target is "open in new window" or "open in current window" the request send to third party application from CRM ONDemand is HTTPS request as SSL is not enabled it is giving "page load error"(In the web link we are specifying http only) (User athentication type is "username & password/ SSO")
    Is there any setting in CRM Ondemand to send Http request only instead of HTTPS?

  • Getting a permission error while updating a field.

    hi,
    I want to update a field in OIM and push the same to OID. When i try to update it for like 20 times it woks for 18 times and doesnt work for couple of times. I check the log and i get the below error.....
    *Caused by: javax.ejb.AccessLocalException: [EJB:010160]Security Violation: User: 'xelsysadm' has insufficient permission to a*
    ccess EJB: type=<ejb>, application=Xellerate, module=xlDataObjectBeans.jar, ejb=tcLookupOperations, method=create, methodInte
    rface=LocalHome, signature={}.
    at weblogic.ejb.container.internal.MethodDescriptor.checkMethodPermissionsLocal(MethodDescriptor.java:573)
    at weblogic.ejb.container.internal.StatelessEJBLocalHome.create(StatelessEJBLocalHome.java:60)
    at com.thortech.xl.ejb.beans.tcLookupOperations_u50o5o_LocalHomeImpl.create(tcLookupOperations_u50o5o_LocalHomeImpl.j
    ava:70)
    Kindly help me to fix this.
    Thanks
    thilak

    http://bbs.archlinux.org/viewtopic.php?id=83076

  • WHILE DELETING A SALE ORDER GETTING A RUNTIME ERROR

    hi to all experts,
    whenever i try to delete a particular sale order im getting a runtime error
    stating that
    Short text
        Screen: Illegal message
    What happened?
        The current screen processing action was terminated since a situat
        occurred where the application could not continue.
        This is probably due to an error in the ABAP program or in the cur
        screen.
    Error analysis
        The program attempted to issue a " " message during "Exit Command" processing.
        This is an illegal operation.
        The program was terminated.
        Screen name.............. "SAPMV45A"
        Screen number............ 4001
    Trigger Location of Runtime Error
        Program                                 SAPMV45A
        Include                                 MV45AFZZ
        Row                                     370
        Module type                             (FORM)
        Module Name                             USEREXIT_SAVE_DOCUMENT
    SourceCde
                  message e001(zm) WITH text-335 ltab-kunnr text-334.
                else.
                  if ktab-jkunnr <> ltab-kunnr.
                    ktab-jkunnr = ltab-kunnr.
                    jobsitecode = ltab-kunnr.
                    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                    EXPORTING
                      input  = jobsitecode
                      IMPORTING
                      output = jobsitecode.
                    SELECT SINGLE * FROM kna1 WHERE kunnr = jobsitecode.
                    IF sy-subrc = 0.
                      ktab-jname1 = kna1-name1.
                      ktab-jstras = kna1-stras.
                    ENDIF.
                    chg_flg = 'X'.
                  endif.
                endif.
              else.
                message e001(zm) WITH text-336.
    * Validation for relationship between Sold-to Party and Ship-to Party
    *          if ktab-ckunnr+0(4) NE ktab-jkunnr+0(4).
    *            message e001(zm) WITH text-335 ktab-jkunnr text-337 ktab-ckunnr.
    *          endif.
              custcode1 = ktab-ckunnr.
              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                  input  = custcode1
                IMPORTING
                  output = custcode1.
              jobsitecode1 = ktab-jkunnr.
              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                  input  = jobsitecode1
                IMPORTING
                  output = jobsitecode1.
              SELECT SINGLE * FROM knvp
              WHERE kunnr = custcode1
                AND vkorg = vbak-vkorg
                AND vtweg = vbak-vtweg
                AND spart = vbak-spart
                AND parvw = 'WE'
    Error analysis
        The program attempted to issue a " " message during "Exit Command"
        This is an illegal operation.
        The program was terminated.
        Screen name.............. "SAPMV45A"
        Screen number............ 4001
    Trigger Location of Runtime Error
        Program                                 SAPMV45A
        Include                                 MV45AFZZ
        Row                                     370
        Module type                             (FORM)
        Module Name                             USEREXIT_SAVE_DOCUMENT

    Hi,
    Seems there is some problem with the user exit USEREXIT_SAVE_DOCUMENT..
    Put a breakpoint and see.
    Regards,
    Nagaraj

  • I just tried to install the 11.4 update (or whichever one is the most recent update as of 1/26/2014) and when it failed i tried to install manually and now whenever i try to use it, i get the following error: the application has failed to start because MS

    i just tried to install the 11.4 update (or whichever one is the most recent update as of 1/26/2014) and when it failed i tried to install manually and now whenever i try to use it, i get the following error: "The application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem." Right after i click ok i then get this error: "Itunes was not installed correctly. Please reinstall Itunes. Error 7 (Windows error 126)." I tried to uninstall Itunes and then reinstall the 11.03 version but that didnt work either. I want to know if i copy all of the music in my itunes folder to an external without consolidating can i still transfer all my itunes music from my current windows xp pc to a brand new one and have my current itunes library in my new pc? Basically i just want to know 3 things: What exactly does consolidating the itunes library do? Can i copy, paste, and transfer my itunes library to an external and from there to a new pc? Will i be able to transfer my itunes library without consolidating the files?

    I have found a temporary solution, allowing the previous version of iTunes (v. 11.1.3 (x64) in my case) to be re-installed.  It will allow you to re-establish use of iTunes until the Apple software engineers fix the most recent disasterous upgrade (v. 11.1.4).  Please see and follow the procedure in the following article:http://smallbusiness.chron.com/reverting-previous-version-itunes-32590.html   The previous version works beautifully.

Maybe you are looking for

  • ITunes will NOT sync with my iPhone 3G

    Hello I've performed a CLEAN Restore on my iPhone and I did not restore data. I've installed my 86 applications and used a few of them. I've decided that I want a "backup" incase i need to restore my iPhone and I don't want to lose my text messages.

  • System shutdown heavy cpu update, strange thing

    For kicks I reduced the FSB to 133mhz from 166mhz so my system runs at 2200+ (1.6ghz) instead of 2800 (2.088ghz) and now...the damm things working fine. I can get into any game, run rendering programs, compile large applications..in short..its workin

  • Finder Not Showing Thumbnail Images anymore

    Finder has stopped showing thumbnails of all images, in thumbnail view. Just the generic jpg thumbnail appears. Checked view settings, they are fine. Happens in every folder and on external drives.

  • OCIEnvNlsCreate() failed: OCI8+PHP+Linux+Oracle 11g

    Hi All, I've been struggling with this since 3 days. I'm getting the following error while using oci_connect: Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the

  • Print Problems / Colors are off - mixing colors / grainy/ banding

    Printer is set up with ICC profile and uses RGB mode.  Printed colors are extremely off - tons of white spots / lines / smudge marks in the ink & the colors seems to be mixing.  High res images are printing out extremely pixelated.  Using Ricoh sg311