Database Security Products (MOSC)

MOSC Banner

Connect to sys remotely without password

edited Nov 16, 2011 2:47AM in Database Security Products (MOSC) 6 commentsAnswered
I've to run few SQL commands as SYS on about 100 UNIX servers. I've tnsnames.ora file. I cannot FTP the SQL files / shell scripts to all the servers. Since I already have tnsnames.ora file how can I connect to other databases as SYS without password ? The SYS password of every database is different so I cannot hardcode the password in my shell script. Is there a way to connect ? I've tried these already.


[10.2.0.4-DUBTS2] /export/home/oracle/dba $ sqlplus "/@pubts as sysdba"

SQL*Plus: Release 10.2.0.4.0 - Production on Thu Oct 27 14:54:24 2011

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

ERROR:
ORA-01031: insufficient privileges

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center