linux-oracle-shell
#!/bin/csh -f
sqlplus -s system/manager@ov_net
commit;
#!/bin/sh
ORACLE_SID="hpov"
ORA_USER="oracle"
#ISQL=svrmgrl
ISQL="sqlplus /nolog"
su - $ORA_USER -c "${ISQL} " < connect / as sysdba;
@createtable.sql
exit;
exit
EOF
#!/bin/sh
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_SID=hpov
export ORACLE_HOME=/oracle/app/oracle/product/10.2.0
export PATH=$PATH:$ORACLE_HOME/bin
su - oracle
sqlplus /nolog <connect system/manager
set feedback off;
set pagesize 0;
EOF
[@more@]linux-oracle-shell
sqlplus -s system/manager@ov_net
commit;
#!/bin/sh
ORACLE_SID="hpov"
ORA_USER="oracle"
#ISQL=svrmgrl
ISQL="sqlplus /nolog"
su - $ORA_USER -c "${ISQL} " < connect / as sysdba;
@createtable.sql
exit;
exit
EOF
#!/bin/sh
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_SID=hpov
export ORACLE_HOME=/oracle/app/oracle/product/10.2.0
export PATH=$PATH:$ORACLE_HOME/bin
su - oracle
sqlplus /nolog <connect system/manager
set feedback off;
set pagesize 0;
EOF
[@more@]linux-oracle-shell
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16396910/viewspace-1029112/,如需轉載,請註明出處,否則將追究法律責任。