"Determining Query Time Estimate" takes long time.
Is there any way we can turn it off? Actually query takes few seconds but it takes almost five minutes to determining time estimate.
Does anybody know why it happens?
Thanks in advance
Naveen
edit preferences and set QPPEnable to zero.
Then apply the preferences.
This should turn off query prediction.
Similar Messages
-
Query on Cube jumps to Query on ODS ; Query on ODS takes Long time
Hi All,
Perormance Issue: Query on Cube jumps to Query on ODS.
Query on ODS taking long time.(JumpQuery)
Specific to ODS Query: When i have checked the Query on ODS(individually) also taking longer time
Actually ODS contains quite huge data. Indexes already maintained.
I have checked the RSRT- Execute SQL and Debug Option also. Indexes maintained Perfectly .
Order of objects in ODS indexes are matching the order of Objects in SQL stat of RSRT Trans. Inspite of that taking long time.
I have checked both the ways jumpquery aswellas individually .
My question is when the query is jumping from cube to query on ODS how to check the performance, how the query is executing in background when switching over to the second query, Moreover calculated keyfigure has been used for jumping to the target query.
How can query(ods query) time is optimized or improve performance when jumping from query on Cube ?
can any body help?
Rgds,
C.V.
Message was edited by:
C.V. PWhat i understand is that you need to optimise the Query jumping time . But this will be very less compared to the time taken by the query on the ODS.
Ideally you shouldnt be making a BEx Query on the ODS , as this takes a long time. What you can do is try executing the Bex Query on the ODS to find out as to where the issue lies. If this query is taking a long time , there is not muich that you can do here. -
BEx query selection screen takes long time to popup
Hi,
I have a query which is taking long time to popup the selection screen. I have tried in RSRT the generate report option, the generating report takes 45 to 60 mins. After the report is generated the query selection screen comes up in couple of seconds. The first time I run the query everything its fine but then for the second time the problem comes back again.
The selection screen takes +/- 40 mins to comes up in RSRT and in the portal it times out.
I have run the statistics of the query and according to the statistics report the query takes a lot of time for the following component :
OLAP: Query Gen. 2681,312682
I have removed the query from the cache monitor and after that regenerate the report. But these steps didnu2019t solve my problem.
I made two test queries, in one query I have made the CKFu2019s and RKFu2019s directly at the infoprovider, and dragged and dropped in the KF structure. In the other query I made the CKFu2019s and RKFu2019s in the query KF structure itself. The query where I have the CKFu2019s and RKFu2019s at the infoprovider that query times out, the other query where I put the CKFu2019s and RKFu2019s in the query KF structure doesn't has this performance problem.
What I donu2019t know is why the query is failing when I use RKFu2019s and CKFu2019s from the infoprovider, the other query donu2019t have this problem.
Please advise how to proceed.
Thanks in advance,
ArashHi,
Please check the following notes which should be useful.
1387593 - Performance optimization for query change/generation
1416737 - Performance optimization for query change/generation(2)
1396485 - Performance optimization for query check/save
Then please execute the SE38 report ANALYZE_RSZ_TABLES (see notes
1472915, 1506560) and repair/correct the different tables to optmize
the query definition tables.
Regards,
Amit -
Drop Down List in Query Selection Screen Takes Long Time.
I open a report, refresh the query and get a selection screen. But when clicked on the drop down list it takes 4- 5 mins for displaying the drop down options.
How can I speed up the displaying of drop down list in selection screen?
Could any one please help regarding the setting to enable this?
Thanks.Hi,
I guess there is a setting to look up the master data tables or use the dimension,which would speed up the time that it takes to display the drop down selections
Do you have any idea about the setting?
Thanks. -
Optimize the query as it takes long time
hi dear please help to optimize thi sql and take more than 45minits to return out put. This has to be optimize at lease 3-4 mints.
SELECT DISTINCT(ce.event_source) AS mobile_no
FROM CUSTEVENTSOURCE ce,CUSTHASPACKAGE cp
WHERE (cp.package_id =119 AND ce.customer_ref = cp.customer_ref)
AND cp.end_dat IS NULL
AND SUBSTR(ce.event_source,1,3) ='071'
AND cp.customer_ref IN (SELECT CUSTOMER_REF FROM CUSTHASPACKAGE
WHERE end_dat IS NULL
GROUP BY CUSTOMER_REF HAVING COUNT(0) =1 )
following are the indexs corrosponding to tables exist:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CREATE TABLE GENEVA_ADMIN.CUSTEVENTSOURCE
CUSTOMER_REF VARCHAR2(20 BYTE) NOT NULL,
PRODUCT_SEQ NUMBER(9) NOT NULL,
EVENT_SOURCE VARCHAR2(40 BYTE) NOT NULL,
START_DTM DATE NOT NULL,
END_DTM DATE,
EVENT_TYPE_ID NUMBER(9) NOT NULL,
EVENT_SOURCE_LABEL VARCHAR2(40 BYTE) NOT NULL,
CREDIT_LIMIT_MNY NUMBER(18),
EVENT_SOURCE_TXT VARCHAR2(255 BYTE),
EVENT_SOURCE_UPPER VARCHAR2(40 BYTE) NOT NULL,
RATING_TARIFF_ID NUMBER(9),
COMPETITOR_RATING_TARIFF_ID NUMBER(9),
EVENT_FILTER_1_ID NUMBER(9),
RECEIVE_ACCOUNT_1_NUM VARCHAR2(20 BYTE),
RATING_TARIFF_1_ID NUMBER(9),
ATTRIBUTE_NUMBER_1 NUMBER(2),
MATCH_TYPE_1 NUMBER(9),
ATTRIBUTE_VALUE_1 VARCHAR2(32 BYTE),
GUIDE_RULE_1_DESC VARCHAR2(255 BYTE),
EVENT_FILTER_2_ID NUMBER(9),
RECEIVE_ACCOUNT_2_NUM VARCHAR2(20 BYTE),
RATING_TARIFF_2_ID NUMBER(9),
ATTRIBUTE_NUMBER_2 NUMBER(2),
MATCH_TYPE_2 NUMBER(9),
ATTRIBUTE_VALUE_2 VARCHAR2(32 BYTE),
GUIDE_RULE_2_DESC VARCHAR2(255 BYTE),
EVENT_FILTER_3_ID NUMBER(9),
RECEIVE_ACCOUNT_3_NUM VARCHAR2(20 BYTE),
RATING_TARIFF_3_ID NUMBER(9),
ATTRIBUTE_NUMBER_3 NUMBER(2),
MATCH_TYPE_3 NUMBER(9),
ATTRIBUTE_VALUE_3 VARCHAR2(32 BYTE),
GUIDE_RULE_3_DESC VARCHAR2(255 BYTE)
CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK1 ON GENEVA_ADMIN.CUSTEVENTSOURCE
(EVENT_SOURCE, EVENT_TYPE_ID)
CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK2 ON GENEVA_ADMIN.CUSTEVENTSOURCE
(EVENT_SOURCE_LABEL, EVENT_TYPE_ID)
CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK3 ON GENEVA_ADMIN.CUSTEVENTSOURCE
(RECEIVE_ACCOUNT_1_NUM)
CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK4 ON GENEVA_ADMIN.CUSTEVENTSOURCE
(RECEIVE_ACCOUNT_2_NUM)
CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK5 ON GENEVA_ADMIN.CUSTEVENTSOURCE
(RECEIVE_ACCOUNT_3_NUM)
CREATE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_AK6 ON GENEVA_ADMIN.CUSTEVENTSOURCE
(EVENT_SOURCE_UPPER, EVENT_TYPE_ID)
CREATE UNIQUE INDEX GENEVA_ADMIN.CUSTEVENTSOURCE_PK ON GENEVA_ADMIN.CUSTEVENTSOURCE
(CUSTOMER_REF, PRODUCT_SEQ, EVENT_SOURCE, START_DTM, EVENT_TYPE_ID)
CREATE INDEX GENEVA_ADMIN.SAN_CUSTEVENTSOURCE_IND1 ON GENEVA_ADMIN.CUSTEVENTSOURCE
(EVENT_SOURCE, EVENT_TYPE_ID, START_DTM, END_DTM)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CREATE TABLE GENEVA_ADMIN.CUSTHASPACKAGE
CUSTOMER_REF VARCHAR2(20 BYTE) NOT NULL,
PACKAGE_SEQ NUMBER(9) NOT NULL,
PACKAGE_ID NUMBER(9) NOT NULL,
START_DAT DATE NOT NULL,
END_DAT DATE,
SUBS_PRODUCT_SEQ NUMBER(9),
SUBSCRIPTION_REF VARCHAR2(20 BYTE)
CREATE UNIQUE INDEX GENEVA_ADMIN.CUSTHASPACKAGE_PK ON GENEVA_ADMIN.CUSTHASPACKAGE
(CUSTOMER_REF, PACKAGE_SEQ)
CREATE INDEX GENEVA_ADMIN.UDARA_CUSTHASPACKAGE_PK1 ON GENEVA_ADMIN.CUSTHASPACKAGE
(PACKAGE_ID)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
please help me to optimize
Thanks
DBAhi Karthick
following is SQL plan as u requested:
rows,plan
==== ====
,SELECT STATEMENT
,SORT UNIQUE
,FILTER
,SORT GROUP BY
,TABLE ACCESS BY INDEX ROWID CUSTHASPACKAGE
,NESTED LOOPS
,NESTED LOOPS
,TABLE ACCESS BY INDEX ROWID CUSTEVENTSOURCE
,INDEX RANGE SCAN SAN_CUSTEVENTSOURCE_IND1
,TABLE ACCESS BY INDEX ROWID CUSTHASPACKAGE
,INDEX RANGE SCAN CUSTHASPACKAGE_PK
,INDEX RANGE SCAN UDARA_CUSTHASPACKAGE_PK1
I higly appriciate if any one help to optimied this sql
sql for plan:
EXPLAIN PLAN FOR
SELECT DISTINCT(ce.event_source) AS mobile_no
FROM CUSTEVENTSOURCE ce,CUSTHASPACKAGE cp
WHERE (ce.customer_ref = cp.customer_ref)
AND cp.end_dat IS NULL
AND ce.event_source LIKE '071%'
AND cp.customer_ref IN (SELECT CUSTOMER_REF
FROM CUSTHASPACKAGE
WHERE package_id =119
AND end_dat IS NULL
GROUP BY CUSTOMER_REF
HAVING COUNT(customer_ref) =1 )
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
this one hase change according to request. but original sql is in first in this session
Thanks
dba -
SQL Server Query Plan Generation take longer
Dear all,
We are dealing with a wired issue where queries on there first execution take approx 1 min to 2 mins to execute and later execution completes in less than a second,Can you please help us understand why sql server is taking longer time to generated the query
plan
Below is the result of files stats
Mohd Sufian www.sqlship.wordpress.com Please mark the post as Answered if it helped.SYS.DM_OS_MEMORY_CLERKS
MEMORYCLERK_SQLOPTIMIZER 136 912
CACHESTORE_PHDR 1864 0
CACHESTORE_XMLDBTYPE 8 0
CACHESTORE_EVENTS 16 0
USERSTORE_OBJPERM 824 0
USERSTORE_TOKENPERM 840 968
MEMORYCLERK_SQLSTORENG 2736 4312
CACHESTORE_FULLTEXTSTOPLIST 32 0
MEMORYCLERK_XE 64 168
CACHESTORE_XPROC 72 0
OBJECTSTORE_SNI_PACKET 3336 112
CACHESTORE_BROKERRSB 8 0
OBJECTSTORE_SERVICE_BROKER 424 0
MEMORYCLERK_SQLSERVICEBROKERTRANSPORT 48 0
MEMORYCLERK_XE_BUFFER 0 0
MEMORYCLERK_SQLGENERAL 1608 4144
CACHESTORE_XMLDBATTRIBUTE 8 0
MEMORYCLERK_SQLHTTP 8 0
CACHESTORE_STACKFRAMES 0 16
MEMORYCLERK_SQLCONNECTIONPOOL 2440 0
MEMORYCLERK_SQLSERVICEBROKER 152 544
CACHESTORE_NOTIF 16 0
CACHESTORE_XMLDBELEMENT 8 0
OBJECTSTORE_LOCK_MANAGER 24 0
MEMORYCLERK_SQLBUFFERPOOL 0 1688
MEMORYCLERK_SQLSOAP 0 0
MEMORYCLERK_TRACE_EVTNOTIF 0 0
CACHESTORE_OBJCP 6576 512
CACHESTORE_CONVPRI 64 0
MEMORYCLERK_QSRANGEPREFETCH 0 0
CACHESTORE_BROKERREADONLY 80 0
MEMORYCLERK_SQLCLRASSEMBLY 0 0
MEMORYCLERK_SOSNODE 8 16320
MEMORYCLERK_SQLQUERYPLAN 0 0
OBJECTSTORE_SECAUDIT_EVENT_BUFFER 16 0
MEMORYCLERK_BHF 0 0
CACHESTORE_SQLCP 22680 3544
OBJECTSTORE_LBSS 96 192
CACHESTORE_SYSTEMROWSET 1832 0
MEMORYCLERK_FULLTEXT 24 0
USERSTORE_SCHEMAMGR 2632 328
MEMORYCLERK_SQLQUERYCOMPILE 0 0
CACHESTORE_TEMPTABLES 16 0
CACHESTORE_BROKERTBLACS 200 0
CACHESTORE_BROKERTO 8 0
CACHESTORE_BROKERKEK 8 0
MEMORYCLERK_SQLXML 0 0
USERSTORE_SXC 64 0
MEMORYCLERK_SNI 240 32
MEMORYCLERK_FULLTEXT_SHMEM 0 0
CACHESTORE_BROKERUSERCERTLOOKUP 8 0
CACHESTORE_BROKERDSH 8 0
MEMORYCLERK_SQLSOAPSESSIONSTORE 0 0
MEMORYCLERK_SQLQERESERVATIONS 0 0
MEMORYCLERK_HOST 16 0
MEMORYCLERK_SQLCLR 8 0
MEMORYCLERK_SQLXP 16 0
USERSTORE_DBMETADATA 1912 0
MEMORYCLERK_SQLUTILITIES 112 0
CACHESTORE_VIEWDEFINITIONS 16 0
MEMORYCLERK_SQLQUERYEXEC 80 0
sys.dm_os_performance_counters
object_name counter_name cntr_value
SQLServer:Buffer Manager Buffer cache hit ratio 556
SQLServer:Buffer Manager Buffer cache hit ratio base 612
SQLServer:Buffer Manager Page lookups/sec 4054066
SQLServer:Buffer Manager Free list stalls/sec 0
SQLServer:Buffer Manager Free pages 483
SQLServer:Buffer Manager Total pages 503088
SQLServer:Buffer Manager Target pages 1710080
SQLServer:Buffer Manager Database pages 494479
SQLServer:Buffer Manager Reserved pages 0
SQLServer:Buffer Manager Stolen pages 8126
SQLServer:Buffer Manager Lazy writes/sec 0
SQLServer:Buffer Manager Readahead pages/sec 378700
SQLServer:Buffer Manager Page reads/sec 493985
SQLServer:Buffer Manager Page writes/sec 2421
SQLServer:Buffer Manager Checkpoint pages/sec 0
SQLServer:Buffer Manager AWE lookup maps/sec 0
SQLServer:Buffer Manager AWE stolen maps/sec 0
SQLServer:Buffer Manager AWE write maps/sec 0
SQLServer:Buffer Manager AWE unmap calls/sec 0
SQLServer:Buffer Manager AWE unmap pages/sec 0
SQLServer:Buffer Manager Page life expectancy 262
SQLServer:Cursor Manager by Type Cache Hit Ratio 0
SQLServer:Cursor Manager by Type Cache Hit Ratio Base 0
SQLServer:Cursor Manager by Type Cached Cursor Counts 0
SQLServer:Cursor Manager by Type Cursor Cache Use Counts/sec 0
SQLServer:Cursor Manager by Type Cursor Requests/sec 0
SQLServer:Cursor Manager by Type Active cursors 0
SQLServer:Cursor Manager by Type Cursor memory usage 0
SQLServer:Cursor Manager by Type Cursor worktable usage 0
SQLServer:Cursor Manager by Type Number of active cursor plans 0
SQLServer:Cursor Manager by Type Cache Hit Ratio 0
SQLServer:Cursor Manager by Type Cache Hit Ratio Base 0
SQLServer:Cursor Manager by Type Cached Cursor Counts 0
SQLServer:Cursor Manager by Type Cursor Cache Use Counts/sec 0
SQLServer:Cursor Manager by Type Cursor Requests/sec 0
SQLServer:Cursor Manager by Type Active cursors 0
SQLServer:Cursor Manager by Type Cursor memory usage 0
SQLServer:Cursor Manager by Type Cursor worktable usage 0
SQLServer:Cursor Manager by Type Number of active cursor plans 0
SQLServer:Cursor Manager by Type Cache Hit Ratio 0
SQLServer:Cursor Manager by Type Cache Hit Ratio Base 0
SQLServer:Cursor Manager by Type Cached Cursor Counts 0
SQLServer:Cursor Manager by Type Cursor Cache Use Counts/sec 0
SQLServer:Cursor Manager by Type Cursor Requests/sec 0
SQLServer:Cursor Manager by Type Active cursors 0
SQLServer:Cursor Manager by Type Cursor memory usage 0
SQLServer:Cursor Manager by Type Cursor worktable usage 0
SQLServer:Cursor Manager by Type Number of active cursor plans 0
SQLServer:Cursor Manager by Type Cache Hit Ratio 0
SQLServer:Cursor Manager by Type Cache Hit Ratio Base 0
SQLServer:Cursor Manager by Type Cached Cursor Counts 0
SQLServer:Cursor Manager by Type Cursor Cache Use Counts/sec 0
SQLServer:Cursor Manager by Type Cursor Requests/sec 0
SQLServer:Cursor Manager by Type Active cursors 0
SQLServer:Cursor Manager by Type Cursor memory usage 0
SQLServer:Cursor Manager by Type Cursor worktable usage 0
SQLServer:Cursor Manager by Type Number of active cursor plans 0
SQLServer:Cursor Manager Total Cursor conversion rate 0
SQLServer:Cursor Manager Total Async population count 0
SQLServer:Cursor Manager Total Cursor flushes 0
SQLServer:Memory Manager Connection Memory (KB) 2864
SQLServer:Memory Manager Granted Workspace Memory (KB) 0
SQLServer:Memory Manager Lock Memory (KB) 7944
SQLServer:Memory Manager Lock Blocks Allocated 40550
SQLServer:Memory Manager Lock Owner Blocks Allocated 43550
SQLServer:Memory Manager Lock Blocks 10003
SQLServer:Memory Manager Lock Owner Blocks 10133
SQLServer:Memory Manager Maximum Workspace Memory (KB) 10280520
SQLServer:Memory Manager Memory Grants Outstanding 0
SQLServer:Memory Manager Memory Grants Pending 0
SQLServer:Memory Manager Optimizer Memory (KB) 1048
SQLServer:Memory Manager SQL Cache Memory (KB) 2080
SQLServer:Memory Manager Target Server Memory (KB) 13680640
SQLServer:Memory Manager Total Server Memory (KB) 4024704
Mohd Sufian www.sqlship.wordpress.com Please mark the post as Answered if it helped. -
Query Prediction takes long time - After upgrade DB 9i to 10g
Hi all, Thanks for all your help.
we've got an issue in Discoverer, we are using Discoverer10g (10.1.2.2) with APPS and recently we upgraded Oracle DatBase from 9i to 10g.
After Database upgrade, when we try to run reports in Discoverer plus taking long time for query prediction than used to be(double/triple), only for query prediction taking long time andthen takes for running query.
Have anyone got this kind of issues seen before, could you share your ideas/thoughts that way i can ask DBA or sysadmin to change any settings at Discoverer server side
Thanks in advance
skatHi skat
Did you also upgrade your Discoverer from 9i to 10g or did you always have 10g?
If you weren't always on 10g, take a look inside the EUL5_QPP_STATS table by running SELECT COUNT(*) FROM EUL5_QPP_STATS on both the old and new systems
I suspect you may well find that there are far more records in the old system than the new one. What this table stores is the statistics for the queries that have been run before. Using those statistics is how Discoverer can estimate how long queries will take to run. If you have few statistics then for some time Discoverer will not know how long previous queries will take. Also, the statistics table used by 9i is incompatible with the one used by 10g so you can't just copy them over, just in case you were thinking about it.
Personally, unless you absolutely rely on it, I would turn the query predictor off. You do this by editing your PREF.TXT (located on the middle tier server at $ORACLE_HOME\Discoverer|util) and change the value of QPPEnable to 0. AFter you have done this you need to run the Applypreferences script located in the same folder and then stop and start your Discoverer service. From that point on queries will no longer try to predict how long they will take and they will just start running.
There is something else to check. Please run a query and look at the SQL. Do you by change see a database hint called NOREWRITE? If you do then this will also cause poor performance. Should you see this let me know and I will let you know how to override it.
If you have always been on 10g and you have only upgraded your database it could be that you have not generated your database statistics for the tables that Discoverer is using. You will need to speak with your DBA to see about having the statistics generated. Without statistics, the query predictor will be very, very slow.
Best wishes
Michael -
Why update query takes long time ?
Hello everyone;
My update query takes long time. In emp ( self testing) just having 2 records.
when i issue update query , it takes long time;
SQL> select * from emp;
EID ENAME EQUAL ESALARY ECITY EPERK ECONTACT_NO
2 rose mca 22000 calacutta 9999999999
1 sona msc 17280 pune 9999999999
Elapsed: 00:00:00.05
SQL> update emp set esalary=12000 where eid='1';
update emp set esalary=12000 where eid='1'
* ERROR at line 1:
ORA-01013: user requested cancel of current operation
Elapsed: 00:01:11.72
SQL> update emp set esalary=15000;
update emp set esalary=15000
* ERROR at line 1:
ORA-01013: user requested cancel of current operation
Elapsed: 00:02:22.27Hi BCV;
Thanks for your reply but it doesn't provide output, please see this.
SQL> update emp set esalary=15000;
........... Lock already occured.
>> trying to trace >>
SQL> select HOLDING_SESSION from dba_blockers;
HOLDING_SESSION
144
SQL> select sid , username, event from v$session where username='HR';
SID USERNAME EVENT
144 HR SQL*Net message from client
151 HR enq: TX - row lock contention
159 HR SQL*Net message from client
>> It does n 't provide clear output about transaction lock >>
SQL> SELECT username, v$lock.SID, TRUNC (id1 / POWER (2, 16)) rbs,
2 BITAND (id1, TO_NUMBER ('ffff', 'xxxx')) + 0 slot, id2 seq, lmode,
3 request
4 FROM v$lock, v$session
5 WHERE v$lock.TYPE = 'TX'
6 AND v$lock.SID = v$session.SID
7 AND v$session.username = USER;
no rows selected
SQL> select MACHINE from v$session where sid = :sid;
SP2-0552: Bind variable "SID" not declared. -
CV04N takes long time to process select query on DRAT table
Hello Team,
While using CV04N to display DIR's, it takes long time to process select query on DRAT table. This query includes all the key fields. Any idea as to how to analyse this?
Thanks and best regards,
Bobby
Moderator message: please read the sticky threads of this forum, there is a lot of information on what you can do.
Edited by: Thomas Zloch on Feb 24, 2012Be aware that XP takes approx 1gb of your RAM leaving you with 1gb for whatever else is running. MS Outlook is also a memory hog.
To check Virtual Memory Settings:
Control Panel -> System
System Properties -> Advanced Tab -> Performance Settings
Performance Options -> Adavanced Tab - Virtual Memory section
Virtual Memory -
what are
* Initial Size
* Maximum Size
In a presentation at one of the Hyperion conferences years ago, Mark Ostroff suggested that the initial be set to the same as Max. (Max is typically 2x physical RAM)
These changes may provide some improvement. -
My query take long time..
The output of tkprof of my trace file is :
SELECT ENEXT.NUM_PRSN_EMPLY ,ENEXT.COD_BUSUN ,ENEXT.DAT_CALDE ,ENEXT.COD_SHFT
FROM
AAC_EMPLOYEE_ENTRY_EXITS5_VIW ENEXT ,PDS.PDS_EMPLOYEES EMPL ,
PDS.PDS_EMPLOYMENT_TYPES EMPTYP ,PDS.PDS_PAY_CONDITIONS PAYCON WHERE
ENEXT.DAT_CALDE BETWEEN :B6 AND :B5 AND ENEXT.NUM_PRSN_EMPLY IN (SELECT
ATT21 FROM APPS.GLOBAL_TEMPS WHERE ATT1 = 'PRSN') AND ENEXT.NUM_PRSN_EMPLY =
EMPL.NUM_PRSN_EMPLY AND EMPL.EMTYP_COD_EMTYP = EMPTYP.COD_EMTYP AND
EMPTYP.LKP_COD_STA_PAY_EMTYP <> 3 AND
NVL(EMPL.LKP_MNTLY_WITHOUT_ENEXT_EMPLY,2) <> 1 AND EMPL.PCOND_COD_STA_PCOND
= PAYCON.COD_STA_PCOND AND NVL(EMPL.LKP_MNTLY_WITHOUT_ENEXT_EMPLY,2) <> 1
AND PAYCON.LKP_FLG_STA_PAY_PCOND = 1 AND ENEXT.DAT_CALDE >=
EMPL.DAT_EMPLT_EMPLY AND ENEXT.DAT_CALDE <= NVL(EMPL.DAT_DSMSL_EMPLY,
TO_DATE('15001229','YYYYMMDD')) AND 1 = (CASE WHEN
ENEXT.LKP_STA_HOLIDAY_CALNR = 2 AND ENEXT.LKP_CAT_SHFT_SHTAB = 1 AND
ENEXT.TYP_DAY BETWEEN 4 AND 6 THEN 0 WHEN ENEXT.LKP_STA_HOLIDAY_CALNR = 2
AND ENEXT.LKP_CAT_SHFT_SHTAB = 1 AND ENEXT.TYP_DAY NOT BETWEEN 4 AND 6 THEN
1 WHEN ENEXT.LKP_STA_HOLIDAY_CALNR = 2 AND ENEXT.LKP_CAT_SHFT_SHTAB = 2
THEN 0 WHEN ENEXT.LKP_STA_HOLIDAY_CALNR = 1 AND ENEXT.LKP_CAT_SHFT_SHTAB =
1 THEN 1 WHEN ENEXT.LKP_STA_HOLIDAY_CALNR = 1 AND ENEXT.LKP_CAT_SHFT_SHTAB =
2 THEN 0 END) AND ENEXT.LKP_COD_DPUT_BUSUN = NVL(:B4 ,
ENEXT.LKP_COD_DPUT_BUSUN) AND ENEXT.LKP_COD_MANAG_BUSUN = NVL(:B3 ,
ENEXT.LKP_COD_MANAG_BUSUN) AND ENEXT.COD_BUSUN = NVL(:B2 , ENEXT.COD_BUSUN)
AND ENEXT.COD_CAL = NVL(COD_CAL, ENEXT.COD_CAL) AND ENEXT.NUM_PRSN_EMPLY =
NVL(:B1 , ENEXT.NUM_PRSN_EMPLY) AND ENEXT.COD_SHFT IN (SELECT
SHFTBL.COD_SHTAB FROM AAC_SHIFT_TABLES SHFTBL WHERE
SHFTBL.LKP_CAT_SHFT_SHTAB = 1) AND ENEXT.DAT_CALDE NOT IN (SELECT ABN.DAT
FROM APPS.AAC_EMPL_EN_EX_ABNORMAL_VIW ABN WHERE ABN.PRSN =
ENEXT.NUM_PRSN_EMPLY AND ABN.DAT BETWEEN :B6 AND :B5 ) AND ENEXT.DAT_CALDE
IN (SELECT EMPENEXT.DAT_STR_SHFT_ENEXT FROM AAC.AAC_EMPLOYEE_ENTRY_EXITS
EMPENEXT WHERE EMPENEXT.EMPLY_NUM_PRSN_EMPLY = EMPL.NUM_PRSN_EMPLY AND
EMPENEXT.DAT_STR_SHFT_ENEXT BETWEEN :B6 AND :B5 AND
EMPENEXT.LKP_FLG_STA_ENEXT <> 3) ORDER BY ENEXT.NUM_PRSN_EMPLY,
ENEXT.DAT_CALDE
call count cpu elapsed disk query current rows
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 0 0 0
Fetch 2 40.45 40.30 306 17107740 0 24
total 6 40.45 40.30 306 17107740 0 24
what is wrong in my query?
why it take long time?user13344656 wrote:
what is wrong in my query?
why it take long time?See PL/SQL forum FAQ
https://forums.oracle.com/forums/ann.jspa?annID=1535
*3. How to improve the performance of my query? / My query is running slow.*
SQL and PL/SQL FAQ
For instructions on what information to post an how to format it. -
Analyze a Query which takes longer time in Production server with ST03 only
Hi,
I want to Analyze a Query which takes longer time in Production server with ST03 t-code only.
Please provide me with detail steps as to perform the same with ST03
ST03 - Expert mode- then I need to know the steps after this. I have checked many threads. So please don't send me the links.
Write steps in detail please.
<REMOVED BY MODERATOR>
Regards,
Sameer
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:14 PMThen please close the thread.
Greetings,
Blag. -
Query takes long time for first time
I have a table with 100 million records and another tables with many rows.
When I ran a query - it's takes about 1 minute to complete, but when I ran it again it takes less than 1 second to complete.
Why it is happening?
Thanks,
Tz.Welcome to the forum.
When you post a question always provide your 4 digit Oracle version. Different versions have different functionality and this can affect your results and the advice you need.
For performance tuning questions see the FAQ (upper right corner of page) for the information needed for tuning requests.
>
When I ran a query
>
How did you run it? Did you use sql*plus, sqldeveloper, some other tool?
What command did you enter?
Using sql*plus you can get an execution plan for the query by
SQL> set serveroutput on
SQL> set autotrace traceonly
SQL> select * from emp;
Execution Plan
Plan hash value: 3956160932
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 14 | 546 | 3 (0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| EMP | 14 | 546 | 3 (0)| 00:00:01 |
SQL> -
Query Saving takes long time and giving error
Hi Gurus,
I am creating one query that have lot of calculations (CKF & RKF).
When I am trying to save this query it is taking long time and it is giving error like RFC_ERROR_SYSTEM_FAILURE, Query Designer must be restarted, further work not possible.
Please give me the solution for this.
Thanks,
RChowdaryHi Chowdary,
Check the following note: 316470.
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=316470
The note details are:
Symptom
There are no authorizations to change roles. Consequently, the system displays no roles when you save workbooks in the BEx Analyzer. In the BEx browser, you cannot move or change workbooks, documents, folders and so on.
Other terms
BW 2.0B, 2.0A, 20A, 20B, frontend, error 172, Business Explorer,
RFC_ERROR_SYSTEM_FAILURE, NOT_AUTHORIZED, S_USER_TCD, RAISE_EXCEPTION,
LPRGN_STRUCTUREU04, SAPLPRGN_STRUCTURE, PRGN_STRU_SAVE_NODES
Reason and Prerequisites
The authorizations below are not assigned to the user.
Solution
Assign authorization for roles
To assign authorizations for a role, execute the following steps:
1. Start Transaction Role maintenance (PFCG)
2. Select a role
3. Choose the "Change" switch
4. Choose tab title "Authorizations"
5. Choose the "Change authorization data" switch
6. Choose "+ Manually" switch
7. Enter "S_USER_AGR" as "Authorization object"
8. Expand "Basis: Administration"/"Authorization: Role check""
9. From "Activity" select "Create or generate" and others like "Display" or "Change"
10. Under "Role Name", enter all roles that are supposed to be shown or changed. Enter "*" for all roles.
11. You can re-enter authorization object "S_USER_AGR" for other activities.
Assign authorization for transactions
If a user is granted the authorization for changing a role, he/she should also be granted the authorization for all transactions contained in the role. Add these transaction codes to authorization object S_USER_TCD.
1. Start the role maintenance transaction (PFCG).
2. Select a role.
3. Click on "Change".
4. Choose the "Authorizations" tab.
5. Click on "Change authorization data".
6. Click on "+ manually".
7. Specify "S_USER_TCD" as "Authorization object".
8. Expand "Basis - Administration"/"Authorizations: Transactions in Roles".
9. Under "Transaction", choose at least "RRMX" (for BW reports), "SAP_BW_TEMPLATE" (for BW Web Templates), "SAP_BW_QUERY" (for BW Queries and/or "SAP_BW_CRYSTAL" (for Crystal reports) or "*". Values with "SAP_BW_..." are not transactions, they are special node types (see transaction code NODE_TYPE_DEFINITION).
Using the SAP System Trace (Transaction ST01), you can identify the transaction that causes NOT_AUTHORIZED.
Prevent user assignment
Having the authorization for changing roles, the user is not only able to change the menu but also to assign users. If you want to prevent the latter, the user must loose the authorization for Transactions User Maintenance (SU01) and Role maintenance (PFCG).
Z1>Note
Refer to Note 197601, which provides information on the different display of BEx Browser, BEx Analyzer and Easy Access menu.
Please refer to Note 373979 about authorizations to save workbooks.
Check in the transaction ST22 for more details on the Query designer failure or query log file.
With Regards,
Ravi Kanth.
Edited by: Ravi kanth on Apr 9, 2009 6:02 PM -
Report takes long time for few records
hi frends,
I m facing one problem with my Web based erp application which is developed in .net , in my application when i open the report from my applicaiton , in my temp folder there one file gets created name is "rpt conmgr cache"
bcoz of this for few records also my report takes too much time and opens very slow and it takes long time, and it happens in some of the reports only , other reports are working cool and its not creating any file in temp folder,,, so can u guide me whats this file and what can be the solution for it,
Thanks
Mithunhi sabhajit,
i have already checked the sql query it is taking less then seconds.
any other steps u want me to check then pls let me know?
thanks mithun -
Materialized view takes long time to refresh but when i tried select & insert into table it's very fast.
i executed SQL and it takes ust 1min ( total rows is 447 )
but while i refresh the MVIEW it takes 1.5 hrs ( total rows is 447 )
MVIEW configration :-
CREATE MATERIALIZED VIEW EVAL.EVALSEARCH_PRV_LWC
TABLESPACE EVAL_T_S_01
NOCACHE
NOLOGGING
NOCOMPRESS
NOPARALLEL
BUILD DEFERRED
REFRESH FORCE ON DEMAND
WITH PRIMARY KEY
Not sure why so much diffrenceinfant_raj wrote:
Materialized view takes long time to refresh but when i tried select & insert into table it's very fast.
i executed SQL and it takes ust 1min ( total rows is 447 )
but while i refresh the MVIEW it takes 1.5 hrs ( total rows is 447 )A SELECT does a consistent read.
A MV refresh does that and also writes database data.
These are not the same thing and cannot be directly compared.
So instead of pointing at the SELECT execution time and asking why the MV refresh is not as fast, look instead WHAT the refresh is doing and HOW it is doing that.
Is the execution plan sane? What events are the top ones for the MV refresh? What are the wait states that contributes most to the processing time of the refresh?
You cannot use the SELECT statement's execution time as a direct comparison metric. The work done by the refresh is more than the work done by the SELECT. You need to determine exactly what work is done by the refresh and whether that work is done in a reasonable time, and how other sessions are impacting the refresh (it could very well be blocked by another session).
Maybe you are looking for
-
How Can i get the data From A Table that use DefaultTableModel
Hi and sorry for my bad english. The problem that i have is that i used this code to fill a table. Now i want when i select a row and click in a button , get the value of that row that i select so then i can update or delete that data in my dataBases
-
Hi, please I need A̶̲̥̅ help anytime I send A̶̲̥̅ friend request from M̶̲̥̅γ̲̣̣̥ BBM the people I sent it too will not see it but the contact will be on M̶̲̥̅γ̲̣̣̥ pending list but they send to me I can accept and chat with them what can I do to reso
-
I installed the new 7.1 on my IPAD last night. Now it is asking me for a password to open the screen. I had never used a password, so have no idea what to do. HELP!
-
I have trouble recording from my MSI Ti-4400 card to my VCR (from W2k). I've connected from my graphic card to the VCR with RCA connectors to a SCART adapter to the VCR. The picture is perfect on the TV but when recording on a VHS tape the playback f
-
Hi, I have an issue accruing use tax while entering vendor invoice in FB60. The case is, the vendor has sent an invoice with zero tax. However, the client wants to accrue use tax, while entering the invoice in FB60. For this, I am using the Tax code