Mac De Oracle (Cross Platform Transportable Tablespace) #3 Tweet
続きです。ここからは、ターゲットデータベース側である Windows上で操作を行う。
3.トランスポートセットを利用し、ターゲット・データベースへ表領域をプラグインする。
1)データファイルのendianの確認。
MacOSX と Windows(32bit)では、endianが異なる。プラットフォーム毎の endianを確認しておく。2)データファイルのendianの変換及び、変換後データファイルの配置。
3)メタデータのインポート。
4)プラグインした表領域をread/write可能に変更する。
参考資料:
「Oracle Database 管理者ガイド10g リリース 2(10.2)」の「データベース間での表領域のトランスポート」
1)endianの確認。
DOSプロンプトを起動し、前回の、2.でダンプファイルとデータファイルを転送した共有フォルダへカレントディレクトリを移動する。(尚、共有フォルダへカレントディレクトリを移動したのは、後続する操作を行い易くするためだけなので、ご自分の環境に合わせて都合のよい方法にすればよいだろう。)
次にsql*plusを起動して、v$transportable_platform動的パフォーマンスビューを問い合わせる。見ての通り、MacOSXは、big endian、Windows(32bit)は、little endian であることから、big endianからlittle endianへのコンパートが必要であることがわかる。
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:¥Documents and Settings¥discus>cd C:¥external_dir
C:¥external_dir>sqlplus /nolog
SQL*Plus: Release 10.2.0.2.0 - Production on 木 9月 7 22:06:10 2006
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
> conn / as sysdba
接続されました。
SYS> col platform_name for a41
SYS> set pagesize 1000
SYS> select
2 endian_format,
3 platform_name
4 from
5 v$transportable_platform;
ENDIAN_FORMAT PLATFORM_NAME
---------------------------- -----------------------------------------
Big Solaris[tm] OE (32-bit)
Big Solaris[tm] OE (64-bit)
Little Microsoft Windows IA (32-bit)
Little Linux IA (32-bit)
Big AIX-Based Systems (64-bit)
Big HP-UX (64-bit)
Little HP Tru64 UNIX
Big HP-UX IA (64-bit)
Little Linux IA (64-bit)
Little HP Open VMS
Little Microsoft Windows IA (64-bit)
Big IBM zSeries Based Linux
Little Linux 64-bit for AMD
Big Apple Mac OS
Little Microsoft Windows 64-bit for AMD
Little Solaris Operating System (x86)
Big IBM Power Based Linux
17行が選択されました。
SYS>
SYS> exit
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining optionsとの接続が切断されました。
今日は、ここまで、次回へつづく。
聞いている曲:
Naturall 7 -レディ・II・フライ


| 固定リンク | 0
コメント