Oracle 传输表空间.doc_第1页
Oracle 传输表空间.doc_第2页
Oracle 传输表空间.doc_第3页
Oracle 传输表空间.doc_第4页
Oracle 传输表空间.doc_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Oracle 传输表空间0、检查平台信息所有tts支持平台SELECT * FROM V$TRANSPORTABLE_PLATFORM;当前系统平台情况SELECT d.PLATFORM_NAME, ENDIAN_FORMATFROM V$TRANSPORTABLE_PLATFORM tp, V$DATABASE dWHERE tp.PLATFORM_NAME = d.PLATFORM_NAME;一、源端操作检查是否符合TTS要求SQL EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK(ODU, TRUE);PL/SQL procedure successfully completed.SQL SELECT * FROM TRANSPORT_SET_VIOLATIONS;no rows selectedSQL SELECT COUNT(*) FROM DBA_TABLES WHERE TABLESPACE_NAME=ODU;COUNT(*)-59SQL SELECT file_name from dba_data_files where tablespace_name=ODU;FILE_NAME/opt/oracle/oradata/chf/odu01.dbf/opt/oracle/oradata/chf/odu02.dbf需要传输表空间至于readonly模式SQL ALTER TABLESPACE ODU READ ONLY;Tablespace altered.导出表空间元数据oraclenode1 $ exp userid=/ as sysdba tablespaces=ODU file=/tmp/ODU.dmp transport_tablespace=yExport: Release 10.2.0.4.0 Production on Sun Sep 11 10:01:52 2011Copyright (c) 1982, 2007, Oracle. All rights reserved.Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsExport done in ZHS16GBK character set and AL16UTF16 NCHAR character setNote: table data (rows) will not be exportedAbout to export transportable tablespace metadataFor tablespace ODU . exporting cluster definitions. exporting table definitions. . exporting table T_ODU_03. . exporting table T_ODU_01. . exporting table T_ODU. . exporting table DB. . exporting table NODE. . exporting table CONF. . exporting table DBINC. . exporting table CKP. . exporting table TS. . exporting table TSATT. . exporting table DF. . exporting table DFATT. . exporting table TF. . exporting table TFATT. . exporting table OFFR. . exporting table RR. . exporting table RT. . exporting table ORL. . exporting table RLH. . exporting table AL. . exporting table BS. . exporting table BP. . exporting table BCF. . exporting table CCF. . exporting table XCF. . exporting table BSF. . exporting table BDF. . exporting table CDF. . exporting table XDF. . exporting table BRL. . exporting table BCB. . exporting table CCB. . exporting table SCR. . exporting table SCRL. . exporting table CONFIG. . exporting table XAL. . exporting table RSR. . exporting table FB. . exporting table GRSP. . exporting table ROUT. . exporting table RCVER. . exporting table F_DROP. . exporting table T_QUERY. . exporting table T_UNDO. . exporting table A. . exporting table T1. . exporting table T2_1. . exporting table T2. . exporting table T_MV. . exporting table TAB2. . exporting table MLOG$_T_MV. . exporting table T_N. . exporting table T_M. . exporting table MLOG$_T_N. . exporting table T_1. . exporting table T_2. . exporting table T_3. . exporting table T_4. . exporting table T_5. exporting referential integrity constraints. exporting triggers. end transportable tablespace metadata exportExport terminated successfully without warnings.SQL alter tablespace odu read write;Tablespace altered.传输到目标段oraclenode1 $ scp /opt/oracle/oradata/chf/odu0* 192.168.11.12:/opt/oracle/oradata/testThe authenticity of host 192.168.11.12 (192.168.11.12) cant be established.RSA key fingerprint is db:3c:b4:34:7f:d7:e4:97:ab:b6:8b:b0:ab:22:43:35.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 192.168.11.12 (RSA) to the list of known hosts.oracle192.168.11.12s password:odu01.dbf 100% 100MB 3.3MB/s 00:30odu02.dbf 100% 11GB 2.8MB/s 1:05:00oraclenode1 $ scp /tmp/ODU.dmp 192.168.11.12:/tmporacle192.168.11.12s password:Permission denied, please try again.oracle192.168.11.12s password:ODU.dmp 100% 456KB 456.0KB/s 00:00 二、目标端操作导入元数据库oracleECP-UC-DB1 $ imp userid=/ as sysdba tablespaces=ODU file=/tmp/ODU.dmp transport_tablespace=y datafiles=/opt/oracle/oradata/test/odu01.dbf, /opt/oracle/oradata/test/odu02.dbf fromuser=chf touser=chfImport: Release 10.2.0.4.0 Production on Sun Sep 11 11:13:25 2011Copyright (c) 1982, 2007, Oracle. All rights reserved.Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsExport file created by EXPORT:V10.02.01 via conventional pathAbout to import transportable tablespace(s) metadataimport done in ZHS16GBK character set and AL16UTF16 NCHAR character set. importing CHFs objects into CHF. . importing table “T_ODU_03. . importing table “T_ODU_01. . importing table “T_ODU”. . importing table “DB”. . importing table “NODE”. . importing table “CONF”. . importing table “DBINC”. . importing table “CKP”. . importing table “TS”. . importing table “TSATT”. . importing table “DF”. . importing table “DFATT”. . importing table “TF”. . importing table “TFATT”. . importing table “OFFR”. . importing table “RR”. . importing table “RT”. . importing table “ORL”. . importing table “RLH”. . importing table “AL”. . importing table “BS”. . importing table “BP”. . importing table “BCF”. . importing table “CCF”. . importing table “XCF”. . importing table “BSF”. . importing table “BDF”. . importing table “CDF”. . importing table “XDF”. . importing table “BRL”. . importing table “BCB”. . importing table “CCB”. . importing table “SCR”. . importing table “SCRL”. . importing table “CONFIG”. . importing table “XAL”. . importing table “RSR”. . importing table “FB”. . importing table “GRSP”. . importing table “ROUT”. . importing table “RCVER”. . importing table “F_DROP”. . importing table “T_QUERY”. . importing table “T_UNDO”. . importing table “A”. . importing table “T1. . importing table “T2_1. . importing table “T2. . importing table “T_MV”. . importing table “TAB2. . importing table “MLOG$_T_MV”. . importing table “T_N”. . importing table “T_M”. . importing table “MLOG$_T_N”. . impor

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论