oracle下导出某用户所有表的方法.docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
oracle 下导出某用户所有表的方法 scott/tiger 是用户名和密码,handson 是导出的实例名 scott/tiger 是用户名和密码,handson 是导出的实例名 2 按用户方式导出数据(owner 当中写的是用户名) exp scott/tiger@handson file=scott_back owner=scott exp scott/tiger@handson file=scott_back owner=scott 2 按表方式导出数据(talbes 当中写的是全部表的名称) exp scott/tiger@handson tables=(emp, dept) file=scott_back_tab2 按表空间方式导出数据(tablespaces 当中写的是表空间名称)exp system/handson@handson tablespaces=(users) file=tbs_users2 使用参数文件导出数据exp system/handson parfile=C:\parameters.txt exp scott/tiger@handson tables=(emp, dept) file=scott_back_tab 2 按表空间方式导出数据(tablespaces 当中写的是表空间名称) exp system/handson@handson tablespaces=(users) file=tbs_users 2 使用参数文件导出数据 exp system/handson parfile=C:\parameters.txt 1、cmd-exp-username/passwd@sid--一路回车输入导出库得名字 就把所有的表、视图、存储 过程、函数、作业等乱七八糟的都导出来了; 2、pl/sql--工具〉导出用户对象 可以找到你要导的东东。两者都可以的很方便! 导出表: exp scott/tiger@mycon tables=(dept,emp) file=tab1.dmp 导出用户: exp system/manager@mycon owner=scott file=usr1.dmp 导出数据库: 1.完全导出 exp file=full1.dmp system/manager@mycon full=y inctype=complete 2.增量导出 exp file=inc1.dmp system/manager@mycon full=y inctype=incremental 3.累积导出 exp file=cum1.dmp system/manager@mycon full=y inctype=cumulative 导入表: imp system/manager@mycon file=c:\tab1.dmp tables=(dept,emp) touser=scott 导入用户: imp system/manager@mycon file=usr1.dmp fromuser=scott touser=scott 导入数据库: 1.全库导入 imp system/manager@mycon file=full1.dmp full=y 2.增量导入 1)导入数据库最新信息 imp system/manager@mycon inctype=system full=y file=inc7.dmp 2)导入最近完全导出文件 imp system/manager@mycon inctype=restore full=y file=full1.dmp 导入所有累积导出文件 imp system/manager@mycon inctype=restore full=y file=cum1.dmp 导入最近一次增量导出的文件 imp system/manager@mycon inctype=restore full=y file=inc1.dmp 常用的命令 Exp user/password@instance file=file.dmp rows=y log=log_name 其中 username/password 为导出用户的用户名和密码 Instance 为导出的实例名 Rows 是指定是否要导入表中的行导出一个用户下的表结构为 sql 文件: 使用命令好像导出的都是 dmp 文件 可以使用 plsql 软件在 tools--àexport user object 如果不要到处 table space ,不要勾 include storage 选择导出的路径文件名,export 可以直接导出了 例子 1:(本方法限 oracle9i 版本以上) set pagesize 0 set lon

文档评论(0)

mph + 关注
官方认证
内容提供者

该用户很懒,什么也没介绍

认证主体上海谭台科技有限公司
IP属地湖北
统一社会信用代码/组织机构代码
91310115MA7CY11Y3K

1亿VIP精品文档

相关文档