cmd
****************************************
******************author:lenkou******
****************************************
一。普通的数据转移命令(适用于同一台)
1。导出命令:exp userid/password@sid owner=normal/sysdba/sysoper file=c:/filename.dmp log=c:/logfile.log
一般用户不需加owner=normal/sysdba/sysoper
2。导入命令:imp userid/password@sid file=c:/filename.dmp log=c:/logfile.log
二。表空间的转移(可用于不同平台间,仅限oracle 10g,操作系统字节顺序相同)
1.操作系统字节顺序查询:select * from v$transportable_platform order by platform_id;
2.alter tablespace users read only;
3.导出表空间命令:exp tablespaces=users transport_tablespace=y file=exp_ts_users.dmp
4.如果您使用 FTP,那么您将需要指定二进制选项
5.将表空间插入到数据库中的命令:
imp tablespaces=users transport_tablespace=y file=exp_ts_users.dmp datafiles='users_01.dbf'