Aw: DBA 101: SQLPATH on windows

From: Kurt Franke <kurt-franke_at_web.de>
Date: Thu, 7 Nov 2013 19:50:23 +0100 (CET)
Message-ID: <trinity-757ed801-2574-4eba-8ea2-3cf11a498236-1383850223354_at_3capp-webde-bs17>

 
Chris,
 
building on windows an SQLPATH environment variable holding 20 subdirectories
may cause you hit a problem with the length of the SQLPATH  value.
 
If the environment variable SQLPATH has a length of more than 261 characters
  it is completly ignored by SQL*Plus running under windows.
Only the current directory is checked for files then.
I didn't found this in the documentation.
 
If you have this need you should try shortening of the elements to add to SQLPATH .
 
The simplest way to do this in your scenario is to use the subst (dos) command:
 
subst S: C:\sqlplus_scripts
 
(or any other free drive letter)
 
and then build the SQLPATH like "S:\subdir;S:\subdir2"  and so on.
 
And, of course, you should add the subst command as logon-script in your Startup folder.
 
 
 
regards
 
kf
 
 
Gesendet: Donnerstag, 07. November 2013 um 17:41 Uhr
Von: "Stephens, Chris" <Chris.Stephens_at_adm.com>
An: "'oracle-l_at_freelists.org'" <oracle-l_at_freelists.org>
Betreff: DBA 101: SQLPATH on windows

From the docs:

 

“The SQLPATH registry entry specifies the location of SQL scripts. SQL*Plus searches for SQL scripts in the current directory and then in the directories specified by the SQLPATH registry entry, and in the subdirectories of SQLPATH directories.”

 

I have accumulated a large number of scripts that I like to keep somewhat organized.  For some reason I have to be explicit about each subdirectory in Windows but not in Linux.  That’s not really a problem until you start getting compulsive about organization and your SQLPATH string starts getting ridiculously long (I’m sure there’s a limit at some point).  I’d like to set SQLPATH registry value to “C:\sqlplus_scripts\” instead of explicitly listing the 20 or so subdirectories I have.

 

Is that expected or am I doing something wrong?  I’m guessing that if it was (contrary to what the documentation says), there would be complaints that show up on Google but I’m not seeing any which leads me to believe I’m doing this wrong.

 

Thanks for any help.

 


CONFIDENTIALITY NOTICE:
This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by email reply.


 
-- http://www.freelists.org/webpage/oracle-l Received on Thu Nov 07 2013 - 19:50:23 CET

Original text of this message