--在SQLPLUS中执行如下命令--导出
--将数据库orcl完全导出exp system/oracle@orcl file=c:oracle_bakorcl_bak.dmp full=y--将数据库中scott用户的所有对象导出exp scott/tiger1@orcl file=c:oracle_bakscott_bak.dmp owner=scott--将scott用户中表emp,dept导出exp scott/tiger1@orcl file=c:oracle_baktable_bak.dmp tables=(emp,dept)--导入
--将备份文件导入到数据库
imp scott/tiger1@orcl file=c:oracle_bakscott_bak.dmp ignore=y--将scott用户的备份文件导入到yanln用户中
imp yanln/yanln@orcl fromuser=scott touser=yanln file=c:oracle_bakscott_bak.dmp
本文发布于:2024-02-02 13:39:05,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170685234444161.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |