Oracle数据导入导出基本操作示例

- 数据导出 - a.将数据库orcl完全导出,用户名user 密码password 导出到D:\dc.dmp中 - exp user/password@orcl file=d:\dc.dmp full=y - full=y 表示全库导出 - b.将数据库中user1和user2用户导出 - exp user/password@orcl file=d:\dc.dmp owner=(user1,user2) - full方式可以备份所有用户的数据库对象,包括表空间、用户信息等,owner=XX只能备份指定用户的对象. - c.将用户user中表user_operator,user_id导出 - exp user/password@orcl file=d:\dc.dmp tables=(user_operator,user_id) - tables=xx 表示备份相关表 
d.按条件导出数据
exp user/password@orcl file=d:\dc.dmp tables=(user_id) query=’where dept_id=1’
e.只导出表,不导出数据
exp user/password@orcl file=d:\dc.dmp tables=(user_id) rows=N
2.数据导入
a.将D:\dc.dmp中导入到数据库中
imp user/password@orcl file=d:\dc.dmp ignore=y
ignore=y 表示忽略错误 因为有的表已经存在,然后它就报错,对该表就不进行导入。
b.将d:\daochu.dmp中的表user_id导入
imp user/password@orcl file=d:\dc.dmp tables=(user_id)
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
本文标题:Oracle数据导入导出基本操作示例-创新互联
地址分享:http://www.scyingshan.cn/article/dichjp.html

 建站
建站
 咨询
咨询 售后
售后
 建站咨询
建站咨询 
 