Query execution timing out
Hi experts,
I have two queries on the DSO when we run the query it is taking long time to fetch the data. in query i have only 4 chars and 1 key figure out of 4 chars 2 are navigational attributes. what are the different options i have to improve these query performence.
Thanks,
Kiran
Hi Kiran,
According to improve performance of DSO, implement Indexes.
And also if the data is verymuch more then divide the data in to 2 DSO's (as per year) and build a multiprovider to access the data.
We don't have many options to improve the performance of DSO.
OR
Use Cube in place of DSO.
Regards,
Ravi Kanth
Similar Messages
-
Tabular data model: Query keeps timing out when attempting to Edit Table Properties
Tabular data model (SSDT)
Problem: I have a table in tabular data model using a SQL Query for a data source. The query in question requires about 3 minutes to regenerate. When I open Edit Table Properties for this data source the query times out and I get an error (see below): "
Failed to retrieve data from udvTrainJobReportsData. Reason: Query timeout expired"
This seems to happen anytime I use a query that takes longer than a couple of minutes to regenerate. Anyone have an idea on how to get around this. Is there a timeout setting somewhere in tabular data model that can be increased?
Thanks...Hi ManikantM,
According to your description, you query keeps time out when edit table properties. Right?
In this scenario, this error is thrown when connection or query execution exceeds the time out value. Please try to import this table and then increase the connection time out seconds.
We can increase to ExternalCommandTimeout in Analysis Server Properties. Please refer to link below:
http://aniruddhathengadi.blogspot.in/2012/07/ole-db-error-ole-db-or-odbc-error-query.html
Please also refer to a similar thread below:
https://social.technet.microsoft.com/Forums/office/en-US/3f83a26b-71c6-462e-8b90-2ce2ce0b9465/powerpivots-2010-query-keeps-timing-out-when-attempting-to-edit-table-properties?forum=excel
Best Regards,
Simon Hou
TechNet Community Support -
SSIS 2012 Scheduled SSIS package fail to start – Execution timed out
Hi
I am currently running into an issue that seem to have a live Connect issue raised for it. The following is the link to the connect issue https://connect.microsoft.com/SQLServer/feedback/details/783291/ssis-package-fails-to-start-application-lock-timeout-in-ssisdb-catalog-create-execution
There is also a blog post that explains this issue in more detail, however the solution
it provides does not work all the time and I am very reluctant to create custom stored procedures in the SSISDB. http://speaksql.wordpress.com/2013/06/27/ssis-2012-fail-to-start-execution-timed-out/
Just to give some more background. When scheduling 10 or more, in my case I scheduled 14, SQL Server Agent Jobs all executing a package in the SSIS Catalog and all kicking off on exactly the same time about 10% to 20% of these jobs fail stating one of the
following error messages:
The operation failed because the execution timed out. Source: .Net SqlClient Data Provider Started: 12:20:01 Finished: 12:20:07 Elapsed: 5.797 seconds. The package execution failed. The step failed.
Description: Transaction (Process ID 66) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. Source: .Net SqlClient Data Provider Started: 14:06:48 Finished: 14:06:53
Elapsed: 4.719 seconds. The package execution failed. The step failed.
This timeout takes place both when using TSQL to start the package in the Job or when the step in the Job is set to start the package as an Integration Services Package.
Steps to recreate this:
1. Create one SSIS package that simply executes for around a minute. For example you can use an Execute SQL Task and simply execute the following TSQL "WAITFOR DELAY '00:01:00'"
2. Create 14 SQL Server Agent Jobs each executing the same package and schedule all of them to run at the same time.
3. Watch the execution of the jobs take place and note the failures. (This does not always happen and you might get one run in which everything executes without a problem. The next run might have 6 or 7 of the jobs fail.)
You can also create 14 different SSIS packages, one for each job, and the result is the same.
I am running on SQL 2012 SP1 CU4. Windows Server 2012 R2 patched to the lastest patch level.
This issue does not happen when the packages are deployed to the SSIS Package Store the way that it was done in SQL2008 and before. It only occurs when the SSIS packages are deployed to the SSIS Catalog.
Any help or feedback on this would be greatly appreciated.
Kind Regards,
Christo OlivierHi Tom
Thank you for the fast response. I went and increased the value by 1024KB instead of the initial
512KB. Unfortunately this seems to only alleviate the issue but does not stop it from occurring. It
is happening much less often now but still occurring intermittently.
Regards,
Christo -
PowerPivots 2010: Query keeps timing out when attempting to Edit Table Properties
Excel PowerPivots Version: PowerPivots for Excel 2010
Problem: I have a table in PowerPivot windows using a SQL Query for a data source. The query in question requires about 3 minutes to regenerate. When I open Edit Table Properties for this data source the query times out
and I get an error (see below): "
Failed to retrieve data from udvTrainJobReportsData. Reason: Query timeout expired"
This seems to happen anytime I use a query that takes longer than a couple of minutes to regenerate. Anyone have an idea on how to get around this. Is there a timeout setting somewhere in PowerPivots that can be increased?
Regards,
....bob
Screen Shot of Error:
Bob SutorHi,
We could add the seconds in the timeout values.
Then, if you want to add the timeout values for the SQL Query, please following the link to do:
http://aniruddhathengadi.blogspot.in/2012/07/ole-db-error-ole-db-or-odbc-error-query.html
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
And here is a similar issue.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/59dbdd8e-9981-41c5-a02c-9365c46956e1/how-to-extend-the-timeout-for-long-running-queries?forum=sqlkjpowerpivotforexcel
Thanks,
George Zhao
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "[email protected]" -
Hi,
Can anyone help me in the below issue.
we have a Linux server with agent version 11.12.009 installed on it. when I try running opcragt command on it through are management server it gives the output that all agent components are running.
but when I check the agent status or version through opcagt command on it it gives below error:
ERROR: (depl-86) Unable to execute command 'opcagt' on node
(depl-176) Message returned from host
(xpl-117) Timeout occurred while waiting for data.
Below are the error lines that I got from system.txt file of the server:
0: ERR: Fri Dec 19 09:09:38 2014: ovconfd (3708/140429034952480): (conf-180) Could not create messenger for configuration server 'ovconfd' and register its methods with the messenger object.
1: ERR: Fri Dec 19 09:09:38 2014: ovconfd (3708/140429034952480): (xpl-89) write(11)[012C5430] failed.
2: ERR: Fri Dec 19 09:09:38 2014: ovconfd (3708/140429034952480): (RTL-28) No space left on device
Could anyone please let me know what can be the issue in this.
Thanks,
AkanshaORA-00600: internal error code, arguments: [kzxcInitLoadLocal-7], [942],
[ORA-00942: table or view does not exist
ORA-01403: no data found
ORA-06512: at "SYS.DBMS_NETWORK_ACL_ADMIN", line 252
ORA-06512: at line 36
ORA-01403: no data foundWhat does this query return?
SQL> SELECT HOST, ACL
FROM DBA_NETWORK_ACLS;Please see (Redefining a Network Access Control List Fails with ORA-1403 [ID 854083.1]).
Thanks,
Hussein -
My coldfusion service crashes intermitantly and when I check
the application logs the error that I see for the time frame is the
one below. Does anyone know where I might begain to solve this?
Thanks!
Error Executing Database
Query.coldfusion.sql.DatabaseConnectionException: Timed out trying
to establish connection The specific sequence of files included or
processed is: E:\wwwroot\lifeworks\default.cfmI'm no expert, but thought I would try to be helpful.
I was getting this same error on a regular basis.
The short term fix was to restart the ODBC server service.
The long term fix was twofold:
1. I recreated the ODBC connection in ColdFusion
Administrator to use the system connection (I was using the SA and
PW for login).
2. I created a second user ODBC connection as well as the
system one under ODBC in Windows Server 2003.
I haven't had the problem since.
I also read a pretty good set of "stuff" to try from the help
area:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_17277
Hope this helps. -
Inserting into Table-in-Table after re-execution the Outer Table query
Hi Gurus,
I have a problem with inserting into Table-in-Table after re-execution the Outer Table query:
The problem:
I have two tables; both tables are based on VO; tables have a VL between them;
The Inner Table is hidden when page lode.
I'm executing the Outer Table, open the details to see the Inner Table, I can add rows to the Inner Table. Everything is OK.
But-
After I'm executing the Outer Table again –
Adding new rows to the Inner Table is not work anymore, despite I'm executing the Inner Table RowSet query.
Scenario is:
In processRequest():
In the processRequest() I'm calling executeQuery() of the Outer Table Only.
(So the Details executeQuery() will be done by VL and Its works fine.)
In processFormRequest():
User opens the details to see the Inner Table.
On some event, I'm executing the Outer Table query.
On some other event, programmatically I am inserting a new row to the Inner Table, and a new row is displayed in the Inner Table as I wanted.
In this way, one row after another, I can add as many rows as I wish, without any problem.
(This scenario should behave as same clicking on button of type "Add-Another-Row", just adding the row automatically)
The code for the inserting (as specified in the chapter "Classic Tables" --> "table-in-table"):
OARow newRow = (OARow) innerRowSet.createRow();
innerRowSet.insertRow(newRow);
innerRowSet.setRangeSize(innerRowSet.getRangeSize()+ 1);
innerRowSet.executeQuery();
If the user won't cause to re-execution of the outer table – no problem occurs.
* Should I add something after the Outer Table VO execution?
* Maybe to the inserting to the Inner Table code?
Please help…Hi, Thanks.
I don't know which one of the Outer Table rows is the current row,
But-
Only the Details (the Inner Tables) who where opened before the executeQuery() of the Outer table are not acts as they should.
All the Details who where closed before the executeQuery() of the Outer table are still works fine.
Please advise. -
While Starting Addon - Getting message "Addon Query Timed Out"
Hi All,
In the "AddOn Manager" Screen, when i am clicking the "START" button to start my AddOn, after some time it is giving me a message "AddOn Query Timed Out" and setting the status as "Failed", though it has started my AddOn and its working without any problem, but since it has status "Failed" it keeps the "Stop" button disabled, hence i am unable to stop my addon.
Immediate Response is needed.
Thanks in Advance.Search the forum: this question has been answered many times. See Re: Reg . AddOn Timeout Message is comming but AddOn is still working.
-
The query locator has timed out on the server side.
Hi
I am getting the error:The query locator has timed out on the server side.
What to do now?
AGHi
Are you using Salesforce.com for creating reports?
When joining large-sized tables, you may run into a query locator time out
error. The query locator is a server-side cursor generated by Salesforce.com
and is used to navigate the query result. It will automatically expire in 15
minutes without any activity.
In the case of joining two tables, the report processing engine will read one
table partly, and then it will process the other table. If the processing time is
longer than 15 minutes, the Crystal Reports Salesforce.com Driver will try to
read the rest of the records in the first table and the cursor in that query will
time out. In the case of joining multiple tables, the chance of running into a
query locator time issue is higher as the report processing engine might have
to return to handle the first table after finishing processing other tables,
increasing the possibility of a query locator time out error in the first table.
If you run into query locator time out issue, we recommend that you add
filters into your report to reduce the amount of records you fetch from
Salesforce.com.
However, if that is not possible, you can try to reverse the link order in the
case of joining two tables. For example, you linked table A to table B, then
you can try to link table B to table A.
Hope this helps!!
Regards
Sourashree -
Collection: (80004005) Execute: Query timed-out
Hi,
Recent days im facing a strange issue like the SCCM clients are not reporting the full Software inventory, so because of that we were unable to query using the software inventory details.
The strange part is, while checking the logs "Inventory agent.log" it states "Collection: (80004005) Execute: Query timed-out".
I wanna find what is the job of the Software inventory cycle and how to see at what point they stuck scanning...
Any information helping me to proceed further with my investigation would be much appreciated.
Thanks,
NanaThanks for the link Garth...
We have scheduled software inventory to run on Sundays so that it should not impact client PC's performance. I agree it takes long time, but at some point we might require some information from those files. I also tried to create few test machine, but its difficult
to duplicate this issue in them. Whenever we create a new machine, it reports good :(
I was querying the machines who has collected "powershell.exe" files using software inventory cycle, i was able to fetch about 91% of the machines where as 9% has not. I tried to run a powershell query (Full software inventory) remotely on the machine where
we are facing issues collecting software inventory. Monitoring the logs and i came up with this error.
Here my question would be as its working on most of the machines why aren't they good on the rest. Even if we try to re-install the client, same status. Maybe because of the machine performance?
Thanks for your help... -
Test Publication - Command Execution Failed! Command Timed Out!
Hello All,
While testing my publication I get the following error
Command Execution Failed! Command Timed Out!I've tried everyform for the Mobile Server URL : dns, ip, hostname and nothing seems to work.
Thanks in advance for some advise.
JanHello ,
Client is remote. But I have an odd feeling that the problem is some VPN. I just deployed the publication, ran msync and it automatically grabbed the publication and all the items and I ran a test and all the data is in sync.
This might be related to VPN. I will test by creating a local client.
Thanks for the heads and advise. I consider this a resolved issue.
Jan -
Procedure execution is timing out
Hi,
When executing the following procedure, it is timing out.
Any body help me out.
Regards,
SS.
CREATE OR REPLACE procedure get_allorder_details
FromDate in varchar2,
ToDate in varchar2,
LinesType in varchar2,
ordernumber out arr_varchar,
ordertype out arr_varchar,
originatingsystem out arr_varchar,
order_linenumber out arr_varchar,
revisionnumber out arr_varchar,
symphonycompletiondate out arr_varchar,
oraclereceivedate out arr_varchar,
oracleimportdate out arr_varchar,
importstatus out arr_varchar,
extended_price out arr_varchar,
quantity out arr_varchar,
modelnumber out arr_varchar)
is
total number;
err_num number;
--LinesType varchar2(8);
err_msg VARCHAR2(800);
cursor allorderdetails is
select ordernbr, linenbr,revisionnbr,ordertype, originatingsystem, IMPORT_STATUS,
to_char(new_time(creation_date,'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') orderdate,to_char(extendedprice/100) extendeprice,qty,modelstring
from [email protected]_ORADBTST2.NA.EMERSONPROCESS.COM
where trunc(creation_date) between to_date(FromDate, 'MM/DD/YYYY')
and to_date(ToDate, 'MM/DD/YYYY')
and pluginid = 4
order by ordernbr asc,linenbr asc,revisionnbr asc;
cursor addorderdetails is
select ordernbr, linenbr,revisionnbr,ordertype, originatingsystem ,IMPORT_STATUS,
to_char(new_time(creation_date,'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') orderdate,to_char(extendedprice/100) extendeprice,qty,modelstring
from [email protected]_ORADBTST2.NA.EMERSONPROCESS.COM
where trunc(creation_date) between to_date(FromDate, 'MM/DD/YYYY')
and to_date(ToDate, 'MM/DD/YYYY')
and pluginid = 4
and revisionnbr=1
order by ordernbr asc,linenbr asc,revisionnbr asc;
cursor latestlines is
select fjl.ordernbr, fjl.linenbr, fjl.revisionnbr,fjl.ordertype, fjl.originatingsystem, fjl.IMPORT_STATUS,
to_char(new_time(fjl.creation_date,'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') orderdate,to_char(fjl.extendedprice/100) extendeprice,
fjl.qty,fjl.modelstring
from [email protected]_ORADBTST2.NA.EMERSONPROCESS.COM fjl,
(select ordernbr, linenbr, max(revisionnbr) revnum
from [email protected]_ORADBTST2.NA.EMERSONPROCESS.COM
where pluginid = 4
and trunc(creation_date) between to_date(FromDate, 'MM/DD/YYYY')
and to_date(ToDate, 'MM/DD/YYYY')
group by ordernbr, linenbr) plainlist
where fjl.ordernbr = plainlist.ordernbr
and fjl.linenbr = plainlist.linenbr
and fjl.revisionnbr = plainlist.revnum
and trunc(creation_date) between to_date(FromDate, 'MM/DD/YYYY')
and to_date(ToDate, 'MM/DD/YYYY')
and fjl.pluginid = 4
order by ordernbr asc, linenbr asc, revisionnbr asc;
cursor cancelorderdetails is
select ordernbr, linenbr,revisionnbr,ordertype, originatingsystem, IMPORT_STATUS,
to_char(new_time(creation_date,'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') orderdate,to_char(extendedprice/100) extendeprice,qty,modelstring
from [email protected]_ORADBTST2.NA.EMERSONPROCESS.COM
where trunc(creation_date) between to_date(FromDate, 'MM/DD/YYYY')
and to_date(ToDate, 'MM/DD/YYYY')
and pluginid = 4
and revisionnbr > 1
order by ordernbr asc,linenbr asc,revisionnbr asc;
alllinescounter allorderdetails%ROWTYPE;
addlinescounter addorderdetails%ROWTYPE;
latestlinescounter latestlines%ROWTYPE;
cancellinescounter cancelorderdetails%ROWTYPE;
begin
--LinesType := 'ADD';
ordernumber := arr_varchar();
ordertype := arr_varchar();
originatingsystem := arr_varchar();
order_linenumber := arr_varchar();
symphonycompletiondate := arr_varchar();
oraclereceivedate := arr_varchar();
oracleimportdate := arr_varchar();
importstatus := arr_varchar();
extended_price := arr_varchar();
quantity := arr_varchar();
modelnumber := arr_varchar();
revisionnumber := arr_varchar();
total := 0;
-- Fetch up to "batch_size" rows into PL/SQL table,
IF UPPER(LinesType) = 'ALL' then
--DBMS_OUTPUT.PUT_LINE(' Exception occured ' );
FOR alllinescounter IN allorderdetails
LOOP
total := total + 1;
BEGIN
ordernumber.extend(1);
order_linenumber.extend(1);
ordertype.extend(1);
originatingsystem.extend(1);
revisionnumber.extend(1);
oracleimportdate.extend(1);
importstatus.extend(1);
extended_price.extend(1);
quantity.extend(1);
modelnumber.extend(1);
ordernumber(total) := alllinescounter.ORDERNBR;
order_linenumber(total) := alllinescounter.LINENBR;
ordertype(total) := alllinescounter.ORDERTYPE;
originatingsystem(total) := alllinescounter.ORIGINATINGSYSTEM;
oracleimportdate(total) := alllinescounter.orderdate;
importstatus(total) := alllinescounter.IMPORT_STATUS;
extended_price(total) := alllinescounter.extendeprice;
quantity(total) := alllinescounter.qty;
revisionnumber(total) := alllinescounter.revisionnbr;
modelnumber(total) := alllinescounter.modelstring;
EXCEPTION WHEN OTHERS THEN
err_num := SQLCODE;
-- DBMS_OUTPUT.PUT_LINE(' Exception occured ' || err_num);
END;
BEGIN
symphonycompletiondate.extend(1);
SELECT TO_CHAR(new_time(file_ts(FILENAME),'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') symphonycompletiondate
into symphonycompletiondate(total)
FROM XML1_XACTS
WHERE
DIVISION = '4' AND
ordernbr = ordernumber(total) and ordertype = ordertype(total)
and LINENBR = order_linenumber(total)
and revisionnbr= revisionnumber(total);
EXCEPTION WHEN OTHERS THEN
symphonycompletiondate(total) := 'NULL';
END;
BEGIN
oraclereceivedate.extend(1);
SELECT TO_CHAR(new_time(file_ts(FILENAME),'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') oraclereceiveddate
into oraclereceivedate(total)
FROM XML14_XACTS
WHERE
upper(systemname) = 'MFG203' AND
ordernbr = ordernumber(total)
and LINENBR = order_linenumber(total)
and revisionnbr= revisionnumber(total);
EXCEPTION WHEN OTHERS THEN
oraclereceivedate(total) := 'NULL';
END;
END LOOP;
elsif UPPER(LinesType) = 'ADD' then
FOR addlinescounter IN addorderdetails
LOOP
total := total + 1;
BEGIN
ordernumber.extend(1);
order_linenumber.extend(1);
ordertype.extend(1);
originatingsystem.extend(1);
oracleimportdate.extend(1);
importstatus.extend(1);
extended_price.extend(1);
quantity.extend(1);
modelnumber.extend(1);
revisionnumber.extend(1);
ordernumber(total) := addlinescounter.ORDERNBR;
order_linenumber(total) := addlinescounter.LINENBR;
ordertype(total) := addlinescounter.ORDERTYPE;
originatingsystem(total) := addlinescounter.ORIGINATINGSYSTEM;
oracleimportdate(total) := addlinescounter.orderdate;
importstatus(total) := addlinescounter.IMPORT_STATUS;
extended_price(total) := addlinescounter.extendeprice;
quantity(total) := addlinescounter.qty;
revisionnumber(total) := addlinescounter.revisionnbr;
modelnumber(total) := addlinescounter.modelstring;
EXCEPTION WHEN OTHERS THEN
err_num := SQLCODE;
-- DBMS_OUTPUT.PUT_LINE(' Exception occured ' || err_num);
END;
BEGIN
symphonycompletiondate.extend(1);
SELECT TO_CHAR(new_time(file_ts(FILENAME),'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') symphonycompletiondate
into symphonycompletiondate(total)
FROM XML1_XACTS
WHERE
DIVISION = '4' AND
revisionnbr =1 and
ordernbr = ordernumber(total) and ordertype = ordertype(total)
and LINENBR = order_linenumber(total);
EXCEPTION WHEN OTHERS THEN
symphonycompletiondate(total) := 'NULL';
END;
BEGIN
oraclereceivedate.extend(1);
SELECT TO_CHAR(new_time(file_ts(FILENAME),'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') oraclereceiveddate
into oraclereceivedate(total)
FROM XML14_XACTS
WHERE
upper(systemname) = 'MFG203' AND
ordernbr = ordernumber(total) and
revisionnbr =1 and
LINENBR = order_linenumber(total);
EXCEPTION WHEN OTHERS THEN
oraclereceivedate(total) := 'NULL';
END;
END LOOP;
elsif UPPER(LinesType) = 'NET' then
DBMS_OUTPUT.PUT_LINE(' Exception occured ' );
FOR latestlinescounter IN latestlines
LOOP
total := total + 1;
BEGIN
ordernumber.extend(1);
order_linenumber.extend(1);
ordertype.extend(1);
originatingsystem.extend(1);
oracleimportdate.extend(1);
importstatus.extend(1);
extended_price.extend(1);
quantity.extend(1);
modelnumber.extend(1);
revisionnumber.extend(1);
ordernumber(total) := latestlinescounter.ORDERNBR;
order_linenumber(total) := latestlinescounter.LINENBR;
ordertype(total) := latestlinescounter.ORDERTYPE;
originatingsystem(total) := latestlinescounter.ORIGINATINGSYSTEM;
oracleimportdate(total) := latestlinescounter.orderdate;
importstatus(total) := latestlinescounter.IMPORT_STATUS;
extended_price(total) := latestlinescounter.extendeprice;
quantity(total) := latestlinescounter.qty;
revisionnumber(total) := latestlinescounter.revisionnbr;
modelnumber(total) := latestlinescounter.modelstring;
EXCEPTION WHEN OTHERS THEN
err_num := SQLCODE;
-- DBMS_OUTPUT.PUT_LINE(' Exception occured ' || err_num);
END;
BEGIN
symphonycompletiondate.extend(1);
SELECT TO_CHAR(new_time(file_ts(FILENAME),'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') symphonycompletiondate
into symphonycompletiondate(total)
FROM XML1_XACTS
WHERE
DIVISION = '4' AND
ordernbr = ordernumber(total) and ordertype = ordertype(total)
and LINENBR = order_linenumber(total)
and revisionnbr= revisionnumber(total);
EXCEPTION WHEN OTHERS THEN
symphonycompletiondate(total) := 'NULL';
END;
BEGIN
oraclereceivedate.extend(1);
SELECT TO_CHAR(new_time(file_ts(FILENAME),'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') oraclereceiveddate
into oraclereceivedate(total)
FROM XML14_XACTS
WHERE
upper(systemname) = 'MFG203' AND
ordernbr = ordernumber(total)
and LINENBR = order_linenumber(total)
and revisionnbr= revisionnumber(total);
EXCEPTION WHEN OTHERS THEN
oraclereceivedate(total) := 'NULL';
END;
END LOOP;
elsif UPPER(LinesType) = 'CHANGE' then
FOR cancellinescounter IN cancelorderdetails
LOOP
total := total + 1;
BEGIN
ordernumber.extend(1);
order_linenumber.extend(1);
ordertype.extend(1);
originatingsystem.extend(1);
oracleimportdate.extend(1);
importstatus.extend(1);
extended_price.extend(1);
quantity.extend(1);
modelnumber.extend(1);
revisionnumber.extend(1);
ordernumber(total) := cancellinescounter.ORDERNBR;
order_linenumber(total) := cancellinescounter.LINENBR;
ordertype(total) := cancellinescounter.ORDERTYPE;
originatingsystem(total) := cancellinescounter.ORIGINATINGSYSTEM;
oracleimportdate(total) := cancellinescounter.orderdate;
importstatus(total) := cancellinescounter.IMPORT_STATUS;
extended_price(total) := cancellinescounter.extendeprice;
quantity(total) := cancellinescounter.qty;
revisionnumber(total) := cancellinescounter.revisionnbr;
modelnumber(total) := cancellinescounter.modelstring;
EXCEPTION WHEN OTHERS THEN
err_num := SQLCODE;
-- DBMS_OUTPUT.PUT_LINE(' Exception occured ' || err_num);
END;
BEGIN
symphonycompletiondate.extend(1);
SELECT TO_CHAR(new_time(file_ts(FILENAME),'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') symphonycompletiondate
into symphonycompletiondate(total)
FROM XML1_XACTS
WHERE
DIVISION = '4' AND
revisionnbr = revisionnumber(total) and
ordernbr = ordernumber(total) and ordertype = ordertype(total)
and LINENBR = order_linenumber(total);
EXCEPTION WHEN OTHERS THEN
symphonycompletiondate(total) := 'NULL';
END;
BEGIN
oraclereceivedate.extend(1);
SELECT TO_CHAR(new_time(file_ts(FILENAME),'CDT','MST')+60/1440,'MM/DD/YYYY hh24:mi:ss') oraclereceiveddate
into oraclereceivedate(total)
FROM XML14_XACTS
WHERE
upper(systemname) = 'MFG203' AND
ordernbr = ordernumber(total) and
revisionnbr =revisionnumber(total) and
LINENBR = order_linenumber(total);
EXCEPTION WHEN OTHERS THEN
oraclereceivedate(total) := 'NULL';
END;
END LOOP;
end if;
exception
when others then
err_num := SQLCODE;
err_msg := '[GET_ORDER_DETAILS] procedure failed'||
chr(13)||chr(10)||
'With error: '||chr(13)||chr(10)||substr(SQLERRM,1,450);
end;
/PLSQL debugging is a feature of SQLDeveloper (free download from Oracle), you could step through your procedure and see what takes the time, do an explain plan on the query say how many rows are in the tables... and report back.
Turloch -
JZ0T3: Read operation timed out
Hi! I'm trying to solve this problem for a while and actually I couldnt find the cause of the problem.
For some reason, deep inside the code of my application that error happends when I execute some inserts on the same Sybase table (they could be performed concurrently). I said "deep inside the code" since if I test a similar code, but outside the application (that is, just executing the inserts in a stand alone java main) the problem can't be reproduced.
The connection is obtained normally as follows:
try {
Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
}catch (ClassNotFoundException e) {
System.out.println("Oops!");
Connection conn = DriverManager.getConnection(url,user,psw);
conn.setAutoCommit(true);
The driver been used is jconnect 4.5
Then, several inserts are performed:
String exampleQuery = "INSERT INTO SampleTable (id) VALUES ("1")\nSELECT @@IDENTITY";
PreparedStatement stmt = conn.prepareStatement(exampleQuery);
ResultSet rs = stmt.executeQuery();
if (rs.next())
System.out.println(rs.getInt(1));
Some of the query executions raise the following exception:
java.sql.SQLException: JZ006: Caught IOException: java.io.IOException: JZ0T3: Read operation timed out.
at com.sybase.jdbc2.jdbc.ErrorMessage.raiseError(ErrorMessage.java:485)
at com.sybase.jdbc2.tds.Tds.handleIOE(Tds.java:2961)
at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:1796)
at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:201)
at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:182)
at com.sybase.jdbc2.jdbc.SybStatement.queryLoop(SybStatement.java:1455)
at com.sybase.jdbc2.jdbc.SybStatement.executeQuery(SybStatement.java:1440)
at com.sybase.jdbc2.jdbc.SybPreparedStatement.executeQuery(SybPreparedStatement.java:70)
I've just found a workarround to solve this problem: synchronizing the execution of the query. That seems to avoid concurrent insertion.
The funny thing is: when I extract the code from the application and execute it in a stand alone java main, even stressing with multiple threads executing batch inserts in a for clause, the problem NEVER happends.
Any tip is welcome since I actually don't know what to do. Thanks a lot, I hope anyone replies!!
Bye!Hi Sean,
I informed the senior developer and she said she has emailed the Oracle regarding this issue. We are developing a website for a company who has purchased the Oracle CRM on demand. Is it mandatory for every one to create a service request? You can email me at [email protected] and I will contact you directly.
Thanks
Jay -
Hi gurus
I am trying to run a profitability report in production if the range is for one month it is working but if the range is for 1 year the report is timing out
can anyone suggest me what would be the problem please.Hi
It is performance related issue. Try out this
Using less and complex cell definitions if possible.
1. Avoid using too many nav. attr
2. Avoid RKF and CKF
3. Many chars in row.
By using T-codes ST03 or ST03N
Go to transaction ST03 > switch to expert mode > from left side menu > and there in system load history and distribution for a particular day > check query execution time.
/people/andreas.vogel/blog/2007/04/08/statistical-records-part-4-how-to-read-st03n-datasets-from-db-in-nw2004
/people/andreas.vogel/blog/2007/03/16/how-to-read-st03n-datasets-from-db
Try table rsddstats to get the statistics
Using cache memory will decrease the loading time of the report.
Run reporting agent at night and sending results to email. This will ensure use of OLAP cache. So later report execution will retrieve the result faster from the OLAP cache.
Also try
1. Use different parameters in ST03 to see the two important parameters aggregation ratio and records transferred to F/E to DB selected.
2. Use the program SAP_INFOCUBE_DESIGNS (Performance of BW infocubes) to see the aggregation ratio for the cube. If the cube does not appear in the list of this report, try to run RSRV checks on the cube and aggregates.
Go to SE38 > Run the program SAP_INFOCUBE_DESIGNS
It will shown dimension Vs Fact tables Size in percent.If you mean speed of queries on a cube as performance metric of cube,measure query runtime.
3. To check the performance of the aggregates,see the columns valuation and usage in aggregates.
Open the Aggregates...and observe VALUATION and USAGE columns.
"---" sign is the valuation of the aggregate. You can say -3 is the valuation of the aggregate design and usage. ++ means that its compression is good and access is also more (in effect, performance is good). If you check its compression ratio, it must be good. -- means the compression ratio is not so good and access is also not so good (performance is not so good).The more is the positives...more is useful the aggregate and more it satisfies the number of queries. The greater the number of minus signs, the worse the evaluation of the aggregate. The larger the number of plus signs, the better the evaluation of the aggregate.
if "-----" then it means it just an overhead. Aggregate can potentially be deleted and "+++++" means Aggregate is potentially very useful.
In valuation column,if there are more positive sign it means that the aggregate performance is good and it is useful to have this aggregate.But if it has more negative sign it means we need not better use that aggregate.
In usage column,we will come to know how far the aggregate has been used in query.
Thus we can check the performance of the aggregate.
Refer.
http://help.sap.com/saphelp_nw70/helpdata/en/b8/23813b310c4a0ee10000000a114084/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/60/f0fb411e255f24e10000000a1550b0/frameset.htm
performance ISSUE related to AGGREGATE
Note 356732 - Performance Tuning for Queries with Aggregates
Note 166433 - Options for finding aggregates (find optimal aggregates for an InfoCube)
4. Run your query in RSRT and run the query in the debug mode. Select "Display Aggregates Found" and "Do not use cache" in the debug mode. This will tell you if it hit any aggregates while running. If it does not show any aggregates, you might want to redesign your aggregates for the query.
Also your query performance can depend upon criteria and since you have given selection only on one infoprovider...just check if you are selecting huge amount of data in the report
Check for the query read mode in RSRT.(whether its A,X or H)..advisable read mode is X.
5. In BI 7 statistics need to be activated for ST03 and BI admin cockpit to work.
By implementing BW Statistics Business Content - you need to install, feed data and through ready made reports which for analysis.
http://help.sap.com/saphelp_nw70/helpdata/en/26/4bc0417951d117e10000000a155106/frameset.htm
/people/vikash.agrawal/blog/2006/04/17/query-performance-150-is-aggregates-the-way-out-for-me
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1955ba90-0201-0010-d3aa-8b2a4ef6bbb2
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
http://help.sap.com/saphelp_nw04/helpdata/en/c1/0dbf65e04311d286d6006008b32e84/frameset.htm
You can go to T-Code DB20 which gives you all the performance related information like
Partitions
Databases
Schemas
Buffer Pools
Tablespaces etc
use tool RSDDK_CHECK_AGGREGATE in se38 to check for the corrupt aggregates
If aggregates contain incorrect data, you must regenerate them.
202469 - Using aggregate check tool
Note 646402 - Programs for checking aggregates (as of BW 3.0B SP15)
You can find out whether an aggregate is usefull or useless you can find out through a proccess of checking the tables RSDDSTATAGGRDEF*
Run the query in RSRT with statistics execute and come back you will get STATUID... copy this and check in the table...
This gives you exactly which infoobjects it's hitting, if any one of the object is missing it's useless aggregate.
6
Check SE11 > table RSDDAGGRDIR . You can find the last callup in the table.
Generate Report in RSRT
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4c0ab590-0201-0010-bd9a-8332d8b4f09c
Business Intelligence Journal Improving Query Performance in Data Warehouses
http://www.tdwi.org/Publications/BIJournal/display.aspx?ID=7891
Achieving BI Query Performance Building Business Intelligence
http://www.dmreview.com/issues/20051001/1038109-1.html
Assign points if t helps
Cheers
SM -
Web intelligence Report timing out
Hi
We are using BO XI 2. Recently we have started facing an issue with some of our reports. The reports started failing after a database bounce. We are using Oracle Database. Before the bounce the reports used to be generated within 15 minutes. After the bounce the reports started timing out. Not sure what caused this issue. To eliminate problem with the datatbase we ran the query separately which ran in 15 minutes.
Can someone help us out on the sameAditya,
Option 1. see Page 197.
1. Stop Tomcat.
2. Open the server.xml for Tomcat.
On Windows, server.xml is located at: C:Program Files (x86)SAP BusinessObjectsTomcat6conf On UNIX server.xml is located at <CATALINA_HOME>/conf. The default value of <CATALI NA_HOME> is <INSTALLDIR>/bobje/tomcat55 3. Locate this section in the server.xml file:
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 > <!See proxy documentation for more information about using this.-->
<!--
<Connector port="8082"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false"
acceptCount="100" debug="0" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true"
Option 2. Find attached Admin document and see page 734-735 This section provides the command-line options that are specific to the Web Intelligence Processing Server.
The default path to the server on Windows is <INSTALLDIR>SAP BusinessObjects Business Intelligence platform 4.0win64_x64WIReportServer.exe.
Option 2..
In CMC Webi Intelligence Processing Server you can change the properties.
Web Intelligence Core Service
Use Configuration Template
Timeout Before Recycling (seconds):
Idle Document Timeout (seconds):
Server Polling Interval (seconds):
Maximum Documents per User:
Maximum Documents Before Recycling:
Allow Document Map Maximum Size Errors
Idle Connection Timeout (minutes):
Maximum Connections:
Enable Memory Analysis
Memory Lower Threshold (MB):
Memory Upper Threshold (MB):
Option 3.
http://busobj.wordpress.com/2010/01/14/how-to-set-various-web-intelligence-timeouts/
[BI4.0] Timeout settings
Option 4.
Change the time out/Query Execution time in Universe Designer - Query Properties - Web Intelligence Time properties in Infoview and change the Max Records Retrieval also.
Thanks,
Suresh
Maybe you are looking for
-
Rendered footage is in slowmotion
Hi there, I have a question and am kind of new to Premiere. For about 3 months now i have been editing footage, rendering it, and then exporting it without issues. I typically use 1920x1080 @48fps from a gopro with protunes on and camraw. In the p
-
We are using OWB repository 10.2.0.2.0 and OWB client 10.2.0.2.8. The Oracle version is 10 G (10.2.0.2.0). OWB is installed on Sun 64 bit server. As we use lookup in OWB mapping, We can use the lookup tables/source table to create a View as Join with
-
Java.lang.StackOverflowError
I'm having an odd problem with a simple application that runs on Tomcat web container. When the application (that uses iBATIS) is starting up and some configuration XML files are reading, the java.lang.StackOverflowErrorexception is thrown after mult
-
Strange trash that wont go away...
I've tried several things but dont understand why I keep getting this trash showing up. Even if all I do is restart the computer, I still shows up again. I've repaired permissions, repaired the disk drive... still shows up. the file is labeled ␀␀␀õ␀␀
-
I recently had a corrupt Catalogue that was keeping it from starting. I deleted the catalogue, but still had issues, so I unintsalled/reinstaleld the program. Current behavior is when I start the program using the link on my desktop (Adobe\Elements