set MFDBFH_CONFIG=<location-and-name-of-file>
この変数を設定しない場合、MFDBFH.cfg という名前のファイルが現在のディレクトリにあると見なされます。
dbfhconfig -add -server:<server-name> -provider:az
<server-name> は、データベース サーバー インスタンスの名前です。(local) または localhost のエントリも有効で、デフォルトでマシン名になります。MSSQL データストアで構成ファイルをすでに更新している場合、このエントリはすでに存在するため、このことを通知するメッセージが表示され、次の手順にスキップできます。
次に、インスタンス内の必要なデータベースを指定します。
dbfhconfig -add -server:<server-name> -dsn:<dsn-name> -type:database -name:master [-user:<user-name>] [-password:<password>] [-connect:<connection-string>]
<dsn-name> は、Azure master データベースの ODBC データ ソースであるか、ODBC データ ソースの代わりに接続文字列を使用する場合は、データベースを参照する構成内の一意の名前です。<user-name> および <password> は、インスタンスの有効な資格情報です。接続文字列を使用する場合は、これらの要素を指定する必要はありません。<connection-string> は、ODBC データ ソースを使用せずにデータベース接続を確立する場合のデータベース接続文字列です。データベース固有の構文については、「データベース接続文字列」を参照してください。
dbfhconfig -add -server:<server-name> -dsn:<dsn-name> -type:region -name:<region-name> -feature:<options> [-user:<user-name>] [-password:<password>] [-connect:<connection-string>]
<dsn-name> は、リージョン データベースの ODBC データ ソースであるか、ODBC データ ソースの代わりに接続文字列を使用する場合は、リージョン データベースを参照する構成内の一意の名前です。<region-name> は、エンタープライズ サーバー リージョンの名前です。<options> は、リージョンでデータベースを使用する機能のリストです。
dbfhconfig -add -server:<server-name> -dsn:<dsn-name> -type:crossregion [-user:<user-name>] [-password:<password>] [-connect:<connection-string>]<dsn-name> は、リージョン間データベースの ODBC データ ソースであるか、ODBC データ ソースの代わりに接続文字列を使用する場合は、データベースを参照する構成内の一意の名前です。
次の構成ファイルには、2 つのデータストアとリージョン データベースおよびリージョン間データベースが含まれています。データベース インスタンスは、VAR2AZDB 変数で示されます。このデータベースへの接続を確立するにはログイン資格情報が必要であるため、Secrets Vault も有効になっています。詳細については、「Micro Focus データベース ファイル ハンドラーの Secrets Vault の構成」を参照してください。
<datastores usevault="true"> <server name="${VAR2AZDB}" type="azuresqldb" access="odbc"> <dsn name="AZ.MYMASTER" type="database" dbname="master" userid="azusr" password="$$vault$$"/> <dsn name="AZ.VSAM" type="datastore" dsname="VSAM" userid="azusr" password="$$vault$$"/> <dsn name="AZ.SEQ" type="datastore" dsname="SEQ" optio="+ooseq" userid="azusr" password="$$vault$$"/> <dsn name="AZ.CAS.ESDEMO" type="region.cas" region="ESDEMO" feature="all" userid="azusr" password="$$vault$$"/> <dsn name="AZ.CROSSREGION" type="crossregion.cas" userid="azusr" password="$$vault$$"/> </server> </datastores>