XACT_E_NOENLIST: OCI_ERROR - 3113 and 3114

Hello,
our .NET web service fails with XACT_E_NOENLIST after rolling back a transaction. Scenario:
1. Call a web service function which throws an exception and aborts the transaction.
2. Any subsequent request fails with XACT_E_NOENLIST.
3. A 3rd request succeeds.
ORAMTS trace reports:
[09/02/2003-10:43:06:999][0000034c] kpntcheckerr() - OCI_ERROR - 3113.
[09/02/2003-10:43:06:999][0000034c] kpntsenp::DeEnlist() - error detaching from Oracle transaction.
[09/02/2003-10:43:06:999][0000034c] kpntcheckerr() - OCI_ERROR - 3114.
[09/02/2003-10:43:06:999][0000034c] kpntcheckerr() - O.
[09/02/2003-10:43:06:999][0000034c] kpntsenp::Enlist(0x099b05f8) - error starting Oracle transaction.
What are the OCI_ERRORs 3113 and 3114?
Thanks,
Armin

thnks for prompt reply Juan,
parameters for init<sid>.sap files for compression are as follows:
compress_cmd = "D:\usr\sap\PRD\SYS\exe\uc\NTAMD64\mkszip -c $ > $"
uncompress command
first $-character is replaced by the source file name
second $-character is replaced by the target file name
<source_file_name> = <target_file_name>.Z
for uncompress command the -c option must be set
no default
uncompress_cmd = "D:\usr\sap\PRD\SYS\exe\uc\NTAMD64\uncompress -c $ > $"
directory for compression [<path_name> | (<path_name_list>)]
default: value of the backup_root_dir parameter
compress_dir = D:\oracle\PRD\sapreorg
brarchive function [save | second_copy | double_save | save_delete
| second_copy_delete | double_save_delete | copy_save
| copy_delete_save | delete_saved | delete_copied]
default: save
compress dir is on D drive, where space is available.Shall i give you a whole parameters for this file?

