# Can Explain Plan not use "INTO toad\_plan\_table" by default?

**URL:** <https://forums.toadworld.com/t/can-explain-plan-not-use-into-toad-plan-table-by-default/39968>\
**Category:** Toad for Oracle - Beta\
**Created:** [September 8, 2017, 1:36pm UTC](https://forums.toadworld.com/t/can-explain-plan-not-use-into-toad-plan-table-by-default/39968 "2017-09-08T13:36:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjesse](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/rjesse/32/156_2.png) [@rjesse](https://forums.toadworld.com/u/rjesse)\
**Post date:** [September 8, 2017, 1:36pm UTC](https://forums.toadworld.com/t/can-explain-plan-not-use-into-toad-plan-table-by-default/39968/1 "2017-09-08T13:36:19Z")

</div>

Howdy,

I’m working on an upgrade from Oracle 11.2 to 12.1 (12.2 not supported by the Oracle-supplied app), and I’m testing out some new functionality regarding explain plans on a physical standby open for read (Active Data Guard). Unfortunately, the restriction is that the “INTO table\_name” part of EXPLAIN PLAN cannot be used on a read-only database in 12.1. So, this will cause an ORA-16000:

EXPLAIN PLAN SET STATEMENT\_ID=‘bleah’ INTO PLAN\_TABLE FOR select \* from dual;

…whereas this one succeeds:

EXPLAIN PLAN SET STATEMENT\_ID=‘whee’ FOR select \* from dual;

Even though they are semantically the same, the “INTO” clause in the former causes it to blow colorful ORA-16000 chunks onto my pretty monitor.

The default SYS.PLAN\_TABLE$ appears to supersede the TOAD\_PLAN\_TABLE I have defined in my other databases. So is it possible to default to no “INTO TOAD\_PLAN\_TABLE” clause if the options are left blank? Maybe a DB version restriction, if that’s not too heavy or requires elevated privs on connection.

Just a fun thought on a Friday afternoon.

Thanks!  
Rich

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [September 8, 2017, 2:02pm UTC](https://forums.toadworld.com/t/can-explain-plan-not-use-into-toad-plan-table-by-default/39968/2 "2017-09-08T14:02:14Z")

</div>

it’s a little late for 12.12, but I can look at that once we get into betas again.

---

<div class="post-metadata">

**Author:** ![rjesse](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/rjesse/32/156_2.png) [@rjesse](https://forums.toadworld.com/u/rjesse)\
**Post date:** [September 11, 2017, 8:26am UTC](https://forums.toadworld.com/t/can-explain-plan-not-use-into-toad-plan-table-by-default/39968/3 "2017-09-11T08:26:31Z")

</div>

That’s all I could ask for John. Thanks!

Hope the folks in Florida, Georgia, and the Carolinas are safe!

---

<div class="post-metadata">

**Author:** ![JohnDorlon](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/johndorlon/32/9997_2.png) [@JohnDorlon](https://forums.toadworld.com/u/JohnDorlon)\
**Post date:** [November 13, 2017, 2:23pm UTC](https://forums.toadworld.com/t/can-explain-plan-not-use-into-toad-plan-table-by-default/39968/4 "2017-11-13T14:23:14Z")

</div>

Hey Rich,

I am making a change for next beta that if your plan table is specified in the options as “PLAN\_TABLE”, then we’ll leave the INTO clause out completely it in the “explain plan set” commands. That way I don’t have to add any more widgets or checkboxes to the options window.

Give it a try and let me know if that solves your problem.

-John

---

<div class="post-metadata">

**Author:** ![rjesse](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/rjesse/32/156_2.png) [@rjesse](https://forums.toadworld.com/u/rjesse)\
**Post date:** [November 14, 2017, 1:38pm UTC](https://forums.toadworld.com/t/can-explain-plan-not-use-into-toad-plan-table-by-default/39968/5 "2017-11-14T13:38:26Z")

</div>

Thanks John! I’ll check it out when it’s released…

Rich

---

<div class="post-metadata">

**Author:** ![rjesse](https://sea1.discourse-cdn.com/quest/user_avatar/forums.toadworld.com/rjesse/32/156_2.png) [@rjesse](https://forums.toadworld.com/u/rjesse)\
**Post date:** [November 29, 2017, 1:11pm UTC](https://forums.toadworld.com/t/can-explain-plan-not-use-into-toad-plan-table-by-default/39968/6 "2017-11-29T13:11:46Z")

</div>

Adding this reply to remind me that I still need to recreate my 12.1 Active DG read-only physical standby to test this…

[sigh]

Rich
