Hello All,
How can I hide the password on line 9 in the script below with using login as sysdba?
#!/bin/ksh
dbname=mydbname
export ORACLE_SID=$dbname
export ORACLE_HOME=/orahome/app/oracle/product/10.2.05/
. /usr/sislocal/$dbname/to$dbname
#log into database
sqlplus -s splex/password << EOF #want to hide password here, without using sqlplus -s "/ as sysdba"
set pagesize 0
set linesize 4000
set feedback off
set trimspool on
spool rowcount.txt;
select source_name from splex.count_match_vw;
spool off;
EOF
How can I hide the password on line 9 in the script below with using login as sysdba?
#!/bin/ksh
dbname=mydbname
export ORACLE_SID=$dbname
export ORACLE_HOME=/orahome/app/oracle/product/10.2.05/
. /usr/sislocal/$dbname/to$dbname
#log into database
sqlplus -s splex/password << EOF #want to hide password here, without using sqlplus -s "/ as sysdba"
set pagesize 0
set linesize 4000
set feedback off
set trimspool on
spool rowcount.txt;
select source_name from splex.count_match_vw;
spool off;
EOF