TECH
QUESTION
자주하는 질문답변 입니다.
Oracle
작성자 | 유건데이타 | 등록일 | 2015-08-14 |
제목 | transportable Tablespace | ||
---|---|---|---|
transportable Tablespace의 생성(Export)은 8i~10g Standard Edition
에서는 지원하지 않는다. 1. 환경설정 및 test 환경 가. $ORACLE_HOME/dbs/initSID.ora compatible 을 8.1 이상으로 한다. compatible = "8.1.5" 나. OS system 및 db_block_size, character set이 동일해야 한다. 다. partition table인 경우 전체을 copying 한다. 라. bitmap indexes transport 할 수 없다. 마. exporting 된 schema 에 대한 owner을 check 한후 target system에 user을 create 해주어야 한다. ** sys.dbms_plugts.checkUser importing schema대한 user존재 여부을 check한다. TEST 환경 prem815 node :oracle 8.1.5 tablespace name test datafile /user2/prem815/app/oracle/product/815/test/test.dbf prem820 node (target system ) 2. 이동하고자 하는 Tablespace을 먼저 read only한다. prem815: alter tablespace test read only; or alter database open read only; 3. exporting meta data exp sys/manager file=test transport_tablespace= y tablespaces=test ..... Note: table data (rows) will not be exported About to export transportable tablespace metadata... For tablespace TEST ... . exporting cluster definitions . exporting table definitions . . exporting table REPAIR_TABLE . . exporting table REPP . . exporting table REPP_TEMP . . exporting table OEM_TABLE => Owner OEM user . exporting referential integrity constraints . exporting triggers . end transportable tablespace metadata export Export terminated successfully without warnings. ** OEM이란 user가 미리 존재해야 한다. 4. datafile copy tablespace test datafile을 target system 으로 copy한다. target system oracle user owner:dba을 check한다. 5. Importing meta data imp sys/manager file=test.dmp transport_tablespace=y tablespaces=test datafiles=/user2/prem815/app/oracle/product/820/test.dbf Export file created by EXPORT:V08.01.05 via conventional path About to import transportable tablespace(s) metadata... import done in KO16KSC5601 character set and KO16KSC5601 NCHAR character set . importing SYS's objects into SYS . importing SCOTT's objects into SCOTT . . importing table "REPAIR_TABLE" . . importing table "REPP" . . importing table "REPP_TEMP" . importing OEM's objects into OEM . . importing table "OEM_TABLE" Import terminated successfully without warnings. 6. tablespace status 변경 importing된 tablespace 의 status 는 Read only mode이다. tablespace status read and write mode 변경 alter tablespace test read write; |
Comment | |||
---|---|---|---|
등록된 코멘트가 없습니다. |