RE: How to tell Oracle the directories of script files

2003-08-14 Thread Martin, Alan (Contractor) (DLIS)
Title: RE: How to tell Oracle the directories of script files





Use SQLPATH.


Alan Martin
Defense Logistics Info Service
Battle Creek, MI


-Original Message-
From: Reuben D. Budiardja [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 14, 2003 2:09 PM
To: Multiple recipients of list ORACLE-L
Subject: How to tell Oracle the directories of script files




Hello,
Suppose I have some SQL scripts in my /home/user directories, /usr/local/bin 
directories, etc.
If I start 'sqlplus' from console in /home/user directories, I can 
load/execute the script by doing:
SQL> @scriptname


But what if I don't start sqlplus from that directories? How do I tell Oracle 
to find the scripts in /home/user, then if it's not there in /usr/local/bin,  
for example? So that I can be anywhere in the filesystem when starting 
sqlplus and can execute my SQL script.


Just like the $PATH environment variables in *nix system that tell the shell 
where to find executables, is there a similar thing for Oracle?


Thanks for any help.


RDB


-- 
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
-
/"\  ASCII Ribbon Campaign against HTML    
\ /  email and proprietary format  
 X   attachments.
/ \
-
Have you been used by Microsoft today? 
Choose your life. Choose freedom. 
Choose LINUX.
-


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Reuben D. Budiardja
  INET: [EMAIL PROTECTED]


Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California    -- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from).  You may also send the HELP command for other information (like subscribing).




Re: How to tell Oracle the directories of script files

2003-08-14 Thread Reginald . W . Bailey

Yes there is a way.  In UNIX environments (I think this works in NT/2000 as
well) you can set the environment variable SQLPATH to a list of directories
that contain SQL files.  SQLPlus will search this path if the file is not
found in the current directory.

RWB



Reginald W. Bailey
IBM Global Services - ETS SW GDSD - Database Management
Your Friendly Neighborhood DBA
713-216-7703 (Office) 281-798-5474 (Mobile) 713-415-5410 (Pager)
[EMAIL PROTECTED]
[EMAIL PROTECTED]



   
  
[EMAIL PROTECTED]  

ys.utk.eduTo: [EMAIL PROTECTED]
   
Sent by:  cc:  
  
[EMAIL PROTECTED]   Subject: How to tell Oracle the 
directories of script files
om 
  
   
  
   
  
08/14/2003 01:09 PM
  
Please respond to  
  
ORACLE-L   
  
   
  
   
  





Hello,
Suppose I have some SQL scripts in my /home/user directories,
/usr/local/bin
directories, etc.
If I start 'sqlplus' from console in /home/user directories, I can
load/execute the script by doing:
SQL> @scriptname

But what if I don't start sqlplus from that directories? How do I tell
Oracle
to find the scripts in /home/user, then if it's not there in
/usr/local/bin,
for example? So that I can be anywhere in the filesystem when starting
sqlplus and can execute my SQL script.

Just like the $PATH environment variables in *nix system that tell the
shell
where to find executables, is there a similar thing for Oracle?

Thanks for any help.

RDB

--
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
-
/"\  ASCII Ribbon Campaign against HTML
\ /  email and proprietary format
 X   attachments.
/ \
-
Have you been used by Microsoft today?
Choose your life. Choose freedom.
Choose LINUX.
-

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Reuben D. Budiardja
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Re: How to tell Oracle the directories of script files

2003-08-14 Thread Ron Rogers
RDB,
 It is always best to include the path for the script that you want to
execute. That way you make sure that you execute your script and not
someone else's. There can be many scripts  of the same name in the
directory path.
Ron
>>> [EMAIL PROTECTED] 08/14/03 03:19PM >>>

Yes there is a way.  In UNIX environments (I think this works in
NT/2000 as
well) you can set the environment variable SQLPATH to a list of
directories
that contain SQL files.  SQLPlus will search this path if the file is
not
found in the current directory.

RWB



