728x90
반응형
 
export를 실행하는데 아래와 같은 에러가 발생하였다. 


[oracle@CentOS5DBserver ~]$ exp ID/pwass@TEST_SERVER file=TESTDB090617.dmp log=TESTDB090617.log
Export: Release 9.2.0.4.0 - Production on Tue Jun 16 09:24:42 2009

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses JA16EUC character set (possible charset conversion)

About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user TEST
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user TEST
EXP-00008: ORACLE error 942 encountered
ORA-00942: table or view does not exist
EXP-00024: Export views not installed, please notify your DBA
EXP-00000: Export terminated unsuccessfully


위 문제는 오라클 버젼이 다를 경우에 발생하며 $ORACLE_HOME/rdbms/admin/catexp.sql 을 구동시키면 해결된다. 


728x90
반응형
728x90
반응형

1. 데이터베이스 익스포트

 * pg_dump 데이터베이스 명 > export할 파일명;

--> 예) pg_dump mydb > mydb20050222.sql;

--> pg_dump는 순수하게 sql문을 통해서 익스포트 한다.

 

2. 데이터베이스 임포트

 * psql -f 임포트할_파일명 임포트할_데이터베이스명

--> psql -f mydb20050222.sql mydb

--> sql문 스크립트를 실행하는 방법으로 임포트

728x90
반응형

+ Recent posts