Is there some other way to access scripts while in sql*plus other than copying them directly to the bin directory in the oracle home directory? If I dont do that tedious task I get this message:
SP2-0310: unable to open file "test.sql"
Yes. Point to "file/open" and browse to the directory of your script. Then, copy the script using "Ctrl-C", and close the browse window. Paste the script after the "@" sign in your SQL Plus command line and hit "Enter". Let me know if you still get the error. You may have to turn your spool file on.
Or create an icon on your desktop with the path pointing to SQLPLUS and the 'open in' folder pointing to whichever one you want to pick up your files from.
If you are using Windows, the search path is determined by the registry variable, SQLPATH. In Regedit, search for this variable. It should be in hkey_local_machine\software\oracle or one of its subdirectories. Edit SQLPATH by adding whatever directories you want searched, separated by semicolons. Then you can run your scripts by just typing the file name.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.