Reginald W. Bailey
IBM Global Services - ETS SW GDSD - Database Management
Your Friendly Neighborhood DBA
713-216-7703 (Office) 281-798-5474 (Mobile) 713-415-5410 (Pager)
[EMAIL PROTECTED] 
[EMAIL PROTECTED] 



   
 
[EMAIL PROTECTED]
 
ys.utk.eduTo:
[EMAIL PROTECTED] 
 
Sent by:  cc:  
 
[EMAIL PROTECTED]   Subject: How to tell
Oracle the directories of script files
om 
 
   
 
   
 
08/14/2003 01:09 PM
 
Please respond to  
 
ORACLE-L   
 
   
 
   
 





Hello,
Suppose I have some SQL scripts in my /home/user directories,
/usr/local/bin
directories, etc.
If I start 'sqlplus' from console in /home/user directories, I can
load/execute the script by doing:
SQL> @scriptname

But what if I don't start sqlplus from that directories? How do I tell
Oracle
to find the scripts in /home/user, then if it's not there in
/usr/local/bin,
for example? So that I can be anywhere in the filesystem when starting
sqlplus and can execute my SQL script.

Just like the $PATH environment variables in *nix system that tell the
shell
where to find executables, is there a similar thing for Oracle?

Thanks for any help.

RDB

--
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
-
/"\  ASCII Ribbon Campaign against HTML
\ /  email and proprietary format
 X   attachments.
/ \
-
Have you been used by Microsoft today?
Choose your life. Choose freedom.
Choose LINUX.
-

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net 
--
Author: Reuben D. Budiardja
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- 858-538-5051 http://www.fatcity.com 
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net 
-- 
Author: 
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- 858-538-5051 http://www.fatcity.com 
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send t

RE: How to tell Oracle the directories of script files

2003-08-14 Thread Nelson, Allan
@/usr/local/bin/my_sql_script

Allan

-Original Message-
Sent: Thursday, August 14, 2003 1:09 PM
To: Multiple recipients of list ORACLE-L



Hello,
Suppose I have some SQL scripts in my /home/user directories,
/usr/local/bin 
directories, etc.
If I start 'sqlplus' from console in /home/user directories, I can 
load/execute the script by doing:
SQL> @scriptname

But what if I don't start sqlplus from that directories? How do I tell
Oracle 
to find the scripts in /home/user, then if it's not there in
/usr/local/bin,  
for example? So that I can be anywhere in the filesystem when starting 
sqlplus and can execute my SQL script.

Just like the $PATH environment variables in *nix system that tell the
shell 
where to find executables, is there a similar thing for Oracle?

Thanks for any help.

RDB

-- 
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
-
/"\  ASCII Ribbon Campaign against HTML
\ /  email and proprietary format  
 X   attachments.
/ \
-
Have you been used by Microsoft today? 
Choose your life. Choose freedom. 
Choose LINUX.
-

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Reuben D. Budiardja
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the
message BODY, include a line containing: UNSUB ORACLE-L (or the name of
mailing list you want to be removed from).  You may also send the HELP
command for other information (like subscribing).



__
This email is intended solely for the person or entity to which it is addressed and 
may contain confidential and/or privileged information.  Copying, forwarding or 
distributing this message by persons or entities other than the addressee is 
prohibited. If you have received this email in error, please contact the sender 
immediately and delete the material from any computer.  This email may have been 
monitored for policy compliance.  [021216]

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Nelson, Allan
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


RE: How to tell Oracle the directories of script files

2003-08-14 Thread Goulet, Dick
It's known as SQLPATH.

Dick Goulet
Senior Oracle DBA
Oracle Certified 8i DBA

-Original Message-
Sent: Thursday, August 14, 2003 2:09 PM
To: Multiple recipients of list ORACLE-L



Hello,
Suppose I have some SQL scripts in my /home/user directories, /usr/local/bin 
directories, etc.
If I start 'sqlplus' from console in /home/user directories, I can 
load/execute the script by doing:
SQL> @scriptname

