Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Where should place my sql scripts?

Re: Where should place my sql scripts?

From: Karsten Farrell <kfarrell_at_belgariad.com>
Date: Tue, 22 Apr 2003 16:22:22 GMT
Message-ID: <MPG.190f0c15156d006e989747@news.la.sbcglobal.net>


peter_at_nomorenewsspammin.ca said...
> Sqlplus is complaining that it cannot find my scipts.
> Can I specify where the scripts are in the sql command?
>

I assume you're referring to the GUI sqlplus. Allison's response is correct (of course, since she's the one who's in charge of sqlplus). However, there are a couple of other things you can do in addition to specifying the full path to the script.

  1. Do a File / Open... and navigate to any script in the directory where you script is. It will display on your screen; but more importantly, it will set the working directory to wherever you opened the file. Ctrl-C to exit, and then do your @script (path no longer needed).
  2. Alternatively, you can tell where sqlplus will look for script files by typing 'host' (without quotes). That will open a DOS window to the place where it's expecting to see the scripts. Of course, you'll then realize that it's the place you specified in the shortcut's properties page for the "starting in" parameter. So you can right-click your sqlplus shortcut icon, select Properties, and set your starting directory to where your scripts are. Then the next time you start sqlplus from that shortcut, you'll be where your scripts are. -- /Karsten DBA > retired > DBA
Received on Tue Apr 22 2003 - 11:22:22 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US