Print Thread
Page 1 of 4 1 2 3 4
Long "Initializing..." delay running SQL queries in Rel 9
#41585 07/19/11 05:16 PM
Joined: Sep 2008
Posts: 143
Ireland
W
WexSoft Offline OP
Member
OP Offline
Member
W
Joined: Sep 2008
Posts: 143
Ireland
Hi Folks

I am using PSD 9.0.0.1600. I have noticed that every time I run a SQL query in a SQL Window, there is a long delay (about 8 seconds) before the query starts to run during which time "Initializing..." appears on the status line. This time is not included in the execution time.

Below is a small extract from a Debug.txt file I generated that illustrates the problem, and may hold the answer. You will notice that there is nothing between these 2 lines:

19-Jul-2011 18:04:01 InitStatistics ends
19-Jul-2011 18:04:09 NavigationBookmarks.EnableButtons(Rebuild)

So for those 8 seconds nothing is happening.

Any ideas?

Best regards

Billy


19-Jul-2011 18:04:01 SQLForm Initializing...
19-Jul-2011 18:04:01 SetConnected starts
19-Jul-2011 18:04:01 Already connected: check connection
19-Jul-2011 18:04:01 TOracleQuery $03711650 Start Query.Execute
SQL = select 'x' from dual
19-Jul-2011 18:04:01 TOracleQuery $03711650 End (1 record processed)
Duration = 0.015
19-Jul-2011 18:04:01 Using existing connection
19-Jul-2011 18:04:01 EnableOutput starts
19-Jul-2011 18:04:01 TOracleQuery PLSQLDevForm.EnableOutputQuery Start Query.Execute
SQL = begin
if :enable = 0 then
sys.dbms_output.disable;
else
sys.dbms_output.enable(:size);
end if;
end;
:ENABLE = 1
:SIZE = 100000
19-Jul-2011 18:04:01 TOracleQuery PLSQLDevForm.EnableOutputQuery End
Duration = 0
19-Jul-2011 18:04:01 EnableOutput done
19-Jul-2011 18:04:01 InitStatistics starts
19-Jul-2011 18:04:01 TOracleQuery $03711650 Start Query.Execute
SQL = select 'x' from dual
19-Jul-2011 18:04:01 TOracleQuery $03711650 End (1 record processed)
Duration = 0.015
19-Jul-2011 18:04:01 StartValues: StatQuery.ReadBuffer = 381
19-Jul-2011 18:04:01 StartValues: StatQuery.ReadBuffer set to 381
19-Jul-2011 18:04:01 TOracleQuery $03712410 Start Query.Execute
SQL = select value from v$sesstat where sid = :sid order by statistic#
:SID = 1034
19-Jul-2011 18:04:01 TOracleQuery $03712410 End (0 records processed)
Duration = 0.016
19-Jul-2011 18:04:01 InitStatistics ends
19-Jul-2011 18:04:09 NavigationBookmarks.EnableButtons(Rebuild)
19-Jul-2011 18:04:09 NavigationBookmarks: Backward=0, Forward=0
19-Jul-2011 18:04:09 Lock
19-Jul-2011 18:04:09 UnLock
19-Jul-2011 18:04:09 SQLForm Executing...
19-Jul-2011 18:04:09 Lock
19-Jul-2011 18:04:09 UnLock
19-Jul-2011 18:04:09 SQLForm Executing...
19-Jul-2011 18:04:09 TSQLThread SQLThread Suspend ended
19-Jul-2011 18:04:09 TOracleQuery Query Start Query.Execute
SQL = begin :id := sys.dbms_transaction.local_transaction_id; end;
:ID = Null
19-Jul-2011 18:04:09 TOracleQuery Query End
Duration = 0
19-Jul-2011 18:04:09 TOracleQuery $03711BD0 Start Query.Execute
SQL = SELECT * FROM tdif_file_stages WHERE fstg_fle_id=90539 ORDER BY fstg_id
19-Jul-2011 18:04:09 TOracleQuery $03711BD0 End (8 records processed)
Duration = 0.016
19-Jul-2011 18:04:09 TOracleQuery SQLForm_2.TestQuery Start Query.Describe
SQL = SELECT * FROM tdif_file_stages
19-Jul-2011 18:04:09 TOracleQuery SQLForm_2.TestQuery End
Duration = 0.016
19-Jul-2011 18:04:09 TOracleQuery Query Start Query.Execute
SQL = begin :id := sys.dbms_transaction.local_transaction_id; end;
:ID = Null
19-Jul-2011 18:04:09 TOracleQuery Query End
Duration = 0.016
19-Jul-2011 18:04:09 TSQLThread SQLThread Postmessage
19-Jul-2011 18:04:09 TSQLThread SQLThread Suspend
19-Jul-2011 18:04:09 TSQLForm.ThreadFinished
19-Jul-2011 18:04:09 TSQLForm.ThreadFinished: SQLThread.Suspended
19-Jul-2011 18:04:09 SQLForm 8 rows selected in 0.078 seconds
19-Jul-2011 18:04:09 Lock
19-Jul-2011 18:04:09 UnLock
19-Jul-2011 18:04:09 EndValues: StatQuery.ReadBuffer = 381
19-Jul-2011 18:04:09 EndValues: StatQuery.ReadBuffer set to 381
19-Jul-2011 18:04:09 TOracleQuery $03712410 Start Query.Execute
SQL = select value from v$sesstat where sid = :sid order by statistic#
:SID = 1034
19-Jul-2011 18:04:09 TOracleQuery $03712410 End (0 records processed)
Duration = 0.015
19-Jul-2011 18:04:09 NavigationBookmarks.EnableButtons(Rebuild)
19-Jul-2011 18:04:09 NavigationBookmarks: Backward=0, Forward=0
19-Jul-2011 18:04:09 TOracleQuery $037110D0 Start Query.Execute
SQL = begin
sys.dbms_output.get_line(line => :line, status => :status);
end;
:LINE = Null
:STATUS = Null
19-Jul-2011 18:04:09 TOracleQuery $037110D0 End
Duration = 0
19-Jul-2011 18:04:09 SQLForm 8 rows selected in 0.078 seconds

