Sean,

Not sure how you'd do this on NT, since I don't know how the "identified 
externally" accounts work on NT.

On Unix you can create a user in the database with the same name as one of 
the Unix accounts. Default is "ops$"<username>, you can change or remove the 
"ops$" requirement via one of the init.ora commands -- (remote_<something or 
other>, I'm at home right now and no access to look it up)

grant the privileges necessary to this account, then when you need to log 
into the database you can use / to enter username/password:

ex.    sqlplus "/"

and run what you need from cron from this Unix account.

Rachel

>From: "O'Neill, Sean" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
>Subject: Securing passwords in scripts
>Date: Thu, 26 Jul 2001 00:55:28 -0800
>
>I have some scripts, O.S. command and SQL, which I use to perform COLD
>backups of DBs and other tasks.  I'm not particularily happy about having
>username/password information in the scripts.  Has anyone come up with a 
>way
>to avoid same allowing for the fact the scripts should require no user 
>input
>to execute.
>
>
>Sean :)
>
>Rookie Data Base Administrator
>Oracle 7.3.3, 8.0.5, 8.1.7 - NT, W2K
>[0%] OCP Oracle8i DBA
>[0%] OCP Oracle9i DBA
>-------------------------------- ------------
>Organon (Ireland) Ltd.
>E-mail: [EMAIL PROTECTED]   [subscribed: Digest Mode]
>
>Visit: http://groups.yahoo.com/group/Oracle-OCP-DBA
>
>"Nobody loves me but my mother... and she could be jivin' too."  - BB King
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: O'Neill, Sean
>   INET: [EMAIL PROTECTED]
>
>Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
>San Diego, California        -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>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).


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

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

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).

Reply via email to