But what if I don't start sqlplus from that directories? How do I tell Oracle 
to find the scripts in /home/user, then if it's not there in /usr/local/bin,  
for example? So that I can be anywhere in the filesystem when starting 
sqlplus and can execute my SQL script.

Just like the $PATH environment variables in *nix system that tell the shell 
where to find executables, is there a similar thing for Oracle?

Thanks for any help.

RDB

-- 
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
-
/"\  ASCII Ribbon Campaign against HTML
\ /  email and proprietary format  
 X   attachments.
/ \
-
Have you been used by Microsoft today? 
Choose your life. Choose freedom. 
Choose LINUX.
-

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Reuben D. Budiardja
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Goulet, Dick
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


RE: How to tell Oracle the directories of script files

2003-08-14 Thread Browett, Darren
I have setup an environment variable (actually a number of them)

DBS=/ora/app/dba/scripts ; export DBS 

In my case this is where the majority of my scripts are stored

when I am in sqlplus 

SQL> @$DBS/scriptname


Darren



-Original Message-
Sent: Thursday, August 14, 2003 11:09 AM
To: Multiple recipients of list ORACLE-L



Hello,
Suppose I have some SQL scripts in my /home/user directories,
/usr/local/bin 
directories, etc.
If I start 'sqlplus' from console in /home/user directories, I can 
load/execute the script by doing:
SQL> @scriptname

But what if I don't start sqlplus from that directories? How do I tell
Oracle 
to find the scripts in /home/user, then if it's not there in
/usr/local/bin,  
for example? So that I can be anywhere in the filesystem when starting 
sqlplus and can execute my SQL script.

Just like the $PATH environment variables in *nix system that tell the
shell 
where to find executables, is there a similar thing for Oracle?

Thanks for any help.

RDB

-- 
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
-
/"\  ASCII Ribbon Campaign against HTML
\ /  email and proprietary format  
 X   attachments.
/ \
-
Have you been used by Microsoft today? 
Choose your life. Choose freedom. 
Choose LINUX.
-

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Reuben D. Budiardja
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Browett, Darren
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Re: How to tell Oracle the directories of script files

2003-08-14 Thread Stephen Andert
export SQLPATH=/usr/users/oracle/dba/scripts:/app/oracle/admin

before you run SQL*Plus

HTH
Stephen

>>> [EMAIL PROTECTED] 08/14/03 11:09AM >>>

Hello,
Suppose I have some SQL scripts in my /home/user directories,
/usr/local/bin 
directories, etc.
If I start 'sqlplus' from console in /home/user directories, I can 
load/execute the script by doing:
SQL> @scriptname

But what if I don't start sqlplus from that directories? How do I tell
Oracle 
to find the scripts in /home/user, then if it's not there in
/usr/local/bin,  
for example? So that I can be anywhere in the filesystem when starting

sqlplus and can execute my SQL script.

Just like the $PATH environment variables in *nix system that tell the
shell 
where to find executables, is there a similar thing for Oracle?

Thanks for any help.

RDB

-- 
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
-
/"\  ASCII Ribbon Campaign against HTML
\ /  email and proprietary format  
 X   attachments.
/ \
-
Have you been used by Microsoft today? 
Choose your life. Choose freedom. 
Choose LINUX.
-

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net 
-- 
Author: Reuben D. Budiardja
  INET: [EMAIL PROTECTED] 

Fat City Network Services-- 858-538-5051 http://www.fatcity.com 
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Stephen Andert
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Re: How to tell Oracle the directories of script files

2003-08-14 Thread Tanel Poder
Btw, did you know that you can use:

@http://www.servername.com/script.sql and
@ftp://ftp.servername.com/dir/script.sql in 9i sqlplus :)

It can be nice in environment where you continously have to work with random
different servers and cant copy your script set over every time..

Tanel.

- Original Message - 
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 10:34 PM


