1833129 Members
4032 Online
110051 Solutions
New Discussion

sql-scripts

 
Jose Mosquera
Honored Contributor

sql-scripts

Hi Pals,

For some Oracle sql-scripts in HP-UX 11.0 we are using "sqlplus -s /" where entry show the user password. Is possible read the definition entry in the /etc/passwd file and use the password field to assign it to a varible? Some other trick will be grateful. Pls forget any recommendation about file/directory permissions.

Rgds,

Jose
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: sql-scripts

The 'trick' is to have the user verified by the operating system.

ALTER USER mickey identified externally;

User mickey will now be verified by mickey's passwd entry.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: sql-scripts

I suppose that I should also give you thge rest of this puzzle. The DBA should create a user called OPS$mickey. As UNIX user mickey, you invoke sqlplus / as you are in.
If it ain't broke, I can fix that.