Re: login.sql equivalent for RMAN

From: Robert Freeman <>
Date: Thu, 30 Apr 2009 10:14:05 -0700 (PDT)
Message-ID: <>

I thought about OS authentication as a solution too but that would not address connecting to the catalog (since you typically connect to a different catalog schema and perhaps on a completely different box) and/or any axillary database (say for scheduled clones).

 Robert G. Freeman
OCP: Oracle Database 11g Administrator Certified Professional Study Guide (Sybex) Oracle Database 11g New Features (Oracle Press) Portable DBA: Oracle (Oracle Press)
Oracle Database 10g New Features (Oracle Press) Oracle9i RMAN Backup and Recovery (Oracle Press) Oracle9i New Features (Oracle Press)
Other various titles out of print now... Blog: The LDS Church is looking for DBA's. You do have to be a Church member in good standing. A lot of kind people write me, concerned I may be breaking the law by saying you have to be a Church member. It's legal I promise! :-)

From: Joey D'Antoni <> To: Oracle-L Freelists <> Sent: Thursday, April 30, 2009 11:06:55 AM Subject: Re: login.sql equivalent for RMAN

Why not just setup O/S authentication for the Oracle (or other if needed) user? That way you don't need to pass a password to the database.  

I know this is dependent on how many others you share your Oracle o/s password with for security, but it does make scripting easier.

 From: Jared Still <> To: William Wagman <> Cc: Niall Litchfield <>; Oracle-L Freelists <> Sent: Thursday, April 30, 2009 12:58:35 PM Subject: Re: login.sql equivalent for RMAN

On Thu, Apr 30, 2009 at 8:44 AM, William Wagman <> wrote:

The problem is not so much platform as much as wanting to separate the passwords from the script. Indeed, Jared's suggestion will work but I still have the passwords in the RMAN script which is what I am trying to get away from.

So, there are two problems you are trying to solve.

That script was just to demo the connection process.

Personally, I use the Password server from "Perl for Oracle DBA's"

It uses that 'Perl' language that Niall referred to. :)

The version in the book uses plain text config file. It was 'enhanced' sometime after publication of the book to allow storing the config file with the passwords in an encrypted format using RC4.

RC4 is old, but still fairly robust.

There are commercial password servers that have similar capabilities.

Password Manager Pro for instance has facilities to retrieve passwords from the command line for use in scripts.

Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

Received on Thu Apr 30 2009 - 12:14:05 CDT

Original text of this message