Oracle EBS, Enable / Disable maintanance mode using sql script
sqlplus -s apps/apps @$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE
adpatch driver=u16545472.drv logfile=adpatch_u16545472.log
sqlplus -s apps/apps @$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE