Oracle 命令行导出导入数据库
exp uname/pwd@1.1.1.1/oral file=D:\exp\DB log=D:\exp\log OWNER=uname full=y
imp uname/pwd@oral file=D:\exp\DB.DMP full=y
$ export ORACLE_BASE=/u01/app/oracle;
$ export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1;
$ export ORACLE_SID=oral;
$ export PATH=$ORACLE_HOME/bin:$PATH;
$ echo $ORACLE_HOME
exp导出空表无法导出 没有分配空间
select 'alter table '||table_name||' allocate extent;'from user_tables WHERE SEGMENT_CREATED='NO';
select * from user_indexes WHERE SEGMENT_CREATED='NO';
select * from user_lobs where segment_created='NO'