1、sysdba 权限登陆
创建表空间:
create tablespace ‘表空间名’
logging
datafile 'F:\Oracle\chis\bs_phis.dbf'(存放地址)
size 32m
autoextend on
next 32m maxsize 24048m
extent management local;
创建用户:
create user ‘用户名’ identified by ‘密码’ default tablespace ‘表空间名’;
授权用户:
grant resource,connect,dba to ‘用户名’;
导入dmp文件:
imp ‘用户名’/‘密码’@orcl(实例名) file=F:\Oracle\chis\phis\BS_PHIS.dmp ignore=y full=y
数据泵导入:
impdp renkouku/renkouku@orcl directory=DATA_PUMP_DIR dumpfile=EXPDP20170220.DMP REMAP_SCHEMA=rpadmin:renkouku remap_tablespace='(RP_TBS:phis,sxphis:phis)'
drop user bschis cascade; (删除用户)
drop tablespace bs_chis including contents and datafiles;(删除表空间)
网友评论