datapump(10g to 10g)
OS dir 作成
C:>sqlplus /nolog
SQL*Plus: Release 10.1.0.2.0 - Production on 日 3月 13 14:03:03 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> connect sys/sys as sysdba
接続されました。
SQL> create or replace directory exportdir as 'C:datapump'
ディレクトリが作成されました。
SQL> create user sam identified by sam default tablespace users quota unlimited on users;
ユーザーが作成されました。
SQL> grant create any directory to sam;
SQL> grant read,write on directory exportdir to sam
権限付与が成功しました。
SQL>alter user sam default tablespace users quota unlimited on users;
expdp 実行
C:Documents and Settingsoracle>C:Documents and Settingsoracle>expdp sam/sam tables=dbpump dumpfile=exportdir:aaa.dump logfile=exportdir:aaa.log
Export: Release 10.1.0.2.0 - Production on 日曜日, 13 3月, 2005 14:40
Copyright (c) 2003, Oracle. All rights reserved.
接続先: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
"SAM"."SYS_EXPORT_TABLE_01"を起動しています: sam/******** tables=dbpump dumpfile
=exportdir:aaa.dump logfile=exportdir:aaa.log
BLOCKSメソッドを使用して見積り中です...
オブジェクト型TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATAの処理中です
BLOCKSメソッドを使用した見積合計: 0 KB
オブジェクト型TABLE_EXPORT/TABLE/TABLEの処理中です
. . "SAM"."DBPUMP" 0 KB 0行がエクスポート
されました
マスター表"SAM"."SYS_EXPORT_TABLE_01"は正常にロード/アンロードされました
******************************************************************************
SAM.SYS_EXPORT_TABLE_01に設定されたダンプ・ファイルは次のとおりです:
C:DATAPUMPAAA.DUMP
ジョブ"SAM"."SYS_EXPORT_TABLE_01"が14:42で正常に完了しました。
impdp実行
C:Documents and Settingsoracle>impdp sam/sam tables=dbpump dumpfile=exportdir:aaa.dump logfile=exportdir:aaa.log
Import: Release 10.1.0.2.0 - Production on 日曜日, 13 3月, 2005 14:45
Copyright (c) 2003, Oracle. All rights reserved.
接続先: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
マスター表"SAM"."SYS_IMPORT_TABLE_01"は正常にロード/アンロードされました
"SAM"."SYS_IMPORT_TABLE_01"を起動しています: sam/******** tables=dbpump dumpfile
=exportdir:aaa.dump logfile=exportdir:aaa.log
オブジェクト型TABLE_EXPORT/TABLE/TABLEの処理中です
オブジェクト型TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATAの処理中です
. . "SAM"."DBPUMP" 0 KB 0行がインポートさ
れました
ジョブ"SAM"."SYS_IMPORT_TABLE_01"が14:45で正常に完了しました
dbconsole実行
C:>emctl status dbconsole
Environment variable ORACLE_SID not defined. Please define it.
C:>set ORACLE_SID=jeon
C:>emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
http://EVS-D106:5500/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory C:oracleproduct10.1.0db_1/EVS-D106_jeon/sysm
an/log
OS dir 作成
C:>sqlplus /nolog
SQL*Plus: Release 10.1.0.2.0 - Production on 日 3月 13 14:03:03 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> connect sys/sys as sysdba
接続されました。
SQL> create or replace directory exportdir as 'C:datapump'
ディレクトリが作成されました。
SQL> create user sam identified by sam default tablespace users quota unlimited on users;
ユーザーが作成されました。
SQL> grant create any directory to sam;
SQL> grant read,write on directory exportdir to sam
権限付与が成功しました。
SQL>alter user sam default tablespace users quota unlimited on users;
expdp 実行
C:Documents and Settingsoracle>C:Documents and Settingsoracle>expdp sam/sam tables=dbpump dumpfile=exportdir:aaa.dump logfile=exportdir:aaa.log
Export: Release 10.1.0.2.0 - Production on 日曜日, 13 3月, 2005 14:40
Copyright (c) 2003, Oracle. All rights reserved.
接続先: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
"SAM"."SYS_EXPORT_TABLE_01"を起動しています: sam/******** tables=dbpump dumpfile
=exportdir:aaa.dump logfile=exportdir:aaa.log
BLOCKSメソッドを使用して見積り中です...
オブジェクト型TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATAの処理中です
BLOCKSメソッドを使用した見積合計: 0 KB
オブジェクト型TABLE_EXPORT/TABLE/TABLEの処理中です
. . "SAM"."DBPUMP" 0 KB 0行がエクスポート
されました
マスター表"SAM"."SYS_EXPORT_TABLE_01"は正常にロード/アンロードされました
******************************************************************************
SAM.SYS_EXPORT_TABLE_01に設定されたダンプ・ファイルは次のとおりです:
C:DATAPUMPAAA.DUMP
ジョブ"SAM"."SYS_EXPORT_TABLE_01"が14:42で正常に完了しました。
impdp実行
C:Documents and Settingsoracle>impdp sam/sam tables=dbpump dumpfile=exportdir:aaa.dump logfile=exportdir:aaa.log
Import: Release 10.1.0.2.0 - Production on 日曜日, 13 3月, 2005 14:45
Copyright (c) 2003, Oracle. All rights reserved.
接続先: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
マスター表"SAM"."SYS_IMPORT_TABLE_01"は正常にロード/アンロードされました
"SAM"."SYS_IMPORT_TABLE_01"を起動しています: sam/******** tables=dbpump dumpfile
=exportdir:aaa.dump logfile=exportdir:aaa.log
オブジェクト型TABLE_EXPORT/TABLE/TABLEの処理中です
オブジェクト型TABLE_EXPORT/TABLE/TBL_TABLE_DATA/TABLE/TABLE_DATAの処理中です
. . "SAM"."DBPUMP" 0 KB 0行がインポートさ
れました
ジョブ"SAM"."SYS_IMPORT_TABLE_01"が14:45で正常に完了しました
dbconsole実行
C:>emctl status dbconsole
Environment variable ORACLE_SID not defined. Please define it.
C:>set ORACLE_SID=jeon
C:>emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
http://EVS-D106:5500/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory C:oracleproduct10.1.0db_1/EVS-D106_jeon/sysm
an/log
'기술관련 > oracle' 카테고리의 다른 글
- TABLE rename tips (0) | 2005.11.17 |
---|---|
프로세스 ID로 실행중인 SQL알아 보기 (0) | 2005.11.16 |
오라클 DBA를 위한 유용한 5가지 유닉스 명령어 (0) | 2005.01.17 |
테이블 스페이스의 데이터 파일과 테이블 스페이스의 크기 확인 (0) | 2005.01.10 |
oracle export import option (0) | 2005.01.05 |