orcale数据库的导入和导出

--删除用户(需要登录超级管理员)
drop user qypsrsstest  cascade;
--创建用户
create user qypsrsstest identified by qypsrsstest123 default tablespace qypsrss temporary tablespace temp;
-- 为用户授权
grant connect,dba to qypsrsstest;

--导入数据库()
imp qypsrss/qypsrss123@dicpsi fromuser=qypsrsstest touser=qypsrss file=C:\qypsrss.dmp 
--导出数据库
exp qypsrsstest/qypsrsstest123@orcl  file=D:\qypsrss.dmp owner=qypsrsstest log=D:\qypsrss.log

猜你喜欢

转载自a--bian.iteye.com/blog/2116723