Quantcast
Channel: Toad for Oracle Forum - Recent Threads
Viewing all 4385 articles
Browse latest View live

RE: Explain plan bug

$
0
0

Oh, I understand what you mean now.  

If something goes wrong in the explain plan (for example, no privileges or typo in query. missing explain plan table), then Oracle returns an error line and position.   Toad will take that line/position data and select the nearest word.   So in your case, I'm not sure what the query error is, but I believe the line/position data is 1/1, so that's why the first word is becoming selected.

Next time the error happens, look down in Toad's output window (I see you have it minimized) to see if there is an ORA-##### error.     If you can repeat it, turn on spool SQL and that should also give you more information about what is going on.


RE: Explain plan bug

$
0
0

when this "highlight" starts, i can run sql with no ora, but whenever i tried Explain plan, toad highlight the first word.

So in this case obviously it would be an ORA...but i cannot preven toad from highlighting ...this is the problem...

TOAD itself, because of some reason highlight first word.

and gain, after i edit the query ...all is fine until next random situation.

RE: Explain plan bug

$
0
0

All I can tell you is that there is some ORA-##### error which happens first, then Toad tries to highlight the error position.   Since the first word is being highlighted, then we are probably getting 0,0 as the error position (meaning the SQL is OK, which agrees with what you said about the SQL running OK).   So maybe something is going on with the plan table.   Maybe it's locked or something?   I'm just guessing.

See if you can capture the initial problem and ORA-#### with spool SQL.   I think we'll have our answer if you can catch the SQL.

RE: Explain plan bug

$
0
0

Ok. Now I understand you
:-)
will return info ...100%

Explain plan bug

$
0
0

