スクリプトchange_pg_password.shでは、rootユーザーがData Moverサーバー上のPOSTGRES、DATAMOVER、およびBARパスワードを変更できます。
Data MoverにバンドルされているDSAのパスワードは、change_pg_password.shスクリプトを使用して更新されます。DSAに付属のスクリプトを使用しないでください。
スクリプトを使用してDATAMOVERに指定された新しいパスワードは、BARユーザーに適用されます。スクリプトを開始すると、スクリプトは内部のPOSTGRESリポジトリにログインし、リポジトリのパスワードを変更します。このスクリプトはtdm-linuxバンドルに含まれていて、場所は、サーバー上のバンドルの配置場所に応じて決まります。例:
/var/opt/teradata/packages/DataMover/17.12.00.00/change_pg_password.sh
以前daemon.propertiesファイルのdm.job.production.passwordを使用してDATAMOVERパスワードを変更した場合は、プロパティをdaemon.propertiesから削除してからchangepassword.shスクリプトを実行してください。
Teradataでは、Data Moverをインストールまたはアップグレードする前にスクリプトを実行することを推奨します。Data Moverをインストールまたはアップグレードしてからスクリプトで実行する場合は、Data Moverが正しく動作するようにデーモンを再起動する必要があります。
次の特殊文字はパスワードでは使用できません。
- 一重引用符( ' )
- 二重引用符( " )
- 空白
- 次のいずれかを実行します。
スクリプト オプション 説明 対話型 - 引数を指定しないでスクリプトを実行します:
change_pg_password.sh
- プロンプトが表示されたら、古いパスワードと新しいパスワードを入力します。
Non-Interactive - 引数-o、-p、-m、-dを指定して、スクリプトを実行します。 例:
# change_pg_password.sh -o Current password for user 'postgres' -p New password for user 'postgres' -m Current password for user 'datamover' & 'bar' -d New password for user 'datamover' & 'bar'、ここで、
- Current password for user 'postgres'はPOSTGRESユーザーの既存のパスワードです
- New password for user 'postgres'はPOSTGRESユーザーの新しいパスワードです
- Current password for user 'datamover' & 'bar'はDATAMOVERおよびBARユーザーの既存のパスワードです
- New password for user 'datamover' & 'bar'はDATAMOVERおよびBARユーザーの新しいパスワードです
- 引数を指定しないでスクリプトを実行します:
- Data Moverをインストールまたはアップグレードしてからchange_pg_password.shスクリプトを実行した場合は、デーモンを再起動します。
- # /etc/init.d/dmdaemon stop
- # /etc/init.d/dmdaemon start
- 次のコマンドを使用して、Data Moverコンポーネントを使用する準備ができていることを確認します。
- datamove list_jobs
- datamove list_agents
スクリプトの例
location:/var/opt/teradata/packages/DataMover/17.12.00.00 # sh change_pg_password.sh Do you want to change password for user 'postgres' of the Postgres internal repository?(yes/no/y/n)? y ---------------------------------------------------------------- Change Postgres Password Use double quotes when entering passwords containing special characters ---------------------------------------------------------------- Old Password: Retype Old Password: New Password: Retype New Password: Do you want to change password for user 'DATAMOVER' & 'BAR' of the Postgres internal repository?(yes/no/y/n)? y ---------------------------------------------------------------------- Change DATAMOVER & BAR Password Use double quotes when entering passwords containing special characters ---------------------------------------------------------------------- Old Password: Retype Old Password: New Password: Retype New Password: ********************************************************************************************** Postgres Password changed successfully ********************************************************************************************** ********************************************************************************************** DATAMOVER & BAR Password changed successfully ********************************************************************************************** Please restart the Daemon using the following commands /etc/init.d/dmdaemon stop /etc/init.d/dmdaemon start ********************************************************************************************** Please wait .. updating DSA properties files ********************************************************************************************** DSA properties files updated successfully ********************************************************************************************** The DSC and DSARest web service have been restarted **********************************************************************************************