Similar Messages

  • Whether -3113 and -3114 have sequence requirement or not when occurring?

    A proc code connects to Oracle database. When the link between application and database is down, the proc code will prompt the sql error code.
    I find that it will promt :"-3113 end-of-file on communication channel" firstly. And then, it will prompt "-3114 not connected to ORACLE" in every call to this proc code before the link recoveries.
    My question is that whether it will prompt -3113 error code at the first time and -3114 after the first time in every call before recovery or not?
    -3113 and -3114 have sequence requirement?
    Thanks a lot.

    >
    -3113 and -3114 have sequence requirement?No.
    While you often encounter both errors together or more specifically you first encounter the -3113 "Connection lost" and later the -3114 "No Connection" you have no guarantee that you will always encounter both. But why care? The solution is identical for both errors, reestablish the connection.

  • SQL Error 3113 and 3114

    Hi all
    I am getting Sql error 3113, system logs are below:
    i checked tablespaces are having enough space.
    can anybody tell what is this prob
    SQL error 3114 . Work processes in reconnect status       
    SQL error 3113 . Work processes in reconnect status       
    SQL error 3113 . Work processes in reconnect status       
    SQL error 3113 . Work processes in reconnect status       
    Operating system call recv failed (error no. 73 )         
    Perform rollback                                          
    Perform rollback                                          
    Program RM07DOCS manually terminated by user LINFIN       
    Call of function NiRead failed, RC: -006                  
    Work process has left reconnect status                    
    Work process has left reconnect status                    
    Terminal 00046 in status DISC                             
    Perform rollback                                          
    Delete session 003 after error 004                        
    Error calling the central lock handler                    
    Request (type DIA) cannot be processed                    
    > Unable to reach central lock handler                    
    Request (type DIA) cannot be processed                    
    Request (type DIA) cannot be processed                    
    Request (type DIA) cannot be processed                    
    Request (type DIA) cannot be processed                    
    Request (type DIA) cannot be processed

    Hello,
    Well, Is the above error is happening during the offline backup? What is the impact on the system because of the above error? Is any transaction fails?
    The above error could be because of the following
    1. Network issue
    2. wrong client version. If you are SAP Kernel which  is compatible with client 9i, then i suggest to install the latest version of the client. Ofcourse client version shouldn't be more than the version of the oracle server software.
    3. and there could be other possible reasons like some error in the alert log, resource issue.
    Regards,
    Madhukar

  • Oracle error 1002 and 3114

    my program is running smooth all the while, out of sudden it hit ora-1002 error subsequently hit ora-3114.
    as i know the 1002 is cursor out of sequence, and 3114 is oracle not connect... what is the possible to link up this 2 error together?

    this is part of my code...
    sqlstmt.len = sprintf((char *) sqlstmt.arr,
    "SELECT * from table");
    EXEC SQL PREPARE edccnt3 FROM :sqlstmt;
    EXEC SQL DECLARE edccnt_c3 CURSOR FOR edccnt3;
    EXEC SQL OPEN edccnt_c3;
    EXEC SQL FETCH edccnt_c3 into :max_txn_time_year, :last_txn_time_year;
    if (max_txn_time_year > last_txn_time_year) {
         sqlstmt.len = sprintf((char *) sqlstmt.arr,     
    "SELECT * from table1 where xxx);                    
    } else {
    sqlstmt.len = sprintf((char *) sqlstmt.arr,     
    "SELECT * from table1 where xxx); }
              EXEC SQL CLOSE edccnt_c3;
    sprintf(buf_stg, "SQLSTMT=[%s].", (char *) sqlstmt.arr);
    log_msg(1, buf_stg);
    EXEC SQL PREPARE edccnt2 FROM :sqlstmt;
    EXEC SQL DECLARE edccnt_c2 CURSOR FOR edccnt2;
    EXEC SQL OPEN edccnt_c2;
    EXEC SQL FETCH edccnt_c2 into :min_txn_time_stg;
    if ((sqlca.sqlcode == ORA_SUCCESS ) && (cnt == 0)) {
    last_txn_time_stg[18] = 0x00;
    else if (sqlca.sqlcode != ORA_SUCCESS ) {
    /*error happen here*/
    sprintf(buf_stg, "Failed with oracle error code %d", curr_eqptype, sqlca.sqlcode);
    log_msg(1, buf_stg);
    continue;
    }

  • Oracle 11.2 and VPD

    Dear all
    i have database on oracle 10.2 some table contain VPD ,
    i move this schema to oracle 11.2
    and define all context and polices , but when i run select agents these table i have this error ora-3113 and ora-3114
    why this happen? any explained for this issue
    Edited by: Hshihadah on Jan 27, 2011 1:08 AM

    $ oerr ora 3113
    03113, 00000, "end-of-file on communication channel"
    // *Cause: The connection between Client and Server process was broken.
    // *Action: There was a communication error that requires further investigation.
    //          First, check for network problems and review the SQL*Net setup.
    //          Also, look in the alert.log file for any errors. Finally, test to
    //          see whether the server process is dead and whether a trace file
    //          was generated at failure time.
    $This is possibly an Oracle bug. You need to investigate database instance alert log and possible trace files.

  • How to find out which sub query returns more than one row

    Hi all,
    Can any one give me clue ,how to find out which sub query returns more than one row in the following query .
    /* Formatted on 2011/05/17 19:22 (Formatter Plus v4.8.8) */
    SELECT a.*, ROWNUM AS rnm
      FROM (SELECT DISTINCT '1' AS "Page View", ou.org_unit_name AS "Org",
                            prxm.mbr_idntfr AS "Beneficiary ID",
                               md.last_name
                            || ', '
                            || md.first_name AS "Beneficiary Name",
                            pci.idntfr AS "Tracking No.",
                            TO_CHAR (TRUNC (req.pa_rqst_date),
                                     'MM/dd/yyyy'
                                    ) AS "Request Date",
                            sts.status_name AS "Status",
                            req.pa_rqst_sid AS "Request #",
                            prxm.mbr_sid AS "Mbr_sid",
                            TO_CHAR
                                  (TRUNC (req.pa_revision_date),
                                   'MM/dd/yyyy'
                                  ) AS "Last Updated",
                            TO_CHAR (psd.TO_DATE, 'MM/dd/yyyy') AS "TO_DATE",
                            prxpl.prvdr_lctn_iid AS "PRVDR_LCTN_IID",
                            pd.prvdr_sid AS "PRVDR_SID", 'Y' AS "State View",
                            DECODE
                               ((SELECT DISTINCT pd.national_prvdr_idntfr
                                            FROM pa_request_x_provider_location prxplo
                                           WHERE prxplo.pa_rqst_sid =
                                                                   req.pa_rqst_sid
                                             AND prxplo.oprtnl_flag = 'A'
                                             AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
                                0, (SELECT prxplo.prvdr_lctn_idntfr
                                      FROM pa_request_x_provider_location prxplo
                                     WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
                                       AND prxplo.oprtnl_flag = 'A'
                                       AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
                                NULL, (SELECT prxplo.prvdr_lctn_idntfr
                                         FROM pa_request_x_provider_location prxplo
                                        WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
                                          AND prxplo.oprtnl_flag = 'A'
                                          AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
                                (SELECT DISTINCT pd.national_prvdr_idntfr
                                            FROM pa_request_x_provider_location prxplo
                                           WHERE prxplo.pa_rqst_sid =
                                                                   req.pa_rqst_sid
                                             AND prxplo.oprtnl_flag = 'A'
                                             AND prxplo.pa_prvdr_type_lkpcd = 'RR')
                               ) AS "NPI/ID",
                            DECODE
                               ((SELECT pd.org_bsns_name
                                   FROM pa_request_x_provider_location prxplo
                                  WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
                                    AND prxplo.oprtnl_flag = 'A'
                                    AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
                                NULL, (SELECT    pd.last_name
                                              || ', '
                                              || pd.first_name
                                              || ' '
                                              || pd.middle_name
                                         FROM pa_request_x_provider_location prxplo
                                        WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
                                          AND prxplo.oprtnl_flag = 'A'
                                          AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
                                (SELECT pd.org_bsns_name
                                   FROM pa_request_x_provider_location prxplo
                                  WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
                                    AND prxplo.oprtnl_flag = 'A'
                                    AND prxplo.pa_prvdr_type_lkpcd = 'RR')
                               ) AS "Prvdr Name",
                            TO_CHAR (psd.from_date,
                                     'MM/dd/yyyy'
                                    ) AS "Srvc From Date",
                            TO_CHAR (req.validity_start_date,
                                     'MM/DD/YYYY'
                                    ) AS "Due Date",
                            (fn_get_busniess_days (TRUNC (req.validity_start_date))
                            ) AS "Days<br>Left",
                            req.pa_mode_type_lkpcd AS "Source",
                            TO_CHAR (TRUNC (wmdtl.rtng_date),
                                     'MM/dd/yyyy'
                                    ) AS "Assigned On",
                            NVL (wmdtl.assigned_to_user_name,
                                 'Not Assigned'
                                ) AS "Assigned To",
                            req.org_unit_sid AS "OrgUnitSid",
                            TO_CHAR
                                 (wmdtl.modified_date,
                                  'MM/dd/yyyy hh24:mi:ss'
                                 ) AS "WTRD_MODIFIED_DATE",
                            TO_CHAR (wmdtl.rtng_date,
                                     'MM/dd/yyyy'
                                    ) AS "WTRD_RTNG_DATE",
                            req.status_cid AS "PA_STATUS_CID",
                            TO_CHAR (req.modified_date,
                                     'MM/dd/yyyy'
                                    ) AS "PA_REQ_MODIFIED_DATE",
                            prs.state_pa_srvc_type_code
                                                     AS "STATE_PA_SRVC_TYPE_CODE",
                            wmdtl.wm_pa_task_rtng_dtl_sid
                                                        AS "WM_TASK_RTNG_DTL_SID",
                            wmdtl.assigned_to_user_acct_sid
                                              AS "WTRD_Assigned_to_user_acct_sid",
                            (fn_get_busniess_days (TRUNC (req.validity_start_date))
                            ) AS "Days<br>LeftSort",
                            wmdtl.assigned_to_org_unit_sid
                                                  AS "WTRD_Assigned_to_OrgUntSid",
                            DECODE
                               ((SELECT COUNT (*)
                                   FROM pa_request_status prs
                                  WHERE prs.pa_rqst_sid = req.pa_rqst_sid
                                    AND prs.status_cid = 5
                                    AND prs.oprtnl_flag = 'I'),
                                0, 'N',
                                'Y'
                               ) AS "SHOW_UTILIZATION"
                       FROM   pa_request req,
                             pa_certification_identifier pci,
                             status sts,
                             pa_request_x_member prxm,
                             wm_pa_task_routing_detail wmdtl,
                             pa_service_date psd,
                             org_unit ou,
                             pa_request_service prs,
                             pa_request_x_provider_location prxpl,
                             provider_location pl,
                             provider_detail pd,
                             provider p,
                             mbr_dmgrphc md
                      WHERE req.oprtnl_flag = 'A'
                        AND req.status_cid NOT IN
                                     (20, 30, 70, 25, 80, 96, 85, 5, 97, 98, 101)
                        AND req.org_unit_sid IN
                               (3057, 3142, 3058, 3143, 3059, 3144, 3060, 3145,
                                3061, 3146, 3062, 3147, 3063, 3148, 3064, 3149,
                                3065, 3150, 3066, 3151, 3067, 3152, 3068, 3153,
                                3069, 3154, 3070, 3155, 3071, 3156, 3072, 3157,
                                3073, 3158, 3074, 3159, 3075, 3160, 3076, 3161,
                                3077, 3162, 3078, 3163, 3079, 3164, 3080, 3165,
                                3081, 3166, 3082, 3167, 3083, 3168, 3084, 3169,
                                3085, 3170, 3086, 3171, 3087, 3172, 3088, 3173,
                                3089, 3174, 3090, 3175, 3091, 3176, 3092, 3177,
                                3093, 3178, 3094, 3179, 3095, 3180, 3096, 3181,
                                3097, 3182, 3098, 3183, 3099, 3184, 3100, 3185,
                                3101, 3186, 3102, 3187, 3103, 3003, 75000104,
                                75000108, 2006, 75000103, 75000102, 75000113,
                                75000111, 75000109, 2001, 2009, 75000105,
                                75000107, 2004, 2010, 2013, 2014, 2005, 2011,
                                75000112, 2002, 1001, 2012, 75000106, 2007,
                                75000101, 2003, 75000110, 2008, 3001, 3002, 3019,
                                3104, 3020, 3105, 3021, 3106, 3022, 3107, 3023,
                                3108, 3024, 3109, 3025, 3110, 3026, 3111, 3027,
                                3112, 3028, 3113, 3029, 3114, 3030, 3115, 3031,
                                3116, 3032, 3117, 3033, 3118, 3034, 3119, 3035,
                                3120, 3036, 3121, 3037, 3122, 3038, 3123, 3039,
                                3124, 3040, 3125, 3041, 3126, 3042, 3127, 3043,
                                3128, 3044, 3129, 3045, 3130, 3046, 3131, 3047,
                                3132, 3048, 3133, 3049, 3134, 3050, 3135, 3051,
                                3136, 3052, 3137, 3053, 3138, 3054, 3139, 3055,
                                3140, 3056, 3141)
                        AND req.pa_rqst_sid = prs.pa_rqst_sid
                        AND prs.oprtnl_flag = 'A'
                        AND prs.pa_rqst_srvc_sid = psd.pa_rqst_srvc_sid
                        AND psd.oprtnl_flag = 'A'
                        AND req.pa_rqst_sid = pci.pa_rqst_sid
                        AND pci.oprtnl_flag = 'A'
                        AND req.pa_rqst_sid = prxm.pa_rqst_sid
                        AND prxm.oprtnl_flag = 'A'
                        AND md.oprtnl_flag = 'A'
                        AND md.status_cid = 2
                        AND TRUNC (SYSDATE) BETWEEN md.from_date AND md.TO_DATE
                        AND prxm.mbr_sid = md.mbr_sid
                        AND ou.org_unit_sid = req.org_unit_sid
                        AND ou.oprtnl_flag = 'A'
                        AND req.pa_rqst_sid = prxpl.pa_rqst_sid
                        AND prxm.pa_rqst_sid = prxpl.pa_rqst_sid
                        AND pci.pa_rqst_sid = prxm.pa_rqst_sid
                        AND pci.pa_rqst_sid = wmdtl.subsystem_task_sid
                        AND pci.pa_rqst_sid = prxpl.pa_rqst_sid
                        AND prxpl.pa_prvdr_type_lkpcd = 'RR'
                        AND prxpl.oprtnl_flag = 'A'
                        AND req.status_cid = sts.status_cid
                        AND sts.status_type_cid = 3
                        AND sts.oprtnl_flag = 'A'
                        AND prxpl.prvdr_lctn_iid = pl.prvdr_lctn_iid
                        AND p.prvdr_sid = pd.prvdr_sid
                        AND p.prvdr_sid = pl.prvdr_sid
                        AND pd.oprtnl_flag = 'A'
                        AND pd.status_cid = 2
                        AND TRUNC (SYSDATE) BETWEEN pd.from_date AND pd.TO_DATE
                        AND wmdtl.subsystem_task_sid = req.pa_rqst_sid
                        AND wmdtl.subsystem_lkpcd = 'PA'
                        AND wmdtl.oprtnl_flag = 'A'
                        AND req.pa_rqst_date > (SYSDATE - 365)
                                       ORDER BY TO_DATE ("Request Date", 'MM/dd/yyyy hh24:mi:ss') DESC,
                            "Beneficiary Name" ASC) a
    WHERE ROWNUM < 102;regards,
    P Prakash
    Edited by: BluShadow on 17-May-2011 15:01
    added {noformat}{noformat} tags around the code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    833560 wrote:
    Can any one give me clue ,how to find out which sub query returns more than one row in the following query .This is why smaller, simpler queries are easier to work with than huge ones - when something like this goes wrong smaller queries are much eaiser to debug. Unfortunately using smaller, easier-to-work with queries is not always an option
    Ganesh is right - you will have to dissect the big query bit by bit until you find the offending subquery. If there is another way I would like to find out about it too.
    The easiest way to do this is probably to use block comments to isolate parts of the query bit by bit until you find the offending part. If you carefully examine the subqueries you might be able to figure out which one is returning multiple rows without commenting everything
    Good luck!

  • Ora-07445 reported in the alert log file

    Hi all,
    We are using the following platform:-
    OS: Solaris Operating System (SPARC 32-bit)
    Oracle Server - Enterprise Edition / Product Version: 9.2.0.5.0
    We encountered the following problem:-
    There is Ora-07445 reported in the alert log file.
    "ORA-07445: exception encountered: core dump [kgghash()+308] [SIGSEGV] [Address not mapped to object] [0x3222
    000] [] []reported in the database."
    These errors are signaled in more than 3 independent, unexplained, occurrences every day.
    When this error occurred while User was accessing the application system, by right the case will be shown on the system, but they were no case found.
    alert log are as below:-
    Fri Jul 27 09:12:30 2007
    Errors in file /disc3/oracle9205/RFDB/udump/rfdb_ora_27371.trc:
    ORA-07445: exception encountered: core dump [kgghash()+340] [SIGSEGV] [Address not mapped to object] [0x3184000] [] []
    Fri Jul 27 09:22:10 2007
    Thread 1 advanced to log sequence 10730
    Current log# 2 seq# 10730 mem# 0: /disc3/oracle9205/RFDB/RDO/logRFDB2a.rdo
    Current log# 2 seq# 10730 mem# 1: /disc3/oracle9205/RFDB/RDO/logRFDB2b.rdo
    Fri Jul 27 09:29:26 2007
    Errors in file /disc3/oracle9205/RFDB/udump/rfdb_ora_27372.trc:
    ORA-07445: exception encountered: core dump [kgghash()+296] [SIGSEGV] [Address not mapped to object] [0x3182000] [] []
    The applications have encountered ora-3113 after a short period of time followed by ora-3114.
    application log:-
    RF0120-1 2007-Jul-27 09:46:57] Load m[RF0120-1 2007-Jul-27 09:29:30] SQLCODE: -3113
    [RF0120-1 2007-Jul-27 09:29:30] Error Code -4105 returning from get score pan no.
    [RF0120-1 2007-Jul-27 09:29:30] Message type :120
    [RF0120-1 2007-Jul-27 09:29:30] Primary Account Number(PAN) DE0
    02 :5440640155262702
    [RF0120-1 2007-Jul-27 09:29:30] Processing code DE003 :003000
    [RF0120-1 2007-Jul-27 09:29:30] Transaction amount DE004 :000000000001
    [RF0120-1 2007-Jul-27 09:29:30] Settlement amount DE005 :000000000000
    [RF0120-1 2007-Jul-27 09:29:30] Transmission Date and time
    DE007 :0727092717
    [RF0120-1 2007-Jul-27 09:29:30] Settlement conversion rate DE009 :60263158
    [RF0120-1 2007-Jul-27 09:29:30] System trace audit no. DE011 :754710
    [RF0120-1 2007-Jul-27 09:29:30] Local transaction time DE012 :092717
    [RF0120-1 2007-Jul-27 09:29:30] Local transaction date DE013 :0727
    [RF0120-1 2007-Jul-27 09:29:30] Expiration date D
    E014 :0712
    [RF0120-1 2007-Jul-27 09:29:30] Settlement date DE015 :0727
    [RF0120-1 2007-Jul-27 09:29:30] Merchant type DE018 :5311
    [RF0120-1 2007-Jul-27 09:29:30] Point-of-service(POS) entry code DE022 :051
    [RF0120-1 2007-Jul-27 09:29:30] Acquiring inst. ID code DE032 :001912
    [RF0120-1 2007-Jul-27 09:29:30] Forwarding Inst. ID code DE033 :001912
    [RF0120-1 2007-Jul-27 09:29:30] Retrieval ref. no.
    DE037 :754710356390
    [RF0120-1 2007-Jul-27 09:29:30] Autholization ID response DE038 :356390
    [RF0120-1 2007-Jul-27 09:29:30] Response code DE039 :00
    [RF0120-1 2007-Jul-27 09:29:30] Card acceptor terminal ID DE041 :19306002
    [RF0120-1 2007-Jul-27 09:29:30] Card acceptor ID code DE042 :000001106
    020132
    [RF0120-1 2007-Jul-27 09:29:30] Card acceptor Name/Location
    What could have caused the above mentioned errors i.e Ora-07445 ; ora-3113 / ora-3114? How to resolve the problem.
    Please help .
    Thanks.

    i am also facing the same some time in ora 9.2.0.6 on Sun OS 9 SPARC 64-bits
    Errors in file /oracle/oracle9i/admin/FINPROD/udump/finprod_ora_6076.trc:
    ORA-07445: exception encountered: core dump [0000000100FDE088] [SIGSEGV] [Address not mapped to object] [0x00000013A] [] []
    Thu Aug 30 08:52:39 2007
    Errors in file /oracle/oracle9i/admin/FINPROD/udump/finprod_ora_6078.trc:
    ORA-07445: exception encountered: core dump [0000000100FDE088] [SIGSEGV] [Address not mapped to object] [0x00000013A] [] []
    Thu Aug 30 09:41:49 2007

  • Found dead shared server in aler file

    hi
    some times i got these entries in my alert log file.
    found dead shared server 'S001', pid = (12, 2)
    Tue Apr 01 15:47:28 2008
    found dead shared server 'S001', pid = (12, 3)
    Tue Apr 01 15:51:31 2008
    found dead shared server 'S001', pid = (12, 4)
    Tue Apr 01 15:55:37 2008
    found dead shared server 'S001', pid = (12, 5)
    Tue Apr 01 15:57:34 2008
    found dead shared server 'S001', pid = (12, 6)
    Tue Apr 01 16:49:41 2008
    found dead shared server 'S000', pid = (11, 3)
    Tue Apr 01 18:00:21 2008
    Private_strands 7 at log switchi want to know is it harmful for oracle because its on my oracle live server.
    so can any body tell me what are the negative effects of this error means is it cause
    some serious effects.
    thanks

    What is your database version (complete) and O/S? Have the users been facing -ORA-3113 and ORA-3114 errors?
    Oracle Metalink Document: Dead Shared Servers And Connections Fail with ORA-3113 Calling External Procedures: Doc ID: Note:333026.1
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:12268887976412175026::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,333026.1,1,1,1,helvetica
    Adith

  • Server network in a Netweaver environment

    Hello there,
    I have a question regarding building a server network in a Netweaver landscape.
    First of all, here's our situation - Our SAP systems are hosted externally and we've had a few ORA-3113 and ORA-3114 errors recently (for those not using Oracle - this is an error that occurs when the application disconnects momentarily from Oracle. It usually happens during network problems). In investigating this problem, I discovered that our hosting partners have not build a server network and all server traffic shares the client network. The problem was caused by the daily backup being incorrectly configured so that it also ran over the network instead of over fibre to the tape library.
    I did some further reading into the above problem and found the 'Adaptive Infrastructure for mySAP' book from SAP Press states that server networks are generally no longer necessary because a Gbit LAN backbone can provide enough bandwidth to handle up to 4000 users (we have only 600). However, the book does not mention how much traffic can be generated in a Netweaver environment with R/3, BW, APO, SolMan, etc... components all talking to each other. We currently only run ECC5 (with 3 app servers) and SolMan, so our server traffic isn't great. However, we plan to add BW and APO soon and I fear that the lack of server network could cause us problems.
    On to my main question - can anyone provide me with real-world examples of how your landscapes are built and whether or not you use a server network to isolate your server traffic. What are your thoughts on the subject?
    Kind regards,
    Arwel Owen.
    BASIS Manager,
    Princes Ltd.,
    Liverpool, UK.

    Hi,
    Since each KMS key can be installed on up to six KMS hosts. You can configure another KMS host in you test environment.
    Not quite sure about the KMS host upgrade you referred. If you don’t want to update the OS, some patches will be required.
    For your information:
    Understanding KMS
    http://technet.microsoft.com/library/ff793434.aspx
    An update is available for Windows 7 and Windows Server 2008 R2 KMS hosts to support Windows 8 and Windows Server 2012
    http://support.microsoft.com/kb/2691586
    Update adds support for Windows 8.1 and Windows Server 2012 R2 clients to Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012 KMS hosts
    http://support.microsoft.com/kb/2885698
    Hope this helps.

  • PL/SQL Procedure does not return at end of routine

    Hi All,
    I am in the midst of migrating data for a client. To migrate the data I have written a PL/SQL Block which based on the logic has several loops in the same. As I got the new application DB design I introduced more code to capture the data for the new tables.
    The problem now is that after having finalised all the code when I run the script it does not come out and after some time I get ORA 3113 and Host def undefined error.
    The data is huge . The main table contains about 17000 records but other child tables can reach up 400000 records.
    I am running this in my Dev database.

    Hi All,
    I am in the midst of migrating data for a client. To
    migrate the data I have written a PL/SQL Block which
    based on the logic has several loops in the same. As
    I got the new application DB design I introduced more
    code to capture the data for the new tables. Use less PL/SQL more SQL. Or at least BULK Binds.
    >
    The problem now is that after having finalised all
    the code when I run the script it does not come out
    and after some time I get ORA 3113 and Host def
    undefined error. Do you get the same error with less data, like 2 rows only? Maybe you just hit a network timeout. Ora-3113 could be everything really.
    >
    The data is huge . The main table contains about
    17000 records but other child tables can reach up
    400000 records. Not huge. More than a school/homework project. Big would be like 1 Mill+, huge more like 50 Mill.
    >
    I am running this in my Dev database.Message was edited by:
    Sven W.

  • Page error causes server to crash

    These are the symptoms: we start loading a page and Oracle launches a process that hogs as much CPU as it can, slowing everything on the server to a near standstill. If we don't catch it within about 5 minutes, we cannot even log on to kill the process. Within a short space of time the OS is paging like crazy, and within about 10 minutes the 4GB of physical memory and 8GB of swap is all used up. The page never loads, and a few minutes after starting to load the page we get a 404 error. What happens after the available memory falls to zero is unpredictable but never good.
    Our APEX/Oracle environment is as follows:
    Product Build: 3.0.0.00.20
    Language Preference: en-gb
    NLS_CHARACTERSET: WE8ISO8859P1
    DAD CHARACTERSET: ISO-8859-1
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    OS: Red Hat Linux ES4 64bit
    First, I have to hold my hands up and say that it's always caused by an error that we have made, but often these are relatively trivial errors on the page that APEX will either gloss over or handle correctly 99 times out of a hundred (and certainly nothing obvious like an infinite loop). These kinds of problems also occur very rarely (thankfully), but what gets me is why the result is quite so catastrophic. I should also say that we're talking about a development environment containing very little data - the example we tested is a page with 3 report regions each based on fewer than 100 rows of data, comprising around 20 numeric columns, some dates, flags and audit information.
    What I'm keen to understand is whether this is a consequence of Oracle misconfiguration, or if there is anything else (other than never making any coding errors) that we can do to stop this from happening.
    These are examples of the kinds of errors that have that lead to the above symptoms (although not necessarily to the output listed below):
    1. Deleting a page item that a PL/SQL function within a page region references, without removing that reference. Mostly APEX will ignore such errors, treating the item value as null, but the difference seems to be where the item had a value in session state, and we did nothing to clear it after deleting the page item, although I suspect that this isn't the whole story, as this scenario doesn't predictably lead to the problem we're occasionally seeing.
    2. Returning SQL from a PL/SQL function that did not correspond either with the report template in use (for example dummy SQL (within an error block) that doesn't match the report template we're using (for example a column needed for conditional row formatting is missing)), or with the report definition (numbers and attributes of columns displayed - sorry I can't be very specific on this score, but in these cases deleting and recreating the report region with the same source has cured it).
    3. Other errors in the region PL/SQL source, such as referring to the wrong package when declaring a type, causing a type mismatch error.
    The latest page we had this problem with was returning SQL from a packaged PL/SQL function, in which creating a SQL block had thrown a 'character string buffer too small' error, and returned a dummy SQL string that did not contain a header column referenced in the report template, although some supposition has gone into that, as the focus was more on fixing the problem than pinning down its exact cause.
    The Apache logs don't tell us a great deal, other than that the server is in a great deal of trouble. There is nothing to indicate the start of the problem, but after a while we gets lots of entries like this:
    [<date/time>] [warn] [client <ip>] mod_plsql: Long running URL [pls/htmldb/wwv_flow.accept] timed out
    Later we get lots of:
    [<date/time>] [error] [client <ip>] [ecid: 1248707261:<ip>:24047:0:1,0] mod_plsql: /pls/htmldb/f HTTP-503 ORA-3113
    And a few:
    [<date/time>] [warn] [client <ip>] [ecid: 1248707264:<ip>:24081:0:1,0] mod_plsql: DMS Logging: Unable to read data from <Apache path>/Apache/modplsql/cache/modplsql.lck
    Plus a smattering of:
    [<date/time>] [error] [client <ip>] [ecid: 1248707384:<ip>:25588:0:6710,0] mod_plsql: Database (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<server name>)(PORT=1530)))(CONNECT_DATA=(SERVICE_NAME=<service>))) Failed (time=10190ms rc=-1 ORA-1013)
    [<date/time>] [error] [client 10.100.36.48] [ecid: 1248707384:<ip>:25588:0:6710,0] mod_plsql: Failed to reset database connection (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<server name>)(PORT=1530)))(CONNECT_DATA=(SERVICE_NAME=<service>))) rc=-1 ORA-1013 ORA-01013: user requested cancel of current operation\n
    [<date/time>] [warn] [client <ip>] [ecid: 1248707384:<ip>:25588:0:6710,0] mod_plsql: Discarded pooled connection (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<server name>)(PORT=1530)))(CONNECT_DATA=(SERVICE_NAME=<service>))) because of ping failure
    On the database side, it's difficult for us to figure out what's happening, but it looks like APEX is trying to run an error-handling routine, which makes sense, but it does appear to be locked into a try-fail-retry cycle. We loaded an APEX page that had previously exhibited those symptoms with the DBAs running a trace, and the highlights of the TKPROF output were:
    This SQL: SELECT MESSAGE_TEXT, DECODE(MESSAGE_LANGUAGE,LOWER(NVL(:B3 ,:B2 )),1,0)
    MESSAGE_ORDER
    FROM
    WWV_FLOW_MESSAGES$ WHERE SECURITY_GROUP_ID = 10 AND (MESSAGE_LANGUAGE =
    LOWER(NVL(:B3 ,:B2 )) OR MESSAGE_LANGUAGE = LOWER(SUBSTR(NVL(:B3 ,:B2 ),1,2)
    )) AND NAME = UPPER(:B1 ) ORDER BY 2 DESC
    was run approx 45,000 times, returning no rows.
    This SQL: SELECT MESSAGE_TEXT, DECODE(MESSAGE_LANGUAGE,LOWER(NVL(:B5 ,:B4 )),1,0)
    MESSAGE_ORDER
    FROM
    WWV_FLOW_MESSAGES$ WHERE FLOW_ID = NVL(:B7 , :B6 ) AND (MESSAGE_LANGUAGE =
    LOWER(NVL(:B5 ,:B4 )) OR MESSAGE_LANGUAGE = LOWER(SUBSTR(NVL(:B5 ,:B4 ),1,2)
    )) AND SECURITY_GROUP_ID = DECODE(NVL(:B2 ,0),0,:B3 ,:B2 ) AND NAME =
    UPPER(:B1 ) ORDER BY 2 DESC
    was also run approx 45,000 times, returning no rows.
    This SQL: SELECT M.MESSAGE_TEXT
    FROM
    WWV_FLOW_MESSAGES$ M, WWV_FLOWS F WHERE M.NAME = UPPER(:B2 ) AND
    M.MESSAGE_LANGUAGE = F.FLOW_LANGUAGE AND F.ID = :B1 AND M.SECURITY_GROUP_ID
    = 10
    was also run approx 45,000 times, returning no rows.
    This SQL: SELECT DECODE(MESSAGE_LANGUAGE,'en-us',0,1) WEIGHT, MESSAGE_TEXT
    FROM
    WWV_FLOW_MESSAGES$ WHERE NAME = UPPER(:B1 ) AND SECURITY_GROUP_ID = 10 ORDER
    BY 1 ASC
    was also run approx 45,000 times, returning 1 row per execution.
    This SQL: SELECT PLUG_SOURCE
    FROM
    WWV_FLOW_PAGE_PLUGS WHERE ID = :B1
    was run nearly 13,000 times, returning 1 row per execution.
    This SQL: SELECT USER_ID
    FROM
    SYS.ALL_USERS WHERE USERNAME = UPPER(:B1 )
    was run nearly 6,500 times, returning no rows.
    This SQL: SELECT MESSAGE
    FROM
    WWV_FLOW_DEBUG WHERE ID = :B1 ORDER BY SEQ
    was also run nearly 6,500 times, returning no rows.
    And so it goes on. Later we have:
    SELECT ID, CURRENT_TAB, CURRENT_TAB_FONT_ATTR, NON_CURRENT_TAB,
    NON_CURRENT_TAB_FONT_ATTR, CURRENT_IMAGE_TAB, NON_CURRENT_IMAGE_TAB,
    TOP_CURRENT_TAB, TOP_CURRENT_TAB_FONT_ATTR, TOP_NON_CURRENT_TAB,
    TOP_NON_CURRENT_TAB_FONT_ATTR, HEADER_TEMPLATE, BOX, FOOTER_TEMPLATE,
    NAVIGATION_BAR, NAVBAR_ENTRY, SUCCESS_MESSAGE, BODY_TITLE, MESSAGE,
    TABLE_BGCOLOR, TABLE_CATTRIBUTES, REGION_TABLE_CATTRIBUTES, HEADING_BGCOLOR,
    FONT_SIZE, FONT_FACE, APP_TAB_BEFORE_TABS, APP_TAB_CURRENT_TAB,
    APP_TAB_NON_CURRENT_TAB, APP_TAB_AFTER_TABS, NVL(DEFAULT_BUTTON_POSITION,
    'TOP') DEFAULT_BUTTON_POSITION
    FROM
    WWV_FLOW_TEMPLATES WHERE ID = :B1
    executing nearly 6,500 times and returning 1 row per execution.
    and the same for this SQL: SELECT ERROR_PAGE_TEMPLATE
    FROM
    WWV_FLOW_TEMPLATES WHERE ID = NVL(:B3 ,NVL(:B2 ,:B1 ))
    Later we have some very obscure-looking data dictionary lookups.
    I'd be interested to know if anyone has any thoughts on what might be occurring, or what other information I should obtain to provide clues as to what is going wrong.
    Many thanks for your help.
    Regards,
    John.

    PLEASE READ THE FAQ FOR THIS FORUM.. Posting to threads this old is USELESS!! The participants are NOT going to be alerted to your question..
    Next time, post a NEW question, with a link to the old thread, ok??
    Also include some relevant information like:
    Database version (10g, 11g, XE, Standard, Enterprise)
    Web Server?
    Browser Involved?
    Heck, even posting sample code to oracle's hosted site would be helpful..
    Thank you,
    Tony Miller
    Raleigh, NC

  • Terminated by signal 11 error for reports

    Hi,
    I observed in internal concurrent manager log is sh: line 71: 3501 Segmentation fault
    and like showing the below
    ========================================================================
    Starting PROD_0826@PROD Internal Concurrent Manager -- shell process ID 1081
    logfile=/oracle/apps/PROD/prodcomn/admin/log/PROD_oraapps01/PROD_0826.mgr
    PRINTER=noprint
    mailto=applprod
    restart=N
    diag=N
    sleep=60 (default)
    pmon=20 (default)
    quesiz=1 (default)
    sh: line 71: 1086 Segmentation fault FNDLIBR FND CPMGR "FNDCPMBR sysmgr=\"\" $maxreq $sleep $pmon $quesiz $diag logfile=$logfile $target" <<STOP
    $sysmanager
    STOP
    The PROD_0826@PROD internal concurrent manager has terminated with status 139 - giving up.
    ========================================================================
    Starting PROD_0826@PROD Internal Concurrent Manager -- shell process ID 5471
    logfile=/oracle/apps/PROD/prodcomn/admin/log/PROD_oraapps01/PROD_0826.mgr
    PRINTER=noprint
    mailto=applprod
    restart=N
    diag=N
    sleep=60 (default)
    pmon=20 (default)
    quesiz=1 (default)
    Application Object Library: Concurrent Processing version 11.5
    Process monitor session ended : 26-AUG-2011 10:14:41
    Process monitor session started : 26-AUG-2011 10:16:41
    Found running request 1620562 attached to dead manager process.
    Setting request status to completed.
    Found dead process: spid=(6657), cpid=(121680), ORA pid=(59), manager=(0/0)
    Starting STANDARD Concurrent Manager : 26-AUG-2011 10:16:45
    Process monitor session ended : 26-AUG-2011 10:16:45
    Process monitor session started : 26-AUG-2011 10:18:45
    Process monitor session ended : 26-AUG-2011 10:18:47
    than manager are bring down like CM status shows
    than we checking the adcmctl.sh status apps/apps
    CM status shows ICM status could not be determined.
    try to open request log than we are getting error like
    'Error connecting to database PROD: ORA-3113' and also all requests completed with errors.
    than stop all services here CM failed to stop
    /oracle/apps/PROD/prodcomn/admin/scripts/PROD_oraapps01/adcmctl.sh: line 244: 9681 Segmentation fault $FND_TOP/bin/CONCSUB "$unpw" SYSADMIN $WAIT_PARAM 'System Administrator' SYSADMIN CONCURRENT FND SHUTDOWN
    [Service Control Execution Report]
    The report format is:
    <Service> <Script> <Status>
    Oracle Apache Server PROD_oraapps01 adapcctl.sh Stopped
    OracleTNSListener80APPS_PROD_oraapps01 adalnctl.sh Stopped
    OracleConcMgrPROD_oraapps01 adcmctl.sh Failed
    OracleFormsServer-Forms60PROD_oraapps01 adfrmctl.sh Stopped
    OracleReportServer-Rep60_PROD adrepctl.sh Stopped
    Oracle Metrics Client PROD_oraapps01 adfmcctl.sh Stopped
    Oracle Metrics Server PROD_oraapps01 adfmsctl.sh Stopped
    Oracle Fulfillment Server PROD_oraapps01 jtffmctl.sh Stopped
    Oracle Discoverer services PROD_oraapps01 addisctl.sh Stopped
    after this again stop the CM by adcmctl stop apps/apps
    than it stopped after that start the all services than works fine,after starting services all requests completed with terminated by signal 11 while CM down ,it happens everyday.
    everyday midnight we take cold backup by scheduling cronjobs
    and also after cloning the ICM did not show the sigmentation fault and in TEST some requests completed with terminated by signal 11
    please give me solution for this issue.
    Thanks,
    mahi

    Mahi,
    This appears to be a serious database issue. Unfortunately, there is no simple magical fix I guess. Going through Oracle Support, instead of applying some patch, is the better route, i believe.
    To me, it appears more of bug# 3804515. Please check the following:
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=3804515.8
    You may want to review the following patches too:
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 6945111]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 6661430]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 6666626]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 6682463]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 6729613]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 6931682]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 6661435]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 7303352]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 7303650]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 7350779]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 7466966]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 7555753]
    "KWQICACLCUR" SHOULD NOT WRITE TRACE FILES FOR ORA-1013 NOR ORA-3113          [Patch 7611844]
    Thanks,
    Raj Mareddi

  • OCI - Error handling

    descrption
    Hi I am developing the reconnection logic in my application code for cases where the process gets disconnected due to the restart of the database.
    Now I saw that the OCI returns the follwing error codes in errbuf
    when I use
    (void) OCIErrorGet( (dvoid *)errhp, (ub4) 1, (text *) NULL, &errcode, errbuf, (ub4) sizeof(errbuf), OCI_HTYPE_ERROR);
    ORA-01012 not logged on
    ORA-01034 ORACLE not available
    ORA-03114 not connected to ORACLE
    The errcode returns just the numbers 1012 , 1034 and 3114 respectively.
    queries
    First of all I cannot find any #defines for these error codes. I looked up in the include dir of OCI and a lot of places on the net.
    Can somebody help me with this?
    Second how can i find a range of errors that are connection related ?
    Is there a range defined for the connection related errors or I need to search the whole list for the same.
    A timely help would be greatly appreciated.

    If your requirement is to reconnect when any DB exception occures follow the steps
    1) Clean up all the handles
    2) Reconnect again with freed handles.
    This way you dont have to mention the Error Codes
    Regards
    Prajith

  • To get sum of balance_due

    hi all
    i have this query with me
    SELECT   rac.customer_number, rac.customer_name,
                       su.LOCATION contract, SUBSTR (sa.NAME, 1, 2) bu,
                       ra.purchase_order_date sub_date,
                       ra.invoice_currency_code ccy,RA.PURCHASE_ORDER,ra.trx_number,
                       TRUNC (rad.gl_date) gl_date,
                       SUM
                          (npar_get_invoice_balance (ra.customer_trx_id,
                                                     '08-Sep-2011'
                          ) balance_due
                  FROM ra_customer_trx_all ra,
                       ra_site_uses_all su,
                       ra_cust_trx_line_gl_dist_all rad,
                       ra_customers rac,
                       ra_cust_trx_types_all ty,
                       ra_salesreps_all sa
                 WHERE TRUNC (rad.gl_date) <= '08-Sep-2011'
                   AND ra.bill_to_customer_id = rac.customer_id
                   AND su.site_use_code = 'BILL_TO'
                   AND su.site_use_id = ra.bill_to_site_use_id
                   AND ty.cust_trx_type_id = ra.cust_trx_type_id
                   AND ty.TYPE = 'INV'
                   AND ty.org_id <> -3113
                   AND rad.customer_trx_id = ra.customer_trx_id
                   AND rad.account_class = 'REC'
                   AND rad.latest_rec_flag = 'Y'
                   AND npar_get_invoice_balance (ra.customer_trx_id,
                                                 '08-Sep-2011') <> 0
                   AND sa.salesrep_id(+) = ra.primary_salesrep_id
                   AND sa.org_id(+) <> -3113
                      and ra.purchase_order='2011-0526'
              GROUP BY rac.customer_number,
                       rac.customer_name,
                       su.LOCATION,
                            ra.invoice_currency_code ,
                     ra.trx_number,
                           RA.PURCHASE_ORDER,
                       rad.gl_date,
                       ra.purchase_order_date,
                       ra.invoice_currency_code,
                       SUBSTR (sa.NAME, 1, 2)
    with the following output
    CUSTOMER_NUMBER     CUSTOMER_NAME     CONTRACT     BU     SUB_DATE     CCY     PURCHASE_ORDER     TRX_NUMBER     GL_DATE     BALANCE_DUE
    1002     Joint Operations (KGOC / SAC)     JO/SA88/WO06     12     05/29/2011     KWD     2011-0526     2011-0526-M     05/23/2011     4,773.60
    1002     Joint Operations (KGOC / SAC)     JO/SA88/WO06     12     05/29/2011     KWD     2011-0526     2011-0526-S     05/23/2011     3,559.78
    i require the following output
    CUSTOMER_NUMBER     CUSTOMER_NAME     CONTRACT     BU     SUB_DATE     CCY     PURCHASE_ORDER     TRX_NUMBER     GL_DATE     BALANCE_DUE
    1002     Joint Operations (KGOC / SAC)     JO/SA88/WO06     12     05/29/2011     KWD     2011-0526     2011-0526-M     05/23/2011     8333.38
    1002     Joint Operations (KGOC / SAC)     JO/SA88/WO06     12     05/29/2011     KWD     2011-0526     2011-0526-S     05/23/2011     8333.38
    ie balance due is sum of the balances  of trx numbers 2011-0526-M and 2011-0526-S(4733.60+ 3559.78)inorder to get this ouput i must avoid trx number from the group clause then only i get the sum of 8333.38,but i need trx number too in my query,
    can this be achieved
    kindly help
    thanking in advance

    hi
    thank you very much for your timely help
    i had to remove the extra sum function from your query as i was getting"window function not allowed here"
    but the "partition by" really helped me
    SELECT   rac.customer_number, rac.customer_name,
                       su.LOCATION contract, SUBSTR (sa.NAME, 1, 2) bu,
                       ra.purchase_order_date sub_date,
                       ra.invoice_currency_code ccy,RA.PURCHASE_ORDER,ra.trx_number,
                       TRUNC (rad.gl_date) gl_date,
                           SUM(npar_get_invoice_balance(
                                                        ra.customer_trx_id,
                                                        '08-Sep-2011'
                           OVER(
                                PARTITION BY rac.customer_number,
                                             rac.customer_name,
                                             su.LOCATION,
                                             ra.invoice_currency_code ,
                                             RA.PURCHASE_ORDER,
                                             TRUNC (rad.gl_date),
                                             ra.purchase_order_date,
                                             ra.invoice_currency_code,
                                             SUBSTR (sa.NAME, 1, 2)
                          ) balance_due_tot, SUM
                          (npar_get_invoice_balance (ra.customer_trx_id,
                                                     '08-Sep-2011'
                          ) balance_due
                  FROM ra_customer_trx_all ra,
                       ra_site_uses_all su,
                       ra_cust_trx_line_gl_dist_all rad,
                       ra_customers rac,
                       ra_cust_trx_types_all ty,
                       ra_salesreps_all sa
                 WHERE TRUNC (rad.gl_date) <= '08-Sep-2011'
                   AND ra.bill_to_customer_id = rac.customer_id
                   AND su.site_use_code = 'BILL_TO'
                   AND su.site_use_id = ra.bill_to_site_use_id
                   AND ty.cust_trx_type_id = ra.cust_trx_type_id
                   AND ty.TYPE = 'INV'
                   AND ty.org_id <> -3113
                   AND rad.customer_trx_id = ra.customer_trx_id
                   AND rad.account_class = 'REC'
                   AND rad.latest_rec_flag = 'Y'
                   AND npar_get_invoice_balance (ra.customer_trx_id,
                                                 '08-Sep-2011') <> 0
                   AND sa.salesrep_id(+) = ra.primary_salesrep_id
                   AND sa.org_id(+) <> -3113
                      and ra.purchase_order='2011-0526'
              GROUP BY rac.customer_number,
                       rac.customer_name,
                       su.LOCATION,
                       ra.invoice_currency_code ,
                       ra.trx_number,
                       RA.PURCHASE_ORDER,
                       rad.gl_date,
                            ra.customer_trx_id,
                       ra.purchase_order_date,
                       ra.invoice_currency_code,
                       SUBSTR (sa.NAME, 1, 2)
                           thanks a lot
    Edited by: makdutakdu on Sep 26, 2011 8:03 AM

  • How do I check if ociexecute("insert into.."); went ok or not?

    Hi,
    I'm using ociexecute() to run an Insert Into statement to put a new record into a given table.
    I'd like to know how can I test if the insert into was successfully done, or something went wrong, like constraints violation, table not found... (I'm building a xmlrpc server api for the user to send me table_name, table_fields and table_values).
    An example would be appreciated.
    Thanks in advance.
    Fernando Libio.

    Execute the SQL statement using the oci_execute() method.
    $r = oci_execute($stmt);
    If an error occurs, retrieve the error using the oci_error() function and output an error message.
    if (!$r) {
    $e = oci_error($stmt);
    echo htmlentities($e['message']);
    }

Maybe you are looking for