1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 按用户导出 G:\app\Administrator\product\11.2.0\dbhome_1\BIN> expdp system/oracle@localhost:1521/orcl schemas=taskdb dumpfile=taskdb.dmp DIRECTORY=dump_dir 按用户导入 1)新用户不存在: G:\app\Administrator\product\11.2.0\dbhome_1\BIN> impdp system/oracle@localhost:1521/orcl directory=dump_dir dumpfile=taskDB.dmp REMAP_SCHEMA=taskDB:qianzhang 2)新用户存在: G:\app\Administrator\product\11.2.0\dbhome_1\BIN> impdp qianzhang/qianzhang@localhost:1521/orcl directory=dump_dir dumpfile=taskDB.dmp REMAP_SCHEMA=taskDB:qianzhang <strong>备注: </strong><br><strong>1、expdp 和impdp 需要是执行在服务器上的cmd窗口中的,directory=dump_dir 是建立在服务器上的目录,</strong><br><strong> 可以用语句“ select * from dba_directories”查询, 如果没有建立,则需要登录sqlplus,用语句“SQL> create directory dump_dir as 'd:\dump' ;”进行创建 2、taskDB是原用户,qianzhang是新的用户,qianzhang不存在时会自动建立,其权限和使用的表空间与taskDB相同,但此时用qianzhang无法登录,必须修改qianzhang的密码 </strong> |
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步