本記事では SharePlex 用のOracle Databaseユーザーのパスワードの変更方法を説明します。
ora_chpwdコマンドは ora_setup時に SharePlex動作用のユーザーとしてOracle データベース上に作成または指定されたユーザー(スキーマ)のパスワードとそのユーザーのSharePlex用接続設定を更新します。
以下の手順でパスワードを変更してください。
1. SharePlexユーザーのパスワードを変更するサーバー上でSharePlexインスタンスを停止します。(sp_ctrl > shutdown ) 。
データベース側は稼働している必要があります。
2. ora_chpwd コマンド( PRODDIR/bin/ora_chpwd )を起動して新しいパスワードを設定します。
< 実行例 >
$ ora_chpwd
This program allows you to change the password of the
SharePlex user account needed to run Oracle replication.In response to prompts, a carriage return will choose the
default given in brackets. If there is no default, a reply
must be entered.
Please enter the SID where SharePlex is installed [orcl] : orclIn order to change the password for the SharePlex user account,
we must connect to the database as DBA user.Enter a DBA user name : system
Enter password for the DBA account, which will not echo :connecting--This may take a few seconds.
Enter the current username for SharePlex user : splex2300 (DB上のSharePlexユーザー名を指定)
Enter new password for SharePlex user : 新しいパスワードを入力(表示されません)
Re-enter password for SharePlex user : 新しいパスワードを再入力(表示されません)Changing SharePlex connection database . . .
SharePlex password change completed successfully.
RAC環境や、マルチテナント環境(CDB)のPDB用に構成したTNS別名を指定している場合には次のようにします。
$ ora_chpwd
This program allows you to change the password of the
SharePlex user account needed to run Oracle replication.
In response to prompts, a carriage return will choose the
default given in brackets. If there is no default, a reply
must be entered.
Please enter the SID where SharePlex is installed [orcl] : tnsalias
In order to change the password for the SharePlex user account,
we must connect to the database as user with 'alter user' privilege.
TNSエイリアスの示す接続先でALTER USER権限をもつユーザーの名前を指定します。
Enter a user with 'alter user' privilege : c##admin
Enter password for entered account, which will not echo : 指定したユーザーのパスワード@tnsalias (つなげて入力します。ただし入力は表示されません)
connecting--This may take a few seconds.
Enter the current username for SharePlex user : splex2400 (SharePlex用DBユーザー名を指定)
Enter new password for SharePlex user : 新しいパスワードを入力(表示されません) @tnsaliasは打たない
Re-enter password for SharePlex user : 新しいパスワードを再入力(表示されません)@tnsaliasは打たない
Changing SharePlex connection database . . .
SharePlex password change completed successfully.
3. SharePlex を起動します。
Windows 環境では以下の方法で変更してください。
1. パスワードを変更します。
< 実行例 >
sp_ctrl> connection o.DBN set user=splex2100
sp_ctrl> connection o.DBN set password=xxxxxx
DBNにはorcl(ORACLE_SID)やtnsaliasなどを指定します。
2. SharePlex を停止します。
3. Oracle 側で SharePlex 用ユーザーのパスワードを変更します。
SQL> alter user splex2100 identified by xxxxxx;
4. SharePlex を起動します。