> RDB,
>  It is always best to include the path for the script that you want to
> execute. That way you make sure that you execute your script and not
> someone else's. There can be many scripts  of the same name in the
> directory path.
> Ron
> >>> [EMAIL PROTECTED] 08/14/03 03:19PM >>>
>
> Yes there is a way.  In UNIX environments (I think this works in
> NT/2000 as
> well) you can set the environment variable SQLPATH to a list of
> directories
> that contain SQL files.  SQLPlus will search this path if the file is
> not
> found in the current directory.
>
> RWB
>
>


>
> Reginald W. Bailey
> IBM Global Services - ETS SW GDSD - Database Management
> Your Friendly Neighborhood DBA
> 713-216-7703 (Office) 281-798-5474 (Mobile) 713-415-5410 (Pager)
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>


>
>
>
>
> [EMAIL PROTECTED]
>
> ys.utk.eduTo:
> [EMAIL PROTECTED]
>
> Sent by:  cc:
>
> [EMAIL PROTECTED]   Subject: How to tell
> Oracle the directories of script files
> om
>
>
>
>
>
> 08/14/2003 01:09 PM
>
> Please respond to
>
> ORACLE-L
>
>
>
>
>
>
>
>
>
>
> Hello,
> Suppose I have some SQL scripts in my /home/user directories,
> /usr/local/bin
> directories, etc.
> If I start 'sqlplus' from console in /home/user directories, I can
> load/execute the script by doing:
> SQL> @scriptname
>
> But what if I don't start sqlplus from that directories? How do I tell
> Oracle
> to find the scripts in /home/user, then if it's not there in
> /usr/local/bin,
> for example? So that I can be anywhere in the filesystem when starting
> sqlplus and can execute my SQL script.
>
> Just like the $PATH environment variables in *nix system that tell the
> shell
> where to find executables, is there a similar thing for Oracle?
>
> Thanks for any help.
>
> RDB
>
> --
> Reuben D. Budiardja
> Department of Physics and Astronomy
> The University of Tennessee, Knoxville, TN
> -
> /"\  ASCII Ribbon Campaign against HTML
> \ /  email and proprietary format
>  X   attachments.
> / \
> -
> Have you been used by Microsoft today?
> Choose your life. Choose freedom.
> Choose LINUX.
> -
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Reuben D. Budiardja
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services-- 858-538-5051 http://www.fatcity.com
> San Diego, California-- Mailing list and web hosting services
> -
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
>
>
>
>
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author:
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services-- 858-538-5051 http://www.fatcity.com
> San Diego, California-- Mailing list and web hosting services
> -
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author: Ron Rogers
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services-- 858-538-5051 http://www.fatcity.com
> San Diego, California-- Mailing list and web hosting services
> -
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you wa

RE: How to tell Oracle the directories of script files

2003-08-14 Thread Anderson, Brian
Keep in mind that, unless they've changed the function, spool also searches the 
sqlpath for files.

If you say:
spool modify_users.sql
select 'alter user '||username||'whatever;' from dba_users;
spool off

Spool just looked in your current directory for a file named modify_users.sql to 
replace, then it followed your sqlpath for a file to replace (file permissions 
allowing), if it doesn't find one then it creates one in your current directory.  