Re: Long "Initializing..." delay running SQL queries in Rel 9
WexSoft #41587 07/19/11 05:40 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
We'll check out what's happening between these 2 log entries.


Marco Kalter
Allround Automations
Re: Long "Initializing..." delay running SQL queries in Rel 9
Marco Kalter #41632 07/22/11 12:00 PM
Joined: Sep 2008
Posts: 143
Ireland
W
WexSoft Offline OP
Member
OP Offline
Member
W
Joined: Sep 2008
Posts: 143
Ireland
Hi Marco

I should point out that this "initializing..." delay did not just appear in Release 9, it has been there for a few months in Release 8 although I could not tell you exactly when it appeared.

I also have tried using the free Oracle SQL Developer IDE against the same database and there is no delay in running SQL queries, so the problem appears to be with PL/SQL Developer.

Best regards

Billy

Re: Long "Initializing..." delay running SQL queries in Rel 9
WexSoft #41637 07/23/11 09:43 AM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
Okay, thanks for the info.


Marco Kalter
Allround Automations
Re: Long "Initializing..." delay running SQL queries in Rel 9
Marco Kalter #41653 07/26/11 10:50 AM
Joined: Sep 2008
Posts: 143
Ireland
W
WexSoft Offline OP
Member
OP Offline
Member
W
Joined: Sep 2008
Posts: 143
Ireland
Hi Marco

Another update on this, because it is becoming more and more frustrating. I noticed that if I select the SQL to be executed and click the Execute button, there is no delay, so the 8 second delay seems to be related to the AutoSelect Statement functionality where PSD is trying to determine what SQL statement to execute.

