Worst execution plan ever?
World record estimation fail. We expect 1 row back, Sql Server expects over 23 trillion! The estimated memory is 111 Petabytes (yes, I said Peta).
We're using a pretty ugly view. Ugly because it has nested views, a correlated subquery and about 20 total joins. On the good side, the call is restricting the view with a single ID against the base table (this is for a single patient). The
rest of the view goes out and gets the patient's address, phone, contacts, status, insurance, diagnosis, etc. The db structure is fairly normalized so that does include about 20 tables.
This is a new application and as such there isn't much data yet. When we run the view on our server with thousands of patients, the results are returned quickly. Query time is subsecond. The execution plan is ugly as expected, it's got
hundreds of nodes, but the cost is pretty low and the performance is acceptable.
When we run the same view on a disconnected device running Sql Server Localdb, it sometimes loses it's mind. Note that the number of patients on the device is rarely over 100, it's a subset of the records on the server. That's when we get the
numbers that I'm quoting above. Basically, the first join thinks there might be 12 records returns, then the next estimates 20 times that many, then 50 times that many, and that number just keeps multiplying until we get to trillions.
I have a screenshot in case anyone thinks I'm exaggerating those numbers. I also have the execution plan XML.
Bottom line is we're going to rewrite the query, but this now becomes an excuse to learn. Where is Grant Fritchey when you need him?
In situations like this, there are a few typical situations:
The statistics are stale
You are using parameters and parameter sniffing goes awry
You've hit a bug or flaw in the optimizer
The query can not be properly optimized
The first possible situation is the easiest to find and fix. Simply run UPDATE STATISTICS (preferably WITH FULLSCAN) on each table that is part of the query.
The second situation is also easily testable. For example, you can add OPTION WITH RECOMPILE (or any other relevant Compilation Option) to defeat parameter sniffing.
Of course, you should always check whether you have proper indexes in place. Be aware that Foreign Key relations are not automatically indexed.
If you are out of luck, and it is not any of the first two, then you can dive deeper and find out what is going wrong. If you lack the time or knowledge to do that, you can break the query in several queries and use temporary tables with intermediate results.
Gert-Jan
Similar Messages
-
Optimizer not using correct execution plan
Hi ,
DB version : 11.2.0.3
My sql query ran last month 1 hour. But the same sql query today running for four hours. Looks like optimizer is not using correct execution plan. I have used tuning advisor and applied recommended sql profile and query execution is back to normal. I can see statistics are upto date for the tables. Any other factors why the optimizer is not choosing correct execution plan ?
Thanks.What is the correct plan according to you? Multiple factors cause optimizer to chose a different plan. As a rudimentry example - A binary index column having low cardinality than expected, after new data has been inserted. Never ever expect your query to have same execution plan till the entire lifetime, until the underlying data does not change or nobody changes database settings.
You have to give a lot of information if you are looking for performance tuning. Pls see following thread
https://forums.oracle.com/message/9362003#9362003 -
Failed while running Execution Plan for Financial Analytics
Hi gurus,
I got this error when running SDE_ORA_PartyOrganizationDimension_Customer_Full
*****START LOAD SESSION*****
Load Start Time: Thu May 10 10:43:51 2012
Target tables:
W_PARTY_ORG_DS
2012-05-10 10:43:51 : INFO : (16808 | READER_1_1_1) : (IS | BIA_IS) : node01_bidev.localhost : RR_4029 : SQ Instance [mplt_BC_ORA_PartyOrganizationDimension_Customer.SQ_BCI_CUSTOMERS] User specified SQL Query [SELECT DISTINCT HZ_PARTIES.PARTY_ID,
HZ_PARTIES.CREATED_BY,
HZ_PARTIES.LAST_UPDATED_BY,
HZ_PARTIES.CREATION_DATE,
HZ_PARTIES.LAST_UPDATE_DATE,
HZ_PARTIES.PARTY_NUMBER,
HZ_PARTIES.PARTY_NAME,
HZ_PARTIES.ADDRESS1,
HZ_PARTIES.ADDRESS2,
HZ_PARTIES.ADDRESS3,
HZ_PARTIES.ADDRESS4,
HZ_PARTIES.CITY,
HZ_PARTIES.STATE,
HZ_PARTIES.POSTAL_CODE,
HZ_PARTIES.PROVINCE,
HZ_PARTIES.COUNTRY,
HZ_ORGANIZATION_PROFILES.DUNS_NUMBER_C,
(CASE
WHEN DOM_DUNS.RELATIONSHIP_CODE = 'DOMESTIC_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
END) DOM_DUNS_NUMBER,
(CASE
WHEN DOM_DUNS.RELATIONSHIP_CODE = 'GLOBAL_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
END) GLBL_DUNS_NUMBER,
HZ_PARTIES.EMPLOYEES_TOTAL,
HZ_PARTIES.YEAR_ESTABLISHED,
HZ_PARTIES.CURR_FY_POTENTIAL_REVENUE,
HZ_PARTIES.HQ_BRANCH_IND,
HZ_PARTIES.PERSON_LAST_NAME,
HZ_PARTIES.KNOWN_AS,
HZ_PARTIES.PERSON_TITLE,
HZ_PARTIES.EMAIL_ADDRESS,
HZ_PARTIES.URL,
HZ_PARTIES.CATEGORY_CODE,
HZ_PARTIES.SIC_CODE,
HZ_PARTIES.PARTY_TYPE,
HZ_ORGANIZATION_PROFILES.OOB_IND,
HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_IND,
HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_TYPE,
HZ_ORGANIZATION_PROFILES.WOMAN_OWNED_IND,
HZ_ORGANIZATION_PROFILES.DISADV_8A_IND,
HZ_ORGANIZATION_PROFILES.SMALL_BUS_IND,
HZ_ORGANIZATION_PROFILES.DB_RATING,
HZ_ORGANIZATION_PROFILES.SIC_CODE_TYPE,
HZ_ORGANIZATION_PROFILES.INTERNAL_FLAG,
HZ_ORGANIZATION_PROFILES.BRANCH_FLAG,
HZ_ORGANIZATION_PROFILES.CREDIT_SCORE,
HZ_ORGANIZATION_PROFILES.STATUS,
HZ_PARTIES.CUSTOMER_KEY,
HZ_PARTIES.JGZZ_FISCAL_CODE,
AP_SUPPLIERS.VENDOR_ID,
AP_SUPPLIERS.VENDOR_NAME,
AP_SUPPLIERS.VENDOR_NAME_ALT,
AP_SUPPLIERS.SEGMENT1,
AP_SUPPLIERS.ENABLED_FLAG,
AP_SUPPLIERS.VENDOR_TYPE_LOOKUP_CODE,
AP_SUPPLIERS.ONE_TIME_FLAG,
AP_SUPPLIERS.PARENT_VENDOR_ID,
AP_SUPPLIERS.ORGANIZATION_TYPE_LOOKUP_CODE,
AP_SUPPLIERS.START_DATE_ACTIVE,
AP_SUPPLIERS.END_DATE_ACTIVE,
AP_SUPPLIERS.MINORITY_GROUP_LOOKUP_CODE,
AP_SUPPLIERS.WOMEN_OWNED_FLAG,
AP_SUPPLIERS.SMALL_BUSINESS_FLAG,
HZ_CUST_ACCOUNTS.PARTY_ID
FROM HZ_PARTIES,
AP_SUPPLIERS,
HZ_ORGANIZATION_PROFILES,
HZ_CUST_ACCOUNTS,
(SELECT DOM_REL.RELATIONSHIP_CODE RELATIONSHIP_CODE,
DOM_ULT_DUNS.PARTY_ID PARTY_ID,
DOM_ULT_DUNS.DUNS_NUMBER DOM_DUNS_NUMBER,
DOM_REL.OBJECT_ID OBJECT_ID
FROM HZ_PARTIES DOM_ULT_DUNS,
HZ_RELATIONSHIPS DOM_REL
WHERE(1 = 1)
AND(DOM_REL.SUBJECT_ID = DOM_ULT_DUNS.PARTY_ID)
AND(DOM_REL.OBJECT_TYPE = 'ORGANIZATION')
AND(DOM_REL.SUBJECT_TYPE = 'ORGANIZATION')
AND(DOM_REL.SUBJECT_TABLE_NAME = 'HZ_PARTIES')
AND(DOM_REL.RELATIONSHIP_CODE IN('DOMESTIC_ULTIMATE_OF', 'GLOBAL_ULTIMATE_OF'))
AND(DOM_REL.ACTUAL_CONTENT_SOURCE = 'DNB')
AND(DOM_REL.RELATIONSHIP_TYPE = 'DNB_HIERARCHY')
AND((DOM_REL.END_DATE IS NULL
OR DOM_REL.END_DATE > SYSDATE
DOM_DUNS
WHERE(1 = 1)
AND HZ_PARTIES.PARTY_TYPE = 'ORGANIZATION'
AND HZ_PARTIES.PARTY_ID = AP_SUPPLIERS.PARTY_ID(+)
AND HZ_ORGANIZATION_PROFILES.EFFECTIVE_END_DATE IS NULL
AND HZ_ORGANIZATION_PROFILES.ACTUAL_CONTENT_SOURCE = 'SST'
AND
(HZ_ORGANIZATION_PROFILES.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
HZ_PARTIES.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
AP_SUPPLIERS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
OR
HZ_CUST_ACCOUNTS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
AND HZ_ORGANIZATION_PROFILES.PARTY_ID = HZ_PARTIES.PARTY_ID
AND HZ_CUST_ACCOUNTS.PARTY_ID(+)=HZ_PARTIES.PARTY_ID
AND DOM_DUNS.OBJECT_ID(+) = HZ_PARTIES.PARTY_ID]
2012-05-10 10:43:51 : INFO : (16808 | READER_1_1_1) : (IS | BIA_IS) : node01_bidev.localhost : RR_4049 : RR_4049 SQL Query issued to database : (Thu May 10 10:43:51 2012)
2012-05-10 10:43:51 : ERROR : (16808 | READER_1_1_1) : (IS | BIA_IS) : node01_bidev.localhost : RR_4035 : SQL Error [
ORA-00942: table or view does not exist
Database driver error...
Function Name : Execute
SQL Stmt : SELECT DISTINCT HZ_PARTIES.PARTY_ID,
HZ_PARTIES.CREATED_BY,
HZ_PARTIES.LAST_UPDATED_BY,
HZ_PARTIES.CREATION_DATE,
HZ_PARTIES.LAST_UPDATE_DATE,
HZ_PARTIES.PARTY_NUMBER,
HZ_PARTIES.PARTY_NAME,
HZ_PARTIES.ADDRESS1,
HZ_PARTIES.ADDRESS2,
HZ_PARTIES.ADDRESS3,
HZ_PARTIES.ADDRESS4,
HZ_PARTIES.CITY,
HZ_PARTIES.STATE,
HZ_PARTIES.POSTAL_CODE,
HZ_PARTIES.PROVINCE,
HZ_PARTIES.COUNTRY,
HZ_ORGANIZATION_PROFILES.DUNS_NUMBER_C,
(CASE
WHEN DOM_DUNS.RELATIONSHIP_CODE = 'DOMESTIC_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
END) DOM_DUNS_NUMBER,
(CASE
WHEN DOM_DUNS.RELATIONSHIP_CODE = 'GLOBAL_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
END) GLBL_DUNS_NUMBER,
HZ_PARTIES.EMPLOYEES_TOTAL,
HZ_PARTIES.YEAR_ESTABLISHED,
HZ_PARTIES.CURR_FY_POTENTIAL_REVENUE,
HZ_PARTIES.HQ_BRANCH_IND,
HZ_PARTIES.PERSON_LAST_NAME,
HZ_PARTIES.KNOWN_AS,
HZ_PARTIES.PERSON_TITLE,
'[email protected]' EMAIL_ADDRESS,
HZ_PARTIES.URL,
HZ_PARTIES.CATEGORY_CODE,
HZ_PARTIES.SIC_CODE,
HZ_PARTIES.PARTY_TYPE,
HZ_ORGANIZATION_PROFILES.OOB_IND,
HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_IND,
HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_TYPE,
HZ_ORGANIZATION_PROFILES.WOMAN_OWNED_IND,
HZ_ORGANIZATION_PROFILES.DISADV_8A_IND,
HZ_ORGANIZATION_PROFILES.SMALL_BUS_IND,
HZ_ORGANIZATION_PROFILES.DB_RATING,
HZ_ORGANIZATION_PROFILES.SIC_CODE_TYPE,
HZ_ORGANIZATION_PROFILES.INTERNAL_FLAG,
HZ_ORGANIZATION_PROFILES.BRANCH_FLAG,
HZ_ORGANIZATION_PROFILES.CREDIT_SCORE,
HZ_ORGANIZATION_PROFILES.STATUS,
HZ_PARTIES.CUSTOMER_KEY,
HZ_PARTIES.JGZZ_FISCAL_CODE,
AP_SUPPLIERS.VENDOR_ID,
AP_SUPPLIERS.VENDOR_NAME,
AP_SUPPLIERS.VENDOR_NAME_ALT,
AP_SUPPLIERS.SEGMENT1,
AP_SUPPLIERS.ENABLED_FLAG,
AP_SUPPLIERS.VENDOR_TYPE_LOOKUP_CODE,
AP_SUPPLIERS.ONE_TIME_FLAG,
AP_SUPPLIERS.PARENT_VENDOR_ID,
AP_SUPPLIERS.ORGANIZATION_TYPE_LOOKUP_CODE,
AP_SUPPLIERS.START_DATE_ACTIVE,
AP_SUPPLIERS.END_DATE_ACTIVE,
AP_SUPPLIERS.MINORITY_GROUP_LOOKUP_CODE,
AP_SUPPLIERS.WOMEN_OWNED_FLAG,
AP_SUPPLIERS.SMALL_BUSINESS_FLAG,
HZ_CUST_ACCOUNTS.PARTY_ID
FROM HZ_PARTIES,
AP_SUPPLIERS,
HZ_ORGANIZATION_PROFILES,
HZ_CUST_ACCOUNTS,
(SELECT DOM_REL.RELATIONSHIP_CODE RELATIONSHIP_CODE,
DOM_ULT_DUNS.PARTY_ID PARTY_ID,
DOM_ULT_DUNS.DUNS_NUMBER DOM_DUNS_NUMBER,
DOM_REL.OBJECT_ID OBJECT_ID
FROM HZ_PARTIES DOM_ULT_DUNS,
HZ_RELATIONSHIPS DOM_REL
WHERE(1 = 1)
AND(DOM_REL.SUBJECT_ID = DOM_ULT_DUNS.PARTY_ID)
AND(DOM_REL.OBJECT_TYPE = 'ORGANIZATION')
AND(DOM_REL.SUBJECT_TYPE = 'ORGANIZATION')
AND(DOM_REL.SUBJECT_TABLE_NAME = 'HZ_PARTIES')
AND(DOM_REL.RELATIONSHIP_CODE IN('DOMESTIC_ULTIMATE_OF', 'GLOBAL_ULTIMATE_OF'))
AND(DOM_REL.ACTUAL_CONTENT_SOURCE = 'DNB')
AND(DOM_REL.RELATIONSHIP_TYPE = 'DNB_HIERARCHY')
AND((DOM_REL.END_DATE IS NULL
OR DOM_REL.END_DATE > SYSDATE
DOM_DUNS
WHERE(1 = 1)
AND HZ_PARTIES.PARTY_TYPE = 'ORGANIZATION'
AND HZ_PARTIES.PARTY_ID = AP_SUPPLIERS.PARTY_ID(+)
AND HZ_ORGANIZATION_PROFILES.EFFECTIVE_END_DATE IS NULL
AND HZ_ORGANIZATION_PROFILES.ACTUAL_CONTENT_SOURCE = 'SST'
AND
(HZ_ORGANIZATION_PROFILES.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
HZ_PARTIES.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
AP_SUPPLIERS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
OR
HZ_CUST_ACCOUNTS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
AND HZ_ORGANIZATION_PROFILES.PARTY_ID = HZ_PARTIES.PARTY_ID
AND HZ_CUST_ACCOUNTS.PARTY_ID(+)=HZ_PARTIES.PARTY_ID
AND DOM_DUNS.OBJECT_ID(+) = HZ_PARTIES.PARTY_ID
Oracle Fatal Error
Database driver error...
Function Name : Execute
SQL Stmt : SELECT DISTINCT HZ_PARTIES.PARTY_ID,
HZ_PARTIES.CREATED_BY,
HZ_PARTIES.LAST_UPDATED_BY,
HZ_PARTIES.CREATION_DATE,
HZ_PARTIES.LAST_UPDATE_DATE,
HZ_PARTIES.PARTY_NUMBER,
HZ_PARTIES.PARTY_NAME,
HZ_PARTIES.ADDRESS1,
HZ_PARTIES.ADDRESS2,
HZ_PARTIES.ADDRESS3,
HZ_PARTIES.ADDRESS4,
HZ_PARTIES.CITY,
HZ_PARTIES.STATE,
HZ_PARTIES.POSTAL_CODE,
HZ_PARTIES.PROVINCE,
HZ_PARTIES.COUNTRY,
HZ_ORGANIZATION_PROFILES.DUNS_NUMBER_C,
(CASE
WHEN DOM_DUNS.RELATIONSHIP_CODE = 'DOMESTIC_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
END) DOM_DUNS_NUMBER,
(CASE
WHEN DOM_DUNS.RELATIONSHIP_CODE = 'GLOBAL_ULTIMATE_OF' THEN DOM_DUNS.DOM_DUNS_NUMBER
END) GLBL_DUNS_NUMBER,
HZ_PARTIES.EMPLOYEES_TOTAL,
HZ_PARTIES.YEAR_ESTABLISHED,
HZ_PARTIES.CURR_FY_POTENTIAL_REVENUE,
HZ_PARTIES.HQ_BRANCH_IND,
HZ_PARTIES.PERSON_LAST_NAME,
HZ_PARTIES.KNOWN_AS,
HZ_PARTIES.PERSON_TITLE,
'[email protected]' EMAIL_ADDRESS,
HZ_PARTIES.URL,
HZ_PARTIES.CATEGORY_CODE,
HZ_PARTIES.SIC_CODE,
HZ_PARTIES.PARTY_TYPE,
HZ_ORGANIZATION_PROFILES.OOB_IND,
HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_IND,
HZ_ORGANIZATION_PROFILES.MINORITY_OWNED_TYPE,
HZ_ORGANIZATION_PROFILES.WOMAN_OWNED_IND,
HZ_ORGANIZATION_PROFILES.DISADV_8A_IND,
HZ_ORGANIZATION_PROFILES.SMALL_BUS_IND,
HZ_ORGANIZATION_PROFILES.DB_RATING,
HZ_ORGANIZATION_PROFILES.SIC_CODE_TYPE,
HZ_ORGANIZATION_PROFILES.INTERNAL_FLAG,
HZ_ORGANIZATION_PROFILES.BRANCH_FLAG,
HZ_ORGANIZATION_PROFILES.CREDIT_SCORE,
HZ_ORGANIZATION_PROFILES.STATUS,
HZ_PARTIES.CUSTOMER_KEY,
HZ_PARTIES.JGZZ_FISCAL_CODE,
AP_SUPPLIERS.VENDOR_ID,
AP_SUPPLIERS.VENDOR_NAME,
AP_SUPPLIERS.VENDOR_NAME_ALT,
AP_SUPPLIERS.SEGMENT1,
AP_SUPPLIERS.ENABLED_FLAG,
AP_SUPPLIERS.VENDOR_TYPE_LOOKUP_CODE,
AP_SUPPLIERS.ONE_TIME_FLAG,
AP_SUPPLIERS.PARENT_VENDOR_ID,
AP_SUPPLIERS.ORGANIZATION_TYPE_LOOKUP_CODE,
AP_SUPPLIERS.START_DATE_ACTIVE,
AP_SUPPLIERS.END_DATE_ACTIVE,
AP_SUPPLIERS.MINORITY_GROUP_LOOKUP_CODE,
AP_SUPPLIERS.WOMEN_OWNED_FLAG,
AP_SUPPLIERS.SMALL_BUSINESS_FLAG,
HZ_CUST_ACCOUNTS.PARTY_ID
FROM HZ_PARTIES,
AP_SUPPLIERS,
HZ_ORGANIZATION_PROFILES,
HZ_CUST_ACCOUNTS,
(SELECT DOM_REL.RELATIONSHIP_CODE RELATIONSHIP_CODE,
DOM_ULT_DUNS.PARTY_ID PARTY_ID,
DOM_ULT_DUNS.DUNS_NUMBER DOM_DUNS_NUMBER,
DOM_REL.OBJECT_ID OBJECT_ID
FROM HZ_PARTIES DOM_ULT_DUNS,
HZ_RELATIONSHIPS DOM_REL
WHERE(1 = 1)
AND(DOM_REL.SUBJECT_ID = DOM_ULT_DUNS.PARTY_ID)
AND(DOM_REL.OBJECT_TYPE = 'ORGANIZATION')
AND(DOM_REL.SUBJECT_TYPE = 'ORGANIZATION')
AND(DOM_REL.SUBJECT_TABLE_NAME = 'HZ_PARTIES')
AND(DOM_REL.RELATIONSHIP_CODE IN('DOMESTIC_ULTIMATE_OF', 'GLOBAL_ULTIMATE_OF'))
AND(DOM_REL.ACTUAL_CONTENT_SOURCE = 'DNB')
AND(DOM_REL.RELATIONSHIP_TYPE = 'DNB_HIERARCHY')
AND((DOM_REL.END_DATE IS NULL
OR DOM_REL.END_DATE > SYSDATE
DOM_DUNS
WHERE(1 = 1)
AND HZ_PARTIES.PARTY_TYPE = 'ORGANIZATION'
AND HZ_PARTIES.PARTY_ID = AP_SUPPLIERS.PARTY_ID(+)
AND HZ_ORGANIZATION_PROFILES.EFFECTIVE_END_DATE IS NULL
AND HZ_ORGANIZATION_PROFILES.ACTUAL_CONTENT_SOURCE = 'SST'
AND
(HZ_ORGANIZATION_PROFILES.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
HZ_PARTIES.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS') OR
AP_SUPPLIERS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
OR
HZ_CUST_ACCOUNTS.LAST_UPDATE_DATE > TO_DATE('01/01/1753 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
AND HZ_ORGANIZATION_PROFILES.PARTY_ID = HZ_PARTIES.PARTY_ID
AND HZ_CUST_ACCOUNTS.PARTY_ID(+)=HZ_PARTIES.PARTY_ID
AND DOM_DUNS.OBJECT_ID(+) = HZ_PARTIES.PARTY_ID
Oracle Fatal Error].
2012-05-10 10:43:51 : ERROR : (16808 | READER_1_1_1) : (IS | BIA_IS) : node01_bidev.localhost : BLKR_16004 : ERROR: Prepare failed.
2012-05-10 10:43:51 : INFO : (16808 | WRITER_1_*_1) : (IS | BIA_IS) : node01_bidev.localhost : WRT_8333 : Rolling back all the targets due to fatal session error.
2012-05-10 10:43:51 : INFO : (16808 | WRITER_1_*_1) : (IS | BIA_IS) : node01_bidev.localhost : WRT_8325 : Final rollback executed for the target [W_ORG_DS] at end of load
2012-05-10 10:43:51 : INFO : (16808 | WRITER_1_*_1) : (IS | BIA_IS) : node01_bidev.localhost : WRT_8035 : Load complete time: Thu May 10 10:43:51 2012
LOAD SUMMARY
============
WRT_8036 Target: W_PARTY_ORG_DS (Instance Name: [W_ORG_DS])
WRT_8044 No data loaded for this target
I have already checked table source (HZ_PARTIES,AP_SUPPLIERS,HZ_ORGANIZATION_PROFILES,HZ_CUST_ACCOUNTS) and table target (W_PARTY_ORG_DS). All source table and target table are exist. But when I ran execution plan for Financial Analytics, I got failed on task SDE_ORA_PartyOrganizationDimension_Customer_Full
Did anyone ever get this issue?
Regards,
JoniHave you tried running the sql against your source? I ran this against one of our EBS instances and it runs fine.
If it runs OK I would next check what connection the Informatica workflow is using. Check the full session and workflow logs to make sure its connecting to the correct database. -
One query - one database - different execution plan for different users.
Hi everyone.
I've encountered one of the strangest things I've ever seen with Oracle. I'm hoping that someone else here has seen something like this before and solved it! On an 11g database I have a query that runs differently depending on which user runs it. If the owner of the tables or someone with the DBA role runs the query I get a perfect execution plan. If someone else runs it, I get a really bad execution plan - though the query still executes. So it almost seems like depending on who is running the query, the optimizer might not have access to the same statistics?? I'm really grasping at straws here - any help would be greatfully accepted!!!
Here is the query and the two plans for it...
On TASD as a General User (Bad execution plan) - CA17062 is USER
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
Connected as ca17062
SQL> explain plan for
select w.worker_id, w.worker_name
from worker_v w,
worker_cost_centre_v c
where w.worker_id = c.worker_id
and c.effective_date <= trunc(sysdate)
and c.expiration_date >= trunc(sysdate)
and c.cost_centre = '100033'
and pkg_taw_security.user_worker_access('CA17062',
'TIMEKEEPER',
w.worker_id,
trunc(sysdate)) = 1
order by w.worker_name;
Explained
Executed in 0.234 seconds
PLAN_TABLE_OUTPUT
Plan hash value: 1726112176
| Id | Pid | Ord | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | | 8 | SELECT STATEMENT | | 18 | 1800 | 606 (1)| 00:00:01 |
| 1 | 0 | 7 | SORT ORDER BY | | 18 | 1800 | 606 (1)| 00:00:01 |
|* 2 | 1 | 6 | HASH JOIN | | 18 | 1800 | 605 (1)| 00:00:01 |
| 3 | 2 | 3 | VIEW | WORKER_COST_CENTRE_V | 18 | 558 | 19 (0)| 00:00:01 |
|* 4 | 3 | 2 | TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL | 18 | 522 | 19 (0)| 00:00:01 |
|* 5 | 4 | 1 | INDEX RANGE SCAN | WORKER_CC_CC_IDX | 29 | | 3 (0)| 00:00:01 |
|* 6 | 2 | 5 | VIEW | WORKER_V | 161K| 10M| 584 (1)| 00:00:01 |
| 7 | 6 | 4 | TABLE ACCESS FULL | WORKER_TBL | 161K| 3466K| 584 (1)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("W"."WORKER_ID"="C"."WORKER_ID")
4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
PLAN_TABLE_OUTPUT
5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
6 - filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"W"."WORKER_ID",TRUN
C(SYSDATE@!))=1)
About
- XPlan v1.2 by Adrian Billington (http://www.oracle-developer.net)
23 rows selected
Executed in 0.577 seconds
WORKER_ID WORKER_NAME
123703 FADDEN, CLAYTON
11131 HAHN, BRAD
33811 HALL, MAUREEN
53934 JANES, CATHERINE
Executed in 35.241 seconds
On TASD as the owner of the tables or as someone with the DBA role (Good Execution) - TAS is USER:
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
Connected as tas
SQL> explain plan for
select w.worker_id, w.worker_name
from worker_v w,
worker_cost_centre_v c
where w.worker_id = c.worker_id
and c.effective_date <= trunc(sysdate)
and c.expiration_date >= trunc(sysdate)
and c.cost_centre = '100033'
and pkg_taw_security.user_worker_access('CA17062',
'TIMEKEEPER',
w.worker_id,
trunc(sysdate)) = 1
order by w.worker_name;
Explained
Executed in 0.203 seconds
PLAN_TABLE_OUTPUT
Plan hash value: 3435904055
| Id | Pid | Ord | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | | 8 | SELECT STATEMENT | | 18 | 918 | 38 (3)| 00:00:01 |
| 1 | 0 | 7 | SORT ORDER BY | | 18 | 918 | 38 (3)| 00:00:01 |
| 2 | 1 | 6 | NESTED LOOPS | | | | | |
| 3 | 2 | 4 | NESTED LOOPS | | 18 | 918 | 37 (0)| 00:00:01 |
|* 4 | 3 | 2 | TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL | 18 | 522 | 19 (0)| 00:00:01 |
|* 5 | 4 | 1 | INDEX RANGE SCAN | WORKER_CC_CC_IDX | 29 | | 3 (0)| 00:00:01 |
|* 6 | 3 | 3 | INDEX UNIQUE SCAN | WORKER_PK | 1 | | 0 (0)| 00:00:01 |
| 7 | 2 | 5 | TABLE ACCESS BY INDEX ROWID | WORKER_TBL | 1 | 22 | 1 (0)| 00:00:01 |
Predicate Information (identified by operation id):
4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
PLAN_TABLE_OUTPUT
6 - access("X"."WORKER_ID"="X"."WORKER_ID")
filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"X"."WORKER_ID",TRUN
C(SYSDATE@!))=1)
About
- XPlan v1.2 by Adrian Billington (http://www.oracle-developer.net)
23 rows selected
Executed in 0.624 seconds
WORKER_ID WORKER_NAME
123703 FADDEN, CLAYTON
11131 HAHN, BRAD
33811 HALL, MAUREEN
53934 JANES, CATHERINE
Executed in 1.307 seconds
THANKS!!!
Cory AstonI reran the whole thing - with full declared view names and display_cursor. Here are the results...
On TASD as CA17062 (BAD EXECUTION PLAN)
SQL> set linesize 160
SQL> set serveroutput off
SQL>
SQL> select /*+ gather_plan_statistics */
2 w.worker_id, w.worker_name
3 from tas.worker_v w,
4 tas.worker_cost_centre_v c
5 where w.worker_id = c.worker_id
6 and c.effective_date <= trunc(sysdate)
7 and c.expiration_date >= trunc(sysdate)
8 and c.cost_centre = '100033'
9 and tas_user.pkg_taw_security.user_worker_access('CA17062',
10 'TIMEKEEPER',
11 w.worker_id,
12 trunc(sysdate)) = 1
13 order by w.worker_name;
WORKER_ID WORKER_NAME
123703 FADDEN, CLAYTON
11131 HAHN, BRAD
33811 HALL, MAUREEN
53934 JANES, CATHERINE
SQL>
SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID gs5vtgany8vbv, child number 3
select /*+ gather_plan_statistics */ w.worker_id, w.worker_name
from tas.worker_v w, tas.worker_cost_centre_v
c where w.worker_id = c.worker_id and c.effective_date <=
trunc(sysdate) and c.expiration_date >= trunc(sysdate) and
c.cost_centre = '100033' and tas_user.pkg_taw_security.user_worker_ac
cess('CA17062',
'TIMEKEEPER', w.worker_id,
trunc(sysdate)) = 1 order by
w.worker_name
Plan hash value: 1726112176
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | OMem | 1Mem | Used-Mem |
| 0 | SELECT STATEMENT | | 1 | | 4 |00:00:18.52 | 947K| | | |
| 1 | SORT ORDER BY | | 1 | 4 | 4 |00:00:18.52 | 947K| 2048 | 2048 | 2048 (0)|
|* 2 | HASH JOIN | | 1 | 4 | 4 |00:00:15.84 | 947K| 1348K| 1348K| 791K (0)|
| 3 | VIEW | WORKER_COST_CENTRE_V | 1 | 4 | 4 |00:00:00.01 | 18 | | | |
|* 4 | TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL | 1 | 4 | 4 |00:00:00.01 | 18 | | | |
|* 5 | INDEX RANGE SCAN | WORKER_CC_CC_IDX | 1 | 29 | 21 |00:00:00.01 | 3 | | | |
|* 6 | VIEW | WORKER_V | 1 | 161K| 4 |00:00:15.84 | 946K| | | |
| 7 | TABLE ACCESS FULL | WORKER_TBL | 1 | 161K| 160K|00:00:00.09 | 2135 | | | |
Predicate Information (identified by operation id):
2 - access("W"."WORKER_ID"="C"."WORKER_ID")
4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
6 - filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"W"."WORKER_ID",TRUNC(SYSDATE@!))=1)
Note
- cardinality feedback used for this statement
39 rows selected.
SQL>
On TASD as TAS: (GOOD EXECUTION PLAN)
SQL> set serveroutput off
SQL>
SQL> select /*+ gather_plan_statistics */
2 w.worker_id, w.worker_name
3 from tas.worker_v w,
4 tas.worker_cost_centre_v c
5 where w.worker_id = c.worker_id
6 and c.effective_date <= trunc(sysdate)
7 and c.expiration_date >= trunc(sysdate)
8 and c.cost_centre = '100033'
9 and tas_user.pkg_taw_security.user_worker_access('CA17062',
10 'TIMEKEEPER',
11 w.worker_id,
12 trunc(sysdate)) = 1
13 order by w.worker_name;
WORKER_ID WORKER_NAME
123703 FADDEN, CLAYTON
11131 HAHN, BRAD
33811 HALL, MAUREEN
53934 JANES, CATHERINE
SQL>
SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID gs5vtgany8vbv, child number 1
select /*+ gather_plan_statistics */ w.worker_id, w.worker_name
from tas.worker_v w, tas.worker_cost_centre_v
c where w.worker_id = c.worker_id and c.effective_date <=
trunc(sysdate) and c.expiration_date >= trunc(sysdate) and
c.cost_centre = '100033' and tas_user.pkg_taw_security.user_worker_ac
cess('CA17062',
'TIMEKEEPER', w.worker_id,
trunc(sysdate)) = 1 order by
w.worker_name
Plan hash value: 3435904055
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | OMem | 1Mem | Used-Mem |
| 0 | SELECT STATEMENT | | 1 | | 4 |00:00:00.01 | 185 | | | |
| 1 | SORT ORDER BY | | 1 | 4 | 4 |00:00:00.01 | 185 | 2048 | 2048 | 2048 (0)|
| 2 | NESTED LOOPS | | 1 | | 4 |00:00:00.01 | 185 | | | |
| 3 | NESTED LOOPS | | 1 | 4 | 4 |00:00:00.01 | 181 | | | |
|* 4 | TABLE ACCESS BY INDEX ROWID| WORKER_COST_CENTRE_TBL | 1 | 4 | 4 |00:00:00.01 | 18 | | | |
|* 5 | INDEX RANGE SCAN | WORKER_CC_CC_IDX | 1 | 29 | 21 |00:00:00.01 | 3 | | | |
|* 6 | INDEX UNIQUE SCAN | WORKER_PK | 4 | 1 | 4 |00:00:00.01 | 163 | | | |
| 7 | TABLE ACCESS BY INDEX ROWID | WORKER_TBL | 4 | 1 | 4 |00:00:00.01 | 4 | | | |
Predicate Information (identified by operation id):
4 - filter("X"."EXPIRATION_DATE">=TRUNC(SYSDATE@!))
5 - access("X"."COST_CENTRE"='100033' AND "X"."EFFECTIVE_DATE"<=TRUNC(SYSDATE@!))
6 - access("X"."WORKER_ID"="X"."WORKER_ID")
filter("PKG_TAW_SECURITY"."USER_WORKER_ACCESS"('CA17062','TIMEKEEPER',"X"."WORKER_ID",TRUNC(SYSDATE@!))=1)
Note
- cardinality feedback used for this statement
39 rows selected.
SQL> -
Error while building execution plan
Hi, I'm trying to create an execution plan with container EBS 11.5.10 and subject area Project Analytics.
I get this error while building:
PA-EBS11510
MESSAGE:::group TASK_GROUP_Load_PositionHierarchy for SIL_PositionDimensionHierarchy_PostChangeTmp is not found!!!
EXCEPTION CLASS::: java.lang.NullPointerException
com.siebel.analytics.etl.execution.ExecutionPlanDesigner.getExecutionPlanTasks(ExecutionPlanDesigner.java:818)
com.siebel.analytics.etl.execution.ExecutionPlanDesigner.design(ExecutionPlanDesigner.java:1267)
com.siebel.analytics.etl.client.util.tables.DefnBuildHelper.calculate(DefnBuildHelper.java:169)
com.siebel.analytics.etl.client.util.tables.DefnBuildHelper.calculate(DefnBuildHelper.java:119)
com.siebel.analytics.etl.client.view.table.EtlDefnTable.doOperation(EtlDefnTable.java:169)
com.siebel.etl.gui.view.dialogs.WaitDialog.doOperation(WaitDialog.java:53)
com.siebel.etl.gui.view.dialogs.WaitDialog$WorkerThread.run(WaitDialog.java:85)
Sorry for my english, I'm french.
Thank you for helping meHi,
Find the what are all the subjectarea's in execution plan having the task 'SIL_PositionDimensionHierarchy_PostChangeTmp ', add the 'TASK_GROUP_Load_PositionHierarchy ' task group to those those subjectares.
Assemble your subject area's and build the execution plan again.
Thanks -
Force statement to use a given rule or execution plan
Hi!
We have a statement that in our production system takes 6-7 seconds to complete. The statement comes from our enterprise application's core code and we are not able to change the statement.
When using a RULE-hint (SELECT /*+RULE*/ 0 pay_rec...........) for this statement, the execution time is down to 500 milliseconds.
My question is: Is there any way to pin a execution plan to a given statement. I have started reading about outlines, which seems promising. However, the statement is not using bind-variables, and since this is core code in an enterprise application I cannot change that either. Is it possible to use outlines with such a statement?
Additional information:
When I remove all statistics for the involved tables, the query blows away in 500 ms.
The table tran_info_types has 61 rows and is a stable table with few updates
The table ab_tran_info has 1 717 439 records and is 62 MB in size.
The table query_result has 777 015 records and is 216 MB in size. This table is constantly updated/insterted/deleted.
The query below return 0 records as there is no hits in the table query_result.
This is the statement:
SELECT /*+ALL_ROWS*/
0 pay_rec, abi.tran_num, abi.type_id, abi.VALUE
FROM ab_tran_info abi,
tran_info_types ti,
query_result qr1,
query_result qr2
WHERE abi.tran_num = qr1.query_result
AND abi.type_id = qr2.query_result
AND abi.type_id = ti.type_id
AND ti.ins_or_tran = 0
AND qr1.unique_id = 5334549
AND qr2.unique_id = 5334550
UNION ALL
SELECT 1 pay_rec, abi.tran_num, abi.type_id, abi.VALUE
FROM ab_tran_info abi,
tran_info_types ti,
query_result qr1,
query_result qr2
WHERE abi.tran_num = qr1.query_result
AND abi.type_id = qr2.query_result
AND abi.type_id = ti.type_id
AND ti.ins_or_tran = 0
AND qr1.unique_id = 5334551
AND qr2.unique_id = 5334552;Here is the explain plan with statistics:
Plan
SELECT STATEMENT HINT: ALL_ROWSCost: 900 Bytes: 82 Cardinality: 2
15 UNION-ALL
7 NESTED LOOPS Cost: 450 Bytes: 41 Cardinality: 1
5 NESTED LOOPS Cost: 449 Bytes: 1,787,940 Cardinality: 59,598
3 NESTED LOOPS Cost: 448 Bytes: 19,514,824 Cardinality: 1,027,096
1 INDEX RANGE SCAN UNIQUE TRADEDB.TIT_DANIEL_2 Search Columns: 1 Cost: 1 Bytes: 155 Cardinality: 31
2 INDEX RANGE SCAN UNIQUE TRADEDB.ATI_DANIEL_7 Search Columns: 1 Cost: 48 Bytes: 471,450 Cardinality: 33,675
4 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 11 Cardinality: 1
6 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 11 Cardinality: 1
14 NESTED LOOPS Cost: 450 Bytes: 41 Cardinality: 1
12 NESTED LOOPS Cost: 449 Bytes: 1,787,940 Cardinality: 59,598
10 NESTED LOOPS Cost: 448 Bytes: 19,514,824 Cardinality: 1,027,096
8 INDEX RANGE SCAN UNIQUE TRADEDB.TIT_DANIEL_2 Search Columns: 1 Cost: 1 Bytes: 155 Cardinality: 31
9 INDEX RANGE SCAN UNIQUE TRADEDB.ATI_DANIEL_7 Search Columns: 1 Cost: 48 Bytes: 471,450 Cardinality: 33,675
11 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 11 Cardinality: 1
13 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 11 Cardinality: 1 Here is the execution plan when I have removed all statistics (exec DBMS_STATS.DELETE_TABLE_STATS(.........,..........); )
Plan
SELECT STATEMENT HINT: ALL_ROWSCost: 12 Bytes: 3,728 Cardinality: 16
15 UNION-ALL
7 NESTED LOOPS Cost: 6 Bytes: 1,864 Cardinality: 8
5 NESTED LOOPS Cost: 6 Bytes: 45,540 Cardinality: 220
3 NESTED LOOPS Cost: 6 Bytes: 1,145,187 Cardinality: 6,327
1 TABLE ACCESS FULL TRADEDB.TRAN_INFO_TYPES Cost: 2 Bytes: 104 Cardinality: 4
2 INDEX RANGE SCAN UNIQUE TRADEDB.ATI_DANIEL_6 Search Columns: 1 Cost: 1 Bytes: 239,785 Cardinality: 1,547
4 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 26 Cardinality: 1
6 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 26 Cardinality: 1
14 NESTED LOOPS Cost: 6 Bytes: 1,864 Cardinality: 8
12 NESTED LOOPS Cost: 6 Bytes: 45,540 Cardinality: 220
10 NESTED LOOPS Cost: 6 Bytes: 1,145,187 Cardinality: 6,327
8 TABLE ACCESS FULL TRADEDB.TRAN_INFO_TYPES Cost: 2 Bytes: 104 Cardinality: 4
9 INDEX RANGE SCAN UNIQUE TRADEDB.ATI_DANIEL_6 Search Columns: 1 Cost: 1 Bytes: 239,785 Cardinality: 1,547
11 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 26 Cardinality: 1
13 INDEX UNIQUE SCAN UNIQUE TRADEDB.QUERY_RESULT_INDEX Search Columns: 2 Bytes: 26 Cardinality: 1 Our Oracle 9.2 database is set up with ALL_ROWS.
Outlines: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96533/outlines.htm#13091
Cursor sharing: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:3696883368520Hi!
We are on Oracle 9iR2, running on 64-bit Linux.
We are going to upgrade to Oracle 10gR2 in some months. Oracle 11g is not an option for us as our application is not certified by our vendor to run on that version.
However, our performance problems are urgent so we are looking for a solution before we upgrade as we are not able to upgrade before we have done extensive testing which takes 2-3 months.
We have more problem sql's than the one shown in this post. I am using the above SQL as a sample as I think we can solve many other slow running SQL's if we solve this one.
Is the SQL Plan management an option on Oracle 9i and/or Oracle 10g? -
Does Apple Canada have the worst customer support ever?
Yes! Ask me why...
I'm posting here a) to warn other Mac users what to expect if you ever need customer support and b) because there's no where you can actually e-mail comments to Apple, and trying to contact customer support has been fruitless (see below).
Here's what happened to me...
I bought my iBook just under three years ago - a few weeks ago, the logic board went. Now, because I purchased the computer less than three years ago, that's covered under the extended warranty for iBook logic boards (see here: http://www.apple.com/support/ibook/faq/).
Simple, right? Well, I took my computer in to my local authorized service provider about three weeks ago. They confirmed the logic board was the problem... copied my receipt for the iBook to prove date of purchase... agreed that it was covered by the warranty.
However, when they sent all this to Apple, their reply was that it was NOT covered because it was manufactured more than three years ago (although Apple's own website says it's purchase date - not manufacture date - that's important).
I called Apple last Monday to find out what was going on. Spoke to a nice fellow named Kevin who said he'd look into it, and call me back the next day.
Next day passed... no call. I called Kevin back left a message, and indicated I'd like to know what was going on.
Wednesday passed... no call. By this point, I'm getting anxious - the service provider can't move ahead without authoriztion from Apple, Apple's not returning my calls (or the service provider's) to grant authorization.
I tried Kevin again on Thursday. Left another message. No reply.
Tried back on Friday morning. Left another message. Still no reply.
Called customer support again Friday night. Antoine puts me hold for a half hour. I call back, explain that I've been on hold for half an hour, ask how long the wait should be. Antoine says two or three minutes. He puts me on hold again.
For another ten minutes.
I call back. Antoine explains that the reason I'm on hold is probably because customer service is closed. So why was I on hold for nearly an hour listening to terrible music? That's one of the mysteries of Apple customer support...
So here I am, with a computer that's been in the shop nearly three weeks, that can't be repaired because Apple won't honour its warranty, and no way to even find out what's going on, because Apple's customer service is such an unnavigable maze.
The sad thing is, I usually like Apples. I was even going to buy a new one this summer.
Now - not a chance.
The moral of the story? If you own an Apple, pray nothing ever goes wrong with it. If you expect your computer to ever need repairs, I'd suggest getting rid of your Apple now.
If you're considering buying an Apple - consider again.
As for me - from now on, make mine Microsoft.
iBook G3 700 Mac OS X (10.4.6)Does Apple Canada have the worst customer support ever?
I doubt it.
Seriously, would you like some help?
Call back, and don't mess around with Customer Service. Immediately ask for Customer Relations. These are the people whose job it is to make an unhappy customer happy again. They aim to please.
A polite, but seriously disappointed tone of voice is what you need, so take some deep breaths until you can achieve that.
There was an article in the February, 2005, issue of Reader's Digest called "How to Complain." Please read these tips. Then call and tell Customer Relations your sad experience with Customer Service.
How to Complain
You call customer service to complain about a product, and you hang up angrier than when you started. That’s customer rage, a feeling experienced by millions of people with a major complaint, says Scott Broetzmann, president of an American firm that tells companies how to offer the best customer service. His secrets to getting good service:
Have a goal
If you want your product repaired, say so. Want an apology? Speak up.
Keep it short
Focus on one problem, and be succinct.
Stick with it.
You have to invest the time it takes. Don’t get what you want? Ask for a supervisor.
Skip ultimatums
Don’t threaten not to do business with them again. Why should they help you if you won’t buy from them in the future?
Plead your case
Many companies have information such as how much money you’ve spent with them and how often you complain. If you’re a good customer, they may be more willing to help.
Be nice
You’re unlikely to get what you want if you’re rude.
Good luck!
(P.S. Microsoft doesn't make computers; just the crappy OS that goes on them.) -
Execution plan with Concatenation
Hi All,
Could anyone help in finding why concatenation is being used by optimizer and how can i avoid it.
Oracle Version : 10.2.0.4
select * from
select distinct EntityType, EntityID, DateModified, DateCreated, IsDeleted
from ife.EntityIDs i
join (select orgid from equifaxnormalize.org_relationships where orgid is not null and related_orgid is not null
and ((Date_Modified >= to_date('2011-06-12 14:00:00','yyyy-mm-dd hh24:mi:ss') and Date_Modified < to_date('2011-06-13 14:00:00','yyyy-mm-dd hh24:mi:ss'))
OR (Date_Created >= to_date('2011-06-12 14:00:00','yyyy-mm-dd hh24:mi:ss') and Date_Created < to_date('2011-06-13 14:00:00','yyyy-mm-dd hh24:mi:ss'))
) r on(r.orgid= i.entityid)
where EntityType = 1
and ((DateModified >= to_date('2011-06-12 14:00:00','yyyy-mm-dd hh24:mi:ss') and DateModified < to_date('2011-06-13 14:00:00','yyyy-mm-dd hh24:mi:ss'))
OR (DateCreated >= to_date('2011-06-12 14:00:00','yyyy-mm-dd hh24:mi:ss') and DateCreated < to_date('2011-06-13 14:00:00','yyyy-mm-dd hh24:mi:ss'))
and ( IsDeleted = 0)
and IsDistributable = 1
and EntityID >= 0
order by EntityID
--order by NLSSORT(EntityID,'NLS_SORT=BINARY')
where rownum <= 10;
Execution Plan
Plan hash value: 227906424
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
| 0 | SELECT STATEMENT | | 10 | 570 | 39 (6)| 00:00:01 | | |
|* 1 | COUNT STOPKEY | | | | | | | |
| 2 | VIEW | | 56 | 3192 | 39 (6)| 00:00:01 | | |
|* 3 | SORT ORDER BY STOPKEY | | 56 | 3416 | 39 (6)| 00:00:01 | | |
| 4 | HASH UNIQUE | | 56 | 3416 | 38 (3)| 00:00:01 | | |
| 5 | CONCATENATION | | | | | | | |
|* 6 | TABLE ACCESS BY INDEX ROWID | ORG_RELATIONSHIPS | 1 | 29 | 1 (0)| 00:00:01 | | |
| 7 | NESTED LOOPS | | 27 | 1647 | 17 (0)| 00:00:01 | | |
| 8 | TABLE ACCESS BY GLOBAL INDEX ROWID| ENTITYIDS | 27 | 864 | 4 (0)| 00:00:01 | ROWID | ROWID |
|* 9 | INDEX RANGE SCAN | UX_TYPE_MOD_DIST_DEL_ENTITYID | 27 | | 2 (0)| 00:00:01 | | |
|* 10 | INDEX RANGE SCAN | IX_EFX_ORGRELATION_ORGID | 1 | | 1 (0)| 00:00:01 | | |
|* 11 | TABLE ACCESS BY INDEX ROWID | ORG_RELATIONSHIPS | 1 | 29 | 1 (0)| 00:00:01 | | |
| 12 | NESTED LOOPS | | 29 | 1769 | 20 (0)| 00:00:01 | | |
| 13 | PARTITION RANGE ALL | | 29 | 928 | 5 (0)| 00:00:01 | 1 | 3 |
|* 14 | TABLE ACCESS BY LOCAL INDEX ROWID| ENTITYIDS | 29 | 928 | 5 (0)| 00:00:01 | 1 | 3 |
|* 15 | INDEX RANGE SCAN | IDX_ENTITYIDS_ETYPE_DC | 29 | | 4 (0)| 00:00:01 | 1 | 3 |
|* 16 | INDEX RANGE SCAN | IX_EFX_ORGRELATION_ORGID | 1 | | 1 (0)| 00:00:01 | | |
Predicate Information (identified by operation id):
1 - filter(ROWNUM<=10)
3 - filter(ROWNUM<=10)
6 - filter(("DATE_MODIFIED">=TO_DATE(' 2011-06-12 14:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "DATE_MODIFIED"<TO_DATE(' 2011-06-13
14:00:00', 'syyyy-mm-dd hh24:mi:ss') OR "DATE_CREATED">=TO_DATE(' 2011-06-12 14:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
"DATE_CREATED"<TO_DATE(' 2011-06-13 14:00:00', 'syyyy-mm-dd hh24:mi:ss')) AND "RELATED_ORGID" IS NOT NULL)
9 - access("I"."ENTITYTYPE"=1 AND "I"."DATEMODIFIED">=TO_DATE(' 2011-06-12 14:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
"I"."ISDISTRIBUTABLE"=1 AND "I"."ISDELETED"=0 AND "I"."ENTITYID">=0 AND "I"."DATEMODIFIED"<=TO_DATE(' 2011-06-13 14:00:00',
'syyyy-mm-dd hh24:mi:ss'))
filter("I"."ISDISTRIBUTABLE"=1 AND "I"."ISDELETED"=0 AND "I"."ENTITYID">=0)
10 - access("ORGID"="I"."ENTITYID")
filter("ORGID" IS NOT NULL AND "ORGID">=0)
11 - filter(("DATE_MODIFIED">=TO_DATE(' 2011-06-12 14:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "DATE_MODIFIED"<TO_DATE(' 2011-06-13
14:00:00', 'syyyy-mm-dd hh24:mi:ss') OR "DATE_CREATED">=TO_DATE(' 2011-06-12 14:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
"DATE_CREATED"<TO_DATE(' 2011-06-13 14:00:00', 'syyyy-mm-dd hh24:mi:ss')) AND "RELATED_ORGID" IS NOT NULL)
14 - filter("I"."ISDISTRIBUTABLE"=1 AND "I"."ISDELETED"=0 AND (LNNVL("I"."DATEMODIFIED">=TO_DATE(' 2011-06-12 14:00:00',
'syyyy-mm-dd hh24:mi:ss')) OR LNNVL("I"."DATEMODIFIED"<=TO_DATE(' 2011-06-13 14:00:00', 'syyyy-mm-dd hh24:mi:ss'))) AND
"I"."ENTITYID">=0)
15 - access("I"."ENTITYTYPE"=1 AND "I"."DATECREATED">=TO_DATE(' 2011-06-12 14:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
"I"."DATECREATED"<=TO_DATE(' 2011-06-13 14:00:00', 'syyyy-mm-dd hh24:mi:ss'))
16 - access("ORGID"="I"."ENTITYID")
filter("ORGID" IS NOT NULL AND "ORGID">=0)ife.entityids table has been range - partitioned on data_provider column.
Is there any better way to rewrite this sql OR is there any way to eliminate concatenation ?
ThanksWe cant use data_provider in the given query. We need to pull data irrespective of data_provider and it should be based on ENTITYID.
Yes table has only three partitions...
Not sure issue is due to concatenation....but we are in process to create desired indexes which will help for this sql.
In development we have created multicolumn index and below is the execution plan.....Also in development it takes just 4-5 seconds to execute. But in production it takes more than 8-9 minutes.
Below is the execution plan from Dev which seems to perform fast:
Execution Plan
Plan hash value: 3121857971
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
| 0 | SELECT STATEMENT | | 1 | 57 | 353 (1)| 00:00:05 | | |
|* 1 | COUNT STOPKEY | | | | | | | |
| 2 | VIEW | | 1 | 57 | 353 (1)| 00:00:05 | | |
|* 3 | SORT ORDER BY STOPKEY | | 1 | 58 | 353 (1)| 00:00:05 | | |
| 4 | HASH UNIQUE | | 1 | 58 | 352 (1)| 00:00:05 | | |
| 5 | CONCATENATION | | | | | | | |
|* 6 | TABLE ACCESS BY INDEX ROWID | ORG_RELATIONSHIPS | 1 | 26 | 3 (0)| 00:00:01 | | |
| 7 | NESTED LOOPS | | 1 | 58 | 170 (1)| 00:00:03 | | |
| 8 | PARTITION RANGE ALL | | 56 | 1792 | 16 (0)| 00:00:01 | 1 | 3 |
|* 9 | TABLE ACCESS BY LOCAL INDEX ROWID| ENTITYIDS | 56 | 1792 | 16 (0)| 00:00:01 | 1 | 3 |
|* 10 | INDEX RANGE SCAN | IDX_ENTITYIDS_ETYPE_DC | 56 | | 7 (0)| 00:00:01 | 1 | 3 |
|* 11 | INDEX RANGE SCAN | EFX_ORGID | 2 | | 2 (0)| 00:00:01 | | |
|* 12 | TABLE ACCESS BY INDEX ROWID | ORG_RELATIONSHIPS | 1 | 26 | 3 (0)| 00:00:01 | | |
| 13 | NESTED LOOPS | | 1 | 58 | 181 (0)| 00:00:03 | | |
| 14 | PARTITION RANGE ALL | | 57 | 1824 | 10 (0)| 00:00:01 | 1 | 3 |
|* 15 | INDEX RANGE SCAN | UX_TYPE_MOD_DIST_DEL_ENTITYID | 57 | 1824 | 10 (0)| 00:00:01 | 1 | 3 |
|* 16 | INDEX RANGE SCAN | EFX_ORGID | 2 | | 2 (0)| 00:00:01 | | |
Predicate Information (identified by operation id):
1 - filter(ROWNUM<=10)
3 - filter(ROWNUM<=10)
6 - filter("RELATED_ORGID" IS NOT NULL AND ("DATE_CREATED">=TO_DATE(' 2011-06-12 14:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
"DATE_CREATED"<TO_DATE(' 2011-06-13 14:00:00', 'syyyy-mm-dd hh24:mi:ss') OR "DATE_MODIFIED">=TO_DATE(' 2011-06-12 14:00:00',
'syyyy-mm-dd hh24:mi:ss') AND "DATE_MODIFIED"<TO_DATE(' 2011-06-13 14:00:00', 'syyyy-mm-dd hh24:mi:ss')))
9 - filter("I"."ISDISTRIBUTABLE"=1 AND "I"."ISDELETED"=0 AND "I"."ENTITYID">=0)
10 - access("I"."ENTITYTYPE"=1 AND "I"."DATECREATED">=TO_DATE(' 2011-06-12 14:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
"I"."DATECREATED"<TO_DATE(' 2011-06-13 14:00:00', 'syyyy-mm-dd hh24:mi:ss'))
11 - access("ORGID"="I"."ENTITYID")
filter("ORGID" IS NOT NULL AND "ORGID">=0)
12 - filter("RELATED_ORGID" IS NOT NULL AND ("DATE_CREATED">=TO_DATE(' 2011-06-12 14:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
"DATE_CREATED"<TO_DATE(' 2011-06-13 14:00:00', 'syyyy-mm-dd hh24:mi:ss') OR "DATE_MODIFIED">=TO_DATE(' 2011-06-12 14:00:00',
'syyyy-mm-dd hh24:mi:ss') AND "DATE_MODIFIED"<TO_DATE(' 2011-06-13 14:00:00', 'syyyy-mm-dd hh24:mi:ss')))
15 - access("I"."ENTITYTYPE"=1 AND "I"."DATEMODIFIED">=TO_DATE(' 2011-06-12 14:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
"I"."ISDISTRIBUTABLE"=1 AND "I"."ISDELETED"=0 AND "I"."ENTITYID">=0 AND "I"."DATEMODIFIED"<TO_DATE(' 2011-06-13 14:00:00',
'syyyy-mm-dd hh24:mi:ss'))
filter("I"."ISDISTRIBUTABLE"=1 AND "I"."ISDELETED"=0 AND (LNNVL("I"."DATECREATED">=TO_DATE(' 2011-06-12 14:00:00',
'syyyy-mm-dd hh24:mi:ss')) OR LNNVL("I"."DATECREATED"<TO_DATE(' 2011-06-13 14:00:00', 'syyyy-mm-dd hh24:mi:ss'))) AND
"I"."ENTITYID">=0)
16 - access("ORGID"="I"."ENTITYID")
filter("ORGID" IS NOT NULL AND "ORGID">=0)Thanks -
Query optimization - Query is taking long time even there is no table scan in execution plan
Hi All,
The below query execution is taking very long time even there are all required indexes present.
Also in execution plan there is no table scan. I did a lot of research but i am unable to find a solution.
Please help, this is required very urgently. Thanks in advance. :)
WITH cte
AS (
SELECT Acc_ex1_3
FROM Acc_ex1
INNER JOIN Acc_ex5 ON (
Acc_ex1.Acc_ex1_Id = Acc_ex5.Acc_ex5_Id
AND Acc_ex1.OwnerID = Acc_ex5.OwnerID
WHERE (
cast(Acc_ex5.Acc_ex5_92 AS DATETIME) >= '12/31/2010 18:30:00'
AND cast(Acc_ex5.Acc_ex5_92 AS DATETIME) < '01/31/2014 18:30:00'
SELECT DISTINCT R.ReportsTo AS directReportingUserId
,UC.UserName AS EmpName
,UC.EmployeeCode AS EmpCode
,UEx1.Use_ex1_1 AS PortfolioCode
SELECT TOP 1 TerritoryName
FROM UserTerritoryLevelView
WHERE displayOrder = 6
AND UserId = R.ReportsTo
) AS BranchName
,GroupsNotContacted AS groupLastContact
,GroupCount AS groupTotal
FROM ReportingMembers R
INNER JOIN TeamMembers T ON (
T.OwnerID = R.OwnerID
AND T.MemberID = R.ReportsTo
AND T.ReportsTo = 1
INNER JOIN UserContact UC ON (
UC.CompanyID = R.OwnerID
AND UC.UserID = R.ReportsTo
INNER JOIN Use_ex1 UEx1 ON (
UEx1.OwnerId = R.OwnerID
AND UEx1.Use_ex1_Id = R.ReportsTo
INNER JOIN (
SELECT Accounts.AssignedTo
,count(DISTINCT Acc_ex1_3) AS GroupCount
FROM Accounts
INNER JOIN Acc_ex1 ON (
Accounts.AccountID = Acc_ex1.Acc_ex1_Id
AND Acc_ex1.Acc_ex1_3 > '0'
AND Accounts.OwnerID = 109
GROUP BY Accounts.AssignedTo
) TotalGroups ON (TotalGroups.AssignedTo = R.ReportsTo)
INNER JOIN (
SELECT Accounts.AssignedTo
,count(DISTINCT Acc_ex1_3) AS GroupsNotContacted
FROM Accounts
INNER JOIN Acc_ex1 ON (
Accounts.AccountID = Acc_ex1.Acc_ex1_Id
AND Acc_ex1.OwnerID = Accounts.OwnerID
AND Acc_ex1.Acc_ex1_3 > '0'
INNER JOIN Acc_ex5 ON (
Accounts.AccountID = Acc_ex5.Acc_ex5_Id
AND Acc_ex5.OwnerID = Accounts.OwnerID
WHERE Accounts.OwnerID = 109
AND Acc_ex1.Acc_ex1_3 NOT IN (
SELECT Acc_ex1_3
FROM cte
GROUP BY Accounts.AssignedTo
) TotalGroupsNotContacted ON (TotalGroupsNotContacted.AssignedTo = R.ReportsTo)
WHERE R.OwnerID = 109
Please mark it as an answer/helpful if you find it as useful. Thanks, Satya Prakash JugranHi All,
Thanks for the replies.
I have optimized that query to make it run in few seconds.
Here is my final query.
select ReportsTo as directReportingUserId,
UserName AS EmpName,
EmployeeCode AS EmpCode,
Use_ex1_1 AS PortfolioCode,
BranchName,
GroupInfo.groupTotal,
GroupInfo.groupLastContact,
case when exists
(select 1 from ReportingMembers RM
where RM.ReportsTo = UserInfo.ReportsTo
and RM.MemberID <> UserInfo.ReportsTo
) then 0 else UserInfo.ReportsTo end as memberid1,
(select code from Regions where ownerid=109 and name=UserInfo.BranchName) as BranchCode,
ROW_NUMBER() OVER (ORDER BY directReportingUserId) AS ROWNUMBER
FROM
(select distinct R.ReportsTo, UC.UserName, UC.EmployeeCode,UEx1.Use_ex1_1,
(select top 1 TerritoryName
from UserTerritoryLevelView
where displayOrder = 6
and UserId = R.ReportsTo) as BranchName,
Case when R.ReportsTo = Accounts.AssignedTo then Accounts.AssignedTo else 0 end as memberid1
from ReportingMembers R
INNER JOIN TeamMembers T ON (T.OwnerID = R.OwnerID AND T.MemberID = R.ReportsTo AND T.ReportsTo = 1)
inner join UserContact UC on (UC.CompanyID = R.OwnerID and UC.UserID = R.ReportsTo )
inner join Use_ex1 UEx1 on (UEx1.OwnerId = R.OwnerID and UEx1.Use_ex1_Id = R.ReportsTo)
inner join Accounts on (Accounts.OwnerID = 109 and Accounts.AssignedTo = R.ReportsTo)
union
select distinct R.ReportsTo, UC.UserName, UC.EmployeeCode,UEx1.Use_ex1_1,
(select top 1 TerritoryName
from UserTerritoryLevelView
where displayOrder = 6
and UserId = R.ReportsTo) as BranchName,
Case when R.ReportsTo = Accounts.AssignedTo then Accounts.AssignedTo else 0 end as memberid1
from ReportingMembers R
--INNER JOIN TeamMembers T ON (T.OwnerID = R.OwnerID AND T.MemberID = R.ReportsTo)
inner join UserContact UC on (UC.CompanyID = R.OwnerID and UC.UserID = R.ReportsTo)
inner join Use_ex1 UEx1 on (UEx1.OwnerId = R.OwnerID and UEx1.Use_ex1_Id = R.ReportsTo)
inner join Accounts on (Accounts.OwnerID = 109 and Accounts.AssignedTo = R.ReportsTo)
where R.MemberID = 1
) UserInfo
inner join
select directReportingUserId, sum(Groups) as groupTotal, SUM(GroupsNotContacted) as groupLastContact
from
select distinct R.ReportsTo as directReportingUserId, Acc_ex1_3 as GroupName, 1 as Groups,
case when Acc_ex5.Acc_ex5_92 between GETDATE()-365*10 and GETDATE() then 1 else 0 end as GroupsNotContacted
FROM ReportingMembers R
INNER JOIN TeamMembers T
ON (T.OwnerID = R.OwnerID AND T.MemberID = R.ReportsTo AND T.ReportsTo = 1)
inner join Accounts on (Accounts.OwnerID = 109 and Accounts.AssignedTo = R.ReportsTo)
inner join Acc_ex1 on (Acc_ex1.OwnerID = 109 and Acc_ex1.Acc_ex1_Id = Accounts.AccountID and Acc_ex1.Acc_ex1_3 > '0')
inner join Acc_ex5 on (Acc_ex5.OwnerID = 109 and Acc_ex5.Acc_ex5_Id = Accounts.AccountID )
--where TerritoryID in ( select ChildRegionID RegionID from RegionWithSubRegions where OwnerID =109 and RegionID = 729)
union
select distinct R.ReportsTo as directReportingUserId, Acc_ex1_3 as GroupName, 1 as Groups,
case when Acc_ex5.Acc_ex5_92 between GETDATE()-365*10 and GETDATE() then 1 else 0 end as GroupsNotContacted
FROM ReportingMembers R
INNER JOIN TeamMembers T
ON (T.OwnerID = R.OwnerID AND T.MemberID = R.ReportsTo)
inner join Accounts on (Accounts.OwnerID = 109 and Accounts.AssignedTo = R.ReportsTo)
inner join Acc_ex1 on (Acc_ex1.OwnerID = 109 and Acc_ex1.Acc_ex1_Id = Accounts.AccountID and Acc_ex1.Acc_ex1_3 > '0')
inner join Acc_ex5 on (Acc_ex5.OwnerID = 109 and Acc_ex5.Acc_ex5_Id = Accounts.AccountID )
--where TerritoryID in ( select ChildRegionID RegionID from RegionWithSubRegions where OwnerID =109 and RegionID = 729)
where R.MemberID = 1
) GroupWiseInfo
group by directReportingUserId
) GroupInfo
on UserInfo.ReportsTo = GroupInfo.directReportingUserId
Please mark it as an answer/helpful if you find it as useful. Thanks, Satya Prakash Jugran -
Effect of RLS policy (VPD) on execution plan of a query
Hi
I have been working on tuning of few queries. A RLS policy is defined on most of the tables which appends an extra where condition (something like AREA_CODE=1). I am not able to understand the effect of this extra where clause on the execution plan of the query. In the execution plan there is no mention of the clause added by VPD. In 10046 trace it does show the policy function being executed but nothing after that.
Can someone shed some light on the issue that has VPD any effect on the execution plan of the query ? Also would it matter whether the column on which VPD is applied, was indexed or non-indexed ?
Regards,
Amardeep SidhuAmardeep Sidhu wrote:
I have been working on tuning of few queries. A RLS policy is defined on most of the tables which appends an extra where condition (something like AREA_CODE=1). I am not able to understand the effect of this extra where clause on the execution plan of the query. In the execution plan there is no mention of the clause added by VPD. In 10046 trace it does show the policy function being executed but nothing after that.
VPD is supposed to be invisible - which is why you get minimal information about security predicates in the standard trace file. However, if you reference a table with a security preidcate in your query, the table is effectively replaced by an inline view of the form: "select * from original_table where {security_predicate}", and the result is then optimised. So the effects of the security predicate is just the same as you writing the predicate into the query.
Apart from your use of v$sql_plan to show the change in plan and the new predicates, you can see the effects of the predicates by setting event 10730 with 10046. In current versions of Oracle this causes the substitute view being printed in the trace file.
Bear in mind that security predicates can be very complex - including subqueries - so the effect isn't just that of including the selectivity of "another simple predicate".
Can someone shed some light on the issue that has VPD any effect on the execution plan of the query ? Also would it matter whether the column on which VPD is applied, was indexed or non-indexed ?
Think of the effect of changing the SQL by hand - and how you would need to optimise the resultant query. Sometimes you do need to modify your indexing to help the security predicates, sometimes it won't make enough difference to matter.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
"Science is more than a body of knowledge; it is a way of thinking"
Carl Sagan
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format. -
Execution plan with bind variable
dear all
I join two tables and get "index fast full scan" with high cost using bind variable
but when I remove the bind variable it executes with "index" and with lower cost
What is the reason and how should I know which execution plan is really used in real life?
thanks
john1) What is oracle version?
2) Post here both query and their explain plan.
In fact INDEX FAST FULL SCAN indicate is multiblock read for composite indexes(and based on your query and predicates).In this case CBO behavior as FULL TABLE SCAN(affected by db_multiblock_read_count,system stats,etc).And you use bind variable.So in bind variable case CBO define selectivity based on arithmetic(5% of the cardinality) ,if you use concrete values instead of bind variable CBO identify other selectivity based on statistics,histograms,.... then it was identify cost of multiblock read and single block reads.You can see these 10053 event.Finally it choose lower cost`s plan. -
SQL query with Bind variable with slower execution plan
I have a 'normal' sql select-insert statement (not using bind variable) and it yields the following execution plan:-
Execution Plan
0 INSERT STATEMENT Optimizer=CHOOSE (Cost=7 Card=1 Bytes=148)
1 0 HASH JOIN (Cost=7 Card=1 Bytes=148)
2 1 TABLE ACCESS (BY INDEX ROWID) OF 'TABLEA' (Cost=4 Card=1 Bytes=100)
3 2 INDEX (RANGE SCAN) OF 'TABLEA_IDX_2' (NON-UNIQUE) (Cost=3 Card=1)
4 1 INDEX (FAST FULL SCAN) OF 'TABLEB_IDX_003' (NON-UNIQUE)
(Cost=2 Card=135 Bytes=6480)
Statistics
0 recursive calls
18 db block gets
15558 consistent gets
47 physical reads
9896 redo size
423 bytes sent via SQL*Net to client
1095 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
55 rows processed
I have the same query but instead running using bind variable (I test it with both oracle form and SQL*plus), it takes considerably longer with a different execution plan:-
Execution Plan
0 INSERT STATEMENT Optimizer=CHOOSE (Cost=407 Card=1 Bytes=148)
1 0 TABLE ACCESS (BY INDEX ROWID) OF 'TABLEA' (Cost=3 Card=1 Bytes=100)
2 1 NESTED LOOPS (Cost=407 Card=1 Bytes=148)
3 2 INDEX (FAST FULL SCAN) OF TABLEB_IDX_003' (NON-UNIQUE) (Cost=2 Card=135 Bytes=6480)
4 2 INDEX (RANGE SCAN) OF 'TABLEA_IDX_2' (NON-UNIQUE) (Cost=2 Card=1)
Statistics
0 recursive calls
12 db block gets
3003199 consistent gets
54 physical reads
9448 redo size
423 bytes sent via SQL*Net to client
1258 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
55 rows processed
TABLEA has around 3million record while TABLEB has 300 records. Is there anyway I can improve the speed of the sql query with bind variable? I have DBA Access to the database
Regards
IvanMany thanks for your reply.
I have run the statistic already for the both tableA and tableB as well all the indexes associated with both table (using dbms_stats, I am on 9i db ) but not the indexed columns.
for table I use:-
begin
dbms_stats.gather_table_stats(ownname=> 'IVAN', tabname=> 'TABLEA', partname=> NULL);
end;
for index I use:-
begin
dbms_stats.gather_index_stats(ownname=> 'IVAN', indname=> 'TABLEB_IDX_003', partname=> NULL);
end;
Is it possible to show me a sample of how to collect statisc for INDEX columns stats?
regards
Ivan -
DAC Execution plan for financial analytics keeps running (OBIA 7.9.4)
Hi Gurus,
I have problem when tried to run full load on financial analytics execution plan. I used OBIA 7.9.4, Informatica 8.6.1 and DAC 10.1.3.4.1.patch.20100901.0520. This runs on Windows Server 2008 Service Pack 2 with 6 GB of memory. I set $$INITIAL_EXTRACT_DATE='01/01/2011' so it should pull data greater than $$INITIAL_EXTRACT_DATE, which I believed not more than 3 years data and should be not more than 2 days for loading this data. But execution plan keeps running and not yet completed even after more than 2 days. I have already checked for DAC execution plan log, But nothing I can found from the log.
Here is the log file:
12 INFO Thu Jun 27 13:52:12 SGT 2013 DAC Version: Dac Build AN 10.1.3.4.1.patch.20100901.0520
13 INFO Thu Jun 27 13:52:12 SGT 2013 The System properties are: java.runtime.name Java(TM) SE Runtime Environment
sun.boot.library.path C:\orahome\10gR3_1\jdk\jre\bin
java.vm.version 10.0-b23
java.vm.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
path.separator ;
ETL_EXECUTION_MODE ETL_SERVER
java.vm.name Java HotSpot(TM) Server VM
file.encoding.pkg sun.io
sun.java.launcher SUN_STANDARD
user.country US
sun.os.patch.level Service Pack 2
java.vm.specification.name Java Virtual Machine Specification
user.dir C:\orahome\10gR3_1\bifoundation\dac
java.runtime.version 1.6.0_07-b06
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs C:\orahome\10gR3_1\jdk\jre\lib\endorsed
os.arch x86
java.io.tmpdir C:\Users\ADMINI~1\AppData\Local\Temp\2\
line.separator
java.vm.specification.vendor Sun Microsystems Inc.
user.variant
os.name Windows Server 2008
REPOSITORY_STAMP 4E8A758D24E553DBB74B325E89718660
sun.jnu.encoding Cp1252
java.library.path C:\orahome\10gR3_1\jdk\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Informatica\PowerCenter8.6.1\server\bin;C:\OracleBI\server\Bin;C:\OracleBI\web\bin;C:\OracleBI\web\catalogmanager;C:\OracleBI\SQLAnywhere;C:\Program Files (x86)\Java\jdk1.5.0_22\bin;C:\app\oracle\product\11.2.0\dbhome_1\bin;C:\Program Files\HP\NCU;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\OmniBack\bin\;C:\Windows\System32\WindowsPowerShell\v1.0\
java.specification.name Java Platform API Specification
java.class.version 50.0
sun.management.compiler HotSpot Tiered Compilers
os.version 6.0
user.home C:\Users\Administrator
user.timezone Asia/Singapore
java.awt.printerjob sun.awt.windows.WPrinterJob
file.encoding Cp1252
java.specification.version 1.6
java.class.path .\lib\msbase.jar;.\lib\mssqlserver.jar;.\lib\msutil.jar;.\lib\sqljdbc.jar;.\lib\ojdbc6.jar;.\lib\ojdbc5.jar;.\lib\ojdbc14.jar;.\lib\db2java.zip;.\lib\terajdbc4.jar;.\lib\log4j.jar;.\lib\teradata.jar;.\lib\tdgssjava.jar;.\lib\tdgssconfig.jar;.\DAWSystem.jar;.;
user.name Administrator
java.vm.specification.version 1.0
java.home C:\orahome\10gR3_1\jdk\jre
sun.arch.data.model 32
user.language en
java.specification.vendor Sun Microsystems Inc.
awt.toolkit sun.awt.windows.WToolkit
java.vm.info mixed mode
java.version 1.6.0_07
java.ext.dirs C:\orahome\10gR3_1\jdk\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path C:\orahome\10gR3_1\jdk\jre\lib\resources.jar;C:\orahome\10gR3_1\jdk\jre\lib\rt.jar;C:\orahome\10gR3_1\jdk\jre\lib\sunrsasign.jar;C:\orahome\10gR3_1\jdk\jre\lib\jsse.jar;C:\orahome\10gR3_1\jdk\jre\lib\jce.jar;C:\orahome\10gR3_1\jdk\jre\lib\charsets.jar;C:\orahome\10gR3_1\jdk\jre\classes
java.vendor Sun Microsystems Inc.
file.separator \
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding UnicodeLittle
sun.cpu.endian little
sun.desktop windows
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
14 SEVERE Thu Jun 27 13:52:12 SGT 2013
START OF ETL
15 SEVERE Thu Jun 27 13:52:36 SGT 2013 Unable to evaluate method getNamedSourceIdentifier for class com.siebel.analytics.etl.etltask.InformaticaTask
16 SEVERE Thu Jun 27 13:52:36 SGT 2013 Unable to evaluate method getNamedSource for class com.siebel.analytics.etl.etltask.InformaticaTask
17 SEVERE Thu Jun 27 13:52:36 SGT 2013 Unable to evaluate method getNamedSourceIdentifier for class com.siebel.analytics.etl.etltask.PauseTask
18 SEVERE Thu Jun 27 13:52:36 SGT 2013 Unable to evaluate method getNamedSource for class com.siebel.analytics.etl.etltask.PauseTask
19 SEVERE Thu Jun 27 13:52:40 SGT 2013 Unable to evaluate method getNamedSourceIdentifier for class com.siebel.analytics.etl.etltask.TaskPrecedingActionScriptTask
20 SEVERE Thu Jun 27 13:52:40 SGT 2013 Unable to evaluate method getNamedSource for class com.siebel.analytics.etl.etltask.TaskPrecedingActionScriptTask
21 SEVERE Thu Jun 27 13:52:46 SGT 2013 Starting ETL Process.
22 SEVERE Thu Jun 27 13:52:47 SGT 2013 Informatica Status Poll Interval new value : 20000(milli-seconds)
24 SEVERE Thu Jun 27 13:52:52 SGT 2013 C:\orahome\10gR3_1\bifoundation\dac\Informatica\parameters\input\FLAT FILE specified is not a currently existing directory
25 SEVERE Thu Jun 27 13:52:52 SGT 2013 Request to start workflow : 'SILOS:SIL_InsertRowInRunTable' has completed with error code 0
26 SEVERE Thu Jun 27 13:53:12 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SILOS.SIL_InsertRowInRunTable.txt SIL_InsertRowInRunTable
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
27 SEVERE Thu Jun 27 13:53:13 SGT 2013 Number of running sessions : 13
28 SEVERE Thu Jun 27 13:53:13 SGT 2013 Number of running sessions : 12
29 SEVERE Thu Jun 27 13:53:14 SGT 2013 Number of running sessions : 11
30 SEVERE Thu Jun 27 13:53:15 SGT 2013 Number of running sessions : 10
32 SEVERE Thu Jun 27 13:53:18 SGT 2013 C:\orahome\10gR3_1\bifoundation\dac\Informatica\parameters\input\ORACLE specified is not a currently existing directory
33 SEVERE Thu Jun 27 13:53:18 SGT 2013 C:\orahome\10gR3_1\bifoundation\dac\Informatica\parameters\input\Oracle specified is not a currently existing directory
34 SEVERE Thu Jun 27 13:53:18 SGT 2013 C:\orahome\10gR3_1\bifoundation\dac\Informatica\parameters\input\oracle specified is not a currently existing directory
35 SEVERE Thu Jun 27 13:53:18 SGT 2013 C:\orahome\10gR3_1\bifoundation\dac\Informatica\parameters\input\ORACLE (THIN) specified is not a currently existing directory
36 SEVERE Thu Jun 27 13:53:19 SGT 2013 Request to start workflow : 'SILOS:SIL_CurrencyTypes' has completed with error code 0
37 SEVERE Thu Jun 27 13:53:19 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_ValueSetHier_Extract_Full' has completed with error code 0
38 SEVERE Thu Jun 27 13:53:19 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_GLAccount_SegmentConfig_Extract' has completed with error code 0
39 SEVERE Thu Jun 27 13:53:19 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_LocalCurrency_Temporary' has completed with error code 0
40 SEVERE Thu Jun 27 13:53:19 SGT 2013 Request to start workflow : 'SILOS:SIL_Parameters_Update' has completed with error code 0
41 SEVERE Thu Jun 27 13:53:19 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_GLAccountDimension_FinSubCodes' has completed with error code 0
42 SEVERE Thu Jun 27 13:53:19 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_ValueSet_Extract' has completed with error code 0
43 SEVERE Thu Jun 27 13:53:19 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GLSegmentDimension_Full' has completed with error code 0
44 SEVERE Thu Jun 27 13:53:19 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_InternalOrganizationDimension_BalanceSegmentValue_LegalEntity' has completed with error code 0
45 SEVERE Thu Jun 27 13:53:39 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SILOS.SIL_CurrencyTypes.txt SIL_CurrencyTypes
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
46 SEVERE Thu Jun 27 13:53:39 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_ValueSetHier_Extract_Full.txt SDE_ORA_Stage_ValueSetHier_Extract_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
47 SEVERE Thu Jun 27 13:53:40 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_GLAccount_SegmentConfig_Extract.txt SDE_ORA_Stage_GLAccount_SegmentConfig_Extract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
48 SEVERE Thu Jun 27 13:53:40 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_LocalCurrency_Temporary.txt SDE_ORA_LocalCurrency_Temporary
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
49 SEVERE Thu Jun 27 13:53:40 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SILOS.SIL_Parameters_Update.txt SIL_Parameters_Update
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
50 SEVERE Thu Jun 27 13:53:40 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_GLAccountDimension_FinSubCodes.txt SDE_ORA_Stage_GLAccountDimension_FinSubCodes
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
51 SEVERE Thu Jun 27 13:53:40 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_ValueSet_Extract.txt SDE_ORA_Stage_ValueSet_Extract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
52 SEVERE Thu Jun 27 13:53:40 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GLSegmentDimension_Full.txt SDE_ORA_GLSegmentDimension_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
53 SEVERE Thu Jun 27 13:53:40 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_InternalOrganizationDimension_BalanceSegmentValue_LegalEntity.txt SDE_ORA_InternalOrganizationDimension_BalanceSegmentValue_LegalEntity
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
54 SEVERE Thu Jun 27 13:53:40 SGT 2013 Number of running sessions : 10
55 SEVERE Thu Jun 27 13:53:40 SGT 2013 Number of running sessions : 10
56 SEVERE Thu Jun 27 13:53:40 SGT 2013 Number of running sessions : 11
57 SEVERE Thu Jun 27 13:53:40 SGT 2013 Number of running sessions : 11
58 SEVERE Thu Jun 27 13:53:40 SGT 2013 Number of running sessions : 11
59 SEVERE Thu Jun 27 13:53:41 SGT 2013 Number of running sessions : 11
60 SEVERE Thu Jun 27 13:53:41 SGT 2013 Number of running sessions : 11
61 SEVERE Thu Jun 27 13:53:41 SGT 2013 Number of running sessions : 11
62 SEVERE Thu Jun 27 13:53:41 SGT 2013 Number of running sessions : 11
63 SEVERE Thu Jun 27 13:53:42 SGT 2013 Number of running sessions : 10
64 SEVERE Thu Jun 27 13:53:42 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GLBalanceFact_Full' has completed with error code 0
65 SEVERE Thu Jun 27 13:53:46 SGT 2013 Request to start workflow : 'SILOS:SIL_Stage_GroupAccountNumberDimension_FinStatementItem' has completed with error code 0
66 SEVERE Thu Jun 27 13:53:46 SGT 2013 Request to start workflow : 'SILOS:SIL_GlobalCurrencyGeneral_Update' has completed with error code 0
67 SEVERE Thu Jun 27 13:53:46 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_GroupAccountNumberDimension' has completed with error code 0
68 SEVERE Thu Jun 27 13:53:46 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_ARSubType_Extract' has completed with error code 0
69 SEVERE Thu Jun 27 13:53:46 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_GLRevenueTypeExtract' has completed with error code 0
70 SEVERE Thu Jun 27 13:53:46 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_ValueSetHier_Flatten' has completed with error code 0
71 SEVERE Thu Jun 27 13:53:47 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_ExchangeRateGeneral_Full' has completed with error code 0
72 SEVERE Thu Jun 27 13:53:47 SGT 2013 Request to start workflow : 'SILOS:SIL_ListOfValuesGeneral_Unspecified' has completed with error code 0
73 SEVERE Thu Jun 27 13:54:06 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SILOS.SIL_Stage_GroupAccountNumberDimension_FinStatementItem.txt SIL_Stage_GroupAccountNumberDimension_FinStatementItem
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
74 SEVERE Thu Jun 27 13:54:07 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SILOS.SIL_GlobalCurrencyGeneral_Update.txt SIL_GlobalCurrencyGeneral_Update
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
75 SEVERE Thu Jun 27 13:54:07 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_GroupAccountNumberDimension.txt SDE_ORA_Stage_GroupAccountNumberDimension
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
76 SEVERE Thu Jun 27 13:54:07 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_GLRevenueTypeExtract.txt SDE_ORA_Stage_TransactionTypeDimension_GLRevenueTypeExtract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
77 SEVERE Thu Jun 27 13:54:07 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_ARSubType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_ARSubType_Extract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
78 SEVERE Thu Jun 27 13:54:07 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\DataWarehouse.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_ValueSetHier_Flatten.txt SDE_ORA_Stage_ValueSetHier_Flatten
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
79 SEVERE Thu Jun 27 13:54:07 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_ExchangeRateGeneral_Full.txt SDE_ORA_ExchangeRateGeneral_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
80 SEVERE Thu Jun 27 13:54:07 SGT 2013 Number of running sessions : 11
81 SEVERE Thu Jun 27 13:54:07 SGT 2013 Number of running sessions : 10
82 SEVERE Thu Jun 27 13:54:07 SGT 2013 Number of running sessions : 10
83 SEVERE Thu Jun 27 13:54:07 SGT 2013 Number of running sessions : 10
84 SEVERE Thu Jun 27 13:54:08 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SILOS.SIL_ListOfValuesGeneral_Unspecified.txt SIL_ListOfValuesGeneral_Unspecified
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
85 SEVERE Thu Jun 27 13:54:08 SGT 2013 Number of running sessions : 10
86 SEVERE Thu Jun 27 13:54:08 SGT 2013 Number of running sessions : 10
87 SEVERE Thu Jun 27 13:54:08 SGT 2013 Number of running sessions : 10
88 SEVERE Thu Jun 27 13:54:09 SGT 2013 Number of running sessions : 10
89 SEVERE Thu Jun 27 13:54:12 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GLJournals_Full' has completed with error code 0
90 SEVERE Thu Jun 27 13:54:13 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_APTransactionFact_Payment_Full' has completed with error code 0
91 SEVERE Thu Jun 27 13:54:13 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_APType_Extract' has completed with error code 0
92 SEVERE Thu Jun 27 13:54:13 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_APTransactionFact_PaymentSchedule_Full' has completed with error code 0
93 SEVERE Thu Jun 27 13:54:13 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_APTransactionFact_Distributions_Full' has completed with error code 0
94 SEVERE Thu Jun 27 13:54:13 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_GLRevenueSubType_Extract' has completed with error code 0
95 SEVERE Thu Jun 27 13:54:13 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_APSubType_Extract' has completed with error code 0
96 SEVERE Thu Jun 27 13:54:14 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_GLCOGSSubType_Extract' has completed with error code 0
97 SEVERE Thu Jun 27 13:54:15 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_ValueSetHier_DeriveRange' has completed with error code 0
98 SEVERE Thu Jun 27 13:54:33 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_APTransactionFact_Payment_Full.txt SDE_ORA_APTransactionFact_Payment_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
99 SEVERE Thu Jun 27 13:54:33 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_APType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_APType_Extract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
100 SEVERE Thu Jun 27 13:54:33 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_APTransactionFact_PaymentSchedule_Full.txt SDE_ORA_APTransactionFact_PaymentSchedule_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
101 SEVERE Thu Jun 27 13:54:33 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_APTransactionFact_Distributions_Full.txt SDE_ORA_APTransactionFact_Distributions_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
102 SEVERE Thu Jun 27 13:54:34 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_GLRevenueSubType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_GLRevenueSubType_Extract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
103 SEVERE Thu Jun 27 13:54:34 SGT 2013 Number of running sessions : 12
104 SEVERE Thu Jun 27 13:54:34 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_APSubType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_APSubType_Extract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
105 SEVERE Thu Jun 27 13:54:34 SGT 2013 Number of running sessions : 11
106 SEVERE Thu Jun 27 13:54:34 SGT 2013 Number of running sessions : 10
107 SEVERE Thu Jun 27 13:54:34 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_GLCOGSSubType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_GLCOGSSubType_Extract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
108 SEVERE Thu Jun 27 13:54:34 SGT 2013 Number of running sessions : 11
109 SEVERE Thu Jun 27 13:54:34 SGT 2013 Number of running sessions : 10
110 SEVERE Thu Jun 27 13:54:34 SGT 2013 Number of running sessions : 10
111 SEVERE Thu Jun 27 13:54:35 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\DataWarehouse.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_ValueSetHier_DeriveRange.txt SDE_ORA_Stage_ValueSetHier_DeriveRange
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
112 SEVERE Thu Jun 27 13:54:36 SGT 2013 Number of running sessions : 10
113 SEVERE Thu Jun 27 13:54:36 SGT 2013 Number of running sessions : 9
114 SEVERE Thu Jun 27 13:54:36 SGT 2013 Number of running sessions : 8
115 SEVERE Thu Jun 27 13:54:40 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_GLCOGSType_Extract' has completed with error code 0
116 SEVERE Thu Jun 27 13:54:40 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionTypeDimension_ExpenditureCategory' has completed with error code 0
117 SEVERE Thu Jun 27 13:54:40 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_InternalOrganizationDimensionHierarchy_HROrgsTemporary_LatestVersion' has completed with error code 0
118 SEVERE Thu Jun 27 13:54:40 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_ARType_Extract' has completed with error code 0
119 SEVERE Thu Jun 27 13:54:40 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GL_AP_LinkageInformation_Extract_Full' has completed with error code 0
120 SEVERE Thu Jun 27 13:54:41 SGT 2013 Request to start workflow : 'SILOS:SIL_TimeOfDayDimension' has completed with error code 0
121 SEVERE Thu Jun 27 13:55:00 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_GLCOGSType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_GLCOGSType_Extract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
122 SEVERE Thu Jun 27 13:55:00 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_TransactionTypeDimension_ExpenditureCategory.txt SDE_ORA_TransactionTypeDimension_ExpenditureCategory
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
123 SEVERE Thu Jun 27 13:55:00 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_ARType_Extract.txt SDE_ORA_Stage_TransactionTypeDimension_ARType_Extract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
124 SEVERE Thu Jun 27 13:55:00 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_InternalOrganizationDimensionHierarchy_HROrgsTemporary_LatestVersion.txt SDE_ORA_InternalOrganizationDimensionHierarchy_HROrgsTemporary_LatestVersion
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
125 SEVERE Thu Jun 27 13:55:00 SGT 2013 Number of running sessions : 7
126 SEVERE Thu Jun 27 13:55:00 SGT 2013 Number of running sessions : 6
127 SEVERE Thu Jun 27 13:55:01 SGT 2013 Number of running sessions : 6
128 SEVERE Thu Jun 27 13:55:01 SGT 2013 Number of running sessions : 10
129 SEVERE Thu Jun 27 13:55:01 SGT 2013 Number of running sessions : 9
130 SEVERE Thu Jun 27 13:55:01 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SILOS.SIL_TimeOfDayDimension.txt SIL_TimeOfDayDimension
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
131 SEVERE Thu Jun 27 13:55:02 SGT 2013 Number of running sessions : 9
132 SEVERE Thu Jun 27 13:55:06 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionTypeDimension_GLRevenueDerive' has completed with error code 0
133 SEVERE Thu Jun 27 13:55:06 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionTypeDimension_APDerive' has completed with error code 0
134 SEVERE Thu Jun 27 13:55:06 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionTypeDimension_GLOther' has completed with error code 0
135 SEVERE Thu Jun 27 13:55:06 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_Stage_TransactionTypeDimension_ARSubType_ExtractApplication' has completed with error code 0
136 SEVERE Thu Jun 27 13:55:06 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionTypeDimension_GLCOGSDerive' has completed with error code 0
137 SEVERE Thu Jun 27 13:55:08 SGT 2013 Request to start workflow : 'SILOS:SIL_HourOfDayDimension' has completed with error code 0
138 SEVERE Thu Jun 27 13:55:21 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GL_AP_LinkageInformation_Extract_Full.txt SDE_ORA_GL_AP_LinkageInformation_Extract_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
139 SEVERE Thu Jun 27 13:55:21 SGT 2013 Number of running sessions : 9
140 SEVERE Thu Jun 27 13:55:27 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GL_PO_LinkageInformation_Extract_Full' has completed with error code 0
141 SEVERE Thu Jun 27 13:55:27 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_Stage_TransactionTypeDimension_ARSubType_ExtractApplication.txt SDE_ORA_Stage_TransactionTypeDimension_ARSubType_ExtractApplication
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
142 SEVERE Thu Jun 27 13:55:27 SGT 2013 Number of running sessions : 8
143 SEVERE Thu Jun 27 13:55:28 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SILOS -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\DataWarehouse.DataWarehouse.SILOS.SIL_HourOfDayDimension.txt SIL_HourOfDayDimension
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
144 SEVERE Thu Jun 27 13:55:29 SGT 2013 Number of running sessions : 7
145 SEVERE Thu Jun 27 13:55:47 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GL_PO_LinkageInformation_Extract_Full.txt SDE_ORA_GL_PO_LinkageInformation_Extract_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
146 SEVERE Thu Jun 27 13:55:47 SGT 2013 Number of running sessions : 7
147 SEVERE Thu Jun 27 13:55:53 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GL_AR_REV_LinkageInformation_Extract_Full' has completed with error code 0
148 SEVERE Thu Jun 27 13:55:53 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GLJournals_Full.txt SDE_ORA_GLJournals_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
149 SEVERE Thu Jun 27 13:56:00 SGT 2013
ANOMALY INFO::: DataWarehouse:SELECT COUNT(*) FROM W_ORA_GLRF_DERV_F_TMP
ORA-00942: table or view does not exist
MESSAGE:::ORA-00942: table or view does not exist
EXCEPTION CLASS::: java.sql.SQLSyntaxErrorException
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)
oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:853)
oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1469)
oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:389)
com.siebel.etl.database.cancellable.CancellableStatement.executeQuery(CancellableStatement.java:69)
com.siebel.etl.database.DBUtils.executeQuery(DBUtils.java:150)
com.siebel.etl.database.WeakDBUtils.executeQuery(WeakDBUtils.java:242)
com.siebel.analytics.etl.etltask.CountTableTask.doExecute(CountTableTask.java:99)
com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:411)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:307)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:214)
com.siebel.etl.engine.core.Session.getTargetTableRowCounts(Session.java:3375)
com.siebel.etl.engine.core.Session.run(Session.java:3251)
java.lang.Thread.run(Thread.java:619)
150 SEVERE Thu Jun 27 13:56:00 SGT 2013
ANOMALY INFO::: Error while executing : COUNT TABLE:W_ORA_GLRF_DERV_F_TMP
MESSAGE:::com.siebel.etl.database.IllegalSQLQueryException: DataWarehouse:SELECT COUNT(*) FROM W_ORA_GLRF_DERV_F_TMP
ORA-00942: table or view does not exist
EXCEPTION CLASS::: java.lang.Exception
com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:450)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:307)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:214)
com.siebel.etl.engine.core.Session.getTargetTableRowCounts(Session.java:3375)
com.siebel.etl.engine.core.Session.run(Session.java:3251)
java.lang.Thread.run(Thread.java:619)
::: CAUSE :::
MESSAGE:::DataWarehouse:SELECT COUNT(*) FROM W_ORA_GLRF_DERV_F_TMP
ORA-00942: table or view does not exist
EXCEPTION CLASS::: com.siebel.etl.database.IllegalSQLQueryException
com.siebel.etl.database.DBUtils.executeQuery(DBUtils.java:160)
com.siebel.etl.database.WeakDBUtils.executeQuery(WeakDBUtils.java:242)
com.siebel.analytics.etl.etltask.CountTableTask.doExecute(CountTableTask.java:99)
com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:411)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:307)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:214)
com.siebel.etl.engine.core.Session.getTargetTableRowCounts(Session.java:3375)
com.siebel.etl.engine.core.Session.run(Session.java:3251)
java.lang.Thread.run(Thread.java:619)
::: CAUSE :::
MESSAGE:::ORA-00942: table or view does not exist
EXCEPTION CLASS::: java.sql.SQLSyntaxErrorException
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)
oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:853)
oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1469)
oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:389)
com.siebel.etl.database.cancellable.CancellableStatement.executeQuery(CancellableStatement.java:69)
com.siebel.etl.database.DBUtils.executeQuery(DBUtils.java:150)
com.siebel.etl.database.WeakDBUtils.executeQuery(WeakDBUtils.java:242)
com.siebel.analytics.etl.etltask.CountTableTask.doExecute(CountTableTask.java:99)
com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:411)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:307)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:214)
com.siebel.etl.engine.core.Session.getTargetTableRowCounts(Session.java:3375)
com.siebel.etl.engine.core.Session.run(Session.java:3251)
java.lang.Thread.run(Thread.java:619)
151 SEVERE Thu Jun 27 13:56:12 SGT 2013 Number of running sessions : 10
152 SEVERE Thu Jun 27 13:56:12 SGT 2013 Number of running sessions : 10
153 SEVERE Thu Jun 27 13:56:13 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GL_AR_REV_LinkageInformation_Extract_Full.txt SDE_ORA_GL_AR_REV_LinkageInformation_Extract_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
154 SEVERE Thu Jun 27 13:56:13 SGT 2013 Number of running sessions : 10
155 SEVERE Thu Jun 27 13:56:17 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_APTermsDimension_Full' has completed with error code 0
156 SEVERE Thu Jun 27 13:56:18 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_PartyContactStaging_Full' has completed with error code 0
157 SEVERE Thu Jun 27 13:56:18 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_MovementTypeDimension' has completed with error code 0
158 SEVERE Thu Jun 27 13:56:18 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionSourceDimension_AP_LKP_Extract_Full' has completed with error code 0
159 SEVERE Thu Jun 27 13:56:19 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_TransactionSourceDimension_AP_CC_Extract' has completed with error code 0
160 SEVERE Thu Jun 27 13:56:38 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_APTermsDimension_Full.txt SDE_ORA_APTermsDimension_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
161 SEVERE Thu Jun 27 13:56:38 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_PartyContactStaging_Full.txt SDE_ORA_PartyContactStaging_Full
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
162 SEVERE Thu Jun 27 13:56:38 SGT 2013 Number of running sessions : 10
163 SEVERE Thu Jun 27 13:56:38 SGT 2013 Number of running sessions : 9
164 SEVERE Thu Jun 27 13:56:39 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1212_Flatfile.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_TransactionSourceDimension_AP_CC_Extract.txt SDE_ORA_TransactionSourceDimension_AP_CC_Extract
Status Desc : Succeeded
WorkFlowMessage : Workflow executed successfully.
Error Message : Successfully completed.
ErrorCode : 0
165 SEVERE Thu Jun 27 13:56:39 SGT 2013 Number of running sessions : 8
166 SEVERE Thu Jun 27 13:56:44 SGT 2013 Request to start workflow : 'SDE_ORAR1212_Adaptor:SDE_ORA_GL_COGS_LinkageInformation_Extract_Full' has completed with error code 0
167 SEVERE Thu Jun 27 13:57:04 SGT 2013 pmcmd startworkflow -sv INT_AFDROBI -d Domain_AFDRBI -u Administrator -p **** -f SDE_ORAR1212_Adaptor -lpf C:\Informatica\PowerCenter8.6.1\server\infa_shared\SrcFiles\ORA_R1211.DataWarehouse.SDE_ORAR1212_Adaptor.SDE_ORA_GL_COGS_LinkageInformation_Extract_Full.txt SDE_ORA_GL_COGS_LinkageInformation_Extract_Full
Status Desc : Succeeded
After certain tasks I found Informatica workflow did not run. In my case after 190 of 403 tasks but sometime 183 of 403 tasks so it is intermittent.
This sample tasks that is still running.
SDE_ORA_EmployeeDimension
SDE_ORA_GeoCountryDimension
SDE_ORA_MovementTypeDimension
SDE_ORA_Project
SDE_ORA_StatusDimension_ProjectStatus
SDE_ORA_TransactionSourceDimension_AP_LKP_Extract
SDE_ORA_TransactionTypeDimension_APDerive
SDE_ORA_TransactionTypeDimension_GLCOGSDerive
In Informatica Monitor I found this
The Integration Service INT_AFDROBI is alive. Ping time is 0 ms.
The Integration Service INT_AFDROBI is alive. Ping time is 0 ms.
The Integration Service INT_AFDROBI is alive. Ping time is 0 ms.
The Integration Service INT_AFDROBI is alive. Ping time is 0 ms.
Is it mean something?
I have tried to bounce the server bounce the dac server and start ETL but problem still happen.
Did I miss something on DAC or Informatica configuration?
Thanks
JoniHi Naga,
NagarajuCool Jul 8, 2013 6:49 AM (in response to JonHi Naga
1)Check once Relational connections of workflow manager.
Same with tns name
2)Name should be same in workflow manager,ODBC and DAC client.
in DAC I set same with SID -->connection test successful
3)Have you mentioned custom properties in informatica integration service
overrideMpltVarwithMapVar Yes
4)stop infa services and copy pmcmd file from server to client and start sevrices.
Done
5)And check once all DAC configuration once.
Done
After applied above setting DAC Execution Plan for Financial Analytics still take long time. Anything I should try?
Thanks,
Joni
Branch
Report Abuse
Like (0)
Reply -
I have upgrade ios 6 to ios7 on my iphone 5. I do NOT like it at all. I want to come back to the previous version. why is it so complicated? Why can I not find the instruction strait from apple? This is the worst possible upgrade ever. It make me think of when ericsson got sold to Sony....drastic PC change.
I would like to have simple instruction on how to downgrade.
It feel like a change that I did not ask for , ok I push the upgrade buttom, but really this is the worst update aver!
HELP!iPhone User Guide (For iOS 7 Software)Sep 20, 2013 - 23 MB
-
Hello ,
I am working on oracle 11g R2 on AIX.
One query was performing good around 20 sec. but suddenly it took more then 15 min.
We check that the sql executoin plan changes , it showing that order of operation changed like order of using indexes is different.
Now the new plan is not good.
we want to force the old plan of sql to use in future.
I read about sql plan management , it shows a manual method to create baseline and evolve the all plan. In one texample we found that
first query execution plan was created using with out index and then with index So, second plan was good and accepted.
But in this case we do not need to change any thing ,query is performing bad may be becasue changes order of operation ..
One other way to use hint , but for this we need to change sqls , which is not possiable in production now.
The issue is
For this we need to run the sql again and oracle may not create plan like old one.So we will not be having old good plan to accept.
All 2 execution plan are already in cache .
I am looking for a way using that we can set sql plan hash value ( of good plan) or any other id of that sql plan to force to use that plan only.
any idea how to do it ..Stored Outlines are deprecated.
OP:
To fix a specific plan you have two choices:
1. SQL Plan Baselines - assuming the "good" plan is in AWR still then the steps are along the lines of load old plan from AWR into sql tuning set using DBMS_SQLTUNE.SELECT_WORKLOAD_REPOSITORY and DBMS_SQLTUNE.LOAD_SQLSET then load plans from sqlset into sql plan baseline using DBMS_SPM.LOAD_PLANS_FROM_SQLSET.
2. Using SQL Profiles to fix the outline hints - so similar to a stored outline but using the sql profile mechanism - using the coe_xfr_sql_profile.sql script, part of an approach in Oracle support doc id 215187.1
But +1 for Nikolay's recommendation of understanding whether there is a root cause to this problem instability (plan instability being "normal", but flip flopping between "good" and "bad" being a problem). Cardinality feedback is an obvious possible influence, different peeked binds another, stat changes, etc.
Maybe you are looking for
-
How do I block the auto start of Flash Player on my browser?
When I open a web page with my browser (e.g. www.adobe.com on FireFox) , a flash player autimaticaly starts and plays some add. How can I block it? Idealy I would have a button or something, letting me choose whether I want to see this flash or not?
-
Why won't some of my photos transfer to my iphone 4?
I am trying to get certain photos onto my iphone 4, i put them all into the same folder and then selected that folder in itunes and hit sync. But only some of the photos transferred. Why can't i get all the photos on my phone? Now i have photo albums
-
I am also looking to get whether or not the document is open in a browser window which can be done with event.target.external, but I want it to happen without any user interaction and all the events that I tried while loading the document cause an er
-
Problem configuring the OBIEE Report Viewer Portlet to Oracle Portal!
Now we plan to configure the OBIEE Report Viewer Portlet to Oracle BIEE.what i refre is http://www.rittmanmead.com/2007/09/integrating-oracle-bi-answers-and-oracle-portal/ But after i deploy it and add the biee portlet to oracle portal and enter the
-
Site deleted on MobileMe when publishing another
I split off a couple of my sites from my domain file (manually by duplicating it) to move them to a spare account in my MM Family Pack, which worked fine. Then I split off my Welcome page for all my sites, which I keep in a site of its own, as I got