AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

setParameter(データベースコマンド)

setParameter

setParameter is an administrative command for modifying options normally set on the command line. You must issue the setParameter command against the admin database.

このコマンドは、次の環境でホストされている配置で使用できます。

  • MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン

  • MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン

重要

このコマンドは、MongoDB Atlas クラスターではサポートされていません。すべてのコマンドに対する Atlas のサポートについては、「サポートされていないコマンド」を参照してください。

db.adminCommand(
{
setParameter: 1,
<parameter>: <value>
}
)

使用可能なパラメーター(例を含む)については、「自己管理型配置の MongoDB Server パラメーター 」を参照してください。

Commands issued by the admin command setParameter do not survive server restarts. For a persistent option use the --setParameter command line option or the setParameter configuration file setting.

apiStrict に設定して1 Stable API Vtrue を使用している場合、サーバーパラメータを変更するためにsetParameter を使用することはできません。

このページを評価