Thursday, September 8, 2022

R12 Error to access Help and Diagnostics

 If you are not assigned to the 'Utilities:Diagnostics' Profile Option at any level , you can not access Diagnostics . For security reasons , no value will be assigned to this profile. You can assign "Yes" value to 'Utilities:Diagnostics' Profile at least at user level if any individual alone want to access the details.

Wednesday, July 27, 2022

R12 Query to find Child concurrent program details

 SELECT

fcr.request_id "Child Request ID",

PARENT_REQUEST_ID "Parent Request ID",

fcptl.user_concurrent_program_name"Parent Program Name",

fcr.phase_code,

fcr.status_code,

to_char(fcr.actual_start_date,'DD-MON-YYYY HH24:MI:SS') "Start Time",

round((fcr.actual_completion_date - fcr.actual_start_date)*1440,2) "Elapsed Mins"

FROM (SELECT

fcr1.request_id

FROM apps.fnd_concurrent_requests fcr1

WHERE 1=1

START WITH fcr1.request_id = <request_id>

CONNECT BY PRIOR fcr1.request_id = fcr1.parent_request_id) x,

apps.fnd_concurrent_requests fcr,

apps.fnd_concurrent_programs fcp,

apps.fnd_concurrent_programs_tl fcptl

WHERE fcr.request_id = x.request_id

AND fcr.concurrent_program_id = fcp.concurrent_program_id

AND fcr.program_application_id = fcp.application_id

AND fcp.application_id = fcptl.application_id

AND fcp.concurrent_program_id = fcptl.concurrent_program_id

AND fcptl.language = 'US'

ORDER BY 1;

Sunday, June 26, 2022

Oracle External Table Example

 


CREATE TABLE "XX"."XX_LG_DET_EXT_TAB"

(  

  column_name                 VARCHAR2(240)  

, lg_number                   VARCHAR2(240)  

, contractor_name             VARCHAR2(240)  

, lg_type                     VARCHAR2(240)  

, po_number                   VARCHAR2(240)  

, business_unit               VARCHAR2(240) 

) 

   ORGANIZATION EXTERNAL 

    ( TYPE ORACLE_LOADER

      DEFAULT DIRECTORY "DMG_DIR"

      ACCESS PARAMETERS

      ( RECORDS DELIMITED BY NEWLINE

            CHARACTERSET AL32UTF8

            SKIP 1

            BADFILE 'bad_lg_load_%a_%p.bad'

            LOGFILE 'log_lg_load_%a_%p.log'

        FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LRTRIM MISSING FIELD VALUES ARE NULL REJECT ROWS WITH ALL NULL FIELDS (

  column_name                 CHAR(240)  

, lg_number                   CHAR(240)  

, contractor_name             CHAR(240)  

, lg_type                     CHAR(240)  

, po_number                   CHAR(240)  

, business_unit               CHAR(240)   

        )

                                            )

      LOCATION

       ( 'LG_DETAILS_LOAD.txt'

       )

    )

Reject Limit Unlimited ;


CREATE SYNONYM XX_LG_DET_EXT_TAB FOR XX.XX_LG_DET_EXT_TAB;