---使用oracle用户,进入sqlplus 删除用户再创建一个用户并赋权
--权限中要有synonym 否则imp dmp文件的时候,会出错
su - oracle
sqlplus / as sysdba
drop user base cascade;
create user base identified by zdsoft default tablespace tbs_base;
grant connect,resource,create table,create view,execute any procedure,create any synonym to base;
--exit到命令行执行,将dmp数据导入到数据库
imp system/zdsoft file=center2010-08-04.dmp fromuser=sxcenter touser=base2
--导出该用户的数据库到dmp文件
exp base/zdsoft file=base2.6/base2.0_201008.dmp
--导出指定的表到dmp
exp base2/zdsoft file=base2.6/base2.0_201008.dmp tables=base_class,base_dept,base_family,base_grade,base_school,base_student,base_teacher,base_unit,base_user,base_order,su_ware,su_server,base_order_his
-- 拷贝base2.6文件夹到到其他的机器
scp -r base2.6/ [email protected]:/home/oracle/