date >> start-date2.log
sqlplus nciclccd_e/nciclccd_e <<EOF
drop table PARTNERINFO;
drop table BKIMP;
drop table BKINFO;
exit
EOF
imp nciclccd_e/nciclccd_e file=par_bk.imp log=par_bk.log full=y ignore=y
date >> end-date2.log
#! /bin/bash
NLS_LANG="Simplified Chinese_CHINA.ZHS16GBK"
date_time=`date +%Y%m%d_%H`
ORACLE_SID=LCC
ORACLE_HOME=/opt/oracle/product/10.2.0/db_1
export NLS_LANG ORACLE_SID ORACLE_HOME
#date >> start-date2.log
#imp nciclccd_a/nciclccd_a file=scmaster.dmp log=imp_lcc2.log full=y ignore=y
#sqlplus nciclccd_a/nciclccd_a <<EOF
#drop table C_TMP;
#drop table FOBVT_TMP;
#EOF
PATH=$ORACLE_HOME/bin;$PATH
export $PATH
exp nciclccd_a/nciclccd_a file=/home/oracle/ccode.dmp log=/home/oracle/ccode.log tables = \( CCODE \)
#date >> end-date2.log
博客内容主要围绕Oracle数据库操作,包含使用sqlplus删除PARTNERINFO、BKIMP、BKINFO等表,用imp命令导入par_bk.imp文件,还设置了NLS_LANG、ORACLE_SID等环境变量,最后使用exp命令导出CCODE表数据。
3447

被折叠的 条评论
为什么被折叠?



