transport tablespace
来源:互联网 发布:node更新到最新版本 编辑:程序博客网 时间:2024/03/29 04:28
1. 在源数据库与目标数据库检查字符集是不是相同
2. 源数据库需要导入表空间是不是自包含的
3. 检查操作系统信息是不是被支持
4. 检查DB FILE的位置
1col PARAMETER for a30col VALUE for a30select * from v$nls_parameters where PARAMETERin('NLS_CHARACTERSET','NLS_NCHAR_CHARACTERSET');2------结果应当是no resultexec sys.dbms_tts.transport_set_check('TEST_DATA',true);select * from sys.transport_set_violations;3 --有值就说明支持select PLATFORM_NAME from v$database where PLATFORM_NAME in (selectPLATFORM_NAME from v$transportable_platform);4select tablespace_name, file_name from dba_data_files whereupper(tablespace_name) like upper('%TEST_DATA%') union allselect tablespace_name, file_name from dba_temp_files whereupper(tablespace_name) like upper('%TEST_DATA%');
开始导出:
1. 将源数据库需要导出的表空间设为只读
2. 导出DMP文件
3. 转换DBF文件
4. FTP DMP,DBF文件到目标数据库
5. 将源数据库需要导出的表空间设为可读写(一定要在FTP之后,不然会有ORA-19722 版本对不上的错误)
6. 如果目标数据库没有对应的USER,创建一下,并授权
7. 开始导入
1ALTER TABLESPACE TEST_DATA READ ONLY;2exp "'/ as sysdba'" file=TEST_DATA.dmp log=test_data.logtransport_tablespace=y tablespaces=TEST_DATA3rman target /CONVERT TABLESPACE TEST_DATA TO PLATFORM 'Linux x86 64-bit'db_file_name_convert='/home/vdqa1/data/test_data.dbf', 'Ntest_data.dbf'; 4FTP xxxxxBinPut Ntest_data.dbfPut TEST_DATA.dmp5ALTER TABLESPACE TEST_DATA READ WRITE;6CREATE USER testerIDENTIFIED BY tester ;GRANT CONNECT,Resourceto tester ; 7.imp "'/ as sysdba'" file=TEST_DATA.dmp log=imp_test_data.logtransport_tablespace=y datafiles='/home/oracle/11.2.0.4/dbs/Ntest_data.dbf'
使用DATA PUMP:
2
create or replace directory dpump_dir AS '/home/XXX/admin/dpump';grant read, write on directory dpump_dir to sys;expdp userid=\'sys as sysdba\' DUMPFILE=Tester_2_19.dmp DIRECTORY=dpump_dir transport_tablespaces = TEST_DATA
create or replace directory dpump_dir AS '/home/XXX/admin/dpump';grant read, write on directory dpump_dir to sys;impdp userid=\'sys as sysdba\' DUMPFILE=Tester_2_19.dmp DIRECTORY=dpump_dir transport_datafiles = '/home/oracle/11.2.0.4/dbs/Ntest_data.dbf' REMAP_SCHEMA=tester:tester
0 0
- transport tablespace
- Transport Tablespace Set(三) ----transport single tablespace
- 测试transport tablespace
- Oracle Transport Tablespace
- Oracle Transport Tablespace
- transport tablespace Tips
- Transport tablespace at OS level
- Oracle Transport Tablespace by RMAN
- Oracle RMAN Transport Tablespace - 兼容性检查
- tablespace
- Tablespace
- Tablespace
- Tablespace
- tablespace
- tablespace
- 运用transport tablespace进行快速oracle版本升级(9i-10g)
- 运用transport tablespace进行快速oracle版本升级(9i-10g)
- 使用rman在不同平台之间传送oracle asm表空间(transport tablespace)
- 计算机名/域更改
- Spring MVC拦截器+注解方式实现防止表单重复提交
- J2EE 乱码两张解决方式--小结
- "error while loading shared libraries: xxx.so.x" 错误的原因和解决办法
- jsp分页功能的实现
- transport tablespace
- eCos内核API与内核实现的衔接
- javascript学习总结
- Edit hosts file in Windows 7 & Windows Vista
- Linux 修改密码
- U-Boot 目录结构和编译过程
- 简单实用的快捷键总结
- 老G 的BLOG
- Struts2 VS Struts1