SQL1362W One or more of the parameters submitted for immediate modification were not changed dynamically. Client changes will not be effective until the next time the application is started or the TERMINATE command has been issued. Server changes will not be effective until the next DB2START command.
联机设置配置参数
绝大多数配置参数均可在实例或数据库保持运行的情况下联机设置。只要可能,对这些联机配置参数的更改默认为立即生效。例如,若更改了 sortheap 的值,所有新的 SQL 请求将使用新值。为显式指定这种立即生效的行为,可将 immediate 关键字附加到 update 命令中:
db2 update database manager configuration using parameter new_value immediate
db2 update database configuration for database_name using parameter new_value immediate
若您选择将此更改延迟至实例重启或数据库激活时,则应指定 deferred 关键字:
db2 update database manager configuration using parameter new_value deferred
db2 update database configuration for database_name using parameter new_value deferred
有时,您可能希望找出已确定并延迟了哪些更改。为显示数据库管理器配置参数的当前值和挂起值,首先进入实例,然后在 get database manager configuration 命令中指定 show detail 选项,方法如下(请注意,instance_name 是系统环境变量 DB2INSTANCE 设置的值):
db2 attach to instance_name
db2 get database manager configuration show detail
同样地,要列举数据库配置参数的当前值和挂起值,首先连接到数据库,然后使用 show detail 选项:
db2 connect to database_name
db2 get database configuration for database_name show detail