当前位置: 技术问答>linux和unix
关于SHELL调用oracle存储过程出现的一个小问题
来源: 互联网 发布时间:2016-11-29
本文导语: #!/bin/sh ORACLE_BASE=/home/oracle/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH NLS_LANG=AMERICAN_AMERICA.ZHS16GBK; export NLS_LANG for v_filename in `ls ...
#!/bin/sh
ORACLE_BASE=/home/oracle/oracle;
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;
export ORACLE_HOME
PATH=/usr/sbin:$PATH;
export PATH
PATH=$ORACLE_HOME/bin:$PATH;
export PATH
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;
export NLS_LANG
for v_filename in `ls -l |grep xml-|awk '{print $9}'`
do
echo $v_filename
`sqlplus dbtest/dbtest@dbtest
ORACLE_BASE=/home/oracle/oracle;
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;
export ORACLE_HOME
PATH=/usr/sbin:$PATH;
export PATH
PATH=$ORACLE_HOME/bin:$PATH;
export PATH
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK;
export NLS_LANG
for v_filename in `ls -l |grep xml-|awk '{print $9}'`
do
echo $v_filename
`sqlplus dbtest/dbtest@dbtest