oracle下导出某用户所有表的方法
scott/tiger是用户名和密码,orcl是导出的实例名
按用户方式导出数据(owner当中写的是用户名) exp scott/tiger@orcl file=scott_back owner=scott
按表方式导出数据(talbes当中写的是全部表的名称) exp scott/tiger@orcl tables=(emp, dept) file=scott_back_tab
按表空间方式导出数据(tablespaces当中写的是表空间名称) exp system/orcl@orcl tablespaces=(users) file=tbs_users
使用参数文件导出数据 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 system/manager@mycon full=y inctype=complete file=full1.dmp
2.2.增量导出 exp system/manager@mycon full=y inctype=incremental file=inc1.dmp
3.3.累积导出 exp system/manager@mycon full=y inctype=cumulative file=cum1.dmp
4.导入表: imp system/manager@mycon file=c:\tab1.dmp tables=(dept,emp) touser=scott
5.导入用户: imp system/manager@mycon file=usr1.dmp fromuser=scott touser=scott
导入数据库:
1.全库导入 imp system/manager@mycon file=full1.dmp full=y
scott/tiger是用户名和密码,orcl是导出的实例名
按用户方式导出数据(owner当中写的是用户名) exp scott/tiger@orcl file=scott_back owner=scott
按表方式导出数据(talbes当中写的是全部表的名称) exp scott/tiger@orcl tables=(emp, dept) file=scott_back_tab
按表空间方式导出数据(tablespaces当中写的是表空间名称) exp system/orcl@orcl tablespaces=(users) file=tbs_users
使用参数文件导出数据 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 system/manager@mycon full=y inctype=complete file=full1.dmp
2.2.增量导出 exp system/manager@mycon full=y inctype=incremental file=inc1.dmp
3.3.累积导出 exp system/manager@mycon full=y inctype=cumulative file=cum1.dmp
4.导入表: imp system/manager@mycon file=c:\tab1.dmp tables=(dept,emp) touser=scott
5.导入用户: imp system/manager@mycon file=usr1.dmp fromuser=scott touser=scott
导入数据库:
1.全库导入 imp system/manager@mycon file=full1.dmp full=y