SQL*Plus not executing scripts, goes into an editor mode(!?) instead [message #634900] |
Tue, 17 March 2015 17:39 |
|
medialint
Messages: 4 Registered: March 2015 Location: Oakland, CA
|
Junior Member |
|
|
I broke SQLPlus and I don't know how. (SQL*Plus 11.2.0.1.0 OraClient 11g)
Behavior: whenever I try to execute a script like
SQL> @h:\test.sql
Instead of running the script I get an editor of some sort displaying a line number that starts with what would be the next line in the script file, so if the script is 10 lines long it would display like:
SQL> @h:\test.sql
11 _ <- cursor
nothing runs, and it doesn't display the contents of the file, just drops into that mode. I can type, nothing seems to happen though and it does not write to the file. The only thing that works to get out of it is a single period .
It gets weirder:
Happens also on my VDI virtual machine which has it's own client install
Happens no matter what database I log into, or username I use to log in
Same behavior using TOAD Editor -> Execute SQL via SQL*Plus command
Same behavior using AQT Run -> Run Using SQL*Plus
Same behavior whether using @ or start
I Rebooted, looked at settings, searched for files modified today that could be holding this setting, including on the "my documents" which would seem about the only place the two separate machines would see the same config
It was working and I cannot explain what happened. I may have screwed up a spool command somewhere around the time the behavior went haywire but I have tried all the obvious spool off, etc.
If anyone can solve this I'll buy you a beer. Or ice cream. Or beer flavored ice cream.
Cheers
Tim
|
|
|
|
|
|
|
|
|
|
|
|