(首先说明这种通过SQL的方式维护系统并不推荐,毕竟绕开了正式管理工具直接执行,提供这么个信息可以让大家开阔下思路,至少知道所有的管理命令在后台都对应了一些脚本,可以打开看看这些脚本,了解内部的内部机制)
可以通过Sql直接执行
1.SQL script to Enable/Disable the maintenance mode for Apps system.
sqlplus
/@$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE | DISABLE(This script should be run in APPS schema.)
ENABLE - Enable Maintenance Mode .
DISABLE - Disable Maintenance Mode.
2.通过数据库,查询当前系统是否处于Maintainance模式
SQL> SELECT FND_PROFILE.VALUE(\'APPS_MAINTENANCE_MODE\') FROM DUAL;
If it is in Maintenance Mode the above query will show as follows:FND_PROFILE.VALUE(\'APPS_MAINTENANCE_MODE\')
---------------------------------------------------------
MAINT
If it is not in Maintenance Mode the above query will show as follows:
FND_PROFILE.VALUE(\'APPS_MAINTENANCE_MODE\')
---------------------------------------------------------
NORMAL