oracle导出数据:
sqlplus -s zhangsan/123456@12.34.56.78/scott<<EOF
set echo off;
set wrap off;
set feedback off;
set heading off;
set pagesize 0;
set linesize 4096;
set numwidth 50;
set verify off;
set term off;
set trimspool on;
spool /home/user/123.txt
select column1 ||'|'||,column2 ||'|'||,column3 ||'|'|| from emp ;
EOF
Oracle导入数据
导入数据来借助sqlldr工具来实现,其中control为一个控制文件,log为日志文件,bad为脏数据,discard为拒绝文件。
sqlldr zhangsan/123456@12.34.56.78/scott
control=