Print Thread
Problem with Explain Plan
#64701 07/06/23 04:09 PM
Joined: Jan 2009
Posts: 47
Montreal, Qc, Canada
MartinF Offline OP
Member
OP Offline
Member
Joined: Jan 2009
Posts: 47
Montreal, Qc, Canada
Hi,
we are using PL/SQL Developer version 15.0.4.2064 and recently one of our developer got a strange problem with explain plan. I was able to reproduce it.

1- Create a new dummy table:
create table test_date(col1 number, col2 date);

2- In SQL Window run the query
select col1,col2 from test_date;

Now select the query and press F5 to execute the explain plan. This is working correctly

3- In SQL Window run the query
select to_char(col2,'YYYYMMDD') from test_date;

Now select the query and press F5 to execute the explain plan. We are getting a message "Plan table does not exist, create it?" If we answer No the explain plan is not executed and if we answer yes we are getting an error message "Error creating plan table: Not logged on"

4- Another test, in SQL Window run the query
select to_char(trunc(col2),'YYYYMMDD') from test_date;

Now select the query and press F5 to execute the explain plan. This is also working correctly


Can you confirm if this is a bug or if I am missing something.

Regards

Martin

Re: Problem with Explain Plan
MartinF #64702 07/07/23 08:56 AM
Joined: Aug 1999
Posts: 22,206
Member
Offline
Member
Joined: Aug 1999
Posts: 22,206
This seems to work fine when I try it. Maybe this is an environment problem. Can you start PL/SQL Developer without connecting, go to Help > Support Info and send me the text from the "Info" tab page?


Marco Kalter
Allround Automations
Re: Problem with Explain Plan
MartinF #64703 07/07/23 09:48 PM
Joined: Jan 2006
Posts: 39
J
Member
Offline
Member
J
Joined: Jan 2006
Posts: 39
I tried it using the same PL/SQL Developer version 15.0.4.2064 against an older Oracle 12.1.0.2.0 DB. I did NOT encounter any issue. I used the Command window to run the Create statement. I used a single SQL Window to run both statements and I left the first Explain Plan window open.


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.091s Queries: 15 (0.044s) Memory: 2.5021 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-04-29 18:26:10 UTC
Valid HTML 5 and Valid CSS