I am using Toad for Oracle Professional version 10.6.1.3. My goal is to view the script generated by Toad for a selected table. Here are my steps:
- Log in to my database.
- Open the Schema Browser.
- Select the proper schema. The tables are listed.
- Select the table. The column list is displayed on the right.
- Click the "Script" tab. An error is returned: "TOAD Error:: ORA-00900: invalid SQL statement."
There is no other information given. Some tables give this error; some tables don't. Apparently this does not happen for other members of my team with the same login to the same database, so I am guessing there is some sort of setting or option that I have turned on/off that is causing this error. Any help would be greatly appreciated.
UPDATE: Due to the hint given to me by a commenter about the "Spool SQL" feature, I was able to determine that all of the tables that give me this error contain one or more fields with the CLOB data type. When this happens, a series of SQL statements are ran to get various information about the CLOB. One of these isn't displayed by the "Spool SQL" window, and this is where the invalid SQL error is generated.