Following on this train of thought, I noticed that if I open a new SQL window and put a single SELECT statement in it and execute, there is no delay. Thus the delay I have been noticing seems to be caused by the size of the SQL script file in which I am executing individual SQL commands - in my case this file is currently 14,722 lines long, as it is a project SQL file that I keep adding to as the project develops.

Is it possible to stop the AutoSelect functionality from caring about the size of the file in which it is being asked to autoselect a SQL statement?

Best regards

Billy



Re: Long "Initializing..." delay running SQL queries in Rel 9
WexSoft #41657 07/26/11 12:46 PM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
We have not yet been able to reproduce this, nor have we had any similar problem reports. We'll add some diagnostics and will send you a test version shortly.


Marco Kalter
Allround Automations
Re: Long "Initializing..." delay running SQL queries in Rel 9
Marco Kalter #41660 07/26/11 01:02 PM
Joined: Sep 2008
Posts: 143
Ireland
W
WexSoft Offline OP
Member
OP Offline
Member
W
Joined: Sep 2008
Posts: 143
Ireland
Thanks Marco

Re: Long "Initializing..." delay running SQL queries in Rel 9
WexSoft #41662 07/26/11 04:35 PM
Joined: Feb 2005
Posts: 59
Latvia
K
Member
Offline
Member
K
Joined: Feb 2005
Posts: 59
Latvia
Hi!

I have similar issue, not the same, but maybe related. I'm using the latest version 9.0.0.1601.

I have really annoying delay of approx 10 seconds when doing any query which has many columns. When I select a query and press execute it kind of executes the query, in the result list I can see how many rows will be selected (it seems plsqldev is reserving the place and shows only first column of grid with select button where I can select whole row), it shows executing and after 10 secs result appears on the screen, while it tries to show the results IDE is completely frozen. When I execute the same query again it shows results immediately, even if I change where clause it selects that instantly. I observed increased network traffic when this happens. That particular table has 244 columns.
It seems that there is a problem getting description for result set, I tried to switch off the "Display dictionary info in result set" and this doesn't help.
This is extremely annoying frown

There is a test case, I ran 2 queries:
1. select sysdate from dual;
2. SELECT * FROM ap_invoice_distributions_all t WHERE invoice_distribution_id IN (-1,-2)
Code
2011.07.26. 19:29:33  Lock
2011.07.26. 19:29:33  UnLock
2011.07.26. 19:29:33  SQLForm Executing...
2011.07.26. 19:29:33  Lock
2011.07.26. 19:29:33  UnLock
2011.07.26. 19:29:33  SQLForm Executing...
2011.07.26. 19:29:33  TSQLThread SQLThread Suspend ended
2011.07.26. 19:29:34  TSQLThread SQLThread Postmessage
2011.07.26. 19:29:34  TSQLForm.ThreadFinished
2011.07.26. 19:29:34  TSQLThread SQLThread Suspend
2011.07.26. 19:29:34  TSQLForm.ThreadFinished: SQLThread.Suspended
2011.07.26. 19:29:34  SQLForm 1 row selected in 0,813 seconds
2011.07.26. 19:29:34  Lock
2011.07.26. 19:29:34  UnLock
2011.07.26. 19:29:34  EndValues: StatQuery.ReadBuffer = 606
2011.07.26. 19:29:34  EndValues: StatQuery.ReadBuffer set to 606
2011.07.26. 19:29:34  NavigationBookmarks.EnableButtons(Rebuild)
2011.07.26. 19:29:34  NavigationBookmarks: Backward=0, Forward=0
2011.07.26. 19:29:34  SQLForm 1 row selected in 0,813 seconds
2011.07.26. 19:29:36  SQLForm Initializing...
2011.07.26. 19:29:36  SetConnected starts
2011.07.26. 19:29:36  Already connected: check connection
2011.07.26. 19:29:36  Using existing connection
2011.07.26. 19:29:36  EnableOutput starts
2011.07.26. 19:29:36  EnableOutput done
2011.07.26. 19:29:36  InitStatistics starts
2011.07.26. 19:29:36  StartValues: StatQuery.ReadBuffer = 606
2011.07.26. 19:29:36  StartValues: StatQuery.ReadBuffer set to 606
2011.07.26. 19:29:36  InitStatistics ends
2011.07.26. 19:29:36  NavigationBookmarks.EnableButtons(Rebuild)
2011.07.26. 19:29:36  NavigationBookmarks: Backward=0, Forward=0
2011.07.26. 19:29:36  Lock
2011.07.26. 19:29:36  UnLock
2011.07.26. 19:29:36  SQLForm Executing...
2011.07.26. 19:29:36  Lock
2011.07.26. 19:29:36  UnLock
2011.07.26. 19:29:36  SQLForm Executing...
2011.07.26. 19:29:36  TSQLThread SQLThread Suspend ended
2011.07.26. 19:29:47  TSQLThread SQLThread Postmessage
2011.07.26. 19:29:47  TSQLThread SQLThread Suspend
2011.07.26. 19:29:47  TSQLForm.ThreadFinished
2011.07.26. 19:29:47  TSQLForm.ThreadFinished: SQLThread.Suspended
2011.07.26. 19:29:47  SQLForm 1 row selected in 10,797 seconds
2011.07.26. 19:29:47  Lock
2011.07.26. 19:29:47  UnLock
2011.07.26. 19:29:47  EndValues: StatQuery.ReadBuffer = 606
2011.07.26. 19:29:47  EndValues: StatQuery.ReadBuffer set to 606
2011.07.26. 19:29:47  NavigationBookmarks.EnableButtons(Rebuild)
2011.07.26. 19:29:47  NavigationBookmarks: Backward=0, Forward=0
2011.07.26. 19:29:47  SQLForm 1 row selected in 10,797 seconds

