1.导出schema数据
./osrexp -USYSDBA/szoscar55 -p2003 -dHXL level=schema file=/tmp/utest.osr log=/tmp/utest.log schema=utest checkvalidate=false
2.模拟删除schema
[root@localhost bin]# ./isql -h localhost -p 2003 -d HXL sysdba SQL>drop user utest cascade;
3.重新创建schema
导入前好像需要创建好sechema
[root@localhost bin]# ./isql -h localhost -p 2003 -d HXL sysdba SQL>create user utest with password 'oracle'; SQL>grant role resource to user utest;
4.导入
./osrimp -Usysdba/szoscar55 -p2003 -dhxl level=schema file=/tmp/utest.osr log=/tmp/import.log schema=utest checkvalidate=false
导出导入表
备份单个表
./osrexp -USYSDBA/szoscar55 -p2003 -dHXL level=table file=/tmp/tb_test.osr log=/tmp/tb_test.log table=utest.tb_test checkvalidate=false
导入单个表
./osrimp -Usysdba/szoscar55 -p2003 -dhxl level=table file=/tmp/tb_test.osr log=/tmp/import_table.log table=utest.tb_test checkvalidate=false
标签:tmp,log,神舟,数据库,utest,导入,table,tb,schema From: https://www.cnblogs.com/hxlasky/p/18054002