准备工作:
cmd> sqlplus system/system as sysdba --创建路径 sql>create directory data_dir as 'D:\data_dir'; --删除路径 drop directory data_dir; --查看路径 select * from dba_directories; --创建用户 sql>create user USR_XBSD_AUTH identified by USR_XBSD_AUTH; --分配DBA权限 sql>grant dba to USR_XBSD_AUTH; --分配目录读写权限 sql>grant read,write on directory data_file to USR_XBSD_AUTH;
--退出sqlplus
sql>exit;
导出:
cmd> expdp 用户名/密码@orcl directory=文件夹 dumpfile=数据库文件.dmp logfile=日志文件.log full=y
导入:
cmd>impdp 用户名/密码@orcl directory=文件夹 dumpfile=数据库文件.dmp logfile=日志文件.log full=y
标签:XBSD,--,导出,AUTH,导入,USR,sql,directory,数据 From: https://www.cnblogs.com/BambooLamp/p/18230408