Errors in TKPROF
Hi,
I have generated a trace file as per metalink note "453527.1 How To Trace a Concurrent Request And Generate TKPROF File".
Now when I run tkprof as per the metalink note, I am getting strange errors as follows:
~~~~~~~~~~~~~~~~~~~~~
/XXX/products/10.2.0/admin/XXX_porud360/udump/XXX_ora_12976158_VBORKAR_CR3298681.trc: 0403-006 Execute permission denied.
XXX_ora_12976158_VBORKAR_CR3298681.trc[3]: admin: 0403-006 Execute permission denied.
XXX_ora_12976158_VBORKAR_CR3298681.trc[5]: EXEC: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[6]: =====================: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[7]: PARSING: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[8]: alter: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[9]: END: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[10]: PARSE: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[11]: EXEC: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[12]: EXEC: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[13]: =====================: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[14]: PARSING: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[15]: SELECT: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[16]: END: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[17]: PARSE: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[18]: BINDS: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[19]: kkscoacd: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[20]: Bind#0: not found.
XXX_ora_12976158_VBORKAR_CR3298681.trc[21]: 0403-057 Syntax error at line 21 : `(' is not expected.
~~~~~~~~~~~~~~~~~~~~~
NOTE: Here I have replaced instance name with 'XXX'.
If somebody knows about it, please let me know.
Thanks and Regards
Vivek
Hi Hussein,
Thanks for prompt reply!
I am using following command:
$tkprof <trace file name>.trc <output file>.out explain=apps/<password>
I am running this command from unix. What do you mean by "sourcing the database env file"?
I have read/write permission on the 'user_dump_dest' directory. But what do you mean by "oracle user have read/write permission"? Is it something different from unix permissions?
I am getting same issue for couple of trace files.
Hope you help me resolve this.
Thanks
Vivek
Similar Messages
-
Understand why I would have parsing error in tkprof
I am using Oracle 11.2.0.3
I ran 'ALTER SESSION SET EVENTS '10046 trace name context off';' from toad. It ran successfully but tkprof showed following error:
The following statement encountered a error during parse:
ALTER SESSION SET EVENTS '10046 trace name context off';
Error encountered: ORA-00911
why did my statement had parsing error?
trace file had following entry
*** 2015-04-17 12:06:18.067
WAIT #47601876107192: nam='SQL*Net message from client' ela= 4302806 driver id=1413697536 #bytes=1 p3=0 obj#=2298524 tim=1429286778067504
CLOSE #47601876107192:c=0,e=10,dep=0,type=0,tim=1429286778067634
=====================
PARSE ERROR #47601876107192:len=57 dep=0 uid=57 oct=42 lid=57 tim=1429286778067818 err=911
ALTER SESSION SET EVENTS '10046 trace name context off';
WAIT #47601876107192: nam='SQL*Net break/reset to client' ela= 4 driver id=1413697536 break?=1 p3=0 obj#=2298524 tim=1429286778067926
2015-04-17 12:06:18.067969 : nsdo:sending NSPTMK packet
2015-04-17 12:06:18.068032 : nsdo:sending NSPTMK packet
2015-04-17 12:06:18.069954 : nserror:nsres: id=0, op=0, ns=12630, ns2=0; nt[0]=0, nt[1]=0, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
WAIT #47601876107192: nam='SQL*Net break/reset to client' ela= 2036 driver id=1413697536 break?=0 p3=0 obj#=2298524 tim=1429286778069976
WAIT #47601876107192: nam='SQL*Net message to client' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=2298524 tim=1429286778069988
WAIT #47601876107192: nam='SQL*Net message from client' ela= 33703 driver id=1413697536 #bytes=1 p3=0 obj#=2298524 tim=1429286778103710
CLOSE #47601876107192:c=0,e=4,dep=0,type=0,tim=1429286778103766
=====================
PARSING IN CURSOR #47601876107192 len=55 dep=0 uid=57 oct=42 lid=57 tim=1429286778103912 hv=2655499671 ad='0' sqlid='0kjg1c2g4gdcr'
ALTER SESSION SET EVENTS '10046 trace name context off'
END OF STMT
PARSE #47601876107192:c=1000,e=94,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,plh=0,tim=1429286778103911
EXEC #47601876107192:c=0,e=394,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,plh=0,tim=1429286778104349The reason why you lost your contacts is because he deleted them. When people share Apple ID's and use iCloud, that means that they are sharing synced contacts, notes, etc. Since they are syncing, when someone edits or removes them, that syncs over to the server, and thereby to the other devices.
Apple ID's are meant for individual usage.
Since he deleted them, they are gone. Unless you have an iTunes Backup that you can restore from. -
Hi All,
i have got following error while using TKPROF
tkproforcl_ora_3710.trc output.txt explain=system/password
SP2-0734: unknown command beginning "tkproforcl..." - rest of line ignored.
please help me
thanks in advanceOn a side note, I suggest you use Trace Analyzer
-- an improvement and substitute of TKPROF
http://www.psoug.org/reference/trace_analyzer.html -
Ora-00604 error while taking tkprof of a trace file
Sorry i am giving the full erro but omitting exact table names
Hi ,
I have an error while taking tkprof of a trace file.
I gave the following command ---
tkprof <source.trc> <file.prc> sys=no sort=exeela,fchela,prsela explain= /
error is --
Error in create table of EXPLAIN PLAN table : unix_session_user.prof$paln_table
ORA-00604: error occurred at recursive SQL level 1
ORA-20001: Step-6:DDL
Event Security. You are not permitted to perform the requested structural
changes to PROF (TABLE)
Event triggered : CREATE
ora_login_user
(session_user) : unix_session_user(dummy)
Search : select count(*) from
tabl(dummy table name) where obj_name like '%\%%' escape '\' and obj_type =
'TABLE' and obj_type = 'USER' and ( event_CREATE = 'Y' or status =
'Override')
ORA-06512: at line 162
ORA-06510: PL/SQL: unhandled
user-defined exception
EXPLAIN PLAN option disabled.
i searched for the error and in oracle forum i found a solution .. http://forums.oracle.com/forums/thread.jspa?threadID=844287&tstart=0
but after giving the table option it is giving the same error
tkprof <source.trc> <file.prc> sys=no sort=exeela,fchela,prsela table=old_schema.plan_table explain= /
it again gave the same error.
In both two cases it gives elapsed time results,library cache missing etc but before giving this it throws ORA-00604 error as stated above
then i again correct the tkprof statement ..
tkprof <source.trc> <file.prc> sys=no sort=exeela,fchela,prsela table=new_schema.plan_table explain= /
say this schema name here i used is dummy schema name.
My question is did this error came as we had not sufficient previlages in the old_schema but that previleges we have in new_schema?
My databse version is 9.2.0.4.0
Thanks in advance
Edited by: bp on Feb 3, 2009 11:36 PM
Edited by: bp on Feb 3, 2009 11:40 PMPlease post here full error message, there should be lines with ORA-00604 and then some other ORA as well.
And are there any trace files generated during this error?
And as You can see from error description, probably You will have to contact with Oracle support in order to solve this case:
oerr ora 00604
00604, 00000, "error occurred at recursive SQL level %s"
// *Cause: An error occurred while processing a recursive SQL statement
// (a statement applying to internal dictionary tables).
// *Action: If the situation described in the next error on the stack
// can be corrected, do so; otherwise contact Oracle Support. -
Help to read TKPROF file in correct way
Hi,
I need help to understand what is going wrong.
I have one query executed with different bind variables values.
Case 1: Execution time is about 7.5 hours when :v6=:v3=:v4 (these are date bind variables values)
Case 2: Execution time is about 2 minuteswhen :v6 differs from :v3 and :v4, but :v3=:v4 (these are date bind variables values)
You can see TKPROF files below
Case1
SELECT EK.SECIK AS EK_SECIK,S.SECIK AS S_SECIK,EK.EQKEY1 AS EK_EQKEY1,EK.FROMDATE AS EK_FROMDATE,S.SECSHORT AS S_SECSHORT,S.SECNAME AS S_SECNAME,C.CDY AS C_CDY,C.CSTD AS C_CSTD,P.PAR AS P_PAR,P.PARIK AS P_PARIK,PH.ACCOUNTING_FRAMEWORK AS PH_ACC_FW,NVL(PH.BAL_NOMINAL_NUMBER,0) AS PH_BAL_NOM_NUM,PH.FROM_DATE AS PH_FROM_DATE,PH.POR AS PH_POR,PH.SEC_SHORT_NAME AS PH_SEC_SHORT_NAME,PH.TO_DATE AS PH_TO_DATE,PH.CUSTODY_SHORT_NAME AS PH_CUST_SHORT_NAME,T.TC_CSTD AS T_CSTD,SUM(T.TH_BAL_NOM_NUM) AS T_BAL_NOM_NUM,T.TH_SEC_SHORT_NAME AS T_SEC_SHORT_NAME,PH.POR_REF AS PH_POR_REF,PORT.PORIK AS PORT_PORIK,PORT.PORGRPIK AS PORT_PORGRPIK,PG.PORGRPIK AS PG_PORGRPIK,PG.PORGRPTYPEIK AS PG_PORGRPTYPEIK,PGT.PORGRPTYPEIK AS PGT_PORGRPTYPEIK FROM SCDAT.CUSTODIES C,SCDAT.EQUITYKEYS EK,SCDAT.PARTNERS P,SCDAT.PORTGROUPS PG,SCDAT.PORTGROUPTYPES PGT,(
SELECT HOLKEYS.PORIK As POR_REF,
ACCDEF.ACC As ACCOUNTING_FRAMEWORK,
NVL(HOLDINGS.BALNOMVAL,0) As BAL_NOMINAL_NUMBER,
CUSTODIES.CDY As CUSTODY_SHORT_NAME,
DECODE(HOLDINGS.FINBOOKED,0,'No',1,'Yes',' ') As FINALLY_BOOKED,
HOLDINGS.FROMDATE As FROM_DATE,
PORTFOLIOS.POR As POR,
SECURITIES.SECSHORT As SEC_SHORT_NAME,
HOLDINGS.TODATE As TO_DATE,
HOLDINGS.FINBOOKED As X_FINALLY_BOOKED
FROM HOLDINGS,HOLKEYS,ACCDEF,CUSTODIES,PORTFOLIOS,SECURITIES WHERE HOLDINGS.HOLKEYIK = HOLKEYS.HOLKEYIK AND HOLDINGS.ACCIK = ACCDEF.ACCIK AND HOLKEYS.CDYIK = CUSTODIES.CDYIK AND HOLKEYS.PORIK = PORTFOLIOS.PORIK AND HOLKEYS.SECIK = SECURITIES.SECIK) PH,SCDAT.PORTFOLIOS PORT,SCDAT.SECURITIES S,(SELECT TC.CDY AS TC_CDY,TC.CSTD AS TC_CSTD,SUM(NVL(TH.BAL_NOMINAL_NUMBER,0)) AS TH_BAL_NOM_NUM,TH.FROM_DATE AS TH_FROM_DATE,TH.TO_DATE AS TH_TO_DATE,TH.SEC_SHORT_NAME AS TH_SEC_SHORT_NAME,TH.CUSTODY_SHORT_NAME AS TH_CUST_SHORT_NAME,TP.PAR AS TP_PAR,TP.PARIK AS TP_PARIK FROM SCDAT.CUSTODIES TC,(
SELECT ACCDEF.ACC As ACCOUNTING_FRAMEWORK,
NVL(HOLDINGS.BALNOMVAL,0) As BAL_NOMINAL_NUMBER,
CUSTODIES.CDY As CUSTODY_SHORT_NAME,
DECODE(HOLDINGS.FINBOOKED,0,'No',1,'Yes',' ') As FINALLY_BOOKED,
HOLDINGS.FROMDATE As FROM_DATE,
SECURITIES.SECSHORT As SEC_SHORT_NAME,
HOLDINGS.TODATE As TO_DATE,
HOLDINGS.FINBOOKED As X_FINALLY_BOOKED
FROM HOLDINGS,HOLKEYS,ACCDEF,CUSTODIES,SECURITIES WHERE HOLDINGS.ACCIK = ACCDEF.ACCIK AND HOLDINGS.HOLKEYIK = HOLKEYS.HOLKEYIK AND HOLKEYS.CDYIK = CUSTODIES.CDYIK AND HOLKEYS.SECIK = SECURITIES.SECIK) TH,SCDAT.PARTNERS TP WHERE TH.CUSTODY_SHORT_NAME = TC.CDY AND TC.CSTD = TP.PARIK AND TH.ACCOUNTING_FRAMEWORK = :v1 AND NOT (NVL(TH.BAL_NOMINAL_NUMBER,0) = :v2 ) AND TH.FROM_DATE <= :v3 AND TH.TO_DATE >= :v4 AND TH.FINALLY_BOOKED = :v5 GROUP BY TC.CDY,TC.CSTD,TH.FROM_DATE,TH.TO_DATE,TH.SEC_SHORT_NAME,TH.CUSTODY_SHORT_NAME,TP.PAR,TP.PARIK) T WHERE EK.SECIK = S.SECIK AND PORT.PORGRPIK = PG.PORGRPIK AND PG.PORGRPTYPEIK = PGT.PORGRPTYPEIK AND S.SECSHORT = PH.SEC_SHORT_NAME AND PH.SEC_SHORT_NAME = T.TH_SEC_SHORT_NAME AND PH.POR_REF = PORT.PORIK AND PH.CUSTODY_SHORT_NAME = C.CDY AND EK.FROMDATE = :v6 AND NOT (EK.EQKEY1 = :v7 ) AND P.PAR = :v8 AND NOT (PGT.PORGRPTYPE IN (:v9 ,:v10 )) AND PH.ACCOUNTING_FRAMEWORK = :v11 AND NOT (NVL(PH.BAL_NOMINAL_NUMBER,0) = :v12 ) AND PH.FINALLY_BOOKED = :v13 AND EK.FROMDATE >= PH.FROM_DATE AND EK.FROMDATE <= PH.TO_DATE AND C.CSTD = P.PARIK AND C.CSTD = T.TC_CSTD GROUP BY EK.SECIK,S.SECIK,EK.EQKEY1,EK.FROMDATE,S.SECSHORT,S.SECNAME,C.CDY,C.CSTD,P.PAR,P.PARIK,PH.ACCOUNTING_FRAMEWORK,NVL(PH.BAL_NOMINAL_NUMBER,0),PH.FROM_DATE,PH.POR,PH.SEC_SHORT_NAME,PH.TO_DATE,PH.CUSTODY_SHORT_NAME,T.TC_CSTD,T.TH_SEC_SHORT_NAME,PH.POR_REF,PORT.PORIK,PORT.PORGRPIK,PG.PORGRPIK,PG.PORGRPTYPEIK,PGT.PORGRPTYPEIK
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 2.31 2.31 0 0 0 0
Fetch 1 27398.48 27473.33 11124 250891597 0 0
total 3 27400.79 27475.65 11124 250891597 0 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 171 (SCDAT)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
0 0 0 HASH GROUP BY (cr=0 pr=0 pw=0 time=55 us cost=1976 size=251 card=1)
123 123 123 NESTED LOOPS (cr=250890161 pr=11086 pw=0 time=35602462 us)
38622 38622 38622 NESTED LOOPS (cr=250858945 pr=8664 pw=0 time=4221237335 us cost=1975 size=251 card=1)
3945 3945 3945 NESTED LOOPS (cr=250850948 pr=7835 pw=0 time=1967017649 us cost=1937 size=199 card=1)
3833 3833 3833 HASH JOIN (cr=42840 pr=6196 pw=0 time=4910380 us cost=1559 size=1956 card=12)
8667 8667 8667 NESTED LOOPS (cr=42834 pr=6192 pw=0 time=4254867 us)
8667 8667 8667 NESTED LOOPS (cr=34167 pr=6192 pw=0 time=4232686 us cost=1556 size=2156 card=14)
8667 8667 8667 NESTED LOOPS (cr=26520 pr=6192 pw=0 time=4206426 us cost=1542 size=2058 card=14)
8667 8667 8667 NESTED LOOPS (cr=16041 pr=6192 pw=0 time=4161555 us cost=1528 size=1806 card=14)
18060 18060 18060 NESTED LOOPS (cr=16037 pr=6191 pw=0 time=4575478 us cost=1527 size=36504 card=312)
177 177 177 NESTED LOOPS (cr=6846 pr=6091 pw=0 time=3909468 us cost=1350 size=1500 card=15)
177 177 177 NESTED LOOPS (cr=6490 pr=6091 pw=0 time=3907157 us cost=1320 size=1245 card=15)
177 177 177 NESTED LOOPS (cr=6133 pr=6091 pw=0 time=3905733 us cost=1305 size=585 card=15)
1 1 1 NESTED LOOPS (cr=5 pr=2 pw=0 time=17096 us cost=2 size=23 card=1)
1 1 1 TABLE ACCESS BY INDEX ROWID ACCDEF (cr=2 pr=2 pw=0 time=17079 us cost=1 size=12 card=1)
1 1 1 INDEX UNIQUE SCAN ACCDEF_IX1 (cr=1 pr=1 pw=0 time=6675 us cost=0 size=0 card=1)(object id 103661)
1 1 1 TABLE ACCESS BY INDEX ROWID PARTNERS (cr=3 pr=0 pw=0 time=14 us cost=1 size=11 card=1)
1 1 1 INDEX UNIQUE SCAN PARTNERS_IX1 (cr=2 pr=0 pw=0 time=9 us cost=0 size=0 card=1)(object id 91563)
177 177 177 TABLE ACCESS FULL EQUITYKEYS (cr=6128 pr=6089 pw=0 time=3888376 us cost=1303 size=240 card=15)
177 177 177 TABLE ACCESS BY INDEX ROWID SECURITIES (cr=357 pr=0 pw=0 time=1127 us cost=1 size=44 card=1)
177 177 177 INDEX UNIQUE SCAN P_SECURITIES (cr=180 pr=0 pw=0 time=563 us cost=0 size=0 card=1)(object id 93819)
177 177 177 TABLE ACCESS BY INDEX ROWID SECURITIES (cr=356 pr=0 pw=0 time=2027 us cost=2 size=17 card=1)
177 177 177 INDEX RANGE SCAN SECURITIES_IX2 (cr=180 pr=0 pw=0 time=1166 us cost=1 size=0 card=1)(object id 93809)
18060 18060 18060 TABLE ACCESS BY INDEX ROWID HOLKEYS (cr=9191 pr=100 pw=0 time=716100 us cost=13 size=340 card=20)
18060 18060 18060 INDEX RANGE SCAN I_HOLKEYS_SECPOR (cr=421 pr=100 pw=0 time=689634 us cost=2 size=0 card=23)(object id 98864)
8667 8667 8667 TABLE ACCESS BY INDEX ROWID CUSTODIES (cr=4 pr=1 pw=0 time=131716 us cost=1 size=12 card=1)
36120 36120 36120 INDEX RANGE SCAN R_CUSTODIES_CSTD (cr=3 pr=1 pw=0 time=53659 us cost=0 size=0 card=3)(object id 101437)
8667 8667 8667 TABLE ACCESS BY INDEX ROWID PORTFOLIOS (cr=10479 pr=0 pw=0 time=36782 us cost=1 size=18 card=1)
8667 8667 8667 INDEX UNIQUE SCAN P_PORTFOLIOS (cr=1812 pr=0 pw=0 time=14722 us cost=0 size=0 card=1)(object id 91399)
8667 8667 8667 INDEX UNIQUE SCAN P_PORTGROUPS (cr=7647 pr=0 pw=0 time=20935 us cost=0 size=0 card=1)(object id 95885)
8667 8667 8667 TABLE ACCESS BY INDEX ROWID PORTGROUPS (cr=8667 pr=0 pw=0 time=15075 us cost=1 size=7 card=1)
3 3 3 VIEW index$_join$_005 (cr=6 pr=4 pw=0 time=17822 us cost=3 size=45 card=5)
3 3 3 HASH JOIN (cr=6 pr=4 pw=0 time=17816 us)
5 5 5 INDEX FAST FULL SCAN PORTGROUPTYPES_IX1 (cr=3 pr=2 pw=0 time=10731 us cost=1 size=45 card=5)(object id 95857)
3 3 3 INDEX FAST FULL SCAN P_PORTGROUPTYPES (cr=3 pr=2 pw=0 time=6182 us cost=1 size=45 card=5)(object id 95858)
3945 3945 3945 VIEW PUSHED PREDICATE (cr=250808108 pr=1639 pw=0 time=1615801762 us cost=32 size=36 card=1)
3945 3945 3945 SORT GROUP BY (cr=250808108 pr=1639 pw=0 time=1615792437 us cost=32 size=86 card=1)
8052 8052 8052 NESTED LOOPS (cr=250808108 pr=1639 pw=0 time=3245096176 us cost=31 size=86 card=1)
6879822 6879822 6879822 NESTED LOOPS (cr=14142041 pr=0 pw=0 time=93287445 us cost=18 size=53 card=1)
7665 7665 7665 MERGE JOIN CARTESIAN (cr=3980 pr=0 pw=0 time=214689 us cost=5 size=40 card=1)
7665 7665 7665 NESTED LOOPS (cr=3846 pr=0 pw=0 time=75334 us cost=3 size=23 card=1)
3833 3833 3833 TABLE ACCESS BY INDEX ROWID PARTNERS (cr=3842 pr=0 pw=0 time=38447 us cost=2 size=11 card=1)
3833 3833 3833 INDEX UNIQUE SCAN P_PARTNERS (cr=9 pr=0 pw=0 time=13355 us cost=1 size=0 card=1)(object id 91507)
7665 7665 7665 TABLE ACCESS BY INDEX ROWID CUSTODIES (cr=4 pr=0 pw=0 time=34661 us cost=1 size=12 card=1)
7665 7665 7665 INDEX RANGE SCAN R_CUSTODIES_CSTD (cr=3 pr=0 pw=0 time=23093 us cost=0 size=0 card=1)(object id 101437)
7665 7665 7665 BUFFER SORT (cr=134 pr=0 pw=0 time=128191 us cost=4 size=17 card=1)
7665 7665 7665 TABLE ACCESS BY INDEX ROWID SECURITIES (cr=134 pr=0 pw=0 time=44771 us cost=2 size=17 card=1)
7665 7665 7665 INDEX RANGE SCAN SECURITIES_IX2 (cr=109 pr=0 pw=0 time=32098 us cost=1 size=0 card=1)(object id 93809)
6879822 6879822 6879822 TABLE ACCESS BY INDEX ROWID HOLKEYS (cr=14138061 pr=0 pw=0 time=99798296 us cost=13 size=13 card=1)
27845684 27845684 27845684 INDEX RANGE SCAN I_HOLKEYS_SECPOR (cr=92999 pr=0 pw=0 time=21161648 us cost=2 size=0 card=23)(object id 98864)
8052 8052 8052 VIEW PUSHED PREDICATE VW_GBC_22 (cr=236667503 pr=1677 pw=0 time=1559090990 us cost=13 size=33 card=1)
8052 8052 8052 SORT GROUP BY (cr=236667503 pr=1677 pw=0 time=1552356479 us cost=13 size=64 card=1)
8052 8052 8052 HASH JOIN (cr=236667503 pr=1677 pw=0 time=1518269306 us cost=12 size=64 card=1)
6879822 6879822 6879822 TABLE ACCESS BY INDEX ROWID ACCDEF (cr=13759644 pr=0 pw=0 time=58085525 us cost=1 size=12 card=1)
6879822 6879822 6879822 INDEX UNIQUE SCAN ACCDEF_IX1 (cr=6879822 pr=0 pw=0 time=37383556 us cost=0 size=0 card=1)(object id 103661)
16077 16077 16077 TABLE ACCESS BY INDEX ROWID HOLDINGS (cr=222907859 pr=1677 pw=0 time=1109306657 us cost=10 size=52 card=1)
13212301 13212301 13212301 INDEX SKIP SCAN P_HOLDINGS (cr=211196455 pr=431 pw=0 time=734718877 us cost=6 size=0 card=3)(object id 2173392)
38622 38622 38622 INDEX RANGE SCAN R_HOLDINGS_HOLKEYIK (cr=7997 pr=829 pw=0 time=9653175 us cost=2 size=0 card=42)(object id 2173885)
123 123 123 TABLE ACCESS BY INDEX ROWID HOLDINGS (cr=31216 pr=2422 pw=0 time=40223697 us cost=38 size=52 card=1)
Case2
SELECT EK.SECIK AS EK_SECIK,S.SECIK AS S_SECIK,EK.EQKEY1 AS EK_EQKEY1,EK.FROMDATE AS EK_FROMDATE,S.SECSHORT AS S_SECSHORT,S.SECNAME AS S_SECNAME,C.CDY AS C_CDY,C.CSTD AS C_CSTD,P.PAR AS P_PAR,P.PARIK AS P_PARIK,PH.ACCOUNTING_FRAMEWORK AS PH_ACC_FW,NVL(PH.BAL_NOMINAL_NUMBER,0) AS PH_BAL_NOM_NUM,PH.FROM_DATE AS PH_FROM_DATE,PH.POR AS PH_POR,PH.SEC_SHORT_NAME AS PH_SEC_SHORT_NAME,PH.TO_DATE AS PH_TO_DATE,PH.CUSTODY_SHORT_NAME AS PH_CUST_SHORT_NAME,T.TC_CSTD AS T_CSTD,SUM(T.TH_BAL_NOM_NUM) AS T_BAL_NOM_NUM,T.TH_SEC_SHORT_NAME AS T_SEC_SHORT_NAME,PH.POR_REF AS PH_POR_REF,PORT.PORIK AS PORT_PORIK,PORT.PORGRPIK AS PORT_PORGRPIK,PG.PORGRPIK AS PG_PORGRPIK,PG.PORGRPTYPEIK AS PG_PORGRPTYPEIK,PGT.PORGRPTYPEIK AS PGT_PORGRPTYPEIK FROM SCDAT.CUSTODIES C,SCDAT.EQUITYKEYS EK,SCDAT.PARTNERS P,SCDAT.PORTGROUPS PG,SCDAT.PORTGROUPTYPES PGT,(
SELECT HOLKEYS.PORIK As POR_REF,
ACCDEF.ACC As ACCOUNTING_FRAMEWORK,
NVL(HOLDINGS.BALNOMVAL,0) As BAL_NOMINAL_NUMBER,
CUSTODIES.CDY As CUSTODY_SHORT_NAME,
DECODE(HOLDINGS.FINBOOKED,0,'No',1,'Yes',' ') As FINALLY_BOOKED,
HOLDINGS.FROMDATE As FROM_DATE,
PORTFOLIOS.POR As POR,
SECURITIES.SECSHORT As SEC_SHORT_NAME,
HOLDINGS.TODATE As TO_DATE,
HOLDINGS.FINBOOKED As X_FINALLY_BOOKED
FROM HOLDINGS,HOLKEYS,ACCDEF,CUSTODIES,PORTFOLIOS,SECURITIES WHERE HOLDINGS.HOLKEYIK = HOLKEYS.HOLKEYIK AND HOLDINGS.ACCIK = ACCDEF.ACCIK AND HOLKEYS.CDYIK = CUSTODIES.CDYIK AND HOLKEYS.PORIK = PORTFOLIOS.PORIK AND HOLKEYS.SECIK = SECURITIES.SECIK) PH,SCDAT.PORTFOLIOS PORT,SCDAT.SECURITIES S,(SELECT TC.CDY AS TC_CDY,TC.CSTD AS TC_CSTD,SUM(NVL(TH.BAL_NOMINAL_NUMBER,0)) AS TH_BAL_NOM_NUM,TH.FROM_DATE AS TH_FROM_DATE,TH.TO_DATE AS TH_TO_DATE,TH.SEC_SHORT_NAME AS TH_SEC_SHORT_NAME,TH.CUSTODY_SHORT_NAME AS TH_CUST_SHORT_NAME,TP.PAR AS TP_PAR,TP.PARIK AS TP_PARIK FROM SCDAT.CUSTODIES TC,(
SELECT ACCDEF.ACC As ACCOUNTING_FRAMEWORK,
NVL(HOLDINGS.BALNOMVAL,0) As BAL_NOMINAL_NUMBER,
CUSTODIES.CDY As CUSTODY_SHORT_NAME,
DECODE(HOLDINGS.FINBOOKED,0,'No',1,'Yes',' ') As FINALLY_BOOKED,
HOLDINGS.FROMDATE As FROM_DATE,
SECURITIES.SECSHORT As SEC_SHORT_NAME,
HOLDINGS.TODATE As TO_DATE,
HOLDINGS.FINBOOKED As X_FINALLY_BOOKED
FROM HOLDINGS,HOLKEYS,ACCDEF,CUSTODIES,SECURITIES WHERE HOLDINGS.ACCIK = ACCDEF.ACCIK AND HOLDINGS.HOLKEYIK = HOLKEYS.HOLKEYIK AND HOLKEYS.CDYIK = CUSTODIES.CDYIK AND HOLKEYS.SECIK = SECURITIES.SECIK) TH,SCDAT.PARTNERS TP WHERE TH.CUSTODY_SHORT_NAME = TC.CDY AND TC.CSTD = TP.PARIK AND TH.ACCOUNTING_FRAMEWORK = :v1 AND NOT (NVL(TH.BAL_NOMINAL_NUMBER,0) = :v2 ) AND TH.FROM_DATE <= :v3 AND TH.TO_DATE >= :v4 AND TH.FINALLY_BOOKED = :v5 GROUP BY TC.CDY,TC.CSTD,TH.FROM_DATE,TH.TO_DATE,TH.SEC_SHORT_NAME,TH.CUSTODY_SHORT_NAME,TP.PAR,TP.PARIK) T WHERE EK.SECIK = S.SECIK AND PORT.PORGRPIK = PG.PORGRPIK AND PG.PORGRPTYPEIK = PGT.PORGRPTYPEIK AND S.SECSHORT = PH.SEC_SHORT_NAME AND PH.SEC_SHORT_NAME = T.TH_SEC_SHORT_NAME AND PH.POR_REF = PORT.PORIK AND PH.CUSTODY_SHORT_NAME = C.CDY AND EK.FROMDATE = :v6 AND NOT (EK.EQKEY1 = :v7 ) AND P.PAR = :v8 AND NOT (PGT.PORGRPTYPE IN (:v9 ,:v10 )) AND PH.ACCOUNTING_FRAMEWORK = :v11 AND NOT (NVL(PH.BAL_NOMINAL_NUMBER,0) = :v12 ) AND PH.FINALLY_BOOKED = :v13 AND EK.FROMDATE >= PH.FROM_DATE AND EK.FROMDATE <= PH.TO_DATE AND C.CSTD = P.PARIK AND C.CSTD = T.TC_CSTD GROUP BY EK.SECIK,S.SECIK,EK.EQKEY1,EK.FROMDATE,S.SECSHORT,S.SECNAME,C.CDY,C.CSTD,P.PAR,P.PARIK,PH.ACCOUNTING_FRAMEWORK,NVL(PH.BAL_NOMINAL_NUMBER,0),PH.FROM_DATE,PH.POR,PH.SEC_SHORT_NAME,PH.TO_DATE,PH.CUSTODY_SHORT_NAME,T.TC_CSTD,T.TH_SEC_SHORT_NAME,PH.POR_REF,PORT.PORIK,PORT.PORGRPIK,PG.PORGRPIK,PG.PORGRPTYPEIK,PGT.PORGRPTYPEIK
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 2.34 2.34 0 0 0 0
Fetch 2 39.31 131.53 17885 17489238 0 2039
total 4 41.66 133.88 17885 17489238 0 2039
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 171 (SCDAT)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
2039 2039 2039 HASH GROUP BY (cr=17489238 pr=17885 pw=0 time=131529969 us cost=2062 size=251 card=1)
166827 166827 166827 NESTED LOOPS (cr=17489238 pr=17885 pw=0 time=157379020 us cost=2061 size=251 card=1)
2043 2043 2043 NESTED LOOPS (cr=143626 pr=5419 pw=0 time=19393083 us cost=2003 size=215 card=1)
11156 11156 11156 HASH JOIN (cr=53391 pr=2600 pw=0 time=4865614 us cost=1559 size=1956 card=12)
11156 11156 11156 NESTED LOOPS (cr=53385 pr=2600 pw=0 time=4585085 us)
11156 11156 11156 NESTED LOOPS (cr=42229 pr=2600 pw=0 time=4563404 us cost=1555 size=2156 card=14)
11156 11156 11156 NESTED LOOPS (cr=32467 pr=2600 pw=0 time=4543117 us cost=1541 size=2058 card=14)
11156 11156 11156 NESTED LOOPS (cr=19234 pr=2600 pw=0 time=4506220 us cost=1527 size=1806 card=14)
24211 24211 24211 NESTED LOOPS (cr=19230 pr=2600 pw=0 time=4417211 us cost=1526 size=36504 card=312)
193 193 193 NESTED LOOPS (cr=6926 pr=2556 pw=0 time=4371848 us cost=1350 size=1500 card=15)
193 193 193 NESTED LOOPS (cr=6537 pr=2556 pw=0 time=4370289 us cost=1320 size=1245 card=15)
193 193 193 NESTED LOOPS (cr=6148 pr=2556 pw=0 time=4369122 us cost=1305 size=585 card=15)
1 1 1 NESTED LOOPS (cr=5 pr=1 pw=0 time=6568 us cost=2 size=23 card=1)
1 1 1 TABLE ACCESS BY INDEX ROWID ACCDEF (cr=2 pr=1 pw=0 time=6556 us cost=1 size=12 card=1)
1 1 1 INDEX UNIQUE SCAN ACCDEF_IX1 (cr=1 pr=1 pw=0 time=6551 us cost=0 size=0 card=1)(object id 103661)
1 1 1 TABLE ACCESS BY INDEX ROWID PARTNERS (cr=3 pr=0 pw=0 time=10 us cost=1 size=11 card=1)
1 1 1 INDEX UNIQUE SCAN PARTNERS_IX1 (cr=2 pr=0 pw=0 time=6 us cost=0 size=0 card=1)(object id 91563)
193 193 193 TABLE ACCESS FULL EQUITYKEYS (cr=6143 pr=2555 pw=0 time=4362460 us cost=1303 size=240 card=15)
193 193 193 TABLE ACCESS BY INDEX ROWID SECURITIES (cr=389 pr=0 pw=0 time=1000 us cost=1 size=44 card=1)
193 193 193 INDEX UNIQUE SCAN P_SECURITIES (cr=196 pr=0 pw=0 time=498 us cost=0 size=0 card=1)(object id 93819)
193 193 193 TABLE ACCESS BY INDEX ROWID SECURITIES (cr=389 pr=0 pw=0 time=1486 us cost=2 size=17 card=1)
193 193 193 INDEX RANGE SCAN SECURITIES_IX2 (cr=197 pr=0 pw=0 time=899 us cost=1 size=0 card=1)(object id 93809)
24211 24211 24211 TABLE ACCESS BY INDEX ROWID HOLKEYS (cr=12304 pr=44 pw=0 time=38145 us cost=13 size=340 card=20)
24211 24211 24211 INDEX RANGE SCAN I_HOLKEYS_SECPOR (cr=475 pr=44 pw=0 time=13253 us cost=2 size=0 card=23)(object id 98864)
11156 11156 11156 TABLE ACCESS BY INDEX ROWID CUSTODIES (cr=4 pr=0 pw=0 time=93056 us cost=1 size=12 card=1)
48422 48422 48422 INDEX RANGE SCAN R_CUSTODIES_CSTD (cr=3 pr=0 pw=0 time=35831 us cost=0 size=0 card=3)(object id 101437)
11156 11156 11156 TABLE ACCESS BY INDEX ROWID PORTFOLIOS (cr=13233 pr=0 pw=0 time=31391 us cost=1 size=18 card=1)
11156 11156 11156 INDEX UNIQUE SCAN P_PORTFOLIOS (cr=2077 pr=0 pw=0 time=12494 us cost=0 size=0 card=1)(object id 91399)
11156 11156 11156 INDEX UNIQUE SCAN P_PORTGROUPS (cr=9762 pr=0 pw=0 time=15817 us cost=0 size=0 card=1)(object id 95885)
11156 11156 11156 TABLE ACCESS BY INDEX ROWID PORTGROUPS (cr=11156 pr=0 pw=0 time=15160 us cost=1 size=7 card=1)
5 5 5 VIEW index$_join$_005 (cr=6 pr=0 pw=0 time=656 us cost=3 size=45 card=5)
5 5 5 HASH JOIN (cr=6 pr=0 pw=0 time=648 us)
5 5 5 INDEX FAST FULL SCAN PORTGROUPTYPES_IX1 (cr=3 pr=0 pw=0 time=26 us cost=1 size=45 card=5)(object id 95857)
7 7 7 INDEX FAST FULL SCAN P_PORTGROUPTYPES (cr=3 pr=0 pw=0 time=15 us cost=1 size=45 card=5)(object id 95858)
2043 2043 2043 TABLE ACCESS BY INDEX ROWID HOLDINGS (cr=90235 pr=2819 pw=0 time=19041512 us cost=38 size=52 card=1)
92362 92362 92362 INDEX RANGE SCAN R_HOLDINGS_HOLKEYIK (cr=22368 pr=436 pw=0 time=2663719 us cost=2 size=0 card=42)(object id 2173885)
166827 166827 166827 VIEW PUSHED PREDICATE (cr=17345612 pr=12466 pw=0 time=107441684 us cost=58 size=36 card=1)
166827 166827 166827 SORT GROUP BY (cr=17345612 pr=12466 pw=0 time=107408172 us cost=58 size=117 card=1)
1911217 1911217 1911217 NESTED LOOPS (cr=17345612 pr=12466 pw=0 time=1296620056 us)
10575944 10575944 10575944 NESTED LOOPS (cr=9800492 pr=1140 pw=0 time=22104782 us cost=57 size=117 card=1)
2292837 2292837 2292837 NESTED LOOPS (cr=5195338 pr=0 pw=0 time=9516177 us cost=19 size=65 card=1)
4086 4086 4086 MERGE JOIN CARTESIAN (cr=4885 pr=0 pw=0 time=93451 us cost=6 size=52 card=1)
4086 4086 4086 NESTED LOOPS (cr=4103 pr=0 pw=0 time=29074 us cost=4 size=35 card=1)
2043 2043 2043 NESTED LOOPS (cr=4099 pr=0 pw=0 time=20146 us cost=3 size=23 card=1)
2043 2043 2043 TABLE ACCESS BY INDEX ROWID PARTNERS (cr=2052 pr=0 pw=0 time=10371 us cost=2 size=11 card=1)
2043 2043 2043 INDEX UNIQUE SCAN P_PARTNERS (cr=9 pr=0 pw=0 time=4583 us cost=1 size=0 card=1)(object id 91507)
2043 2043 2043 TABLE ACCESS BY INDEX ROWID ACCDEF (cr=2047 pr=0 pw=0 time=7133 us cost=1 size=12 card=1)
2043 2043 2043 INDEX UNIQUE SCAN ACCDEF_IX1 (cr=4 pr=0 pw=0 time=3680 us cost=0 size=0 card=1)(object id 103661)
4086 4086 4086 TABLE ACCESS BY INDEX ROWID CUSTODIES (cr=4 pr=0 pw=0 time=10204 us cost=1 size=12 card=1)
4086 4086 4086 INDEX RANGE SCAN R_CUSTODIES_CSTD (cr=3 pr=0 pw=0 time=6320 us cost=0 size=0 card=1)(object id 101437)
4086 4086 4086 BUFFER SORT (cr=782 pr=0 pw=0 time=60735 us cost=5 size=17 card=1)
4086 4086 4086 TABLE ACCESS BY INDEX ROWID SECURITIES (cr=782 pr=0 pw=0 time=27892 us cost=2 size=17 card=1)
4086 4086 4086 INDEX RANGE SCAN SECURITIES_IX2 (cr=590 pr=0 pw=0 time=13746 us cost=1 size=0 card=1)(object id 93809)
2292837 2292837 2292837 TABLE ACCESS BY INDEX ROWID HOLKEYS (cr=5190453 pr=0 pw=0 time=12329304 us cost=13 size=13 card=1)
10116948 10116948 10116948 INDEX RANGE SCAN I_HOLKEYS_SECPOR (cr=41387 pr=0 pw=0 time=2136775 us cost=2 size=0 card=23)(object id 98864)
10575944 10575944 10575944 INDEX RANGE SCAN R_HOLDINGS_HOLKEYIK (cr=4605154 pr=1140 pw=0 time=14152971 us cost=2 size=0 card=42)(object id 2173885)
1911217 1911217 1911217 TABLE ACCESS BY INDEX ROWID HOLDINGS (cr=7545120 pr=11326 pw=0 time=78999228 us cost=38 size=52 card=1)
Rows Execution Plan
0 SELECT STATEMENT MODE: ALL_ROWS
2039 HASH (GROUP BY)
166827 NESTED LOOPS
2043 NESTED LOOPS
11156 HASH JOIN
11156 VIEW OF 'index$_join$_005' (VIEW)
11156 HASH JOIN
11156 INDEX MODE: ANALYZED (FAST FULL SCAN) OF
'PORTGROUPTYPES_IX1' (INDEX (UNIQUE))
11156 INDEX MODE: ANALYZED (FAST FULL SCAN) OF
'P_PORTGROUPTYPES' (INDEX (UNIQUE))
24211 HASH JOIN
193 VIEW OF 'index$_join$_004' (VIEW)
193 HASH JOIN
193 INDEX MODE: ANALYZED (FAST FULL SCAN) OF
'P_PORTGROUPS' (INDEX (UNIQUE))
1 INDEX MODE: ANALYZED (FAST FULL SCAN) OF
'R_PORTGROUPS_PORGRPTYPEIK' (INDEX)
1 HASH JOIN
1 HASH JOIN
1 TABLE ACCESS MODE: ANALYZED (FULL) OF
'EQUITYKEYS' (TABLE)
1 HASH JOIN
193 TABLE ACCESS MODE: ANALYZED (FULL) OF
'SECURITIES' (TABLE)
193 HASH JOIN
193 VIEW OF 'index$_join$_012' (VIEW)
193 HASH JOIN
193 INDEX MODE: ANALYZED (FAST FULL SCAN) OF
'P_SECURITIES' (INDEX (UNIQUE))
24211 INDEX MODE: ANALYZED (FAST FULL SCAN) OF
'SECURITIES_IX2' (INDEX (UNIQUE))
24211 NESTED LOOPS
11156 NESTED LOOPS
48422 NESTED LOOPS
11156 NESTED LOOPS
11156 TABLE ACCESS MODE: ANALYZED (BY
INDEX ROWID) OF 'ACCDEF' (TABLE)
11156 INDEX MODE: ANALYZED (UNIQUE SCAN)
OF 'ACCDEF_IX1' (INDEX (UNIQUE))
11156 TABLE ACCESS MODE: ANALYZED (BY
INDEX ROWID) OF 'PARTNERS' (TABLE)
5 INDEX MODE: ANALYZED (UNIQUE SCAN)
OF 'PARTNERS_IX1' (INDEX (UNIQUE))
5 TABLE ACCESS MODE: ANALYZED (BY INDEX
ROWID) OF 'CUSTODIES' (TABLE)
5 INDEX MODE: ANALYZED (RANGE SCAN) OF
'R_CUSTODIES_CSTD' (INDEX)
7 INDEX MODE: ANALYZED (RANGE SCAN) OF
'R_HOLKEYS_CDYIK' (INDEX)
2043 TABLE ACCESS MODE: ANALYZED (BY INDEX
ROWID) OF 'HOLKEYS' (TABLE)
92362 VIEW OF 'index$_join$_013' (VIEW)
166827 HASH JOIN
166827 INDEX MODE: ANALYZED (FAST FULL SCAN) OF
'P_PORTFOLIOS' (INDEX (UNIQUE))
1911217 INDEX MODE: ANALYZED (FAST FULL SCAN) OF
'PORTFOLIOS_IX1' (INDEX (UNIQUE))
10575944 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF
'HOLDINGS' (TABLE)
2292837 INDEX MODE: ANALYZED (RANGE SCAN) OF
'R_HOLDINGS_HOLKEYIK' (INDEX)
4086 VIEW PUSHED PREDICATE
4086 SORT (GROUP BY)
2043 NESTED LOOPS
2043 NESTED LOOPS
2043 MERGE JOIN (CARTESIAN)
2043 NESTED LOOPS
2043 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID)
OF 'PARTNERS' (TABLE)
4086 INDEX MODE: ANALYZED (UNIQUE SCAN) OF
'P_PARTNERS' (INDEX (UNIQUE))
4086 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID)
OF 'CUSTODIES' (TABLE)
4086 INDEX MODE: ANALYZED (RANGE SCAN) OF
'R_CUSTODIES_CSTD' (INDEX)
4086 BUFFER (SORT)
4086 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID)
OF 'SECURITIES' (TABLE)
2292837 INDEX MODE: ANALYZED (RANGE SCAN) OF
'SECURITIES_IX2' (INDEX (UNIQUE))
10116948 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF
'HOLKEYS' (TABLE)
10575944 INDEX MODE: ANALYZED (RANGE SCAN) OF
'I_HOLKEYS_SECPOR' (INDEX)
1911217 VIEW PUSHED PREDICATE OF 'VW_GBC_22' (VIEW)
0 SORT (GROUP BY)
0 NESTED LOOPS
0 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID)
OF 'ACCDEF' (TABLE)
0 INDEX MODE: ANALYZED (UNIQUE SCAN) OF
'ACCDEF_IX1' (INDEX (UNIQUE))
0 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID)
OF 'HOLDINGS' (TABLE)
0 INDEX MODE: ANALYZED (RANGE SCAN) OF
'R_HOLDINGS_HOLKEYIK' (INDEX)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 2 0.00 0.00
db file sequential read 16176 0.17 90.98
db file scattered read 590 0.01 1.94
Disk file operations I/O 15 0.00 0.00
SQL*Net message from client 2 0.04 0.04
SQL*Net more data to client 33 0.00 0.00the plans show that your first query has to do much more work than the second query (250M vs. 17M consistent gets). The queries use different plans and the second plan seems to be the better choice - since the first query does not return any rows. The plans also tell us where the time is spent - and there are some nested loops with extreme execution counts and a lot of expansive index access operations (especially the skip scan on P_HOLDINGS), but I would prefer to use a a plan with rowsource statistics to find the errors in the optimizers cardinality estimations.
-
Payables Open Interface Pgm fails without any error(Very urgent)
All,
I'm into an integration project where in I'm pushing Invoice doc from a third party appln to Oracle apps (11.5.10.2) thru payables open interface. The integration is smooth till today. We pushed a record today, but the concurrent neither picks up the data but failed with 'completed error' status. When I delete the same record from the interface, the concurrent runs fine. So we are sure there is some issue with the data in my record. Since concurrent is failed without any reason, from where I can get the log to know what is the actual problem with that record? Pls help me with your inputs.
Thanks,
SenSen,
To enable trace, please refer to this document (skip the part about generating TKPROF, just check the concurrent request output file if more details about the error are logged after enabling trace and setting the profile option).
Note: 453527.1 - How To Trace a Concurrent Request And Generate TKPROF File
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=453527.1
The database log file can be usually found under $ORACLE_HOME/admin/<SID>_<hostname>/bdump directory (or from SQL*Plus, issue "show parameter background_dump_dest").
Regards,
Hussein -
Error in Custom Report.
Hi All,
When i am running a custom report, it gives me the below error. Anyone please advice on what can be done to resolve this error. thanks in advance.
WGT Custom: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
BVTWIPDJPCK module: GB BVT - Barcoded Discrete Pick List
Current system time is 27-SEP-2012 15:49:53
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_SORT_BY='6'
P_TXN_ONLY='2'
P_FROM_JOB='2265926'
P_TO_JOB='2265926'
P_ORGANIZATION_ID='3630'
P_qty_precision='2'
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
AMERICAN_AMERICA.UTF8
stat_low = 6
stat_high = 0
emsg:was terminated by signal 6
Enter Password:
# An unexpected error has been detected by HotSpot Virtual Machine:
# SIGSEGV (0xb) at pc=0x005bdc9d, pid=18089, tid=3453852560
# Java VM: Java HotSpot(TM) Server VM (1.4.2_14-b05 mixed mode)
# Problematic frame:
# C [libc.so.6+0x57c9d] fclose+0x1d
# An error report file with more information is saved as hs_err_pid18089.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
Report Builder: Release 10.1.2.3.0 - Production on Thu Sep 27 15:49:58 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program was terminated by signal 6
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 45097091.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
Output file size:
0
Finished executing request completion options.
Concurrent request completed
Current system time is 27-SEP-2012 15:50:05
---------------------------------------------------------------------------Please enable trace/debug and see if more details are recorded in the concurrent request log file then.
FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]
How To Trace a Concurrent Request And Generate TKPROF File [ID 453527.1]
Also, please see old threads.
https://forums.oracle.com/forums/search.jspa?threadID=&q=Signal+AND+6&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=Signal+AND+6+AND+Custom&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Hi experts,
here i am showing the tkprof result.....
TKPROF: Release 9.2.0.1.0 - Production on Tue Oct 9 13:06:20 2012
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Trace file: c:\orcl_ora_4040_kamaltrc.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
DECLARE
P_MONTH VARCHAR2(32767);
P_YEAR VARCHAR2(32767);
BEGIN
P_MONTH := '11';
P_YEAR := '2012';
MOJ_PRD.CALC_PAYROLL ( P_MONTH, P_YEAR );
COMMIT;
END;
call count cpu elapsed disk query current rows
Parse 1 0.01 0.00 0 0 0 0
Execute 2 0.76 1.05 0 0 0 1
Fetch 0 0.00 0.00 0 0 0 0
total 3 0.78 1.06 0 0 0 1
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD)
DELETE FROM HR_JUDGE_PRE_MONTH_SALARY_TEMP
WHERE 1 = 1
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 1 0.03 0.09 27 72 6438 1231
Fetch 0 0.00 0.00 0 0 0 0
total 1 0.03 0.09 27 72 6438 1231
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 80
DELETE FROM HR_JUDGE_ALW_DED_STD_TEMP
WHERE 1 = 1
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 1 0.00 0.02 20 37 969 861
Fetch 0 0.00 0.00 0 0 0 0
total 1 0.00 0.02 20 37 969 861
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 80
SELECT judge_code, date_of_joining, date_of_relieving,CONTRACT_TYPE_CODE
FROM HR_JUDGE_MASTER
WHERE enabled_flag = 'Y'
-- AND judge_code = '114899'
AND workflow_completion_status = 'Y'
AND include_pay = 'Y'
AND judge_status NOT IN ('000003', '000004', '000007')
-- AND date_of_relieving IS NULL
AND ( (date_of_relieving IS NULL)
OR (TO_DATE (TO_CHAR (date_of_relieving, 'MM/YYYY'), 'MM/YYYY') >=
TO_DATE (TO_CHAR (SYSDATE, 'MM/YYYY'), 'MM/YYYY')
AND judge_code IN (SELECT judge_code
FROM JUDGE_TEMP)
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 524 0.04 0.98 288 568 0 522
total 526 0.04 0.98 288 568 0 522
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 154
INSERT INTO HR_JUDGE_ALW_DED_STD_TEMP
SELECT *
FROM HR_JUDGE_ALW_DED
WHERE percent_value_tag = 'S' AND judge_code = :b1
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 261 0.07 3.02 464 2926 269 861
Fetch 0 0.00 0.00 0 0 0 0
total 261 0.07 3.02 464 2926 269 861
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 140
SELECT NVL (MAX (a.actual_to_date + 1),
b.date_of_joining
) AS start_date
FROM HR_JUDGE_MONTH_SALARY a, HR_JUDGE_MASTER b
WHERE a.judge_code(+) = b.judge_code AND b.judge_code = :b1
GROUP BY b.judge_code, b.date_of_joining
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 261 0.00 0.00 0 0 0 0
Fetch 261 2.01 133.50 28045 194499 0 261
total 522 2.01 133.51 28045 194499 0 261
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 223
SELECT MIN (a.applied_to_date) AS d1
FROM HR_JUDGE_LEAVE_ATTEN a
WHERE a.applied_to_date >= :b3
AND a.applied_from_date <=
((TO_DATE (:b2, 'dd/MM/rrrr')) + 20
AND a.judge_code = :b1
--AND a.leave_code = 'ORDINARY'
AND a.salary_advance_req = 'Y'
AND a.enabled_flag = 'Y'
AND a.workflow_completion_status = 'Y'
call count cpu elapsed disk query current rows
Parse 0 0.00 0.00 0 0 0 0
Execute 261 0.03 0.00 0 0 0 0
Fetch 261 0.00 0.74 103 3547 0 261
total 522 0.03 0.75 103 3547 0 261
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 63 (MOJ_PRD) (recursive depth: 1)
error during execute of EXPLAIN PLAN statement
ORA-00942: table or view does not exist
parse error offset: 117whey all explain plan are failed
can u help me in this regards....
Thanks in advance
kanishEXPLAIN PLAN needs a specific public table installed in the database to store the plan output.
Look in the documentation [url http://docs.oracle.com/cd/E11882_01/server.112/e16638/ex_plan.htm#PFGRF009]here, particularly section 12.2 on the PLAN_TABLE output table.
Looks like either your schema has lost privileges on the plan_table or else the plan_table does not exist. That is a bit unusual so you might cooperate with your DBA in finding out why this is so.
Your DBA might need to execute the catplan.sql script described in the above link. -
can anyone xplain how to do sqltrace and tkprof
here i am getting an error while executing a query
at firs i gave
set autotrace on
SQL> select * from dept;
DEPTNO DEPT_NAME
500 INFORMATION SYSTEMS
CIVIL
400 INFORMATION TECHNOLOGY
100 computers
200 mechanical
300 electrical
6 rows selected.
Execution Plan
0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3 Card=6
1 0 TABLE ACCESS (FULL) OF 'DEPT' (TABLE) (Cost=3 Car
=96)
Statistics
1 recursive calls
0 db block gets
8 consistent gets
0 physical reads
0 redo size
360 bytes sent via SQL*Net to client
276 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
6 rows processed
after that
SQL> ed
Wrote file afiedt.buf
1 tkprof pra.trc
2 explain=dthpc/dthpc
3* table=dept
SQL> /
tkprof pra.trc
ERROR at line 1:
ORA-00900: invalid SQL statement
can anyone help me out regarding tkprofSQL> ed
Wrote file afiedt.buf
+1 tkprof pra.trc+
+2 explain=dthpc/dthpc+
+3* table=dept+
i am confused as what you are trying to do here? are you combining explain plan and tkprof? -
Error when updating Service Request - 12.1.3
eBus 12.1.3 - DB 11.2.0.1 - RHEL 4.8
When updating a service request we receive the error as follows:
ORA-01438: value larger than specified precision allowed for this column in Package CS_ServiceRequest_PVT Procedure Update_ServiceRequest.
The notes input isn't all that long compared to ones in the past. If it is based on another field I can't identify which one it is.
I enabled a trace during the process and this was the section after the updated was attempted.
PARSE #125:c=1999,e=1131,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,plh=0,tim=1342466511527089
EXEC #125:c=5999,e=5829,p=0,cr=1,cu=1,mis=1,r=0,dep=1,og=1,plh=3977838810,tim=1342466511533163
ERROR #125:err=1438 tim=1342466511533218
STAT #125 id=1 cnt=0 pid=0 pos=1 obj=0 op='UPDATE CS_INCIDENTS_ALL_B (cr=0 pr=0 pw=0 time=0 us)'
STAT #125 id=2 cnt=1 pid=1 pos=1 obj=58779 op='TABLE ACCESS BY USER ROWID CS_INCIDENTS_ALL_B (cr=1 pr=0 pw=0 time=0 us cost=1 size=285 card=1)'
CLOSE #125:c=0,e=42,dep=1,type=0,tim=1342466511533719
=====================
PARSING IN CURSOR #124 len=37 dep=1 uid=175 oct=45 lid=175 tim=1342466511533847 hv=1888065881 ad='0' sqlid='aahpwzps8m6at'
ROLLBACK TO UPDATE_SERVICEREQUEST_PVT
END OF STMT
PARSE #124:c=0,e=30,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=0,plh=0,tim=1342466511533844
EXEC #124:c=1000,e=17838,p=0,cr=0,cu=4,mis=0,r=0,dep=1,og=0,plh=0,tim=1342466511551774
CLOSE #124:c=0,e=4,dep=1,type=3,tim=1342466511551833
CLOSE #122:c=0,e=4,dep=1,type=3,tim=1342466511551876
=====================
I have compiled the forms for JTF, CS, CSC
I also ran utlrp.sql to recompile invalid objects and still no luck.
No luck in metalink thus far. Where would the next logical place be to look for the cause of this error? ThanksIt appears to be attempting to update all the columns in the statement, I am not sure which ones have data vs which don't.
<****----------------------STATEMENT---------------------------------------****>
UPDATE CS_INCIDENTS_ALL_B SET INCIDENT_STATUS_ID = :B174 , INCIDENT_TYPE_ID =
:B173 , INCIDENT_URGENCY_ID = :B172 , INCIDENT_SEVERITY_ID = :B171 ,
INCIDENT_OWNER_ID = :B170 , RESOURCE_TYPE = :B169 , INVENTORY_ITEM_ID =
:B168 , CUSTOMER_ID = :B167 , ACCOUNT_ID = :B166 , CURRENT_SERIAL_NUMBER =
:B165 , EXPECTED_RESOLUTION_DATE = :B164 , ACTUAL_RESOLUTION_DATE = :B163 ,
CUSTOMER_PRODUCT_ID = :B162 , BILL_TO_SITE_USE_ID = :B161 ,
BILL_TO_CONTACT_ID = :B160 , SHIP_TO_SITE_USE_ID = :B159 ,
SHIP_TO_CONTACT_ID = :B158 , INSTALL_SITE_USE_ID = :B157 ,
INCIDENT_ATTRIBUTE_1 = :B156 , INCIDENT_ATTRIBUTE_2 = :B155 ,
INCIDENT_ATTRIBUTE_3 = :B154 , INCIDENT_ATTRIBUTE_4 = :B153 ,
INCIDENT_ATTRIBUTE_5 = :B152 , INCIDENT_ATTRIBUTE_6 = :B151 ,
INCIDENT_ATTRIBUTE_7 = :B150 , INCIDENT_ATTRIBUTE_8 = :B149 ,
INCIDENT_ATTRIBUTE_9 = :B148 , INCIDENT_ATTRIBUTE_10 = :B147 ,
INCIDENT_ATTRIBUTE_11 = :B146 , INCIDENT_ATTRIBUTE_12 = :B145 ,
INCIDENT_ATTRIBUTE_13 = :B144 , INCIDENT_ATTRIBUTE_14 = :B143 ,
INCIDENT_ATTRIBUTE_15 = :B142 , INCIDENT_CONTEXT = :B141 ,
EXTERNAL_ATTRIBUTE_1 = :B140 , EXTERNAL_ATTRIBUTE_2 = :B139 ,
EXTERNAL_ATTRIBUTE_3 = :B138 , EXTERNAL_ATTRIBUTE_4 = :B137 ,
EXTERNAL_ATTRIBUTE_5 = :B136 , EXTERNAL_ATTRIBUTE_6 = :B135 ,
EXTERNAL_ATTRIBUTE_7 = :B134 , EXTERNAL_ATTRIBUTE_8 = :B133 ,
EXTERNAL_ATTRIBUTE_9 = :B132 , EXTERNAL_ATTRIBUTE_10 = :B131 ,
EXTERNAL_ATTRIBUTE_11 = :B130 , EXTERNAL_ATTRIBUTE_12 = :B129 ,
EXTERNAL_ATTRIBUTE_13 = :B128 , EXTERNAL_ATTRIBUTE_14 = :B127 ,
EXTERNAL_ATTRIBUTE_15 = :B126 , EXTERNAL_CONTEXT = :B125 , RESOLUTION_CODE =
:B124 , PROBLEM_CODE = :B123 , ORIGINAL_ORDER_NUMBER = :B122 ,
PURCHASE_ORDER_NUM = :B121 , CLOSE_DATE = :B120 , PUBLISH_FLAG = :B119 ,
OBLIGATION_DATE = :B118 , QA_COLLECTION_ID = :B117 , CONTRACT_SERVICE_ID =
:B116 , CONTRACT_ID = :B115 , CONTRACT_NUMBER = :B114 , PROJECT_NUMBER =
:B113 , CUSTOMER_PO_NUMBER = :B112 , CUSTOMER_TICKET_NUMBER = :B111 ,
TIME_ZONE_ID = :B110 , TIME_DIFFERENCE = :B109 , PLATFORM_ID = :B108 ,
PLATFORM_VERSION = :B107 , PLATFORM_VERSION_ID = :B106 , DB_VERSION = :B105
, CP_COMPONENT_ID = :B104 , CP_COMPONENT_VERSION_ID = :B103 ,
CP_SUBCOMPONENT_ID = :B102 , CP_SUBCOMPONENT_VERSION_ID = :B101 ,
CP_REVISION_ID = :B100 , INV_ITEM_REVISION = :B99 , INV_COMPONENT_ID = :B98
, INV_COMPONENT_VERSION = :B97 , INV_SUBCOMPONENT_ID = :B96 ,
INV_SUBCOMPONENT_VERSION = :B95 , SITE_ID = :B94 , CUSTOMER_SITE_ID = :B93 ,
TERRITORY_ID = :B92 , CUST_PREF_LANG_ID = :B91 , COMM_PREF_CODE = :B90 ,
CUST_PREF_LANG_CODE = :B89 , LAST_UPDATE_CHANNEL = :B88 , TIER = :B87 ,
TIER_VERSION = :B86 , OPERATING_SYSTEM = :B85 , OPERATING_SYSTEM_VERSION =
:B84 , DATABASE = :B83 , CATEGORY_ID = :B82 , GROUP_TYPE = :B81 ,
OWNER_GROUP_ID = :B80 , GROUP_TERRITORY_ID = :B79 , OWNER_ASSIGNED_TIME =
:B78 , OWNER_ASSIGNED_FLAG = :B77 , UNASSIGNED_INDICATOR = :B76 ,
INV_PLATFORM_ORG_ID = :B75 , PRODUCT_REVISION = :B74 , COMPONENT_VERSION =
:B73 , SUBCOMPONENT_VERSION = :B72 , CATEGORY_SET_ID = :B71 ,
EXTERNAL_REFERENCE = :B70 , SYSTEM_ID = :B69 , ERROR_CODE = :B68 ,
INCIDENT_OCCURRED_DATE = :B67 , INCIDENT_RESOLVED_DATE = :B66 ,
INC_RESPONDED_BY_DATE = :B65 , INCIDENT_LOCATION_ID = :B64 ,
INCIDENT_ADDRESS = :B63 , INCIDENT_CITY = :B62 , INCIDENT_STATE = :B61 ,
INCIDENT_COUNTRY = :B60 , INCIDENT_PROVINCE = :B59 , INCIDENT_POSTAL_CODE =
:B58 , INCIDENT_COUNTY = :B57 , SR_CREATION_CHANNEL = :B56 , COVERAGE_TYPE =
:B55 , BILL_TO_ACCOUNT_ID = :B54 , SHIP_TO_ACCOUNT_ID = :B53 ,
CUSTOMER_PHONE_ID = :B52 , CUSTOMER_EMAIL_ID = :B51 ,
LAST_UPDATE_PROGRAM_CODE = :B50 , LAST_UPDATED_BY = :B49 ,
LAST_UPDATE_LOGIN = :B48 , LAST_UPDATE_DATE = :B47 , BILL_TO_PARTY_ID =
:B46 , SHIP_TO_PARTY_ID = :B45 , PROGRAM_ID = :B44 , PROGRAM_APPLICATION_ID
= :B43 , REQUEST_ID = :B42 , PROGRAM_LOGIN_ID = :B41 , BILL_TO_SITE_ID =
:B40 , SHIP_TO_SITE_ID = :B39 , STATUS_FLAG = :B38 , OBJECT_VERSION_NUMBER =
:B37 +1, INCIDENT_POINT_OF_INTEREST=:B36 , INCIDENT_CROSS_STREET=:B35 ,
INCIDENT_DIRECTION_QUALIFIER=:B34 , INCIDENT_DISTANCE_QUALIFIER=:B33 ,
INCIDENT_DISTANCE_QUAL_UOM =:B32 , INCIDENT_ADDRESS2 =:B31 ,
INCIDENT_ADDRESS3=:B30 , INCIDENT_ADDRESS4=:B29 , INCIDENT_ADDRESS_STYLE=
:B28 , INCIDENT_ADDR_LINES_PHONETIC =:B27 , INCIDENT_PO_BOX_NUMBER =:B26 ,
INCIDENT_HOUSE_NUMBER =:B25 , INCIDENT_STREET_SUFFIX =:B24 ,
INCIDENT_STREET =:B23 , INCIDENT_STREET_NUMBER =:B22 , INCIDENT_FLOOR=:B21 ,
INCIDENT_SUITE =:B20 , INCIDENT_POSTAL_PLUS4_CODE =:B19 ,
INCIDENT_POSITION =:B18 , INCIDENT_LOCATION_DIRECTIONS=:B17 ,
INCIDENT_LOCATION_DESCRIPTION =:B16 , INSTALL_SITE_ID =:B15 ,
INV_ORGANIZATION_ID= :B14 , OWNING_DEPARTMENT_ID = :B13 ,
INCIDENT_LOCATION_TYPE = :B12 , INCIDENT_LAST_MODIFIED_DATE = SYSDATE,
MAINT_ORGANIZATION_ID = :B11 , INSTRUMENT_PAYMENT_USE_ID = :B10 ,
SLA_DATE_1 = :B9 , SLA_DATE_2 = :B8 , SLA_DATE_3 = :B7 , SLA_DATE_4 = :B6 ,
SLA_DATE_5 = :B5 , SLA_DATE_6 = :B4 , SLA_DURATION_1 = :B3 , SLA_DURATION_2
= :B2
WHERE
ROWID = :B1
<****----------------------END STATEMENT---------------------------------------****>
After that statement this is what the tkprof generated reports shows
<****------------------------------------TKPROF-----------------------------------------****>
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 1 1 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.00 0 1 1 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 175 (recursive depth: 1)
Rows Row Source Operation
0 UPDATE CS_INCIDENTS_ALL_B (cr=0 pr=0 pw=0 time=0 us)
1 TABLE ACCESS BY USER ROWID CS_INCIDENTS_ALL_B (cr=1 pr=0 pw=0 time=0 us cost=1 size=285 card=1)
SQL ID: aahpwzps8m6at
Plan Hash: 0
ROLLBACK TO UPDATE_SERVICEREQUEST_PVT
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.01 0 0 4 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.01 0 0 4 0
Misses in library cache during parse: 0
0 UPDATE CS_INCIDENTS_ALL_B (cr=0 pr=0 pw=0 time=0 us)
1 TABLE ACCESS BY USER ROWID CS_INCIDENTS_ALL_B (cr=1 pr=0 pw=0 time=0 us cost=1 size=285 card=1)
SQL ID: aahpwzps8m6at
Plan Hash: 0
ROLLBACK TO UPDATE_SERVICEREQUEST_PVT
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.01 0 0 4 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.01 0 0 4 0
Misses in library cache during parse: 0
Parsing user id: 175 (recursive depth: 1)
<****------------------------------------END TKPROF-----------------------------------------****> -
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 -
Looking for your advise on this TKProf
Hello There,
I am looking for your advise on the following TKProf:
TKPROF: Release 11.1.0.7.0 - Production on Thu Apr 28 16:37:23 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Trace file: DCPRD_ora_9930_AIBRAHIM80.trc
Sort options: prsdsk exedsk fchdsk
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
The following statement encountered a error during parse:
SELECT ROWID,VENDOR_NAME,VENDOR_NUMBER,VENDOR_SITE_CODE,TERRITORY_SHORT_NAME,CONCATENATED_ADDRESS,LANGUAGE_DESCRIPTION,AREA_CODE,PHONE,COUNTRY,LANGUAGE,INVOICE_CURRENCY_CODE,VENDOR_ID,VENDOR_SITE_ID FROM AP_VENDOR_DISP_V WHERE (VENDOR_ID=:1) and (VENDOR_SITE_ID=:2)
Error encountered: ORA-01445
SQL ID: 5uz1ugat7bn9k
Plan Hash: 1624111731
SELECT COUNT( DECODE( POD.PREVENT_ENCUMBRANCE_FLAG , 'Y', NULL , DECODE(
POD.ENCUMBERED_FLAG , 'Y', 'Y' , NULL ) ) ) , COUNT( DECODE(
POD.PREVENT_ENCUMBRANCE_FLAG , 'Y', NULL , DECODE( POD.ENCUMBERED_FLAG ,
'Y', NULL , 'N' ) ) ) , COUNT( DECODE( POD.PREVENT_ENCUMBRANCE_FLAG , 'Y',
'Y' , NULL ) )
FROM
PO_DISTRIBUTIONS_ALL POD , PO_LINE_LOCATIONS_ALL POLL , PO_HEADERS_ALL POH
WHERE POLL.LINE_LOCATION_ID(+) = POD.LINE_LOCATION_ID AND POH.PO_HEADER_ID =
POD.PO_HEADER_ID AND ( (:B2 <> :B11 AND NVL(POLL.CANCEL_FLAG,'N') <> 'Y')
OR (:B2 = :B11 AND NVL(POH.CANCEL_FLAG,'N') <> 'Y') ) AND ( ( :B2 <> :B11
AND NVL(POLL.CLOSED_CODE,:B10 ) <> :B9 ) OR ( :B2 = :B11 AND
NVL(POH.CLOSED_CODE,:B10 ) <> :B9 ) ) AND ( ( :B5 = :B8 AND
POD.PO_DISTRIBUTION_ID = :B3 ) OR ( :B5 = :B7 AND POD.LINE_LOCATION_ID =
:B3 ) OR ( :B5 = :B6 AND POD.PO_LINE_ID = :B3 ) OR ( :B5 = :B4 AND :B2 =
:B1 AND POD.PO_RELEASE_ID = :B3 ) OR ( :B5 = :B4 AND :B2 <> :B1 AND
POD.PO_HEADER_ID = :B3 ) ) AND ( ( :B2 <> :B1 AND POD.PO_RELEASE_ID IS NULL
) OR ( :B2 = :B1 AND POD.PO_RELEASE_ID IS NOT NULL ) )
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 114604 414.24 434.04 0 0 0 0
Fetch 114604 45.91 750.41 46028 2831063 0 114604
total 229209 460.15 1184.46 46028 2831063 0 114604
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 183 (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
1 1 1 SORT AGGREGATE (cr=12 pr=9 pw=0 time=0 us)
1 1 1 CONCATENATION (cr=12 pr=9 pw=0 time=0 us)
1 1 1 FILTER (cr=12 pr=9 pw=0 time=0 us)
1 1 1 FILTER (cr=12 pr=9 pw=0 time=0 us)
1 1 1 NESTED LOOPS OUTER (cr=12 pr=9 pw=0 time=0 us cost=7 size=57 card=1)
1 1 1 NESTED LOOPS (cr=7 pr=4 pw=0 time=0 us cost=5 size=42 card=1)
1 1 1 TABLE ACCESS BY INDEX ROWID PO_DISTRIBUTIONS_ALL (cr=4 pr=4 pw=0 time=0 us cost=4 size=29 card=1)
1 1 1 INDEX RANGE SCAN PO_DISTRIBUTIONS_N11 (cr=3 pr=3 pw=0 time=0 us cost=3 size=0 card=5)(object id 45031)
1 1 1 TABLE ACCESS BY INDEX ROWID PO_HEADERS_ALL (cr=3 pr=0 pw=0 time=0 us cost=1 size=13 card=1)
1 1 1 INDEX UNIQUE SCAN PO_HEADERS_U1 (cr=2 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 45109)
1 1 1 TABLE ACCESS BY INDEX ROWID PO_LINE_LOCATIONS_ALL (cr=5 pr=5 pw=0 time=0 us cost=2 size=15 card=1)
1 1 1 INDEX UNIQUE SCAN PO_LINE_LOCATIONS_U1 (cr=3 pr=3 pw=0 time=0 us cost=1 size=0 card=1)(object id 45204)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us)
0 0 0 NESTED LOOPS OUTER (cr=0 pr=0 pw=0 time=0 us cost=6 size=57 card=1)
0 0 0 NESTED LOOPS (cr=0 pr=0 pw=0 time=0 us cost=4 size=42 card=1)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_DISTRIBUTIONS_ALL (cr=0 pr=0 pw=0 time=0 us cost=3 size=29 card=1)
0 0 0 INDEX UNIQUE SCAN PO_DISTRIBUTIONS_U1 (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=1)(object id 45078)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_HEADERS_ALL (cr=0 pr=0 pw=0 time=0 us cost=1 size=477061 card=36697)
0 0 0 INDEX UNIQUE SCAN PO_HEADERS_U1 (cr=0 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 45109)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_LINE_LOCATIONS_ALL (cr=0 pr=0 pw=0 time=0 us cost=2 size=11849205 card=789947)
0 0 0 INDEX UNIQUE SCAN PO_LINE_LOCATIONS_U1 (cr=0 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 45204)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us)
0 0 0 NESTED LOOPS OUTER (cr=0 pr=0 pw=0 time=0 us cost=7 size=57 card=1)
0 0 0 NESTED LOOPS (cr=0 pr=0 pw=0 time=0 us cost=5 size=42 card=1)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_DISTRIBUTIONS_ALL (cr=0 pr=0 pw=0 time=0 us cost=4 size=29 card=1)
0 0 0 INDEX RANGE SCAN PO_DISTRIBUTIONS_N1 (cr=0 pr=0 pw=0 time=0 us cost=3 size=0 card=1)(object id 45023)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_HEADERS_ALL (cr=0 pr=0 pw=0 time=0 us cost=1 size=13 card=1)
0 0 0 INDEX UNIQUE SCAN PO_HEADERS_U1 (cr=0 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 45109)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_LINE_LOCATIONS_ALL (cr=0 pr=0 pw=0 time=0 us cost=2 size=15 card=1)
0 0 0 INDEX UNIQUE SCAN PO_LINE_LOCATIONS_U1 (cr=0 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 45204)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us)
0 0 0 NESTED LOOPS OUTER (cr=0 pr=0 pw=0 time=0 us cost=10 size=57 card=1)
0 0 0 NESTED LOOPS (cr=0 pr=0 pw=0 time=0 us cost=8 size=42 card=1)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_DISTRIBUTIONS_ALL (cr=0 pr=0 pw=0 time=0 us cost=7 size=29 card=1)
0 0 0 INDEX RANGE SCAN PO_DISTRIBUTIONS_N3 (cr=0 pr=0 pw=0 time=0 us cost=3 size=0 card=21)(object id 45049)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_HEADERS_ALL (cr=0 pr=0 pw=0 time=0 us cost=1 size=13 card=1)
0 0 0 INDEX UNIQUE SCAN PO_HEADERS_U1 (cr=0 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 45109)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_LINE_LOCATIONS_ALL (cr=0 pr=0 pw=0 time=0 us cost=2 size=15 card=1)
0 0 0 INDEX UNIQUE SCAN PO_LINE_LOCATIONS_U1 (cr=0 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 45204)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us)
0 0 0 FILTER (cr=0 pr=0 pw=0 time=0 us)
0 0 0 NESTED LOOPS OUTER (cr=0 pr=0 pw=0 time=0 us cost=8 size=57 card=1)
0 0 0 NESTED LOOPS (cr=0 pr=0 pw=0 time=0 us cost=6 size=42 card=1)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_DISTRIBUTIONS_ALL (cr=0 pr=0 pw=0 time=0 us cost=5 size=29 card=1)
0 0 0 INDEX RANGE SCAN PO_DISTRIBUTIONS_N4 (cr=0 pr=0 pw=0 time=0 us cost=3 size=0 card=3)(object id 45054)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_HEADERS_ALL (cr=0 pr=0 pw=0 time=0 us cost=1 size=13 card=1)
0 0 0 INDEX UNIQUE SCAN PO_HEADERS_U1 (cr=0 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 45109)
0 0 0 TABLE ACCESS BY INDEX ROWID PO_LINE_LOCATIONS_ALL (cr=0 pr=0 pw=0 time=0 us cost=2 size=15 card=1)
0 0 0 INDEX UNIQUE SCAN PO_LINE_LOCATIONS_U1 (cr=0 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 45204)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 46028 1.12 712.45
SELECT ROW_ID,ORG_ID,PO_RELEASE_ID,PO_HEADER_ID,RELEASE_TYPE,AGENT_ID,VENDOR_ID,SHIP_TO_LOCATION_ID,SHIP_TO_LOCATION,SHIP_TO_ORGANIZATION_ID,VENDOR_SITE_ID,APPROVED_DATE,APPROVED_FLAG,AUTHORIZATION_STATUS,CANCEL_DATE,CANCEL_REASON,CANCELLED_BY,CANCEL_FLAG,HOLD_BY,HOLD_DATE,HOLD_REASON,HOLD_FLAG,CLOSED_CODE,FROZEN_FLAG,PRINT_COUNT,PRINTED_DATE,CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN,PROGRAM_APPLICATION_ID,PROGRAM_ID,PROGRAM_UPDATE_DATE,REQUEST_ID,ATTRIBUTE2,ATTRIBUTE3,ATTRIBUTE4,ATTRIBUTE1,ATTRIBUTE5,ATTRIBUTE6,ATTRIBUTE7,ATTRIBUTE8,ATTRIBUTE9,ATTRIBUTE10,ATTRIBUTE11,ATTRIBUTE12,ATTRIBUTE13,ATTRIBUTE15,ATTRIBUTE14,ATTRIBUTE_CATEGORY,PO_NUM,RELEASE_NUM,REVISION_NUM,RELEASE_REVISION_NUM,REVISED_DATE,RELEASE_DATE,VENDOR_NAME,VENDOR_SITE_CODE,CURRENCY_CODE,AGENT_NAME,STATUS,FIRM_STATUS_LOOKUP_CODE,ACCEPTANCE_REQUIRED_FLAG,ACCEPTANCE_DUE_DATE,PCARD_ID,GOVERNMENT_CONTEXT,AGREEMENT_TYPE,AMOUNT_LIMIT,MIN_RELEASE_AMOUNT,PRICE_UPDATE_TOLERANCE,AGREEMENT_BUYER,AGREEMENT_CONTACT,AGREEMENT_DESCRIPTION,NOTE_TO_SUPPLIER,NOTE_TO_RECEIVER,START_DATE,END_DATE,PAYMENT_TERMS,PAY_ON_CODE,SHIPPING_CONTROL,GLOBAL_ATTRIBUTE_CATEGORY,GLOBAL_ATTRIBUTE1,GLOBAL_ATTRIBUTE2,GLOBAL_ATTRIBUTE3,GLOBAL_ATTRIBUTE4,GLOBAL_ATTRIBUTE5,GLOBAL_ATTRIBUTE6,GLOBAL_ATTRIBUTE7,GLOBAL_ATTRIBUTE8,GLOBAL_ATTRIBUTE9,GLOBAL_ATTRIBUTE10,GLOBAL_ATTRIBUTE11,GLOBAL_ATTRIBUTE12,GLOBAL_ATTRIBUTE13,GLOBAL_ATTRIBUTE14,GLOBAL_ATTRIBUTE15,GLOBAL_ATTRIBUTE16,GLOBAL_ATTRIBUTE17,GLOBAL_ATTRIBUTE18,GLOBAL_ATTRIBUTE19,GLOBAL_ATTRIBUTE20,TYPE_LOOKUP_CODE,PO_AUTHORIZATION_STATUS,FOB_LOOKUP_CODE,FREIGHT_TERMS_LOOKUP_CODE FROM PO_RELEASES_V WHERE NVL(consigned_consumption_flag, 'N') <> 'Y' and ((authorization_status is null or authorization_status not in ('IN PROCESS', 'PRE-APPROVED' ))) and ((NOT(RELEASE_TYPE IN ('BLANKET', 'SCHEDULED')) OR (((PO_RELEASES_V.security_level_code = 'PUBLIC' ) OR (PO_RELEASES_V.security_level_code = 'PRIVATE' AND 183739=AGENT_ID) OR (PO_RELEASES_V.security_level_code = 'HIERARCHY' AND ((183739=AGENT_ID) OR (EXISTS (SELECT 'Y' FROM PO_ACTION_HISTORY POAH2 WHERE POAH2.employee_id =183739 AND POAH2.object_type_code = (DECODE(PO_RELEASES_V.DOCUMENT_TYPE, 'BLANKET', 'PA', 'STANDARD', 'PO' , 'PLANNED' , 'PO' , 'CONTRACT' , 'PA', 'RELEASE' , 'RELEASE' ) ) AND POAH2.object_id = PO_RELEASES_V.PO_RELEASE_ID)) OR (183739 IN (SELECT H.superior_id FROM PO_EMPLOYEE_HIERARCHIES H, PO_SYSTEM_PARAMETERS PSP WHERE H.employee_id = PO_RELEASES_V.AGENT_ID AND H.position_structure_id = NVL(PSP.SECURITY_POSITION_STRUCTURE_ID,-1) AND PSP.ORG_ID = PO_RELEASES_V.ORG_ID )))) OR (PO_RELEASES_V.security_level_code = 'PURCHASING' AND ((183739=AGENT_ID) OR (EXISTS (SELECT 'Y' FROM PO_ACTION_HISTORY POAH2 WHERE POAH2.employee_id =183739 AND POAH2.object_type_code = (DECODE(PO_RELEASES_V.DOCUMENT_TYPE, 'BLANKET', 'PA', 'STANDARD', 'PO' , 'PLANNED' , 'PO' , 'CONTRACT' , 'PA', 'RELEASE' , 'RELEASE' ) ) AND POAH2.object_id = PO_RELEASES_V.PO_RELEASE_ID)) OR (EXISTS(SELECT NULL FROM PO_AGENTS WHERE agent_id= 183739 AND SYSDATE BETWEEN NVL(start_date_active, SYSDATE) AND NVL(end_date_active, SYSDATE+1))))))AND (('MODIFY' = 'VIEW_ONLY' ) OR ( 'MODIFY' = 'MODIFY' AND PO_RELEASES_V.access_level_code IN ('MODIFY','FULL') ) OR ( 'MODIFY' = 'FULL' AND PO_RELEASES_V.access_level_code = 'FULL' ) OR ( 183739 = AGENT_ID))))) and (LAST_UPDATED_BY = last_updated_by
AND nvl(cancel_flag,'N') ='N'
AND nvl(closed_code,'OPEN') !='FINALLY CLOSED'
AND nvl(frozen_flag,'N') !='Y'
AND release_type IN ('BLANKET','SCHEDULED')
AND EXISTS (SELECT 'Header is not frozen'
FROM po_headers ph
WHERE ph.po_header_id = po_releases_v.po_header_id
AND NVL(ph.frozen_flag,'N') ='N'
AND nvl(ph.closed_code,'OPEN') !='FINALLY CLOSED')
AND ('' IS NULL
OR po_releases_v.authorization_status IN
(SELECT plc.lookup_code
FROM po_lookup_codes plc
WHERE plc.lookup_type = 'AUTHORIZATION STATUS'
AND plc.displayed_field LIKE ''))) order by po_num desc, release_num desc
call count cpu elapsed disk query current rows
Parse 1 168.61 160.43 288 4291 14 0
Execute 1 0.01 0.00 0 0 0 0
Fetch 1 166.81 580.89 18452 2628283 0 2
total 3 335.43 741.33 18740 2632574 14 2
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 183
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1 0.00 0.00
SQL*Net more data to client 3 0.00 0.00
db file sequential read 18452 0.88 417.79
SQL*Net message from client 1 0.00 0.00
SQL ID: 3ktacv9r56b51
Plan Hash: 458693102
select owner#,name,namespace,remoteowner,linkname,p_timestamp,p_obj#,
nvl(property,0),subname,type#,d_attrs
from
dependency$ d, obj$ o where d_obj#=:1 and p_obj#=obj#(+) order by order#
call count cpu elapsed disk query current rows
Parse 131 0.00 0.01 0 0 8 0
Execute 131 0.01 0.03 0 0 0 0
Fetch 1125 0.25 9.06 386 3632 0 994
total 1387 0.26 9.10 386 3632 8 994
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Number of plan statistics captured: 3
Rows (1st) Rows (avg) Rows (max) Row Source Operation
1 7 20 SORT ORDER BY (cr=27 pr=4 pw=0 time=0 us cost=20 size=375 card=5)
1 7 20 NESTED LOOPS OUTER (cr=27 pr=4 pw=0 time=18 us cost=19 size=375 card=5)
1 7 20 TABLE ACCESS BY INDEX ROWID DEPENDENCY$ (cr=4 pr=1 pw=0 time=2 us cost=4 size=155 card=5)
1 7 20 INDEX RANGE SCAN I_DEPENDENCY1 (cr=3 pr=0 pw=0 time=0 us cost=3 size=0 card=5)(object id 116)
1 7 20 TABLE ACCESS BY INDEX ROWID OBJ$ (cr=23 pr=3 pw=0 time=0 us cost=3 size=44 card=1)
1 7 20 INDEX RANGE SCAN I_OBJ1 (cr=16 pr=2 pw=0 time=0 us cost=2 size=0 card=1)(object id 1288242)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 386 0.20 8.95
SQL ID: cvn54b7yz0s8u
Plan Hash: 2991757387
select /*+ index(idl_ub1$ i_idl_ub11) +*/ piece#,length,piece
from
idl_ub1$ where obj#=:1 and part=:2 and version=:3 order by piece#
call count cpu elapsed disk query current rows
Parse 165 0.00 0.00 0 0 8 0
Execute 165 0.08 0.06 0 0 0 0
Fetch 449 0.09 10.49 379 1740 0 410
total 779 0.17 10.56 379 1740 8 410
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 3
Rows (1st) Rows (avg) Rows (max) Row Source Operation
1 1 2 TABLE ACCESS BY INDEX ROWID IDL_UB1$ (cr=5 pr=1 pw=0 time=0 us cost=4 size=21 card=1)
1 1 2 INDEX RANGE SCAN I_IDL_UB11 (cr=4 pr=0 pw=0 time=3 us cost=3 size=0 card=1)(object id 110)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 379 0.22 10.44
********************************************************************************SQL ID: 8r75sj1fpjn1k
Plan Hash: 1052563856
SELECT PLC_STA.DISPLAYED_FIELD, DECODE(POR.CANCEL_FLAG, 'Y',
PLC_CAN.DISPLAYED_FIELD, NULL), DECODE(NVL(POR.CLOSED_CODE, 'OPEN'), 'OPEN',
NULL, PLC_CLO.DISPLAYED_FIELD), DECODE(POR.FROZEN_FLAG, 'Y',
PLC_FRO.DISPLAYED_FIELD, NULL), DECODE(POR.HOLD_FLAG, 'Y',
PLC_HLD.DISPLAYED_FIELD, NULL), POR.AUTHORIZATION_STATUS,
NVL(POR.CANCEL_FLAG, 'N'), NVL(POR.CLOSED_CODE, 'OPEN'),
NVL(POR.FROZEN_FLAG, 'N'), NVL(POR.HOLD_FLAG, 'N')
FROM
PO_RELEASES POR, PO_LOOKUP_CODES PLC_STA, PO_LOOKUP_CODES PLC_CAN,
PO_LOOKUP_CODES PLC_CLO, PO_LOOKUP_CODES PLC_FRO, PO_LOOKUP_CODES PLC_HLD
WHERE PLC_STA.LOOKUP_CODE = DECODE(POR.APPROVED_FLAG, 'R',
POR.APPROVED_FLAG, NVL(POR.AUTHORIZATION_STATUS,'INCOMPLETE')) AND
PLC_STA.LOOKUP_TYPE IN ('PO APPROVAL', 'DOCUMENT STATE') AND
PLC_CAN.LOOKUP_CODE = 'CANCELLED' AND PLC_CAN.LOOKUP_TYPE = 'DOCUMENT
STATE' AND PLC_CLO.LOOKUP_CODE = NVL(POR.CLOSED_CODE, 'OPEN') AND
PLC_CLO.LOOKUP_TYPE = 'DOCUMENT STATE' AND PLC_FRO.LOOKUP_CODE = 'FROZEN'
AND PLC_FRO.LOOKUP_TYPE = 'DOCUMENT STATE' AND PLC_HLD.LOOKUP_CODE = 'ON
HOLD' AND PLC_HLD.LOOKUP_TYPE = 'DOCUMENT STATE' AND POR.PO_RELEASE_ID =
:B1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 114597 37.02 40.60 0 0 0 0
Fetch 114597 64.11 68.70 239 2988322 0 114597
total 229195 101.13 109.30 239 2988322 0 114597
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 183 (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
1 1 1 NESTED LOOPS (cr=27 pr=6 pw=0 time=0 us)
1 1 1 NESTED LOOPS (cr=26 pr=5 pw=0 time=0 us cost=18 size=323 card=1)
1 1 1 MERGE JOIN CARTESIAN (cr=20 pr=4 pw=0 time=0 us cost=14 size=265 card=1)
1 1 1 MERGE JOIN CARTESIAN (cr=16 pr=4 pw=0 time=0 us cost=11 size=207 card=1)
1 1 1 MERGE JOIN CARTESIAN (cr=12 pr=4 pw=0 time=0 us cost=8 size=149 card=1)
1 1 1 NESTED LOOPS (cr=8 pr=4 pw=0 time=0 us cost=5 size=91 card=1)
1 1 1 TABLE ACCESS BY INDEX ROWID PO_RELEASES_ALL (cr=4 pr=2 pw=0 time=0 us cost=2 size=33 card=1)
1 1 1 INDEX UNIQUE SCAN PO_RELEASES_U1 (cr=2 pr=2 pw=0 time=0 us cost=1 size=0 card=1)(object id 45219)
1 1 1 TABLE ACCESS BY INDEX ROWID FND_LOOKUP_VALUES (cr=4 pr=2 pw=0 time=0 us cost=3 size=58 card=1)
1 1 1 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=3 pr=1 pw=0 time=0 us cost=2 size=0 card=1)(object id 33540)
1 1 1 BUFFER SORT (cr=4 pr=0 pw=0 time=0 us cost=5 size=58 card=1)
1 1 1 TABLE ACCESS BY INDEX ROWID FND_LOOKUP_VALUES (cr=4 pr=0 pw=0 time=0 us cost=3 size=58 card=1)
1 1 1 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=3 pr=0 pw=0 time=0 us cost=2 size=0 card=1)(object id 33540)
1 1 1 BUFFER SORT (cr=4 pr=0 pw=0 time=0 us cost=8 size=58 card=1)
1 1 1 TABLE ACCESS BY INDEX ROWID FND_LOOKUP_VALUES (cr=4 pr=0 pw=0 time=0 us cost=3 size=58 card=1)
1 1 1 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=3 pr=0 pw=0 time=0 us cost=2 size=0 card=1)(object id 33540)
1 1 1 BUFFER SORT (cr=4 pr=0 pw=0 time=0 us cost=11 size=58 card=1)
1 1 1 TABLE ACCESS BY INDEX ROWID FND_LOOKUP_VALUES (cr=4 pr=0 pw=0 time=0 us cost=3 size=58 card=1)
1 1 1 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=3 pr=0 pw=0 time=0 us cost=2 size=0 card=1)(object id 33540)
1 1 1 INLIST ITERATOR (cr=6 pr=1 pw=0 time=0 us)
1 1 1 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=6 pr=1 pw=0 time=0 us cost=3 size=0 card=1)(object id 33540)
1 1 1 TABLE ACCESS BY INDEX ROWID FND_LOOKUP_VALUES (cr=1 pr=1 pw=0 time=0 us cost=4 size=58 card=1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 239 0.23 4.54
SQL ID: 7ng34ruy5awxq
Plan Hash: 3984801583
select i.obj#,i.ts#,i.file#,i.block#,i.intcols,i.type#,i.flags,i.property,
i.pctfree$,i.initrans,i.maxtrans,i.blevel,i.leafcnt,i.distkey,i.lblkkey,
i.dblkkey,i.clufac,i.cols,i.analyzetime,i.samplesize,i.dataobj#,
nvl(i.degree,1),nvl(i.instances,1),i.rowcnt,mod(i.pctthres$,256),
i.indmethod#,i.trunccnt,nvl(c.unicols,0),nvl(c.deferrable#+c.valid#,0),
nvl(i.spare1,i.intcols),i.spare4,i.spare2,i.spare6,decode(i.pctthres$,null,
null,mod(trunc(i.pctthres$/256),256)),ist.cachedblk,ist.cachehit,
ist.logicalread
from
ind$ i, ind_stats$ ist, (select enabled, min(cols) unicols,
min(to_number(bitand(defer,1))) deferrable#,min(to_number(bitand(defer,4)))
valid# from cdef$ where obj#=:1 and enabled > 1 group by enabled) c where
i.obj#=c.enabled(+) and i.obj# = ist.obj#(+) and i.bo#=:1 order by i.obj#
call count cpu elapsed disk query current rows
Parse 24 0.01 0.00 0 0 4 0
Execute 80 0.03 0.04 0 0 0 0
Fetch 470 0.27 6.55 197 882 0 390
total 574 0.31 6.60 197 882 4 390
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Number of plan statistics captured: 24
Rows (1st) Rows (avg) Rows (max) Row Source Operation
1 5 18 SORT ORDER BY (cr=11 pr=3 pw=0 time=0 us cost=8 size=376 card=2)
1 5 18 HASH JOIN OUTER (cr=11 pr=3 pw=0 time=2 us cost=7 size=376 card=2)
1 5 18 NESTED LOOPS OUTER (cr=7 pr=2 pw=0 time=7560 us cost=3 size=290 card=2)
1 5 18 TABLE ACCESS CLUSTER IND$ (cr=6 pr=2 pw=0 time=7555 us cost=3 size=186 card=2)
1 1 1 INDEX UNIQUE SCAN I_OBJ# (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 3)
0 0 0 TABLE ACCESS BY INDEX ROWID IND_STATS$ (cr=1 pr=0 pw=0 time=0 us cost=0 size=52 card=1)
0 0 0 INDEX UNIQUE SCAN I_IND_STATS$_OBJ# (cr=1 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 647660)
0 0 0 VIEW (cr=4 pr=1 pw=0 time=0 us cost=3 size=43 card=1)
0 0 0 SORT GROUP BY (cr=4 pr=1 pw=0 time=0 us cost=3 size=16 card=1)
0 0 0 TABLE ACCESS CLUSTER CDEF$ (cr=4 pr=1 pw=0 time=0 us cost=2 size=16 card=1)
1 1 1 INDEX UNIQUE SCAN I_COBJ# (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)(object id 27)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 197 0.35 6.34
SQL ID: 96g93hntrzjtr
Plan Hash: 841937906
select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#,
sample_size, minimum, maximum, distcnt, lowval, hival, density, col#,
spare1, spare2, avgcln
from
hist_head$ where obj#=:1 and intcol#=:2
call count cpu elapsed disk query current rows
Parse 38 0.01 0.00 0 0 2 0
Execute 663 0.28 0.24 0 0 0 0
Fetch 663 0.05 4.84 150 2731 0 656
total 1364 0.34 5.09 150 2731 2 656
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: RULE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 38
Rows (1st) Rows (avg) Rows (max) Row Source Operation
1 1 1 TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=4 pr=1 pw=0 time=0 us)
1 1 1 INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=3 pr=0 pw=0 time=0 us)(object id 194)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 150 0.28 4.80
SQL ID: ga9j9xk5cy9s0
Plan Hash: 467424113
select /*+ index(idl_sb4$ i_idl_sb41) +*/ piece#,length,piece
from
idl_sb4$ where obj#=:1 and part=:2 and version=:3 order by piece#
call count cpu elapsed disk query current rows
Parse 165 0.00 0.01 0 0 8 0
Execute 165 0.05 0.07 0 0 0 0
Fetch 369 0.11 3.79 141 1107 0 204
total 699 0.16 3.88 141 1107 8 204
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 3
Rows (1st) Rows (avg) Rows (max) Row Source Operation
2 2 2 TABLE ACCESS BY INDEX ROWID IDL_SB4$ (cr=6 pr=0 pw=0 time=0 us cost=4 size=19 card=1)
2 2 2 INDEX RANGE SCAN I_IDL_SB41 (cr=5 pr=0 pw=0 time=9 us cost=3 size=0 card=1)(object id 113)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 141 0.20 3.75
SQL ID: 39m4sx9k63ba2
Plan Hash: 2769382227
select /*+ index(idl_ub2$ i_idl_ub21) +*/ piece#,length,piece
from
idl_ub2$ where obj#=:1 and part=:2 and version=:3 order by piece#
call count cpu elapsed disk query current rows
Parse 165 0.03 0.01 0 0 8 0
Execute 165 0.05 0.06 0 0 0 0
Fetch 219 0.03 3.08 114 759 0 93
total 549 0.11 3.16 114 759 8 93
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 1)
Number of plan statistics captured: 3
Rows (1st) Rows (avg) Rows (max) Row Source Operation
2 1 2 TABLE ACCESS BY INDEX ROWID IDL_UB2$ (cr=5 pr=1 pw=0 time=0 us cost=4 size=20 card=1)
2 1 2 INDEX RANGE SCAN I_IDL_UB21 (cr=4 pr=0 pw=0 time=9 us cost=3 size=0 card=1)(object id 112)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 114 0.13 3.06
SQL ID: 8swypbbr0m372
Plan Hash: 872636971
select order#,columns,types
from
access$ where d_obj#=:1
call count cpu elapsed disk query current rows
Parse 131 0.00 0.01 0 0 8 0
Execute 131 0.02 0.02 0 0 0 0
Fetch 1017 0.05 2.77 113 2170 0 886
total 1279 0.07 2.81 113 2170 8 886
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: CHOOSE
Parsing user id: SYS (recursive depth: 2)
Number of plan statistics captured: 3
Rows (1st) Rows (avg) Rows (max) Row Source Operation
0 4 12 TABLE ACCESS BY INDEX ROWID ACCESS$ (cr=11 pr=1 pw=0 time=0 us cost=4 size=200 card=8)
0 4 12 INDEX RANGE SCAN I_ACCESS1 (cr=7 pr=0 pw=0 time=3 us cost=3 size=0 card=8)(object id 118)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 113 0.14 2.74
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 100 168.74 160.81 295 4538 40 0
Execute 119 3.39 3.38 2 43 0 12
Fetch 107 166.95 583.44 18545 2628759 0 364
total 326 339.08 747.64 18842 2633340 40 376
Misses in library cache during parse: 30
Misses in library cache during execute: 11
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 221 0.00 0.00
SQL*Net message from client 221 100.05 191.50
db file sequential read 18558 0.88 420.50
log file sync 2 0.01 0.01
SQL*Net more data to client 52 0.00 0.00
SQL*Net more data from client 9 0.03 0.03
SQL*Net break/reset to client 2 0.00 0.00
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 2161 0.50 0.48 0 0 282 0
Execute 349226 639.57 671.70 7 86 74 9
Fetch 365281 113.87 886.34 48788 5852890 0 362441
total 716668 753.94 1558.53 48795 5852976 356 362450
Misses in library cache during parse: 119
Misses in library cache during execute: 136
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 48795 1.12 781.12
latch: row cache objects 1 0.00 0.00
344378 user SQL statements in session.
4837 internal SQL statements in session.
349215 SQL statements in session.
Trace file: DCPRD_ora_9930_AIBRAHIM80.trc
Trace file compatibility: 11.1.0.7
Sort options: prsdsk exedsk fchdsk
1 session in tracefile.
344378 user SQL statements in trace file.
4837 internal SQL statements in trace file.
349215 SQL statements in trace file.
196 unique SQL statements in trace file.
32265404 lines in trace file.
2505 elapsed seconds in trace file.
Regards,
Tareq -
Materialized View, ORA-12008: error in materialized view refresh path
I want to refresh a materialized view, but I get an ORA-12008 error.
Does anybody have an idea? I do not find any errors in my refresh statement.
CREATE MATERIALIZED VIEW scott.dummy_mv
TABLESPACE test
BUILD IMMEDIATE
USING INDEX TABLESPACE idx_test
REFRESH
START WITH sysdate
NEXT ROUND(SYSDATE)+5/24
WITH PRIMARY KEY
ENABLE QUERY REWRITE
AS
SELECT KM.ID ID
,KM.USERNAME USERNAME
,KM.ABTID ABTID
FROM my_table KM
scott@orcl>desc dummy_mv
Name Null? Typ
ID NOT NULL NUMBER(4)
USERNAME NOT NULL VARCHAR2(30)
ABTID NOT NULL NUMBER(4)
scott@orcl>
BEGIN
SYS.DBMS_JOB.REMOVE(6579);
COMMIT;
END;
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'dbms_refresh.refresh(''"scott"."dummy_mv"'');'
,next_date => to_date('07.01.2009 05:00:00','dd/mm/yyyy hh24:mi:ss')
,interval => 'ROUND(SYSDATE)+5/24 '
,no_parse => FALSE
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;
scott@orcl>exec dbms_refresh.refresh('dummy_mv');
BEGIN dbms_refresh.refresh('dummy_mv'); END;
FEHLER in Zeile 1:
ORA-12008: error in materialized view refresh path
ORA-00947: not enough values
ORA-06512: in "SYS.DBMS_SNAPSHOT", Zeile 820
ORA-06512: in "SYS.DBMS_SNAPSHOT", Zeile 877
ORA-06512: in "SYS.DBMS_IREFRESH", Zeile 683
ORA-06512: in "SYS.DBMS_REFRESH", Zeile 195
ORA-06512: in Zeile 1
scott@orcl>crupper wrote:
I get the same error:
scott@orcl>exec dbms_mview.refresh('dummy_mv','c');
BEGIN dbms_mview.refresh('dummy_mv','c'); END;
FEHLER in Zeile 1:
ORA-12008: error in materialized view refresh path
ORA-00947: not enough values
ORA-06512: in "SYS.DBMS_SNAPSHOT", Zeile 820
ORA-06512: in "SYS.DBMS_SNAPSHOT", Zeile 877
ORA-06512: in "SYS.DBMS_SNAPSHOT", Zeile 858
ORA-06512: in Zeile 1
I would first check the "query" information of the DBA_SNAPSHOTS/DBA_MVIEWS dictionary views if it reveals anything obvious.
But it looks more like an internal error while processing the refresh. You can get more information about the error by tracing the session. A "alter session set sql_trace = true;" before running the refresh should be sufficient. Disconnect afterwards and check the generated trace file for errors either using "tkprof" and checking the output or by manually searching for "err=" in the trace file.
Which 4-digit version of Oracle are you using?
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
Adcfgclone fails with ORA-04063: view "SYS.DBA_NETWORK_ACLS" error
Hi all,
While running adcfgclone on dbtier if fails with following error
ORA-04063: view "SYS.DBA_NETWORK_ACLS" error
here is the scene:
we are trying to clone a production instance for doing some patching
while running adcfgclone on target (test instance) it fails
our current environment is
application:R12.1.3
db:11.1.0.7
os: rhel 5.6
here is output from
autoconfig file:
SQLPLUS Executable : /u02/testoba/db/tech_st/11.1.0/bin/sqlplus
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Apr 18 09:28:32 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter value for 1: Enter value for 2: Enter value for 3: Connected.
PL/SQL procedure successfully completed.
Commit complete.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
adcrobj.sh exiting with status 0
ERRORCODE = 0 ERRORCODE_END
.end std out.
.end err out.
AutoConfig Services Phase
Running Service Process 2 of 4 for AppsUtil
Executing script in InstantiateFile:
/u02/testoba/db/tech_st/11.1.0/appsutil/install/TESTOBA_testsrv/addbperms.sh
script returned:
addbperms.sh started at Thu Apr 18 09:28:32 IST 2013
The environment settings are as follows ...
ORACLE_HOME : /u02/testoba/db/tech_st/11.1.0
ORACLE_SID : TESTOBA
TWO_TASK :
PATH : /u02/testoba/db/tech_st/11.1.0/perl/bin:/u02/testoba/db/tech_st/11.1.0/bin:/usr/bin:/usr/sbin:/u02/testoba/db/tech_st/11.1.0/appsutil/jre/bin:/bin:/usr/bin/X11:/usr/local/bin:/u02/testoba/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/u02/testoba/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oratest/bin:.
Library Path : /u02/testoba/db/tech_st/11.1.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u02/testoba/db/tech_st/11.1.0/lib:/usr/dt/lib:/u02/testoba/db/tech_st/11.1.0/ctx/lib
SQLPLUS Executable : /u02/testoba/db/tech_st/11.1.0/bin/sqlplus
Changing permissions for file sqlplus.
Changing permissions for file extproc.
Changing permissions for file tkprof.
addbperms.sh exiting with status 0
.end std out.
.end err out.
AutoConfig Services Phase
Running Service Process 3 of 4 for AppsUtil
Executing script in InstantiateFile:
/u02/testoba/db/tech_st/11.1.0/perl/bin/perl -I /u02/testoba/db/tech_st/11.1.0/perl/lib/5.8.3 -I /u02/testoba/db/tech_st/11.1.0/perl/lib/site_perl/5.8.3 -I /u02/testoba/db/tech_st/11.1.0/appsutil/perl /u02/testoba/db/tech_st/11.1.0/appsutil/install/TESTOBA_testsrv/txkConfigDbOcm.pl
script returned:
Configuring OCM on the Database Tier....
Testing database connection...
Database connection test passed.
Response file /u02/testoba/db/tech_st/11.1.0/appsutil/clone/adclnocm.res required to configure OCM does not exists
ERRORCODE = 0 ERRORCODE_END
.end std out.
.end err out.
AutoConfig Services Phase
Running Service Process 4 of 4 for AppsUtil
Executing script in InstantiateFile:
/u02/testoba/db/tech_st/11.1.0/appsutil/install/TESTOBA_testsrv/txkcreateACL.sh
script returned:
You are running txkcreateACL.sh version 120.1
The environment settings are as follows ...
ORACLE_HOME : /u02/testoba/db/tech_st/11.1.0
ORACLE_SID : TESTOBA
PATH : /u02/testoba/db/tech_st/11.1.0/perl/bin:/u02/testoba/db/tech_st/11.1.0/bin:/usr/bin:/usr/sbin:/u02/testoba/db/tech_st/11.1.0/appsutil/jre/bin:/bin:/usr/bin/X11:/usr/local/bin:/u02/testoba/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/u02/testoba/db/tech_st/11.1.0/appsutil/clone/bin/../jre/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oratest/bin:.
Executable : /u02/testoba/db/tech_st/11.1.0/bin/sqlplus
Executing txkcreateACL.sql ...
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Apr 18 09:28:33 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected.
FROM DBA_NETWORK_ACLS
ERROR at line 17:
ORA-06550: line 17, column 8:
PL/SQL: ORA-04063: view "SYS.DBA_NETWORK_ACLS" has errors
ORA-06550: line 16, column 3:
PL/SQL: SQL Statement ignored
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
txkcreateACL.sh: exiting with status 1
.end std out.
.end err out.
[AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution. Errors are grouped by directory and phase.
The report format is:
<filename> <phase> <return code where appropriate>
[APPLY PHASE]
AutoConfig could not successfully execute the following scripts:
Directory: /u02/testoba/db/tech_st/11.1.0/appsutil/install/TESTOBA_testsrv
txkcreateACL.sh INSTE8_APPLY 1
AutoConfig is exiting with status 1
RC-50014: Fatal: Execution of AutoConfig was failed
Raised by oracle.apps.ad.clone.ApplyDatabase
StackTrace:
java.lang.Exception: RC-50014: Fatal: Execution of AutoConfig was failed
at oracle.apps.ad.clone.ApplyDatabase.checkAutoConfigErr(ApplyDatabase.java:3192)
at oracle.apps.ad.clone.ApplyDatabase.runCVMAndAutoConfig(ApplyDatabase.java:3010)
at oracle.apps.ad.clone.ApplyDatabase.doConf(ApplyDatabase.java:649)
at oracle.apps.ad.clone.ApplyDatabase.doApply(ApplyDatabase.java:473)
at oracle.apps.ad.clone.ApplyDatabase.<init>(ApplyDatabase.java:366)
at oracle.apps.ad.clone.ApplyDBTier.<init>(ApplyDBTier.java:110)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at oracle.apps.ad.clone.util.CloneProcessor.run(CloneProcessor.java:67)
at java.lang.Thread.run(Unknown Source)
please provide any suitable link or doc id or any workaround
thanks
ZaviHi;
Please review:
Adautocfg.Sh Fails With "ORA-01422: " While Executing Txkcreateacl.sh [ID 854746.1]
Database Cloning Failed With txkcreateACL.sh[36]: sqlplus [ID 603297.1]
R12 : Autoconfig script txkcreateACL.sh fails with error ORA-31003: Parent /sys/acls/ already contains child entry OracleEBS.xml [ID 1328458.1]
Regard
Helios -
Listener errors in logs TNS-001184 TNS-12502
Oracle Enterprise Edition 10.2.0.3
HP-UX
2 Node RAC
Hi
I have seen repetitive errors in listener log file of one of our databases.
The errors are like this,
07-DEC-2010 12:35:27 * service_register * EXS1 * 1184
TNS-01184: Listener rejected registration or update of service handler "DEDICATED"
TNS-01185: Registration attempted from a remote node
08-DEC-2010 12:35:27 * service_died * EXS1 * 12537
08-DEC-2010 12:35:27 * service_update * EXS1 * 0
There are also errors like the following,
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
TNS-12502: TNS:listener received no CONNECT_DATA from client
I referred this oracle metalink note, ID 275058.1 and it says this is because LOCAL_LISTENER and REMOTE_LISTENER are not configured properly, But I see errors like this being frequent (every minute) yesterday and only once today.
Our Application team complains about problems in performance of various procedures at various time intervals. Can this be the cause of such performance degradation ?The first error is similar when copy/paste listener.ora to other node (ex. test enviroment) and not modify listener.ora then when you tyr start listener, it connect and register to original node.
If your application team have poor performance, maybe you must trace (tkprof or sqlnet trace) to concrete the problem.
Good luck
Maybe you are looking for
-
Slow boot time since updating OS 6 minutes aprox
I've owned my Macbook Pro since new and it came factory installed with OSX 10.4 I decided to update to Leopard and used the 10.5.6 disc formatted the hard drive fresh and after installing boot time was around 6 minutes. I tried everything, updating O
-
Hi, I'm trying to bring in P2 footage that has already been transferred to a GRaid drive using ShotPut. I watched Shane's excellent tutorial <http://library.creativecow.net/articles/rossshane/tapeless-workflowfcp-7/video-tutorial> about importing P2
-
Windows to Mac DHCP Migration Issues
We are migrating our DHCP and DNS services from a Windows server to an XServe. We have started the process and noticed that Server Admin does not provide a place in the DHCP service to put in a range of IP addresses to be excluded from being handed o
-
How to find tracking 20 or 20??
Hi all Actualy we can able to find the tracked places by giving constant value. But how can we find tracking >20 or <20 through script find options?? many thanks, H
-
'''My Yahoo Toolbar has disappeared'. I tried re-installing it several times but it just won't appear in the Toolbar space. I looked in the Toolbar view and it is checked. I even tried unchecking and re-checking the Yahoo Toolbar view. No luck. Pleas