오라클 8.1.7 -> 7.3.4 로 DB data 이전
2010.05.12 08:25
원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어
Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
본문 : http://www.ischo.net -- 조인상 //시스템 엔지니어
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
No. 11620
exporting oracle 8 to import to oracle 7
----------------------------------------
oracle 8의 내용을 oracle 7으로 import 시 다음과 같은 에러가 발생한다.
RC73:/mnt3/rctest73/server> imp exp_test/exp_test file=exp_test.dmp
Import: Release 7.3.4.1.0 - Production on Thu Apr 22 14:25:39 1999
Copyright (c) Oracle Corporation 1979, 1996. All rights reserved.
Connected to: Oracle7 Server Release 7.3.4.1.0 - Production
With the distributed, replication, parallel query and Spatial Data options
PL/SQL Release 2.3.4.1.0 - Production
IMP-00010: not a valid export file, header failed verification
IMP-00021: operating system error - error code (dec 2, hex 0x2)
IMP-00000: Import terminated unsuccessfully
RC73:/mnt3/rctest73/server>
이러한 문제는 오라클 7의 export dump file의 header 정보에서 오라클 8으로
버전이 올라오면서 추가적인 정보(eg. NCHAR character set)가 늘어나서 오라클 8
에서 export한 화일을 오라클 7의 imp utility가 읽어내지 못하는 데서 비롯된다고
할 수 있다.
이러한 문제점을 해결하기 위한 script가 $ORACLE_HOME/rdbms/admin/catexp7.sql임.
이것은 오라클 8 데이타베이스에 대해서 오라클 7대와 같은 style의 export/import
view들을 만들어 주는 역할을 한다.
이러한 view는 오라클 8의 object들은 볼 수 없으므로 오라클 7대와 같은 형태의
object들만 export될 수 있다.
다음은 export / import 하는 절차를 간단하게 보여주고 있다.
1. oracle 8 으로 접속하여 svrmgrl을 수행 후 connect internal을 해준 후 다음을
수행.
SVRMGR> @?/rdbms/admin/catexp7.sql
2. oracle 7 으로 접속하여 oracle 7의 export utility를 이용해서 export를
받는다.
이 때 oracle 8을 가리키는 tns name을 이용해서 export받는다.
exp exp_test/exp_test@ora80 file=exp_test.dmp
3. 이렇게 export받은 dump 화일을 이용해서 oracle 7으로 import를 받는다.
imp system/manager file=exp_test.dmp fromuser=exp_test touser=scott
4. oracle 8의 sys user(system이 아님)로 catexp.sql을 다시 수행해 주어서
export/import 관련 view들을 생성해 준다.
SVRMGR> @?/rdbms/admin/catexp.sql
Reference Documents
-------------------
<Note:50577.1
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
No. 11620
exporting oracle 8 to import to oracle 7
----------------------------------------
oracle 8의 내용을 oracle 7으로 import 시 다음과 같은 에러가 발생한다.
RC73:/mnt3/rctest73/server> imp exp_test/exp_test file=exp_test.dmp
Import: Release 7.3.4.1.0 - Production on Thu Apr 22 14:25:39 1999
Copyright (c) Oracle Corporation 1979, 1996. All rights reserved.
Connected to: Oracle7 Server Release 7.3.4.1.0 - Production
With the distributed, replication, parallel query and Spatial Data options
PL/SQL Release 2.3.4.1.0 - Production
IMP-00010: not a valid export file, header failed verification
IMP-00021: operating system error - error code (dec 2, hex 0x2)
IMP-00000: Import terminated unsuccessfully
RC73:/mnt3/rctest73/server>
이러한 문제는 오라클 7의 export dump file의 header 정보에서 오라클 8으로
버전이 올라오면서 추가적인 정보(eg. NCHAR character set)가 늘어나서 오라클 8
에서 export한 화일을 오라클 7의 imp utility가 읽어내지 못하는 데서 비롯된다고
할 수 있다.
이러한 문제점을 해결하기 위한 script가 $ORACLE_HOME/rdbms/admin/catexp7.sql임.
이것은 오라클 8 데이타베이스에 대해서 오라클 7대와 같은 style의 export/import
view들을 만들어 주는 역할을 한다.
이러한 view는 오라클 8의 object들은 볼 수 없으므로 오라클 7대와 같은 형태의
object들만 export될 수 있다.
다음은 export / import 하는 절차를 간단하게 보여주고 있다.
1. oracle 8 으로 접속하여 svrmgrl을 수행 후 connect internal을 해준 후 다음을
수행.
SVRMGR> @?/rdbms/admin/catexp7.sql
2. oracle 7 으로 접속하여 oracle 7의 export utility를 이용해서 export를
받는다.
이 때 oracle 8을 가리키는 tns name을 이용해서 export받는다.
exp exp_test/exp_test@ora80 file=exp_test.dmp
3. 이렇게 export받은 dump 화일을 이용해서 oracle 7으로 import를 받는다.
imp system/manager file=exp_test.dmp fromuser=exp_test touser=scott
4. oracle 8의 sys user(system이 아님)로 catexp.sql을 다시 수행해 주어서
export/import 관련 view들을 생성해 준다.
SVRMGR> @?/rdbms/admin/catexp.sql
Reference Documents
-------------------
<Note:50577.1
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
115 | 온라인 백업/리스토어 (imp/exp) | 조인상 | 2010.05.09 | 12785 |
114 | 아카이브 모드로 변환하기 | 조인상 | 2010.05.12 | 12791 |
113 | OS재설치 후 오라클 복구(솔라리스) | 조인상 | 2010.05.12 | 6779 |
112 | 백업에 관한 조언 | 조인상 | 2010.05.12 | 5184 |
111 | 필수로 암기해야 할 view 들... | 조인상 | 2010.05.12 | 5748 |
110 | 오라클 뷰들... | 조인상 | 2010.05.12 | 5908 |
109 | 9i 에서의 언두세그먼트 관리 | 조인상 | 2010.05.12 | 7342 |
108 | 오라클 재시작시에 롤백세그먼트 OFFLINE | 조인상 | 2010.05.12 | 5784 |
107 | 오라클 버전업 후 exp할때 ORA-00904에러 | 조인상 | 2010.05.12 | 10450 |
106 | 아카이브 로그 강제로 생성하는 명령어 | 조인상 | 2010.05.12 | 10805 |
105 | 오라클 패치 후 export가 안된다! [1] | 조인상 | 2010.05.12 | 10849 |
104 | control file 재생성하기 | 조인상 | 2010.05.12 | 11671 |
103 | 온라인 백업방법 begin~end backup | 조인상 | 2010.05.12 | 20679 |
102 | 64비트 Solaris에 오라클 9.2.0 설치 하기 | 조인상 | 2010.05.12 | 10527 |
101 | 처음 오라클 설치시 SGA 영역크기 정하는 규칙 | 조인상 | 2010.05.12 | 8350 |
100 | 오라클에 접속하는 최대 인스턴스개수(세션개수)를 늘리는 방법 | 조인상 | 2010.05.12 | 7149 |
99 | 인텔 펜티엄4 기반 Windows에 설치시 오류에 대해서 | 조인상 | 2010.05.12 | 5795 |
» | 오라클 8.1.7 -> 7.3.4 로 DB data 이전 | 조인상 | 2010.05.12 | 6922 |
97 | 캐릭터셋 변경방법 | 조인상 | 2010.05.12 | 7356 |
96 | [기타] 디비튜닝에 대한 질문과답변내용... | 조인상 | 2010.05.12 | 5718 |