|
| |
精品推荐 |
 |
|
| |
|
|
|
|
oracle的文本导入、导出技巧
|
日期:2007年12月28日 作者: 查看:[大字体
中字体 小字体]
|
then echo "error:sqlplus $userid error in unload table $table!!" echo "please check userid and passwd or database." exit fi
if [ -f lv_$table.txt ] then cat lv_$table.txt grep -v "^SQL>"sed -e "s/ *$//g"sed "s/$/\/g"sed -e "s/ *\/\/g" >${table}.unl if [[ `grep "ORA-" $table.unl` = "" ]]; then echo "unload table ${table}....\t\t\t\t\t ok" else cat ${table}.unl err="$err ${table}" fi else echo $0 error fi rm -f lv_$table.txt done
################################################################
################################################################ ## ?áê&2ù×÷
if [[ "X$err" = "X" ]];then echo "Unload Complete!,Thank you!" else echo "Unload Table $err error, please check it!" fi
################################################################
=============================================
generate_control_file.sh ============================================= #!/usr/bin/ksh ################################################################################ # # ?&&é: generate_control_file.sh # # ?èê&: &ù?Yò&&&±í?&éú3é&?±í&?&??????& # # 2?ê& 1 = ó?&§?&/?ü?&[@ê&à&?&] # 2?ê& 2 = ±í?& # # ×÷?& Bing He # # DT&????? # è??ú DT&?è? DT&??èê&
上一篇:我的一些oracle9i学习笔记,与大家分享
下一篇:使用 SQL*Plus 访问数据库
|
| 相关文章: |
|
|
|
| 相关软件: |
|
|
|
|