From 74929993b9a79341d4d3e807bf673ff57c6cc3f0 Mon Sep 17 00:00:00 2001 From: Pavel Mitrofanov Date: Thu, 20 Oct 2022 09:28:58 +0200 Subject: [PATCH] Allow setting DEFERRED database parameters. Formerly, attempts to set parameters with ISSYS_MODIFIABLE = DEFERRED would have resulted in the error "ORA-02096: specified initialization parameter is not modifiable with this option". Example parameter: RECYCLEBIN. --- oracle/controllers/config_agent_helpers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oracle/controllers/config_agent_helpers.go b/oracle/controllers/config_agent_helpers.go index 13ff8a4..6c2a676 100644 --- a/oracle/controllers/config_agent_helpers.go +++ b/oracle/controllers/config_agent_helpers.go @@ -539,6 +539,9 @@ func SetParameter(ctx context.Context, dbClientFactory DatabaseClientFactory, r command = fmt.Sprintf("%s scope=spfile", command) isStatic = true } + if paramType == "DEFERRED" { + command = fmt.Sprintf("%s deferred", command) + } _, err = dbClient.RunSQLPlus(ctx, &dbdpb.RunSQLPlusCMDRequest{ Commands: []string{command},