2013年9月24日火曜日

Oracle Database 12c Tips - Configure EM for Pluggable Database/ Pluggable DatabaseにEM Expressを構成する

English follows Japanese:

Oracle Database 12c ではコンテナDBと一緒にPDBを作成するとコンテナDBにしかEMが自動構成されない。

なので、プラガブルDBに手動でEM Expressを構成する。

1) OS上でEM Expressに使用するポートが空いていることを確認する。
netstat –an | grep 5510
何もかえってこなければ現在使用されていないのでOK。
現在使用されているようであれば、5511とか使用されていないことが確認できたポートを使用することにする。

2) SYSDBA権限でプラガブルDBへ接続

3) EM Express用のHTTPsポートを指定
exec DBMS_XDB_CONFIG.SETHTTPSPORT(5510)

4) XDBユーザのパスワードを再設定
##EM ExpressではXDBディスパッチャを使用しWebアプリとしてのEM Expressを提供している。
##PDBにEM Expressを設定するとXDBのパスワードを再設定する必要がある。
   4-1) SYSDBA権限でコンテナDBへ接続
   4-2) select username,account_status from dba_users;でLOCKされているかEXPIREされているか確認
   4-3) alter user XDB account unlock identified by ******;で再設定

5) EM Expressへアクセス
https://localhost:5510/em

--------------------------------------------------------------

When created a pluggable DB with a container DB with DBCA, a EM Express has been configured for only the container DB.

The following is to configure EM Express for the pluggable DB

1) make sure the port you want to set for EM Express is not occupied
#for instance, I have used 5510 port
netstat –an | grep 5510
No reply means your machine is not using the port.
If the port has already used for some other application, you need to change the port like 5511...

2) Login to the pluggable DB as sysdba

3) set the port number to EM Express
exec DBMS_XDB_CONFIG.SETHTTPSPORT(5510)

4) reconfigure the password for XDB user on the container DB
##EM Express uses XML DB dispatcher as HTML/HTTP dispatcher for EM Express
##You need to set new password for XML DB user(XDB)
   4-1) login to the container DB as SYSDBA
   4-2) confirm if XDB user has not been locked nor expired.
         select username,account_status from dba_users;
   4-3) alter user XDB account unlock identified by ******;

5) Access to the EM Express for the pluggable DB
https://localhost:5510/em
##if the site required XDB user id and password, enter XDB and the password you have set.

0 件のコメント:

コメントを投稿