I remember there was similar issue with betas as well. Please fix this fast as there is no workaround this time frown

regards
Kirurgs


regards
Kirurgs
Re: Long "Initializing..." delay running SQL queries in Rel 9
Kirurgs #41671 07/27/11 03:05 PM
Joined: Feb 2005
Posts: 59
Latvia
K
Member
Offline
Member
K
Joined: Feb 2005
Posts: 59
Latvia
Hi!

Additional info.
I enabled DebugSQL as well and I see where the problem is. In debug.txt there is this kind of text repeated for 489 times after I run second query:
Code
2011.07.27. 17:57:24  TOracleQuery $0196E4B0 Start Query.Execute
                      SQL = select value from v$nls_parameters where parameter = 'NLS_LENGTH_SEMANTICS'
2011.07.27. 17:57:24  TOracleQuery $0196E4B0 End  (1 record processed)
                      Duration = 0,031
2011.07.27. 17:57:24  TOracleQuery $0196EA30 Start Query.Next for up to 1 record
2011.07.27. 17:57:24  TOracleQuery $0196EA30 End  (1 record processed)
                      Duration = 0,016

I think that's the cause. Please investigate and thank You in advance.

P.S. I can send You debug.txt as well, please post an address or site where to upload.

regards
Kirurgs


regards
Kirurgs
Re: Long "Initializing..." delay running SQL queries in Rel 9
Kirurgs #41674 07/27/11 05:44 PM
Joined: Feb 2006
Posts: 619
Sao Paulo, Brazil
G
Member
Offline
Member
G
Joined: Feb 2006
Posts: 619
Sao Paulo, Brazil
You can send it to support@allroundautomations.com. It may help if you mention this topic in your message.

Regards,
Gustavo


There are 10 types of people: those who know binary and those who don't.
Page 1 of 4 1 2 3 4

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.166s Queries: 16 (0.104s) Memory: 2.5811 MB (Peak: 3.0378 MB) Data Comp: Off Server Time: 2024-04-29 11:20:34 UTC
Valid HTML 5 and Valid CSS