Need solution from the ADDM Report
Hi,
Iam a newbie ..Can anyone help me solve this,,, any suggestions abt what i need to do
FINDING 1: 39% impact (1999 seconds)
SQL statements consuming significant database time were found.
RECOMMENDATION 1: SQL Tuning, 27% benefit (1390 seconds)
ACTION: Investigate the SQL statement with SQL_ID "16yhs0atuwcj5" for
possible performance improvements.
RELEVANT OBJECT: SQL statement with SQL_ID 16yhs0atuwcj5 and
PLAN_HASH 4196229529
select Holdate,CalName from Holidays WHERE holdate <=
TO_DATE(:"SYS_B_0",:"SYS_B_1") and holdate >=
TO_DATE(:"SYS_B_2",:"SYS_B_3") order by calname,holdate
RATIONALE: SQL statement with SQL_ID "16yhs0atuwcj5" was executed 144
times and had an average elapsed time of 2.9 seconds.
Plz help..Thanks
Hello,
Iam a newbie Wellcome :)
any suggestions abt what i need to doBascially you need to run SQL Tuning Advsior against the SQL_ID "16yhs0atuwcj5".
Re: sql tuning advisor
Re: oracle 10g sql tuning advisor...
Adith
Similar Messages
-
Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"
I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.
-
How would I find this? I need it for the police report so if I could get answers soon that would be great, thanks
Lanlani wrote:
... It there any other solution ?
Consider using this site: http://www.stolenlostfound.org/
This is Apple's official word on the subject:
Reporting a lost or stolen Apple product
If you have lost or found an Apple product, please contact your local law enforcement agency to report it. Although Apple does not have a process to track or flag lost or stolen product, you can use My Support Profile to find a list of serial numbers for items purchased or registered with your Apple ID. -
How to remove business area from the Hyperion report
Hi All,
Kindly tell me the steps required to remove the business area from the Hyperion report.
Regards,
Ajays
-
Get data in a subreport based on a shared variable from the main report.
Goodd morning,
My question/problem is how to manage this scenario.
I am transfering 2 shared variables (pereiod from /period To, ) from the main report to a subreport and now i would like to get data in this subreport based on these 2 variables...
The problem is that i can not find the shared one in select expert icon...
Could anyone point me to solve this issue?
Thks for any help.
Jose Marin
Crystal Report XI SR3Hello Jos,
I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
It is monitored by qualified technicians and you will get a faster response there.
Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
Best regards,
Falk -
When in Windows 7 (while using bootcamp) I am able to see my personal files in my Mac partition. When I try to access them I am denied access, it tells me that I need permission from the administrator. How do I give myself permission to access files between the two partitions, Mac/Windows7?
When in Windows 7 (while using bootcamp) I am able to see my personal files in my Mac partition. When I try to access them I am denied access, it tells me that I need permission from the administrator. How do I give myself permission to access files between the two partitions, Mac/Windows7?
-
I was lately downlaoding a 700mb file, but i lost the internet connection and only 635mb was downloaded and i have the .part file but the download menu says that download failed so i cant click resume, is their any way that i can continue dowlaoding the file without the need redownloading from the beginning?
I do not know if your file can be recovered. But I may be able help you to recreate it with ease. If you will settle for a composite where all image are re-sized for a particular tile size and virtually cropped to its aspect ratio. However all source image need be gathered into a folder to use my script process. Paste Image Roll Script and Picture Package Support Link http://www.mouseprints.net/old/dpr/PasteImageRoll.jsx
-
How do I restore a chart I deleted from the Summary Report?
I inadvertently deleted a question from the Summary Report by clicking the little trash can icon and I'd like to get it back. To clarify: the question is still there on the form; I'm just looking to restore the chart on the report.
Thanks!Nope. Macjack's suggestion didn't worked - it's what I tried before coming here.
I realise I could simply recreate the Smart Search folder, but as indicated - I'm having difficulty recreating the exact same results - it had several conditions to it, and I'm not having much luck with repeating the effect. If nothing comes up - I'll have no choice - but still hoping someone knows of a plain and simple option.... -
How to print out multilingual reports from the main report using Xliff temp
Hi all,
How to print out multilingual reports from the main report using Xliff temp?
When I want main report call subtemplate and finish xliff tranlation
<?for-each@section:INVOICE?><?end for-each?>
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
<?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
Prints out fine with Finnish translation
But if I want in main program to check what language is used e.g.
if trx_number = 142 call Finnish translation and if trx_number =144,
call English translation.
<?for-each@section:INVOICE?><?end for-each?>
<?if:TRX_NUMBER=’142’?>
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
<?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
<?end if?>
<?if: TRX_NUMBER=’144’?>
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
<?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
<?end if?>
Prints out always in English and never the Finnish translation.
Program goes fine to if branch but does not print out Finnish
Does anybody know what could be wrong?
BR
KariThanks Amit,
I have two layout, main-layout and sub-layout
Main layout call subtemplate
I have registered layout and xliff-file
Main template
Localized Templates
File Name Language Territory
XXNS_INVOICE_MAIN.rtf English
SUB template
Localized Templates
File Name Language Territory
XXNS_INVOICE_SUB.rtf English
Translatable Template
File Name Language Territory
XXNS_INVOICE_SUB.rtf English United States
Available Translations
Language Territory Progress
English Finland Complete
If main report call subtemplate and finish xliff tranlation
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
Prints out fine with Finnish translation
But if I want in main program to check what language is used e.g.
if....
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
.....end if;
if....
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
.....end if;
Prints out always in English and never the Finnish translation.
Program goes fine to if branch but does not print out Finnish
Do you it's set up problem or program problem
BR
Kari -
I backedup my iphone 4 to the cloud before upgrading to an iphone 5. I also backedup my iphone 5 to icloud. I can see both phone's backups side by side on the my screen on icloud. But it will not allow me to restore the iphone 4 backup to my iphone 5. I need contacts from the iphone 4 backup but I do not have that phone anymore and icloud will only let me restore the iphone 5's backups to my iphone 5. Is there anyway to get the contacts from my previous iphone 4 backup?
You should be syncing your contacts with an app on your computer or cloud service (iCloud, Gmail, Yahoo, etc), and not relying on a backup. If you haven't been doing this, start now and then restore your old backup. You will then be able to sync the new contacts back into the phone. However, you will lose all messages, etc newer thant the backup.
-
Need understanding on the ADDM
Hi,
Db version 11.2.0.3
EBS version 12.1.3
OS : Linux
I have 2 SEV-1 SR's going on with Oracle on which we are working with them. I ran a ADDM from yesterday Morning till today afternoon( Almost 25 Hours).
My understanding :
1. Update query 85ag5gkm9wzmb is taking maximum of time and resources ( One SR is for this - this is Autoinvoice Master Program).
2. SGA and PGA are undersized. Current SGA is 24Gb and PGA is 6Gb. Do I really need to increase SGA and PGA ? My previous has been that on increasing
SGA/PGA to suggested value , it will further prompt for increasing.
3. SYS.DBMS_SPACE.AUTO_SPACE_ADVISOR_JOB_PROC needs some action from my end, should I disable this job , what does it really do ? i am trying to figure that out ,
any help on this will be appreciated.
Please confirm if my understanding is correct and other suggestion/inputs you can provide. Also please suggest how to find if I/O is a bottleneck in the system ? I can see db file sequential read and db file scattered reads in the AWR but they are mostly by the update statement 85ag5gkm9wzmb.
Below is the ADDM for reference.
ADDM Report for Task 'TASK_10569'
Analysis Period
AWR snapshot range from 6708 to 6733.
Time period starts at 19-DEC-13 11.30.37 AM
Time period ends at 20-DEC-13 12.30.43 PM
Analysis Target
Database 'PROD' with DB ID 221722471.
Database version 11.2.0.3.0.
ADDM performed an analysis of instance PROD, numbered 1 and hosted at
hostname.domainname.in.
Activity During the Analysis Period
Total database time was 448593 seconds.
The average number of active sessions was 4.98.
Summary of Findings
Description Active Sessions Recommendations
Percent of Activity
1 Top SQL Statements 3.44 | 69.1 6
2 Top Segments by "User I/O" and "Cluster" 2.64 | 53.06 5
3 Undersized SGA .94 | 18.91 1
4 Undersized PGA .28 | 5.66 0
5 PL/SQL Execution .19 | 3.9 5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Findings and Recommendations
Finding 1: Top SQL Statements
Impact is 3.44 active sessions, 69.1% of total activity.
SQL statements consuming significant database time were found. These
statements offer a good opportunity for performance improvement.
Recommendation 1: SQL Tuning
Estimated benefit is 2.26 active sessions, 45.37% of total activity.
Action
Run SQL Tuning Advisor on the UPDATE statement with SQL_ID
"85ag5gkm9wzmb".
Related Object
SQL statement with SQL_ID 85ag5gkm9wzmb.
UPDATE RA_CUST_TRX_LINE_GL_DIST LGD SET (AMOUNT, ACCTD_AMOUNT) =
(SELECT /*+ index(rec1 RA_CUST_TRX_LINE_GL_DIST_N6) ordered */
NVL(LGD.AMOUNT, 0) - ( SUM(LGD2.AMOUNT) - ( DECODE(LGD.GL_DATE,
REC1.GL_DATE, 1, 0) * CTL.EXTENDED_AMOUNT ) ), NVL(LGD.ACCTD_AMOUNT,
0) - ( SUM(LGD2.ACCTD_AMOUNT) - ( DECODE(LGD.GL_DATE, REC1.GL_DATE,
1, 0) * DECODE(:B2 , NULL, ROUND( CTL.EXTENDED_AMOUNT *
NVL(CT.EXCHANGE_RATE,1), :B3 ), ROUND( ( CTL.EXTENDED_AMOUNT *
NVL(CT.EXCHANGE_RATE,1) ) / :B2 ) * :B2 ) ) ) FROM
RA_CUSTOMER_TRX_LINES CTL, RA_CUSTOMER_TRX CT,
RA_CUST_TRX_LINE_GL_DIST LGD2, RA_CUST_TRX_LINE_GL_DIST REC1 WHERE
CTL.CUSTOMER_TRX_LINE_ID = LGD2.CUSTOMER_TRX_LINE_ID AND
CTL.CUSTOMER_TRX_ID = CT.CUSTOMER_TRX_ID AND LGD.CUSTOMER_TRX_LINE_ID
= CTL.CUSTOMER_TRX_LINE_ID AND LGD2.ACCOUNT_SET_FLAG = 'N' AND
REC1.CUSTOMER_TRX_ID = CT.CUSTOMER_TRX_ID AND REC1.ACCOUNT_CLASS =
'REC' AND REC1.LATEST_REC_FLAG = 'Y' AND NVL(LGD.GL_DATE, TO_DATE(
2415021, 'J') ) = NVL(LGD2.GL_DATE, TO_DATE( 2415021, 'J') ) GROUP BY
CTL.CUSTOMER_TRX_LINE_ID, REC1.GL_DATE, CTL.EXTENDED_AMOUNT,
CTL.REVENUE_AMOUNT, CT.EXCHANGE_RATE ), PERCENT = (SELECT /*+
index(rec2 RA_CUST_TRX_LINE_GL_DIST_N6) */ DECODE(LGD.ACCOUNT_CLASS
|| LGD.ACCOUNT_SET_FLAG, 'SUSPENSEN', LGD.PERCENT, 'UNBILLN',
LGD.PERCENT, 'UNEARNN', LGD.PERCENT, NVL(LGD.PERCENT, 0) - (
SUM(NVL(LGD4.PERCENT, 0)) - DECODE(REC2.GL_DATE, NVL(LGD.GL_DATE,
REC2.GL_DATE), 100, 0) ) ) FROM RA_CUST_TRX_LINE_GL_DIST LGD4,
RA_CUST_TRX_LINE_GL_DIST REC2 WHERE LGD.CUSTOMER_TRX_LINE_ID =
LGD4.CUSTOMER_TRX_LINE_ID AND REC2.CUSTOMER_TRX_ID =
LGD.CUSTOMER_TRX_ID AND REC2.CUSTOMER_TRX_ID = LGD4.CUSTOMER_TRX_ID
AND REC2.ACCOUNT_CLASS = 'REC' AND REC2.LATEST_REC_FLAG = 'Y' AND
LGD4.ACCOUNT_SET_FLAG = LGD.ACCOUNT_SET_FLAG AND
DECODE(LGD4.ACCOUNT_SET_FLAG, 'Y', LGD4.ACCOUNT_CLASS,
LGD.ACCOUNT_CLASS) = LGD.ACCOUNT_CLASS AND NVL(LGD.GL_DATE, TO_DATE(
2415021, 'J') ) = NVL(LGD4.GL_DATE, TO_DATE( 2415021, 'J') ) GROUP BY
REC2.GL_DATE, LGD.GL_DATE ), LAST_UPDATED_BY = :B1 , LAST_UPDATE_DATE
= SYSDATE WHERE CUST_TRX_LINE_GL_DIST_ID IN (SELECT /*+ index(rec3
RA_CUST_TRX_LINE_GL_DIST_N6) */ MIN(DECODE(LGD3.GL_POSTED_DATE, NULL,
LGD3.CUST_TRX_LINE_GL_DIST_ID, NULL) ) FROM RA_CUSTOMER_TRX_LINES
CTL, RA_CUSTOMER_TRX T, RA_CUST_TRX_LINE_GL_DIST LGD3,
RA_CUST_TRX_LINE_GL_DIST REC3 WHERE T.REQUEST_ID = :B5 AND
T.CUSTOMER_TRX_ID = CTL.CUSTOMER_TRX_ID AND (CTL.LINE_TYPE IN (
'TAX','FREIGHT','CHARGES','SUSPENSE' ) OR (CTL.LINE_TYPE = 'LINE' AND
CTL.ACCOUNTING_RULE_ID IS NULL )) AND LGD3.CUSTOMER_TRX_LINE_ID =
CTL.CUSTOMER_TRX_LINE_ID AND LGD3.ACCOUNT_SET_FLAG = 'N' AND
REC3.CUSTOMER_TRX_ID = T.CUSTOMER_TRX_ID AND REC3.ACCOUNT_CLASS =
'REC' AND REC3.LATEST_REC_FLAG = 'Y' AND
NVL(T.PREVIOUS_CUSTOMER_TRX_ID, -1) = DECODE(:B4 , 'INV', -1,
'REGULAR_CM', T.PREVIOUS_CUSTOMER_TRX_ID,
NVL(T.PREVIOUS_CUSTOMER_TRX_ID, -1) ) GROUP BY
CTL.CUSTOMER_TRX_LINE_ID, LGD3.GL_DATE, REC3.GL_DATE,
CTL.EXTENDED_AMOUNT, CTL.REVENUE_AMOUNT, T.EXCHANGE_RATE HAVING (
SUM(NVL(LGD3.AMOUNT, 0)) <> CTL.EXTENDED_AMOUNT *
DECODE(LGD3.GL_DATE, REC3.GL_DATE, 1, 0) OR
SUM(NVL(LGD3.ACCTD_AMOUNT, 0)) <> DECODE(LGD3.GL_DATE, REC3.GL_DATE,
1, 0) * DECODE(:B2 , NULL, ROUND( CTL.EXTENDED_AMOUNT *
NVL(T.EXCHANGE_RATE,1), :B3 ), ROUND( ( CTL.EXTENDED_AMOUNT *
NVL(T.EXCHANGE_RATE,1) ) / :B2 ) * :B2 ) ) UNION SELECT /*+
index(rec5 RA_CUST_TRX_LINE_GL_DIST_N6) INDEX (lgd5
ra_cust_trx_line_gl_dist_n6) index(ctl2 ra_customer_trx_lines_u1) */
TO_NUMBER( MIN(DECODE(LGD5.GL_POSTED_DATE||LGD5.ACCOUNT_CLASS||
LGD5.ACCOUNT_SET_FLAG, 'REVN', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'REVY',
LGD5.CUST_TRX_LINE_GL_DIST_ID, 'TAXN', LGD5.CUST_TRX_LINE_GL_DIST_ID,
'TAXY', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'FREIGHTN',
LGD5.CUST_TRX_LINE_GL_DIST_ID, 'FREIGHTY',
LGD5.CUST_TRX_LINE_GL_DIST_ID, 'CHARGESN',
LGD5.CUST_TRX_LINE_GL_DIST_ID, 'CHARGESY',
LGD5.CUST_TRX_LINE_GL_DIST_ID, 'UNEARNY',
LGD5.CUST_TRX_LINE_GL_DIST_ID, 'UNBILLY',
LGD5.CUST_TRX_LINE_GL_DIST_ID, NULL ) ) ) FROM
RA_CUST_TRX_LINE_GL_DIST LGD5, RA_CUST_TRX_LINE_GL_DIST REC5,
RA_CUSTOMER_TRX_LINES CTL2, RA_CUSTOMER_TRX T WHERE T.REQUEST_ID =
:B5 AND T.CUSTOMER_TRX_ID = REC5.CUSTOMER_TRX_ID AND
CTL2.CUSTOMER_TRX_LINE_ID = LGD5.CUSTOMER_TRX_LINE_ID AND
REC5.CUSTOMER_TRX_ID = LGD5.CUSTOMER_TRX_ID AND REC5.ACCOUNT_CLASS =
'REC' AND REC5.LATEST_REC_FLAG = 'Y' AND (CTL2.LINE_TYPE IN (
'TAX','FREIGHT','CHARGES','SUSPENSE') OR (CTL2.LINE_TYPE = 'LINE' AND
(CTL2.ACCOUNTING_RULE_ID IS NULL OR LGD5.ACCOUNT_SET_FLAG = 'Y' )))
GROUP BY LGD5.CUSTOMER_TRX_LINE_ID, LGD5.GL_DATE, REC5.GL_DATE,
LGD5.ACCOUNT_SET_FLAG, DECODE(LGD5.ACCOUNT_SET_FLAG, 'N', NULL,
LGD5.ACCOUNT_CLASS) HAVING SUM(NVL(LGD5.PERCENT, 0)) <> DECODE(
NVL(LGD5.GL_DATE, REC5.GL_DATE), REC5.GL_DATE, 100, 0) )
Rationale
The SQL spent 100% of its database time on CPU, I/O and Cluster waits.
This part of database time may be improved by the SQL Tuning Advisor.
Rationale
Database time for this SQL was divided as follows: 100% for SQL
execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
execution.
Rationale
SQL statement with SQL_ID "85ag5gkm9wzmb" was executed 20 times and had
an average elapsed time of 9763 seconds.
Rationale
Top level calls to execute the PL/SQL statement with SQL_ID
"gccbpwamzp78q" are responsible for 100% of the database time spent on
the UPDATE statement with SQL_ID "85ag5gkm9wzmb".
Related Object
SQL statement with SQL_ID gccbpwamzp78q.
declare l_header_rounding_flag VARCHAR2 ( 1 ) ; BEGIN select
trx_header_level_rounding into l_header_rounding_flag from
ar_system_parameters ; :return_value:i_return_value := arp_rounding .
correct_dist_rounding_errors ( :request_id , NULL , NULL ,
:rows_processed:i_rows_processed , :error_msg:i_error_msg , NULL ,
NULL , :trx_class , 'N' , :debug_mode , l_header_rounding_flag , 'N'
) ; END ;
Recommendation 2: SQL Tuning
Estimated benefit is .42 active sessions, 8.39% of total activity.
Action
Run SQL Tuning Advisor on the SELECT statement with SQL_ID
"d9xccqfmfjvns".
Related Object
SQL statement with SQL_ID d9xccqfmfjvns.
SELECT RCT.CUSTOMER_TRX_ID K_TRX_ID, RCT.TRX_NUMBER, SUM
(APS.AMOUNT_DUE_REMAINING) CM_AMOUNT_APPLIED,RCT.TRX_DATE FROM
APPS.RA_CUSTOMER_TRX_ALL RCT, APPS.AR_PAYMENT_SCHEDULES_ALL APS,
APPS.RA_CUST_TRX_TYPES_ALL TCTTA, APPS.AR_CUSTOMERS AC,
APPS.HZ_CUSTOMER_PROFILES HCP, APPS.RA_TERMS RT WHERE
RCT.CUST_TRX_TYPE_ID = TCTTA.CUST_TRX_TYPE_ID AND AC.CUSTOMER_ID =
RCT.BILL_TO_CUSTOMER_ID AND RCT.CUSTOMER_TRX_ID=APS.CUSTOMER_TRX_ID
AND AC.CUSTOMER_ID = HCP.CUST_ACCOUNT_ID AND RCT.BILL_TO_SITE_USE_ID
= HCP.SITE_USE_ID AND RT.TERM_ID = HCP.STANDARD_TERMS AND TCTTA.TYPE
IN ('INV') AND UPPER(TCTTA.NAME) IN ( SELECT UPPER(MEANING) FROM
FND_LOOKUP_VALUES WHERE LOOKUP_TYPE = :B3 ) AND RCT.TRX_DATE <= NVL
(TO_DATE(:B2 , 'RRRR/MM/DD HH24:MI:SS'), RCT.TRX_DATE) AND
AC.CUSTOMER_ID = :B1 GROUP BY RCT.CUSTOMER_TRX_ID,
RCT.TRX_NUMBER,RCT.TRX_DATE HAVING SUM (APS.AMOUNT_DUE_REMAINING) > 0
ORDER BY RCT.TRX_DATE
Rationale
The SQL spent 100% of its database time on CPU, I/O and Cluster waits.
This part of database time may be improved by the SQL Tuning Advisor.
Rationale
Database time for this SQL was divided as follows: 100% for SQL
execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
execution.
Rationale
SQL statement with SQL_ID "d9xccqfmfjvns" was executed 123412 times and
had an average elapsed time of 0.29 seconds.
Rationale
Top level calls to execute the PL/SQL statement with SQL_ID
"bcxz2s8wj5spc" are responsible for 100% of the database time spent on
the SELECT statement with SQL_ID "d9xccqfmfjvns".
Related Object
SQL statement with SQL_ID bcxz2s8wj5spc.
BEGIN XXSD_APPLY_CM_APPLY_TO_INV(:errbuf,:rc,:A0,:A1,:A2,:A3); END;
Recommendation 3: SQL Tuning
Estimated benefit is .3 active sessions, 6.04% of total activity.
Action
Run SQL Tuning Advisor on the SELECT statement with SQL_ID
"2ujt2fg615ymk".
Related Object
SQL statement with SQL_ID 2ujt2fg615ymk.
SELECT HP.PARTY_NAME PARTY_NAME, RCT.TRX_NUMBER TRX_NUMBER,
RCT.TRX_DATE TRX_DATE, APS.AMOUNT_DUE_ORIGINAL AMOUNT_DUE_ORIGINAL,
APS.AMOUNT_DUE_REMAINING OUTSTANDING_AMOUNT, RCTT.NAME
TRANSACTION_TYPE FROM RA_CUSTOMER_TRX_ALL RCT,
AR_PAYMENT_SCHEDULES_ALL APS, RA_CUST_TRX_TYPES_ALL RCTT,
HZ_CUST_ACCOUNTS HCA, HZ_PARTIES HP, APPS.AR_CUSTOMERS AC,
APPS.HZ_CUSTOMER_PROFILES HCP, APPS.RA_TERMS RT, HZ_PARTY_SITES HPS,
HZ_CUST_ACCT_SITES_ALL HCASA, HZ_CUST_SITE_USES_ALL HCSUA WHERE 1 = 1
AND RCT.BILL_TO_CUSTOMER_ID = HCA.CUST_ACCOUNT_ID AND HCA.PARTY_ID =
HP.PARTY_ID AND APS.CUSTOMER_TRX_ID = RCT.CUSTOMER_TRX_ID AND
APS.ORG_ID = RCT.ORG_ID AND RCTT.CUST_TRX_TYPE_ID =
RCT.CUST_TRX_TYPE_ID AND RCTT.ORG_ID = RCT.ORG_ID AND AC.CUSTOMER_ID
= HCA.CUST_ACCOUNT_ID AND AC.CUSTOMER_ID = RCT.BILL_TO_CUSTOMER_ID
AND AC.CUSTOMER_ID = HCP.CUST_ACCOUNT_ID AND RCT.BILL_TO_SITE_USE_ID
= HCP.SITE_USE_ID AND RT.TERM_ID = HCP.STANDARD_TERMS AND
HPS.PARTY_SITE_ID = HCASA.PARTY_SITE_ID AND HCASA.CUST_ACCOUNT_ID =
AC.CUSTOMER_ID AND HCASA.CUST_ACCT_SITE_ID = HCSUA.CUST_ACCT_SITE_ID
AND HCSUA.SITE_USE_ID = RCT.BILL_TO_SITE_USE_ID AND RCT.TRX_DATE
BETWEEN NVL (TO_DATE (:B6 , 'RRRR/MM/DD HH24:MI:SS' ), '1-JAN-1900' )
AND NVL (TO_DATE (:B5 , 'RRRR/MM/DD HH24:MI:SS' ), '31-DEC-2100' )
AND RCTT.NAME = NVL (:B4 , RCTT.NAME) AND RT.TERM_ID = NVL (:B3 ,
RT.TERM_ID) AND HP.PARTY_NAME = NVL (:B2 , HP.PARTY_NAME) AND ( (CASE
WHEN :B1 = 'Open' THEN APS.AMOUNT_DUE_REMAINING END != 0 ) OR ((CASE
WHEN :B1 = 'Closed' THEN APS.AMOUNT_DUE_REMAINING END = 0 ) ) OR CASE
WHEN :B1 IS NULL THEN 1 END = 1 )
Rationale
The SQL spent 100% of its database time on CPU, I/O and Cluster waits.
This part of database time may be improved by the SQL Tuning Advisor.
Rationale
Database time for this SQL was divided as follows: 100% for SQL
execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
execution.
Rationale
SQL statement with SQL_ID "2ujt2fg615ymk" was executed 19 times and had
an average elapsed time of 1368 seconds.
Rationale
At least 2 distinct execution plans were utilized for this SQL statement
during the analysis period.
Rationale
Top level calls to execute the PL/SQL statement with SQL_ID
"g969dx1d0uucf" are responsible for 100% of the database time spent on
the SELECT statement with SQL_ID "2ujt2fg615ymk".
Related Object
SQL statement with SQL_ID g969dx1d0uucf.
BEGIN XXSD_TRX_DETAIL_REPORT(:errbuf,:rc,:A0,:A1,:A2,:A3,:A4,:A5);
END;
Recommendation 4: SQL Tuning
Estimated benefit is .2 active sessions, 4.04% of total activity.
Action
Run SQL Tuning Advisor on the SELECT statement with SQL_ID
"gy02p15c6bf0w".
Related Object
SQL statement with SQL_ID gy02p15c6bf0w.
SELECT SUM (RECEIPTS) - SUM (PAYMENTS) FROM (SELECT
AIP.ACCOUNTING_DATE GL_DATE , DECODE(NVL(APC.VENDOR_NAME ,
APC.REMIT_TO_SUPPLIER_NAME ) , 'FD Investment' , 'FD' , 'Payment' )
TYPE , APC.DOC_SEQUENCE_VALUE VOUCHER_NO , APC.CREATION_DATE
VOUCHER_DATE , TO_CHAR (APC.CHECK_NUMBER ) CHECK_NUMBER , TO_CHAR
(NVL(APC.FUTURE_PAY_DUE_DATE , APC.CHECK_DATE ) , 'DD-MON-YYYY' )
CHECK_DATE , NVL(APC.VENDOR_NAME , APC.REMIT_TO_SUPPLIER_NAME )
VENDOR_NAME , API.ACCTS_PAY_CODE_COMBINATION_ID ACCOUNT_CODE ,
'Supplier Payment' DESCRIPTION , TO_CHAR (DECODE(SIGN(SUM
(AIP.AMOUNT) ) , -1 , SUM (AIP.AMOUNT * NVL(AIP.EXCHANGE_RATE , 1 )
) * -1 , SUM (0) ) ) RECEIPTS , TO_CHAR (DECODE(SIGN(SUM
(AIP.AMOUNT) ) , 1 , SUM (AIP.AMOUNT * NVL(AIP.EXCHANGE_RATE , 1 )
) , SUM (0) ) ) PAYMENTS , TO_NUMBER (SUM (AIP.AMOUNT *
NVL(AIP.EXCHANGE_RATE , 1 ) ) ) PAYMENTS1 , CBA.BANK_ACCOUNT_NAME
BANK_ACCOUNT_NAME , CBA.BANK_ACCOUNT_NUM BANK_ACCOUNT_NUM ,
BANK.PARTY_NAME BANK_NAME , BRANCH.PARTY_NAME BRANCH_NAME FROM
APPS.AP_INVOICE_PAYMENTS_ALL AIP , APPS.AP_INVOICES_ALL API ,
APPS.AP_CHECKS_ALL APC , APPS.CE_BANK_ACCOUNTS CBA ,
APPS.CE_BANK_ACCT_USES_ALL CBU , HZ_PARTIES BANK , HZ_PARTIES BRANCH
WHERE API.INVOICE_ID = AIP.INVOICE_ID AND AIP.CHECK_ID =
APC.CHECK_ID AND APC.CE_BANK_ACCT_USE_ID = CBU.BANK_ACCT_USE_ID
AND CBA.BANK_ACCOUNT_ID = CBU.BANK_ACCOUNT_ID AND CBA.BANK_ID =
BANK.PARTY_ID AND CBA.BANK_BRANCH_ID = BRANCH.PARTY_ID AND ( (
APC.STATUS_LOOKUP_CODE IN ( 'NEGOTIABLE' , 'CLEARED' , 'VOIDED' ,
'RECONCILED UNACCOUNTED' , 'RECONCILED' , 'CLEARED BUT UNACCOUNTED' )
AND AIP.ACCOUNTING_DATE < :b1 AND APC.FUTURE_PAY_DUE_DATE IS NULL
) OR ( APC.STATUS_LOOKUP_CODE IN ( 'NEGOTIABLE' ) AND
APC.FUTURE_PAY_DUE_DATE < :b1 ) ) AND CBA.BANK_ACCOUNT_ID = :b2
AND AIP.INVOICE_PAYMENT_TYPE IS NULL AND ( API.ORG_ID IS NULL OR
API.ORG_ID = :b3 ) GROUP BY AIP.ACCOUNTING_DATE ,
DECODE(NVL(APC.VENDOR_NAME , APC.REMIT_TO_SUPPLIER_NAME ) , 'FD
Investment' , 'FD' , 'Payment' ) , APC.DOC_SEQUENCE_VALUE ,
APC.CREATION_DATE , TO_CHAR (APC.CHECK_NUMBER ) , TO_CHAR
(NVL(APC.FUTURE_PAY_DUE_DATE , APC.CHECK_DATE ) , 'DD-MON-YYYY' ) ,
NVL(APC.VENDOR_NAME , APC.REMIT_TO_SUPPLIER_NAME ) ,
API.ACCTS_PAY_CODE_COMBINATION_ID , 'Supplier Payment' ,
CBA.BANK_ACCOUNT_NAME , CBA.BANK_ACCOUNT_NUM , BANK.PARTY_NAME ,
BRANCH.PARTY_NAME UNION ALL SELECT APID.ACCOUNTING_DATE GL_DATE ,
DECODE(POV.VENDOR_NAME , 'FD Investment' , 'FD' , 'I' ) TYPE ,
API.DOC_SEQUENCE_VALUE VOUCHER_NO , API.CREATION_DATE VOUCHER_DATE ,
API.INVOICE_NUM CHECK_NUMBER , TO_CHAR (API.INVOICE_DATE ,
'DD-MON-YYYY' ) CHECK_DATE , POV.VENDOR_NAME VENDOR_NAME ,
API.ACCTS_PAY_CODE_COMBINATION_ID ACCOUNT_CODE , NVL(API.DESCRIPTION
, API.INVOICE_NUM ) DESCRIPTION , TO_CHAR (SUM (API.INVOICE_AMOUNT *
NVL(API.EXCHANGE_RATE , 1 ) ) ) RECEIPTS , TO_CHAR (SUM (0) ,
'fm999999999990.00' ) PAYMENTS , TO_NUMBER (SUM (0) ) PAYMENTS1 ,
CBA.BANK_ACCOUNT_NAME BANK_ACCOUNT_NAME , CBA.BANK_ACCOUNT_NUM
BANK_ACCOUNT_NUM , BANK.PARTY_NAME BANK_NAME , BRANCH.PARTY_NAME
BRANCH_NAME FROM APPS.AP_INVOICE_DISTRIBUTIONS_ALL APID ,
APPS.AP_INVOICE_LINES_ALL APLA , APPS.AP_INVOICES_ALL API ,
APPS.PO_VENDORS POV , APPS.CE_BANK_ACCOUNTS CBA , HZ_PARTIES BANK ,
HZ_PARTIES BRANCH WHERE API.INVOICE_ID = APID.INVOICE_ID AND
APLA.INVOICE_ID = APID.INVOICE_ID AND APLA.LINE_NUMBER =
APID.INVOICE_LINE_NUMBER AND API.VENDOR_ID = POV.VENDOR_ID AND
CBA.BANK_ACCOUNT_ID = :b2 AND CBA.ASSET_CODE_COMBINATION_ID =
APID.DIST_CODE_COMBINATION_ID AND CBA.BANK_ID = BANK.PARTY_ID AND
CBA.BANK_BRANCH_ID = BRANCH.PARTY_ID AND APID.MATCH_STATUS_FLAG =
'A' AND NVL(API.PAYMENT_STATUS_FLAG , 'N' ) != 'N' AND
APID.ACCOUNTING_DATE < :b1 AND ( API.ORG_ID IS NULL OR API.ORG_ID
= :b3 ) GROUP BY APID.ACCOUNTING_DATE , DECODE(POV.VENDOR_NAME ,
'FD Investment' , 'FD' , 'I' ) , API.DOC_SEQUENCE_VALUE ,
API.CREATION_DATE , API.INVOICE_NUM , TO_CHAR (API.INVOICE_DATE ,
'DD-MON-YYYY' ) , POV.VENDOR_NAME ,
API.ACCTS_PAY_CODE_COMBINATION_ID , NVL(API.DESCRIPTION ,
API.INVOICE_NUM ) , CBA.BANK_ACCOUNT_NAME , CBA.BANK_ACCOUNT_NUM ,
BANK.PARTY_NAME , BRANCH.PARTY_NAME UNION ALL SELECT ACRH.GL_DATE
GL_DATE , DECODE(ACRH.STATUS , 'REVERSED' , 'REV' ,
DECODE(ACRH.CREATED_FROM , 'RATE ADJUSTMENT TRIGGER' , 'ERF' ,
'Receipt' ) ) TYPE , ACR.DOC_SEQUENCE_VALUE VOUCHER_NO ,
ACR.CREATION_DATE VOUCHER_DATE , ACR.RECEIPT_NUMBER CHECK_NUMBER ,
TO_CHAR (ACR.RECEIPT_DATE , 'DD-MON-YYYY' ) CHECK_DATE ,
NVL(SUBSTR(HP.PARTY_NAME , 1 , 50 ) , 'Miscellaneous Activity' )
VENDOR_NAME , ACRH.ACCOUNT_CODE_COMBINATION_ID ACCOUNT_CODE ,
'Customer Receipt' DESCRIPTION , TO_CHAR (SUM (DECODE(ACRH.STATUS ,
'REVERSED' , NVL(ADA.ACCTD_AMOUNT_DR , 0 ) , 'CLEARED' ,
NVL(ADA.ACCTD_AMOUNT_DR , 0 ) , 'REMITTED' , NVL(ADA.ACCTD_AMOUNT_DR
, 0 ) , 'CONFIRMED' , NVL(ADA.ACCTD_AMOUNT_DR , 0 ) ) ) ,
'fm999999999990.00' ) RECEIPTS , TO_CHAR (SUM (DECODE(ACRH.STATUS ,
'REVERSED' , NVL(ADA.ACCTD_AMOUNT_CR , 0 ) , 'CLEARED' ,
NVL(ADA.ACCTD_AMOUNT_CR , 0 ) , 'REMITTED' , NVL(ADA.ACCTD_AMOUNT_CR
, 0 ) , 'CONFIRMED' , NVL(ADA.ACCTD_AMOUNT_CR , 0 ) ) ) ,
'fm999999999990.00' ) PAYMENTS , TO_NUMBER (TO_CHAR (SUM (0) ) )
PAYMENTS1 , CBA.BANK_ACCOUNT_NAME BANK_ACCOUNT_NAME ,
CBA.BANK_ACCOUNT_NUM BANK_ACCOUNT_NUM , BANK.PARTY_NAME BANK_NAME ,
BRANCH.PARTY_NAME BRANCH_NAME FROM APPS.AR_CASH_RECEIPT_HISTORY_ALL
ACRH , APPS.AR_CASH_RECEIPTS_ALL ACR , APPS.HZ_PARTIES HP ,
APPS.HZ_CUST_ACCOUNTS HCA , APPS.CE_BANK_ACCOUNTS CBA ,
APPS.CE_BANK_ACCT_USES_ALL CBAU , APPS.AR_DISTRIBUTIONS_ALL ADA ,
HZ_PARTIES BANK , HZ_PARTIES BRANCH WHERE ACRH.CASH_RECEIPT_ID =
ACR.CASH_RECEIPT_ID AND CBAU.BANK_ACCT_USE_ID =
ACR.REMIT_BANK_ACCT_USE_ID AND CBAU.BANK_ACCOUNT_ID =
CBA.BANK_ACCOUNT_ID AND HCA.PARTY_ID = HP.PARTY_ID AND
ACR.PAY_FROM_CUSTOMER = HCA.CUST_ACCOUNT_ID AND CBA.BANK_ID =
BANK.PARTY_ID AND CBA.BANK_BRANCH_ID = BRANCH.PARTY_ID AND
ACRH.STATUS IN ( 'CLEARED' , 'REMITTED' , 'CONFIRMED' , 'REVERSED' )
AND ACRH.CASH_RECEIPT_HISTORY_ID = ADA.SOURCE_ID AND
ADA.SOURCE_TABLE = 'CRH' AND ADA.SOURCE_TYPE != 'BANK_CHARGES'
AND CBA.BANK_ACCOUNT_ID = :b2 AND ACRH.GL_DATE < :b1 AND (
ACR.ORG_ID IS NULL OR ACR.ORG_ID = :b3 ) AND ( (
ACR.REVERSAL_DATE IS NOT NULL AND ACRH.STATUS = 'REVERSED' ) OR (
ACRH.CASH_RECEIPT_HISTORY_ID IN (SELECT INCRH.CASH_RECEIPT_HISTORY_ID
FROM APPS.AR_CASH_RECEIPT_HISTORY_ALL INCRH WHERE
INCRH.CASH_RECEIPT_ID = ACR.CASH_RECEIPT_ID AND INCRH.STATUS !=
'REVERSED' )) ) GROUP BY ACRH.GL_DATE , DECODE(ACRH.STATUS ,
'REVERSED' , 'REV' , DECODE(ACRH.CREATED_FROM , 'RATE ADJUSTMENT
TRIGGER' , 'ERF' , 'Receipt' ) ) , ACR.DOC_SEQUENCE_VALUE ,
ACR.CREATION_DATE , ACR.RECEIPT_NUMBER , TO_CHAR (ACR.RECEIPT_DATE ,
'DD-MON-YYYY' ) , NVL(SUBSTR(HP.PARTY_NAME , 1 , 50 ) ,
'Miscellaneous Activity' ) , ACRH.ACCOUNT_CODE_COMBINATION_ID ,
'Customer Receipt' , CBA.BANK_ACCOUNT_NAME , CBA.BANK_ACCOUNT_NUM ,
BANK.PARTY_NAME , BRANCH.PARTY_NAME UNION ALL SELECT ACRH.GL_DATE
GL_DATE , DECODE(ADJ.REASON_CODE , NULL , 'ADJ' , ADJ.REASON_CODE
|| ' - ADJ' ) TYPE , ACR.DOC_SEQUENCE_VALUE VOUCHER_NO ,
ACR.CREATION_DATE VOUCHER_DATE , NULL CHECK_NUMBER , NULL
CHECK_DATE , NVL(SUBSTR(HP.PARTY_NAME , 1 , 50 ) , 'Miscellaneous
Activity' ) VENDOR_NAME , ACRH.ACCOUNT_CODE_COMBINATION_ID
ACCOUNT_CODE , NVL(ACR.COMMENTS , ACR.RECEIPT_NUMBER ) DESCRIPTION ,
TO_CHAR (SUM (-1 * ADJ.AMOUNT ) , 'fm999999999990.00' ) RECEIPTS ,
NULL PAYMENTS , TO_NUMBER (TO_CHAR (SUM (0) ) ) PAYMENTS1 ,
CBA.BANK_ACCOUNT_NAME BANK_ACCOUNT_NAME , CBA.BANK_ACCOUNT_NUM
BANK_ACCOUNT_NUM , BANK.PARTY_NAME BANK_NAME , BRANCH.PARTY_NAME
BRANCH_NAME FROM APPS.AR_CASH_RECEIPT_HISTORY_ALL ACRH ,
APPS.AR_CASH_RECEIPTS_ALL ACR , APPS.HZ_PARTIES HP ,
APPS.HZ_CUST_ACCOUNTS HCA , APPS.CE_BANK_ACCOUNTS CBA ,
APPS.CE_BANK_ACCT_USES_ALL CBAU , APPS.AR_RECEIVABLE_APPLICATIONS_ALL
APP , APPS.AR_ADJUSTMENTS_ALL ADJ , HZ_PARTIES BANK , HZ_PARTIES
BRANCH WHERE ACRH.CASH_RECEIPT_ID = ACR.CASH_RECEIPT_ID AND
APP.CASH_RECEIPT_ID = ACRH.CASH_RECEIPT_ID AND APP.DISPLAY = 'Y'
AND APP.STATUS = 'APP' AND APP.APPLICATION_TYPE = 'CASH' AND
ADJ.CUSTOMER_TRX_ID = APP.APPLIED_CUSTOMER_TRX_ID AND
ADJ.CHARGEBACK_CUSTOMER_TRX_ID IS NULL AND ADJ.TYPE = 'CHARGES'
AND CBAU.BANK_ACCT_USE_ID = ACR.REMIT_BANK_ACCT_USE_ID AND
CBAU.BANK_ACCOUNT_ID = CBA.BANK_ACCOUNT_ID AND ACRH.CASH_RECEIPT_ID
= ACR.CASH_RECEIPT_ID AND HCA.PARTY_ID = HP.PARTY_ID AND
ACR.PAY_FROM_CUSTOMER = HCA.CUST_ACCOUNT_ID AND CBA.BANK_ID =
BANK.PARTY_ID AND CBA.BANK_BRANCH_ID = BRANCH.PARTY_ID AND
ACRH.STATUS IN ( 'CLEARED' , 'REMITTED' , 'CONFIRMED' , 'REVERSED' )
AND CBA.BANK_ACCOUNT_ID = :b2 AND ACRH.GL_DATE < :b1 AND (
ACR.ORG_ID IS NULL OR ACR.ORG_ID = :b3 ) AND ( (
ACR.REVERSAL_DATE IS NOT NULL AND ACRH.STATUS = 'REVERSED' ) OR (
ACRH.CASH_RECEIPT_HISTORY_ID IN (SELECT MIN
(INCRH.CASH_RECEIPT_HISTORY_ID) FROM APPS.AR_CASH_RECEIPT_HISTORY_ALL
INCRH WHERE INCRH.CASH_RECEIPT_ID = ACR.CASH_RECEIPT_ID AND
INCRH.STATUS != 'REVERSED' )) ) GROUP BY ACRH.GL_DATE ,
DECODE(ADJ.REASON_CODE , NULL , 'ADJ' , ADJ.REASON_CODE || ' -
ADJ' ) , ACR.DOC_SEQUENCE_VALUE , ACR.CREATION_DATE , NULL ,
NULL , NVL(SUBSTR(HP.PARTY_NAME , 1 , 50 ) , 'Miscellaneous
Activity' ) , ACRH.ACCOUNT_CODE_COMBINATION_ID , NVL(ACR.COMMENTS ,
ACR.RECEIPT_NUMBER ) , NULL , CBA.BANK_ACCOUNT_NAME ,
CBA.BANK_ACCOUNT_NUM , BANK.PARTY_NAME , BRANCH.PARTY_NAME UNION ALL
SELECT PT.TRANSACTION_DATE GL_DATE , DECODE(PT.CREATED_FROM_DIR ,
'PAYMENT' , 'Payment' ) TYPE , PT.TRXN_REFERENCE_NUMBER VOUCHER_NO ,
TRUNC (PT.CREATION_DATE ) VOUCHER_DATE , PT.BANK_TRXN_NUMBER
CHECK_NUMBER , TO_CHAR (PT.TRANSACTION_DATE , 'DD-MON-YYYY' )
CHECK_DATE , DESTBA.BANK_ACCOUNT_NAME VENDOR_NAME ,
GCC.CODE_COMBINATION_ID ACCOUNT_CODE , 'Inter Bank Transfer' ACC_DESC
, '0' RECEIPTS , TO_CHAR (SUM (PT.PAYMENT_AMOUNT) ) PAYMENTS ,
TO_NUMBER (SUM (PT.PAYMENT_AMOUNT) ) PAYMENTS1 ,
SRCBA.BANK_ACCOUNT_NAME BANK_ACCOUNT_NAME , SRCBA.BANK_ACCOUNT_NUM
BANK_ACCOUNT_NUM , BANK.PARTY_NAME BANK_NAME , BRANCH.PARTY_NAME
BRANCH_NAME FROM APPS.HZ_ORGANIZATION_PROFILES SBANKORGPROFILE ,
APPS.HZ_CODE_ASSIGNMENTS SBANKCA , APPS.HZ_PARTIES SBRANCHPARTY ,
APPS.HZ_ORGANIZATION_PROFILES SBRANCHORGPROFILE ,
APPS.HZ_CODE_ASSIGNMENTS SBRANCHCA , APPS.HZ_RELATIONSHIPS SBRREL ,
APPS.HZ_CODE_ASSIGNMENTS SBRANCHTYPECA , APPS.HZ_CONTACT_POINTS
SBRANCHCP , APPS.HZ_CONTACT_POINTS SEDICP ,
APPS.HZ_ORGANIZATION_PROFILES DBANKORGPROFILE ,
APPS.HZ_CODE_ASSIGNMENTS DBANKCA , APPS.HZ_PARTIES DBRANCHPARTY ,
APPS.HZ_ORGANIZATION_PROFILES DBRANCHORGPROFILE ,
APPS.HZ_CODE_ASSIGNMENTS DBRANCHCA , APPS.HZ_RELATIONSHIPS DBRREL ,
APPS.HZ_CODE_ASSIGNMENTS DBRANCHTYPECA , APPS.HZ_CONTACT_POINTS
DBRANCHCP , APPS.HZ_CONTACT_POINTS DEDICP ,
APPS.CE_PAYMENT_TRANSACTIONS PT , APPS.CE_BANK_ACCOUNTS SRCBA ,
APPS.CE_BANK_ACCOUNTS DESTBA , APPS.XLE_ENTITY_PROFILES SRCLE ,
APPS.XLE_ENTITY_PROFILES DESTLE , APPS.GL_CODE_COMBINATIONS GCC ,
APPS.HZ_PARTIES HZP , HZ_PARTIES BANK , HZ_PARTIES BRANCH WHERE
SYSDATE BETWEEN TRUNC (SBANKORGPROFILE.EFFECTIVE_START_DATE ) AND
NVL(TRUNC (SBANKORGPROFILE.EFFECTIVE_END_DATE ) , SYSDATE + 1 )
AND SBANKCA.CLASS_CATEGORY = 'BANK_INSTITUTION_TYPE' AND
SBANKCA.CLASS_CODE IN ( 'BANK' , 'CLEARINGHOUSE' ) AND
SBANKCA.OWNER_TABLE_NAME = 'HZ_PARTIES' AND ( SBANKCA.STATUS = 'A'
OR SBANKCA.STATUS IS NULL ) AND SBANKCA.OWNER_TABLE_ID =
SBANKORGPROFILE.PARTY_ID AND SBRANCHPARTY.PARTY_TYPE =
'ORGANIZATION' AND SBRANCHPARTY.STATUS = 'A' AND
SBRANCHORGPROFILE.PARTY_ID = SBRANCHPARTY.PARTY_ID AND SYSDATE
BETWEEN TRUNC (SBRANCHORGPROFILE.EFFECTIVE_START_DATE ) AND
NVL(TRUNC (SBRANCHORGPROFILE.EFFECTIVE_END_DATE ) , SYSDATE + 1 )
AND SBRANCHCA.CLASS_CATEGORY = 'BANK_INSTITUTION_TYPE' AND
SBRANCHCA.CLASS_CODE IN ( 'BANK_BRANCH' , 'CLEARINGHOUSE_BRANCH' )
AND SBRANCHCA.OWNER_TABLE_NAME = 'HZ_PARTIES' AND (
SBRANCHCA.STATUS = 'A' OR SBRANCHCA.STATUS IS NULL ) AND
SBRANCHCA.OWNER_TABLE_ID = SBRANCHPARTY.PARTY_ID AND
SBANKORGPROFILE.PARTY_ID = SBRREL.OBJECT_ID AND
SBRREL.RELATIONSHIP_TYPE = 'BANK_AND_BRANCH' AND
SBRREL.RELATIONSHIP_CODE = 'BRANCH_OF' AND SBRREL.STATUS = 'A'
AND SBRREL.SUBJECT_TABLE_NAME = 'HZ_PARTIES' AND
SBRREL.SUBJECT_TYPE = 'ORGANIZATION' AND SBRREL.OBJECT_TABLE_NAME =
'HZ_PARTIES' AND SBRREL.OBJECT_TYPE = 'ORGANIZATION' AND
SBRREL.SUBJECT_ID = SBRANCHPARTY.PARTY_ID AND
SBRANCHTYPECA.CLASS_CATEGORY = 'BANK_BRANCH_TYPE' AND
SBRANCHTYPECA.PRIMARY_FLAG = 'Y' AND
SBRANCHTYPECA.OWNER_TABLE_NAME = 'HZ_PARTIES' AND
SBRANCHTYPECA.OWNER_TABLE_ID = SBRANCHPARTY.PARTY_ID ANDHi Karan,
If your DB node has 48 GB and there are no other applications/program running on the server than I believe you still have for room for SGA/PGA resize.
GSS was scheduled to run at 20% till last week ( runs every week) while i just made it to run for auto_sample_size by giving the percent as 0. I have checked and found that most of the tables had good stats , though one of the programs has started to take too much time after that. So for now i have reverted it back to 20%.
10% - 20% is the percentage which I usually go with and this works well for me. Anyways that being said 10% default would do the trick in most cases.
The update statement which is causing the trouble is a seeded oracle program so we have checking that with oracle. ( Auto_invoice_master).
Yes as recommended, Please get confirmation from SR as well.
Please also see note:
How To Setup AutoInvoice For Optimal Performance (Doc ID 1083467.1)
Troubleshooting AutoInvoice Performance Issues (Doc ID 1089196.1)
Thanks &
Best Regards -
Multiple executions of a query found in the ADDM Report
Hi,
I generated an ADDM Report on my DB for the time when the DB performance was very slow. Below are some lines from it:
RECOMMENDATION 1: SQL Tuning, 15% benefit (28820 seconds)
ACTION: Run SQL Tuning Advisor on the SQL statement with SQL_ID
"725bgkkhqs73v".
RELEVANT OBJECT: SQL statement with SQL_ID 725bgkkhqs73v and
PLAN_HASH 2688602638
select column1,column2 from table1;
ACTION: Investigate the SQL statement with SQL_ID "725bgkkhqs73v" for
possible performance improvements.
RELEVANT OBJECT: SQL statement with SQL_ID 725bgkkhqs73v and
PLAN_HASH 2688602638
select column1, column2 from table1;
RATIONALE: SQL statement with SQL_ID "725bgkkhqs73v" was executed 32 times and had an average elapsed time of 900 seconds.
Can anyone help me out with the reason behind these repeated executions of the SQL query thus resulting in a avg elapsed time of 15 mins. Also, I could see that some queries ran on the DB even for 145,445,335 times, however the total time elapsed for executing these queries was only 0.000048 seconds.
COuld it be because there was exclusive locks on those tables during the times there queries were getting executed or do I need to look at query tuning here? Kindly help.yeah. posting it here:
select column1,column2 from table1;
Plan hash value: 2688602638
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | | | 4 (100)| |
| 1 | HASH GROUP BY | | 1 | 77 | 4 (25)| 00:00:01 |
| 2 | TABLE ACCESS BY INDEX ROWID| column1 | 1 | 18 | 1 (0)| 00:00:01 |
| 3 | NESTED LOOPS | | 1 | 77 | 3 (0)| 00:00:01 |
| 4 | TABLE ACCESS FULL | column2 | 1 | 59 | 2 (0)| 00:00:01 |
| 5 | INDEX RANGE SCAN | x_abc | 1605 | | 1 (0)| 00:00:01 |
SQL_ID 725bgkkhqs73v
select column1, column2 from table1;
Plan hash value: 2947532035
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | | | 4 (100)| |
| 1 | HASH GROUP BY | | 41 | 1476 | 4 (50)| 00:00:01 |
| 2 | TABLE ACCESS BY INDEX ROWID | column1 | 14 | 252 | 1 (0)| 00:00:01 |
| 3 | NESTED LOOPS | | 50 | 1800 | 2 (0)| 00:00:01 |
| 4 | TABLE ACCESS BY INDEX ROWID| column1 | 3 | 54 | 1 (0)| 00:00:01 |
| 5 | INDEX RANGE SCAN | X_abc| 1602 | | 1 (0)| 00:00:01 |
| 6 | INDEX RANGE SCAN | XAK_def| 14 | | 1 (0)| 00:00:01 |
Does this shed any light?
Thanks in advance for all your help! -
All ****'s broken loose on my MBP. Need advice from the techno savvy!
I have a refurbished MBP that I bought about 2 weeks ago. (from an apple reseller) For the past 3 or 4 days, safari will just shut down randomly and the shutdowns have since increased in frequency. I downloaded Firefox to see if it was a Safari issue and Firefox shut down the same as Safari. Starting last night, I started getting this dark screen overlay and a message that OSX has quit working and I need to restart by pressing the power button. It has happened while using various applications with no pattern. When I restart the computer, I get an error screen that says that OSX had an unexpected error/shutdown and gives me the option to report it to Apple. I will include the problem details below. This afternoon, my optical drive quit working and the only way to get the CD out of the drive is to shut the computer down. Once I insert a CD, the drive keeps "revving", the keyboard backlight pulses with the revving, and it just doesn't sound good. There's no way to end it except hitting the power button. When I try to run Disk Utility, it shows that I have a lot of permissions that are broken, but then it gives me an error message and won't finish or repair them. If anyone has some advice, I'd appreciate it! I didn't get any OSX disks when I bought the computer, so I suspect it will have to be returned back to the shop. I thankfully bought their 2 year insurance that is supposed to cover everything that AppleCare would normally. It's a 2.33 HGz Intel Duo, 2GB. I'm not sure when it was originally released. I'm running 10.5.8 on it. Thanks to anyone who can give me some advice on what to do with it!
Rebecca
Here's the error report:
Interval Since Last Panic Report: 45679 sec
Panics Since Last Report: 2
Anonymous UUID: 968E4DA3-560A-4448-A1B4-E0E4DA604BE2
Fri Jan 29 18:02:32 2010
panic(cpu 0 caller 0x001AB0FE): Kernel trap at 0x0017f403, type 14=page fault, registers:
CR0: 0x8001003b, CR2: 0xeeeeef02, CR3: 0x01000000, CR4: 0x00000660
EAX: 0x00000001, EBX: 0xeeeeeeee, ECX: 0x0b264d60, EDX: 0x06636c94
CR2: 0xeeeeef02, EBP: 0x2e3f7a88, ESI: 0x05332000, EDI: 0x00000000
EFL: 0x00010286, EIP: 0x0017f403, CS: 0x00000008, DS: 0x00000010
Error code: 0x00000000
Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
0x2e3f7888 : 0x12b4c6 (0x45f91c 0x2e3f78bc 0x13355c 0x0)
0x2e3f78d8 : 0x1ab0fe (0x469a98 0x17f403 0xe 0x469248)
0x2e3f79b8 : 0x1a1713 (0x2e3f79d0 0xb0fa030 0x2e3f7a88 0x17f403)
0x2e3f79c8 : 0x17f403 (0xe 0x48 0x2e3f0010 0x1a0010)
0x2e3f7a88 : 0x17400a (0x6636c94 0x5332000 0x0 0x2e3f7c54)
0x2e3f7ad8 : 0x1d51b5 (0x6636c94 0x5300000 0x0 0x5400000)
0x2e3f7c78 : 0x1d5505 (0x63cd3f0 0x2e3f7ebc 0x5200000 0x0)
0x2e3f7cc8 : 0x342917cb (0x63cd3f0 0x2e3f7ebc 0x5200000 0x0)
0x2e3f7d78 : 0x1f839a (0x2e3f7dac 0x246 0x2e3f7dd8 0x1dc2a2)
0x2e3f7dd8 : 0x1eebce (0x63cd3f0 0x2e3f7ebc 0x811 0x2e3f7f54)
0x2e3f7e68 : 0x391c12 (0x43a8d90 0x2e3f7ebc 0x1 0x2e3f7f54)
0x2e3f7f18 : 0x391d83 (0x2e3f7f54 0x43a8d90 0x22ad9000 0x0)
0x2e3f7f78 : 0x3e3a7f (0x4488794 0xb26e400 0xb26e444 0xb1a16738)
0x2e3f7fc8 : 0x1a1c0a (0xa9860a0 0x0 0x1a40b5 0x4710ee0)
No mapping exists for frame pointer
Backtrace terminated-invalid frame pointer 0xb1a16838
Kernel loadable modules in backtrace (with dependencies):
com.apple.filesystems.msdosfs(1.5.5)@0x34289000->0x34295fff
BSD process name corresponding to current thread: Finder
Mac OS version:
9L31a
Kernel version:
Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386
System model name: MacBookPro2,2 (Mac-F42187C8)
System uptime in nanoseconds: 1341736325435
unloaded kexts:
com.apple.iokit.IOFireWireSBP2 1.9.8 - last unloaded 190146209641
loaded kexts:
com.apple.filesystems.msdosfs 1.5.5 - last loaded 117494887146
com.apple.iokit.IOSCSIReducedBlockCommandsDevice 2.1.1
com.apple.iokit.IOFireWireSerialBusProtocolTransport 1.5.2
com.apple.driver.iTunesPhoneDriver 1.0
com.apple.iokit.IOUSBMassStorageClass 2.0.8
com.apple.driver.InternalModemSupport 2.4.0
com.apple.iokit.IOBluetoothSerialManager 2.1.9f10
com.apple.filesystems.autofs 2.0.2
com.apple.driver.AppleHDAPlatformDriver 1.7.1a2
com.apple.driver.AppleHWSensor 1.9d0
com.apple.driver.AppleHDAHardwareConfigDriver 1.7.1a2
com.apple.driver.AppleUpstreamUserClient 2.7.5
com.apple.driver.AppleHDA 1.7.1a2
com.apple.kext.ATY_Wormy 5.4.8
com.apple.DontSteal_Mac_OSX 6.0.3
com.apple.ATIRadeonX1000 5.4.8
com.apple.driver.AppleGraphicsControl 2.8.15
com.apple.driver.AppleACPILPC 1.0.8
com.apple.driver.AirPort.Atheros 320.16.2
com.apple.driver.AppleHDAController 1.7.1a2
com.apple.iokit.IOFireWireIP 1.7.7
com.apple.driver.AudioIPCDriver 1.0.6
com.apple.kext.AppleSMCLMU 1.4.5d1
com.apple.driver.AppleIRController 113
com.apple.driver.ACPISMCPlatformPlugin 3.4.0a17
com.apple.driver.AppleLPC 1.3.1
com.apple.driver.AppleBacklight 1.6.0
com.apple.driver.SMCMotionSensor 2.1.1d2
com.apple.driver.AppleTyMCEDriver 1.0.0d28
com.apple.driver.CSRUSBBluetoothHCIController 2.1.9f10
com.apple.driver.AppleUSBMergeNub 3.5.2
com.apple.driver.AppleUSBTrackpad 1.7.4f1
com.apple.driver.AppleUSBTCKeyEventDriver 1.7.4f1
com.apple.driver.CSRHIDTransitionDriver 2.1.9f10
com.apple.driver.AppleUSBTCKeyboard 1.7.4f1
com.apple.driver.USBCameraFirmwareLoader 1.0.9
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.1.1
com.apple.iokit.SCSITaskUserClient 2.1.1
com.apple.driver.XsanFilter 2.7.91
com.apple.iokit.IOAHCIBlockStorage 1.2.2
com.apple.driver.AppleUSBHub 3.4.9
com.apple.iokit.IOUSBUserClient 3.5.2
com.apple.iokit.AppleYukon2 3.1.13b2
com.apple.driver.AppleUSBEHCI 3.4.6
com.apple.iokit.IOATAPIProtocolTransport 1.5.3
com.apple.driver.AppleFileSystemDriver 1.1.0
com.apple.driver.AppleFWOHCI 3.9.7
com.apple.driver.AppleUSBUHCI 3.5.2
com.apple.driver.AppleAHCIPort 1.7.0
com.apple.driver.AppleIntelPIIXATA 2.0.1
com.apple.driver.AppleEFINVRAM 1.2.0
com.apple.driver.AppleSmartBatteryManager 158.10.5
com.apple.driver.AppleRTC 1.2.3
com.apple.driver.AppleHPET 1.4
com.apple.driver.AppleACPIPCI 1.2.5
com.apple.driver.AppleACPIButtons 1.2.5
com.apple.driver.AppleSMBIOS 1.4
com.apple.driver.AppleACPIEC 1.2.5
com.apple.driver.AppleAPIC 1.4
com.apple.security.seatbelt 107.12
com.apple.nke.applicationfirewall 1.6.77
com.apple.security.TMSafetyNet 3
com.apple.driver.AppleIntelCPUPowerManagement 76.2.0
com.apple.driver.DiskImages 199
com.apple.BootCache 30.4
com.apple.iokit.IOFireWireSBP2 1.9.8
com.apple.iokit.IOSerialFamily 9.4
com.apple.driver.DspFuncLib 1.7.1a2
com.apple.iokit.IO80211Family 216.1
com.apple.iokit.IOHDAFamily 1.7.1a2
com.apple.iokit.IOAudioFamily 1.6.9fc5
com.apple.kext.OSvKernDSPLib 1.1
com.apple.driver.IOPlatformPluginFamily 3.4.0a17
com.apple.iokit.IONDRVSupport 1.7.3
com.apple.iokit.IOGraphicsFamily 1.7.3
com.apple.driver.AppleSMC 2.3.1d1
com.apple.driver.AppleUSBBluetoothHCIController 2.1.9f10
com.apple.iokit.IOBluetoothFamily 2.1.9f10
com.apple.iokit.IOUSBHIDDriver 3.4.6
com.apple.driver.AppleUSBComposite 3.2.0
com.apple.iokit.IOSCSIBlockCommandsDevice 2.1.1
com.apple.iokit.IOBDStorageFamily 1.5
com.apple.iokit.IODVDStorageFamily 1.5
com.apple.iokit.IOCDStorageFamily 1.5
com.apple.iokit.IOSCSIArchitectureModelFamily 2.1.1
com.apple.iokit.IONetworkingFamily 1.6.1
com.apple.iokit.IOFireWireFamily 3.4.9
com.apple.iokit.IOUSBFamily 3.5.2
com.apple.iokit.IOAHCIFamily 1.5.0
com.apple.iokit.IOATAFamily 2.0.1
com.apple.driver.AppleEFIRuntime 1.2.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.iokit.IOStorageFamily 1.5.6
com.apple.iokit.IOHIDFamily 1.5.5
com.apple.driver.AppleACPIPlatform 1.2.5
com.apple.iokit.IOACPIFamily 1.2.0
com.apple.iokit.IOPCIFamily 2.6According to Mactracker, the 2.33 GHz processor is on the 15-inch and on the 17-inch Core 2 Duo, which was released in October 2006 and discontinued in June 2007. It was originally released with OS X 10.4.8.
You should have been given a set of the original gray system discs and a full retail Leopard disc.
The permissions issue is not something to be overly concerned about:
http://support.apple.com/kb/TS1448?viewlocale=en_US
Your computer has some serious issues, and without the discs and a working optical drive, it probably won't be possible to fix them. So the first thing is to go back to the shop and insist that they fix the optical drive and supply you with the discs that you should have.
Do you have a good backup or access to another Mac? If so, it might be possible to rescue any data on your Mac using FireWire Target Disk Mode:
http://support.apple.com/kb/HT1661
It's likely that your hard drive will need to be reformatted, which would destroy any data you may have on it. So it would be prudent to rescue anything you want to keep before taking it in.
Once you get it back, be sure to run the extended version of the Apple Hardware test, which will be on one of the original system discs.
Also, it wouldn't hurt to download and run this utility:
http://www.versiontracker.com/dyn/moreinfo/macosx/32454
You can download the demo and run it several times for free. It will give you a good analysis of the physical health of your hard drive. It may be that the drive has already been replaced, but if not and it is still the original, then it would be 3 or 4 years old by now. The average useful life of a notebook drive is 3-5 years.
You might also want to look at this article on kernel panics:
http://www.thexlab.com/faqs/kernelpanics.html
Do take it back to the shop and see what they will do for you. I agree with the possibility of getting a replacement machine or your money back if they can't give you the discs and fix the machine to your satisfaction.
Good luck! -
How to eliminate an instance of "entering a sequence call" from the teststand report
I am using TestStand 4.2 and I am using a long sequence with several sub-sequences. In these subsequences I am getting test results that I would like to place in the TestStand report. Currently, in order to do this I have to check the "Record Result" option in the "Run Options" of the sequence call properties which displays an "Entering sequence call" mark on the report. Is there any way that I can get rid of this marker and still record information from the sub sequence?
Solved!
Go to Solution.Hello,
You should have a look a these documents:
http://digital.ni.com/manuals.nsf/websearch/2B14FB1CD4FF25CA862577AE00554FC7
http://zone.ni.com/devzone/cda/tut/p/id/7958
Regards,
Rodéric L
Certified LabVIEW Architect -
Query regarding the ADDM Report
Hi All,
My DB performance was quite slow during the last weekend because we had a major data load job and dbms_stats.gather_schema_stats jobs running simultaneously. So, we got an ADDM report generated for these 2 days and from that i could extract 2 things:
1. The performance was slow because the dbms_stats.gather_schema_stats job was running simultaneoulsy on it.
2. I could see that some of the SELECT queries on the tables in the schema got executed 145445335, 35, 30 and 20 times repeatedly on the DB. Now this leaves me shocked. Can anyone possibly explain the reason behind it? Was it because a gather_schema_stats was also running on the DB? But how would a select be affected by it? Would it be because it had a exclusive locks on those DB objects during the time it was running?
Kindly suggest.
Thanks in advance.Hi,
Thanks for your response.
No, i cannot see any of the terms like library cache locks and library cache pins with those SQL statements. The only things is see is:
RECOMMENDATION 1: SQL Tuning, 15% benefit (28820 seconds)
ACTION: Run SQL Tuning Advisor on the SQL statement with SQL_ID
"725bgkkhqs73v".
RELEVANT OBJECT: SQL statement with SQL_ID 725bgkkhqs73v and
PLAN_HASH 2688602638
SELECT column1 from table1;
ACTION: Investigate the SQL statement with SQL_ID "725bgkkhqs73v" for
possible performance improvements.
RELEVANT OBJECT: SQL statement with SQL_ID 725bgkkhqs73v and
PLAN_HASH 2688602638
RATIONALE: SQL statement with SQL_ID "725bgkkhqs73v" was executed 32
times and had an average elapsed time of 900 seconds.
Also, my DB is 10.2.0.3.0 and OS is HP-UNX B.11.23.
Maybe you are looking for
-
Sender Mail Adapter - java.lang.NullPointerException in CC monitoring
hi, I configured my Sender Mail Adapter correctly. I have the correct POP URL, authentication. I'm not using PayloadSwapBean right now. I can't get rid of the exception inside my Channel monitoring. exception caught during processing mail message; ja
-
Creation of Budget using Last Years Actual budget
Hi, 1) Is it possible to create new budgets using copy function to copy last years' actual budget to create a new budget. 2) Also copy budget from one fund center/commitment item to another fund center/commitment item If it is not the standard functi
-
Looking for Pink Rose/Peony wallpaper found on Iphone 4 with IOS 5
I am trying to locate the beautiful pink flower wallpaper that came with my Iphone 4S. I think I might have had IOS 4 or 5 at the time. Its not in the default selections. It was a soft pink rose or peony that was looking to the left (sort of falli
-
Hi. I get warnings on lines in my mapping class. FIELD-SYMBOLS <ls_structcomp> TYPE abap_compdescr. Class *****, Method IF_MAPPING~EXECUTE (E) Package "*****" cannot use object "TYPE ABAP TYPE" from package "SABP_TYPES" in any of the following ways:
-
I've been a graphic designer for years, but I'm just getting into motion graphics. I want to make a short video bumber with multiple bars moving through 3D space, very similar to this: http://www.youtube.com/watch?v=LOa2iylnHtA I have read the now ar