I am trying to run a script that executes a script inside it (using @) and I am getting errors when the first script tries to execute the second (p5.sql). When I run the script in regular TOAD I get no errors. Thanks for your help!
Script 1 inserts a record into table DPOINT and then executes script p5.sql
Opening a file and reading the contents using @sqlfile is a SQLPlus feature. The Toad Data Point editor does not support SQLPlus. We do have another utility that does. On the Editor menu there is an action called “Execute SQL Script in external APP”. If you select this it will send the contents of your editor into an app call “Script Runner” and this app will support SQL*Plus.
Hi, I tried and it doesn’t work… All I want is the ability to execute the same scripts that I do in TOAD for Oracle in TDP using the TDP Automation feature, but it seems I will not be able to do that.
So...I have to disagree here. I have an Automation Script that was written honestly a while ago, but does contain SQLPlus. Now I will admit that the script doesn't read in any files using @, but it is for sure SQLPlus.
Thanks for trying John, but still not what I want…
Problem is, most of our scripts were written in “TOAD for Oracle” which allows things like DEFINE, SET, &&, etc. Now I am told we need to Automate these scripts using Data Point. These scripts (such as the simple examples I gave) DO run in TOAD for Oracle but DO NOT run in Data Point.