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