> -Original Message-
> From: Stephen Andert [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 14, 2003 2:20 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Re: How to tell Oracle the directories of script files
> 
> 
> export SQLPATH=/usr/users/oracle/dba/scripts:/app/oracle/admin
> 
> before you run SQL*Plus
> 
> HTH
> Stephen
> 
> >>> [EMAIL PROTECTED] 08/14/03 11:09AM >>>
> 
> Hello,
> Suppose I have some SQL scripts in my /home/user directories,
> /usr/local/bin 
> directories, etc.
> If I start 'sqlplus' from console in /home/user directories, I can 
> load/execute the script by doing:
> SQL> @scriptname
> 
> But what if I don't start sqlplus from that directories? How do I tell
> Oracle 
> to find the scripts in /home/user, then if it's not there in
> /usr/local/bin,  
> for example? So that I can be anywhere in the filesystem when starting
> 
> sqlplus and can execute my SQL script.
> 
> Just like the $PATH environment variables in *nix system that tell the
> shell 
> where to find executables, is there a similar thing for Oracle?
> 
> Thanks for any help.
> 
> RDB
> 
> -- 
> Reuben D. Budiardja
> Department of Physics and Astronomy
> The University of Tennessee, Knoxville, TN
> -
> /"\  ASCII Ribbon Campaign against HTML
> \ /  email and proprietary format  
>  X   attachments.
> / \
> -
> Have you been used by Microsoft today? 
> Choose your life. Choose freedom. 
> Choose LINUX.
> -
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net 
> -- 
> Author: Reuben D. Budiardja
>   INET: [EMAIL PROTECTED] 
> 
> Fat City Network Services-- 858-538-5051 http://www.fatcity.com 
> San Diego, California-- Mailing list and web hosting services
> -
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
> 
> 
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author: Stephen Andert
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services-- 858-538-5051 http://www.fatcity.com
> San Diego, California-- Mailing list and web hosting services
> -
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
> 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Anderson, Brian
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: How to tell Oracle the directories of script files

2003-08-14 Thread Ron Thomas

COOL!  I've learned something new today.  Can I go home

Ron Thomas
Hypercom, Inc
[EMAIL PROTECTED]
Each new user of a new system uncovers a new class of bugs. -- Kernighan


   
   
  [EMAIL PROTECTED]
   
  ail.ee   To:   [EMAIL PROTECTED] 

  Sent by: cc: 
   
  [EMAIL PROTECTED]Subject:  Re: How to tell Oracle the 
directories of script files   
  .com 
   
   
   
   
   
  08/14/2003 05:24 
   
  PM   
   
  Please respond to
   
  ORACLE-L 
   
   
   
   
   




Btw, did you know that you can use:

@http://www.servername.com/script.sql and
@ftp://ftp.servername.com/dir/script.sql in 9i sqlplus :)

It can be nice in environment where you continously have to work with random
different servers and cant copy your script set over every time..

Tanel.

- Original Message -
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 10:34 PM


> RDB,
>  It is always best to include the path for the script that you want to
> execute. That way you make sure that you execute your script and not
> someone else's. There can be many scripts  of the same name in the
> directory path.
> Ron
> >>> [EMAIL PROTECTED] 08/14/03 03:19PM >>>
>
> Yes there is a way.  In UNIX environments (I think this works in
> NT/2000 as
> well) you can set the environment variable SQLPATH to a list of
> directories
> that contain SQL files.  SQLPlus will search this path if the file is
> not
> found in the current directory.
>
> RWB
>
>


>
> Reginald W. Bailey
> IBM Global Services - ETS SW GDSD - Database Management
> Your Friendly Neighborhood DBA
> 713-216-7703 (Office) 281-798-5474 (Mobile) 713-415-5410 (Pager)
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>


>
>
>
>
> [EMAIL PROTECTED]
>
> ys.utk.eduTo:
> [EMAIL PROTECTED]
>
> Sent by:  cc:
>
> [EMAIL PROTECTED]   Subject: How to tell
> Oracle the directories of script files
> om
>
>
>
>
>
> 08/14/2003 01:09 PM
>
> Please respond to
>
> ORACLE-L
>
>
>
>
>
>
>
>
>
>
> Hello,
> Suppose I have some SQL scripts in my /home/user directories,
> /usr/local/bin
> directories, etc.
> If I start 'sqlplus' from console in /home/user directories, I can
> load/execute the script by doing:
> SQL> @scriptname
>
> But what if I don't start sqlplus from that directories? How do I tell
> Oracle
> to find the scripts in /home/user, then if it's not there in
> /usr/local/bin,
> for example? So that I can be anywhere in the filesystem when starting
> sqlplus and can execute my SQL script.
&

Re: How to tell Oracle the directories of script files

2003-08-16 Thread Reuben D. Budiardja
Thanks all. The replies have been really helpful.

Reuben D. Budiardja.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Reuben D. Budiardja
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).