默认情况下Oracle Enterprise Manager Cloud Control 13c 数据库控件的会话超时为45分钟。
这意味着,如果HTTP客户机会话空闲45分钟或更长时间,它将断开连接。
如果在控制台中执行任何操作,则超时后将显示登录页面。
要更改DB控件的默认超时,请使用以下步骤。
--查看命令emctl的位置。
[oracle@gridcontrol app]$ find . -name "emctl"
./weblogic/sysman/admin/emdrep/sql/core/latest/emctl
./weblogic/sysman/admin/emdrep/sql/core/13.1.0.0/emctl
./weblogic/bin/emctl
./agent/agent_13.3.0.0.0/bin/emctl
./agent/agent_inst/bin/emctl
--查看非活动超时时间。
[oracle@gridcontrol app]$ ./weblogic/bin/emctl get property -name oracle.sysman.eml.maxInactiveTime Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
SYSMAN password:
Value for property oracle.sysman.eml.maxInactiveTime for oms All Management Servers is null
--禁用这个功能设置值为-1(默认值是null,null为45min)
[oracle@gridcontrol app]$ ./weblogic/bin/emctl set property -name oracle.sysman.eml.maxInactiveTime -value -1
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
SYSMAN password:
Property oracle.sysman.eml.maxInactiveTime has been set to value -1 for all Management Servers
OMS restart is not required to reflect the new property value
--重启OMS
[oracle@gridcontrol app]$ ./weblogic/bin/emctl stop oms
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
Stopping Oracle Management Server...
Oracle Management Server Already Stopped
Oracle Management Server is Down
JVMD Engine is Down
[oracle@gridcontrol app]$ ./weblogic/bin/emctl start oms
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
Starting Oracle Management Server...
WebTier Successfully Started
Oracle Management Server Successfully Started
Oracle Management Server is Up
JVMD Engine is Up
Starting BI Publisher Server ...
BI Publisher Server Already Started
BI Publisher Server is Up