Toad 12.9.0.71 (but saw this problem before as well).

  1. Start query (F9) in editor (no selection at all, sql determined with ";"
  2. while SQL is running (sometimes saw that even SQL finished), I click on the plan button
  3. Somehow toad select first word and report an error

  • from that moment whenever I try to get plan-error is the same
  • then I edited the query and put all in one line and "Explain plan" works again

but couldn't reproduce this bug all the time.

Brg

Damir

RE: Licensing rules for "Toad for Oracle"

$
0
0
Hi Liss,
 
Many thanks for your assistance in relation to TOAD licensing.
 
I just have one final question which I hope you could help me with.
 
Could you also confirm the standard license metric for TOAD – per user?  Per device? If per seat, what is the standard definition of a “seat”?
 
Any help with this would be greatly appreciated.
 
Regards
 


 

RE: Explain plan bug

$
0
0

db is 12.1.0.2, Toad 12.9.0.71 x64, Win 7 Pro (all 64 bit)

Query:

SELECT /*+ NO_CPU_COSTING */
       LISTAGG('Invalid DB job: ' || job.job_name || '; DB=FMS; SCHEMA=' || rd.OWNER || '; WHAT=' || job.JOB_ACTION || '; (failures=' || TO_CHAR(job.failure_count) || ', broken=' || DECODE(job.state, 'BROKEN', 'Y', 'N') || ')' || CHR(13) || CHR(10)) WITHIN GROUP (ORDER BY job.job_name) alarm
  FROM sys.user_schedul_job_run_details_x rd,
       sys.user_scheduler_jobs_x job
 WHERE 1 = 1
   AND job.job_name = rd.JOB_NAME
   AND rd.STATUS <> 'SUCCEEDED'
   AND rd.LOG_ID = (SELECT MAX(log_id)
                      FROM user_scheduler_job_run_details
                     WHERE job.job_name = job_name)
   AND (0 < job.failure_count - UID * 0
        AND 'DISABLED' <> job.state
         OR 'BROKEN' = job.state);

11:44:09 Q383211@FMST>explain plan for                                                                                                                                                                  
11:44:14   2  SELECT /*+ NO_CPU_COSTING */                                                                                                                                                              
11:44:16   3         LISTAGG('Invalid DB job: ' || job.job_name || '; DB=FMS; SCHEMA=' || rd.OWNER || '; WHAT=' || job.JOB_ACTION || '; (failures=' || TO_CHAR(job.failure_count) || ', broken=' || DECODE(job.state, 'BROKEN', 'Y', 'N') || ')' || CHR(13) || CHR(10)) WITHIN GROUP (ORDER BY job.job_name) alarm                                                                                              
11:44:16   4    FROM sys.user_schedul_job_run_details_x rd,                                                                                                                                             
11:44:16   5         sys.user_scheduler_jobs_x job                                                                                                                                                      
11:44:16   6   WHERE 1 = 1                                                                                                                                                                              
11:44:16   7     AND job.job_name = rd.JOB_NAME                                                                                                                                                         
11:44:16   8     AND rd.STATUS <> 'SUCCEEDED'                                                                                                                                                           
11:44:16   9     AND rd.LOG_ID = (SELECT MAX(log_id)                                                                                                                                                    
11:44:16  10                        FROM user_scheduler_job_run_details                                                                                                                                 
11:44:16  11                       WHERE job.job_name = job_name)                                                                                                                                       
11:44:16  12     AND (0 < job.failure_count - UID * 0                                                                                                                                                   
11:44:16  13          AND 'DISABLED' <> job.state                                                                                                                                                       
11:44:16  14           OR 'BROKEN' = job.state);                                                                                                                                                        
                                                                                                                                                                                                        
Explained.                                                                                                                                                                                              
                                                                                                                                                                                                        
Elapsed: 00:00:00.32                                                                                                                                                                                    
11:44:18 Q383211@FMST>SELECT * FROM table(DBMS_XPLAN.DISPLAY_CURSOR(null,null,'ALLSTATS LAST'));                                                                                                        
                                                                                                                                                                                                        
PLAN_TABLE_OUTPUT                                                                                                                                                                                       
----------------------------------------------------------------------------------------------------------------------------------------------------------------                                        
SQL_ID  14dvpmg2f3bzt, child number 0                                                                                                                                                                   
                                                                                                                                                                                                        
explain plan for SELECT /*+ NO_CPU_COSTING */        LISTAGG('Invalid                                                                                                                                   
DB job: ' || job.job_name || '; DB=FMS; SCHEMA=' || rd.OWNER || ';                                                                                                                                      
WHAT=' || job.JOB_ACTION || '; (failures=' ||                                                                                                                                                           
TO_CHAR(job.failure_count) || ', broken=' || DECODE(job.state,                                                                                                                                          
'BROKEN', 'Y', 'N') || ')' || CHR(13) || CHR(10)) WITHIN GROUP (ORDER                                                                                                                                   
BY job.job_name) alarm   FROM sys.user_schedul_job_run_details_x rd,                                                                                                                                    
    sys.user_scheduler_jobs_x job  WHERE 1 = 1    AND job.job_name =                                                                                                                                    
rd.JOB_NAME    AND rd.STATUS <> 'SUCCEEDED'    AND rd.LOG_ID = (SELECT                                                                                                                                  
MAX(log_id)                       FROM user_scheduler_job_run_details                                                                                                                                   
                   WHERE job.job_name = job_name)    AND (0 <                                                                                                                                           
job.failure_count - UID * 0         AND 'DISABLED' <> job.state                                                                                                                                         
 OR 'BROKEN' = job.state)                                                                                                                                                                               
                                                                                                                                                                                                        
NOTE: cannot fetch plan for SQL_ID: 14dvpmg2f3bzt, CHILD_NUMBER: 0                                                                                                                                      
      Please verify value of SQL_ID and CHILD_NUMBER;                                                                                                                                                   
      It could also be that the plan is no longer in cursor cache (check v$sql_plan)                                                                                                                    
                                                                                                                                                                                                        
                                                                                                                                                                                                        
19 rows selected.                                                                                                                                                                                       
                                                                                                                                                                                                        
Elapsed: 00:00:00.12                                                                                                                                                                                    
11:44:54 Q383211@FMST>

 

Where:

SET DEFINE OFF;
PROMPT View USER_SCHEDUL_JOB_RUN_DETAILS_X;
--
-- USER_SCHEDUL_JOB_RUN_DETAILS_X  (View)
--

CREATE OR REPLACE FORCE VIEW SYS.USER_SCHEDUL_JOB_RUN_DETAILS_X
(
  LOG_ID,
  LOG_DATE,
  OWNER,
  JOB_NAME,
  JOB_SUBNAME,
  STATUS,
  ERROR#,
  REQ_START_DATE,
  ACTUAL_START_DATE,
  RUN_DURATION,
  INSTANCE_ID,
  SESSION_ID,
  SLAVE_PID,
  CPU_USED,
  CREDENTIAL_OWNER,
  CREDENTIAL_NAME,
  DESTINATION_OWNER,
  DESTINATION,
  ADDITIONAL_INFO,
  ERRORS,
  OUTPUT,
  BINARY_ERRORS,
  BINARY_OUTPUT
)
  BEQUEATH DEFINER
AS
  SELECT "LOG_ID",
         "LOG_DATE",
         "OWNER",
         "JOB_NAME",
         "JOB_SUBNAME",
         "STATUS",
         "ERROR#",
         "REQ_START_DATE",
         "ACTUAL_START_DATE",
         "RUN_DURATION",
         "INSTANCE_ID",
         "SESSION_ID",
         "SLAVE_PID",
         "CPU_USED",
         "CREDENTIAL_OWNER",
         "CREDENTIAL_NAME",
         "DESTINATION_OWNER",
         "DESTINATION",
         "ADDITIONAL_INFO",
         "ERRORS",
         "OUTPUT",
         "BINARY_ERRORS",
         "BINARY_OUTPUT"
    FROM dba_scheduler_job_run_details
   WHERE OWNER = 'A1_FAS'
/


Prompt Grants on VIEW USER_SCHEDUL_JOB_RUN_DETAILS_X TO A1_FAS to A1_FAS;
GRANT SELECT ON SYS.USER_SCHEDUL_JOB_RUN_DETAILS_X TO A1_FAS
/

 

and

CREATE OR REPLACE FORCE VIEW SYS.USER_SCHEDULER_JOBS_X
(
  OWNER,
  JOB_NAME,
  JOB_SUBNAME,
  JOB_STYLE,
  JOB_CREATOR,
  CLIENT_ID,
  GLOBAL_UID,
  PROGRAM_OWNER,
  PROGRAM_NAME,
  JOB_TYPE,
  JOB_ACTION,
  NUMBER_OF_ARGUMENTS,
  SCHEDULE_OWNER,
  SCHEDULE_NAME,
  SCHEDULE_TYPE,
  START_DATE,
  REPEAT_INTERVAL,
  EVENT_QUEUE_OWNER,
  EVENT_QUEUE_NAME,
  EVENT_QUEUE_AGENT,
  EVENT_CONDITION,
  EVENT_RULE,
  FILE_WATCHER_OWNER,
  FILE_WATCHER_NAME,
  END_DATE,
  JOB_CLASS,
  ENABLED,
  AUTO_DROP,
  RESTART_ON_RECOVERY,
  RESTART_ON_FAILURE,
  STATE,
  JOB_PRIORITY,
  RUN_COUNT,
  MAX_RUNS,
  FAILURE_COUNT,
  MAX_FAILURES,
  RETRY_COUNT,
  LAST_START_DATE,
  LAST_RUN_DURATION,
  NEXT_RUN_DATE,
  SCHEDULE_LIMIT,
  MAX_RUN_DURATION,
  LOGGING_LEVEL,
  STORE_OUTPUT,
  STOP_ON_WINDOW_CLOSE,
  INSTANCE_STICKINESS,
  RAISE_EVENTS,
  SYSTEM,
  JOB_WEIGHT,
  NLS_ENV,
  SOURCE,
  NUMBER_OF_DESTINATIONS,
  DESTINATION_OWNER,
  DESTINATION,
  CREDENTIAL_OWNER,
  CREDENTIAL_NAME,
  INSTANCE_ID,
  DEFERRED_DROP,
  ALLOW_RUNS_IN_RESTRICTED_MODE,
  COMMENTS,
  FLAGS,
  RESTARTABLE,
  CONNECT_CREDENTIAL_OWNER,
  CONNECT_CREDENTIAL_NAME
)
  BEQUEATH DEFINER
AS
  SELECT "OWNER",
         "JOB_NAME",
         "JOB_SUBNAME",
         "JOB_STYLE",
         "JOB_CREATOR",
         "CLIENT_ID",
         "GLOBAL_UID",
         "PROGRAM_OWNER",
         "PROGRAM_NAME",
         "JOB_TYPE",
         "JOB_ACTION",
         "NUMBER_OF_ARGUMENTS",
         "SCHEDULE_OWNER",
         "SCHEDULE_NAME",
         "SCHEDULE_TYPE",
         "START_DATE",
         "REPEAT_INTERVAL",
         "EVENT_QUEUE_OWNER",
         "EVENT_QUEUE_NAME",
         "EVENT_QUEUE_AGENT",
         "EVENT_CONDITION",
         "EVENT_RULE",
         "FILE_WATCHER_OWNER",
         "FILE_WATCHER_NAME",
         "END_DATE",
         "JOB_CLASS",
         "ENABLED",
         "AUTO_DROP",
         "RESTART_ON_RECOVERY",
         "RESTART_ON_FAILURE",
         "STATE",
         "JOB_PRIORITY",
         "RUN_COUNT",
         "MAX_RUNS",
         "FAILURE_COUNT",
         "MAX_FAILURES",
         "RETRY_COUNT",
         "LAST_START_DATE",
         "LAST_RUN_DURATION",
         "NEXT_RUN_DATE",
         "SCHEDULE_LIMIT",
         "MAX_RUN_DURATION",
         "LOGGING_LEVEL",
         "STORE_OUTPUT",
         "STOP_ON_WINDOW_CLOSE",
         "INSTANCE_STICKINESS",
         "RAISE_EVENTS",
         "SYSTEM",
         "JOB_WEIGHT",
         "NLS_ENV",
         "SOURCE",
         "NUMBER_OF_DESTINATIONS",
         "DESTINATION_OWNER",
         "DESTINATION",
         "CREDENTIAL_OWNER",
         "CREDENTIAL_NAME",
         "INSTANCE_ID",
         "DEFERRED_DROP",
         "ALLOW_RUNS_IN_RESTRICTED_MODE",
         "COMMENTS",
         "FLAGS",
         "RESTARTABLE",
         "CONNECT_CREDENTIAL_OWNER",
         "CONNECT_CREDENTIAL_NAME"
    FROM dba_scheduler_jobs
   WHERE OWNER = 'A1_FAS'
/


Prompt Grants on VIEW USER_SCHEDULER_JOBS_X TO A1_FAS to A1_FAS;
GRANT SELECT ON SYS.USER_SCHEDULER_JOBS_X TO A1_FAS
/

Those two views solved the problem with "ORA-01039: insufficient privileges on underlying objects of the view" on original user_xxx views.

 

So this looks ok, but in Toad I get another error:


RE: Explain plan bug

$
0
0

This seems like a privilege problem.

When I log in as SYS and create these views, I can do an explain on the query.   If I then grant them to some other user and log in as that user, then try the explain plan, I get "ORA-01039 insufficient privileges on underlying objects of the view" and the USER_SCHEDULER_JOBS_X view becomes highlighted.    If I then do another explain plan, without changing the hightlights, I get "ORA-00905 missing keyword".     The reason for the missing keyword error is that since USER_SCHEDULER_JOBS_X in the query is highlighted, Toad assumes that part is a subquery that you want to explain, so it sends this to ORacle:

explain plan set statement_id='Admin:091616075130' into SYS.PLAN_TABLE$ For
user_scheduler_jobs_x;
Error: ORA-00905: missing keyword

and you can see why that would give the missing keyword error.


RE: TOAD FREEWARE VERSION 12.9

$
0
0

The Direct Connection problem should be fixed in 12.10, which will be released soon.

I'm not sure about the Editor problem, but make sure it ends with a semicolon after the final END and a slash on a new line after that.  

RE: TOAD FREEWARE VERSION 12.9

$
0
0
When I make  a procedure/function changes using version 12.8, it´s work fine.
 
I tried the same operation using version 12.9 and one message is displayed (invalid character) and I cant compile. Then, I remove blank line on the beginning of procedure/function and the message disappear.
 
 
De: John Dorlon [mailto:bounce-jdorlon@toadworld.com]
Enviada em: sexta-feira, 16 de setembro de 2016 10:52
Para: toadoracle@toadworld.com
Assunto: RE: [Toad for Oracle - Discussion Forum] TOAD FREEWARE VERSION 12.9
 
Reply by John Dorlon

The Direct Connection problem should be fixed in 12.10, which will be released soon.

I'm not sure about the Editor problem, but make sure it ends with a semicolon after the final END and a slash on a new line after that.  

To reply, please reply-all to this email.

Stop receiving emails on this subject.
Or Unsubscribe from Toad for Oracle Forum notifications altogether.
Toad for Oracle - Discussion Forum

Flag this post as spam/abuse.

RE: TOAD FREEWARE VERSION 12.9

$
0
0

There's a new option to treat blank line as statement terminator. Disable the option on the "Execute/Compile" page in Options.

Can you post sample PL/SQL that reproduces it? PL/SQL should be exempt from the option, but there have been some cases that have come up as you describe. We'd like to fix them so an example would be much appreciated.

Thanks,

Michael

RE: TOAD FREEWARE VERSION 12.9

$
0
0
I had to remove all blank lines in my scripts from 12.8 to 12.9 also.  Pain!
 
Mark Fringer
Nokia (ALU) Core
708-240-7598  -  LYNC Number
815-715-8048  - Cell Number
 
 
This email and any files transmitted with it are AT&T property, are
confidential, and are intended solely for the use of the individual or
entity to whom this email is addressed.  If you are not one of the named
recipient(s) or otherwise have reason to believe that you have received
this message in error, please notify the sender and delete this message
immediately from your computer.  Any other use, retention,
dissemination, forwarding, printing or copying of this email is strictly
prohibited.
 

RE: TOAD FREEWARE VERSION 12.9

$
0
0

The option noted will resolve it if unchecked. Generally speaking the experience should be nearly seamless for most users upgrading to 12.9. However, I have seen some sample SQL that contains blank lines within a single statement. Users coding in this style will need to either code differently or uncheck that option. If blank lines in PL/SQL are creating problems then this is a bug. Please report cases here along with a code sample that demonstrates the issue.

Thanks,

Michael

RE: TOAD FREEWARE VERSION 12.9

$
0
0
Ok. I have a meeting now. I will send to you later..
 
De: Michael Staszewski [mailto:bounce-mstaszew@toadworld.com]
Enviada em: sexta-feira, 16 de setembro de 2016 11:12
Para: toadoracle@toadworld.com
Assunto: RE: [Toad for Oracle - Discussion Forum] TOAD FREEWARE VERSION 12.9
 
Reply by Michael Staszewski

There's a new option to treat blank line as statement terminator. Disable the option on the "Execute/Compile" page in Options.

Can you post sample PL/SQL that reproduces it? PL/SQL should be exempt from the option, but there have been some cases that have come up as you describe. We'd like to fix them so an example would be much appreciated.

Thanks,

Michael

To reply, please reply-all to this email.

Stop receiving emails on this subject.
Or Unsubscribe from Toad for Oracle Forum notifications altogether.
Toad for Oracle - Discussion Forum

Flag this post as spam/abuse.

TOAD FREEWARE VERSION 12.9

$
0
0
We found two problems in this new version:
- In the connection. If you choive DIRECT, the options not save correctly. It save like TNS and with service name (if SID is not equal SERVICE, one error occurs).
- If you need change any procedure/function using editor. If the procedure/function have lines empty, one message is displayed(invalid caracter). It is necessary delete some empty lines.

RE: Licensing rules for "Toad for Oracle"

$
0
0

Hi Neil,


For this question, you should probably talk to our licensing department or your local sales rep via the links Greg provided above.  Toad for Oracle can be licensed a number of different ways.  The default is on a per seat basis; however your local sales rep can give you information on all the optional licensing methods.

Thanks,

-John

Licensing rules for "Toad for Oracle"

$
0
0

Hi All,

I really need help with this as i don't have much experience with this product

Could you share standard publisher licensing rules for "TOAD for Oracle"? Is it possibly a component of other products?  Perhaps some are included as part of TOAD FOR ORACLE PROFESSIONAL EDITION or TOAD FOR ORACLE BASE EDITION or TOAD FOR ORACLE DB ADMIN MODULE

Specifically, I’m also trying to understand the differences across the following:

  • Toad for Oracle
  • Toad for SQL Server
  • Toad for Data Analysts
  • Toad Data Modeler
  • Toad for MySQL

So any help would be fantastic.

Regards 

RE: TOAD FREEWARE VERSION 12.9

$
0
0
Dear Michael
 
I unckeck de option above and now the editor work fine!
 
Thanks for your help.
 
I will wait for the new version 12.10
 
Adalberto
 
De: Michael Staszewski [mailto:bounce-mstaszew@toadworld.com]
Enviada em: sexta-feira, 16 de setembro de 2016 11:12
Para: toadoracle@toadworld.com
Assunto: RE: [Toad for Oracle - Discussion Forum] TOAD FREEWARE VERSION 12.9
 
Reply by Michael Staszewski

There's a new option to treat blank line as statement terminator. Disable the option on the "Execute/Compile" page in Options.

Can you post sample PL/SQL that reproduces it? PL/SQL should be exempt from the option, but there have been some cases that have come up as you describe. We'd like to fix them so an example would be much appreciated.

Thanks,

Michael

To reply, please reply-all to this email.

Stop receiving emails on this subject.
Or Unsubscribe from Toad for Oracle Forum notifications altogether.
Toad for Oracle - Discussion Forum

Flag this post as spam/abuse.

RE: TOAD FREEWARE VERSION 12.9

$
0
0
Can you provide sample code that demonstrates the problem you were seeing? 12.10 is wrapping up now so you may notice no changes here and without knowing what the issue is we can't fix it.

RE: Explain plan bug

$
0
0

NO,
:-)

This seems like Toad forum problem, when i cannot delete the post after posting.

So please delete this one.
thx

P.S.

Concentrate on post of initial SQL which was shown.

It has a problem ... and after joining lines there was no problem. Please understand that this is 1000000% Toad problem...maybe relatzed with some profile (which was imported since 10.x version) and shared between beta and regular versions, but not confirmed....and not any other problem at all..

Viewing all 4385 articles
Browse latest View live