Friday, 7 September 2018

Why we enable Maintenance Mode in R12.1.3

Hey DBA-Mates, Good to know you all are doing Well !!!
Many of us are not clear about that why we enable Maintenance Mode even though our Application is stopped/down.

Almost people still know that only to inform users that Application is under Maintenance for Patching or any other task but this is partially true.
Almost 90% of interviewers will ask these Questions and we answers only Half-cooked answers as mentioned above.
We got this questions from many users then thought to share with you all because we didn't found google where clearly mentioned these reasons.
So, we collected the information and tried to make it simple and share with you all here.

Maintenance Mode was introduced in Release 11.5.10, in which users are not allowing to login any responsibility.
In Maintenance mode the Oracle Applications system is made accessible only for patching activities.

Why we need to enable Maintenance Mode and their Advantages:
As we know that there are several practical points relating to the use of Maintenance Mode:

We can toggle Maintenance Mode between Enabled and Disabled using the new Change Maintenance Mode menu in AD Administration (Adadmin), or the equivalent function in Oracle Applications Manager.

Although we can run AutoPatch (Adpatch) without enabling Maintenance Mode but noted there will be a significant degradation in performance.
As we know that while the application is in Maintenance Mode there is a separate login page for Restricted Mode access.

Here, restricted Mode allows administrators access to specific privileged functionality in OAM, for example to view the timing report that shows the progress of a patching session.

In Restricted Mode, only valid database users are allowed to login into OAM via a special URL and are allowed to access a limited set of features.
The database role AD_MONITOR_ROLE has access to all the required database objects for Restricted Mode features.
Or the OAM Online Help (OAM->Patches and Utilities -> Managing Downtime Schedules -> Restricted Mode)

Conclusion:
1. To ensure optimal performance and reduce downtime during patching sessions.

2. Maintenance Mode shutdown the Workflow Business Events System (oracle application services).

3. Setup a function security so that Oracle Applications functions are unavailable to users.

4. Provide a clear visibility/information to user that System/Application is down for patching purpose.

Easy/short-cut steps to Enabling and Disabling Maintenance Mode:

This is also same as ADADMIN because when we Enable or Disable 'Maintenance Mode', adadmin will also execute the below script:

$AD_TOP/patch/115/sql/adsetmmd.sql    ####sending the parameter 'ENABLE' or 'DISABLE' as shown below as example:

SQL>@$AD_TOP/patch/115/sql/adsetmmd.sql ENABLE    ##### For ENABLE
SQL>@$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE   ##### For DISABLE

Real-time scenario:
SQL> show user
USER is "APPS"
SQL>
SQL> select fnd_profile.value('APPS_MAINTENANCE_MODE') from dual;
FND_PROFILE.VALUE('APPS_MAINTENANCE_MODE')
--------------------------------------------------------------------------------
MAINT
SQL>

SQL> @$AD_TOP/patch/115/sql/adsetmmd.sql DISABLE
PL/SQL procedure successfully completed.
Commit complete.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
$
SQL> select fnd_profile.value('APPS_MAINTENANCE_MODE') from dual;
FND_PROFILE.VALUE('APPS_MAINTENANCE_MODE')
--------------------------------------------------------------------------------
NORMAL
SQL>

If MAINT ==> Maintenance Mode is Enabled.
If NORMAL ==> Maintenance Mode is Disabled.
Regards,

20 comments:

  1. Tremendous thіngs here. I'm veгy glad to peer your artiϲle.

    Thanks so much and I am having a look forward to touch you.

    Wiⅼl you kindly drop me a e-mail?
    sites : How To Learn To Lock Fileѕ Just 15 Minutes Ꭺ Day

    ReplyDelete
  2. User also create and explore own video to funbuzz.

    ReplyDelete
  3. Your website have a valuable information,thanks for sharing information.
    Oracle Training in Hyderabad

    ReplyDelete
  4. Very efficiently written information. It will be valuable to everyone who usess
    it, including myself. Keep up the good work - for sure i will check out more posts.

    ReplyDelete
  5. Hello my loved one! I want to say that this post is amazing, great
    written and come with almost all vital infos.

    I'd like to peer extra posts like this .

    ReplyDelete
    Replies
    1. Dear User,
      Thank you very much for your valuable feedback.

      Regards,
      ora-data Team

      Delete
  6. Very efficiently written story. It will be useful to
    anyone who employess it, as well as yours truly :).

    Keep up the good work - for sure i will check out more
    posts.

    ReplyDelete
    Replies
    1. Dear User,
      Thank you very much for your feedback.

      Regards,
      ora-data Team

      Delete
  7. Hello mates, nice post and fastidious urging commented here,
    I am genuinely enjoying by these.

    ReplyDelete
    Replies
    1. Dear User,
      Thank you very much for your great feedback.

      Regards,
      ora-data Team

      Delete
  8. Hey there this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or
    if you have to manually code with HTML. I'm starting a
    blog soon but have no coding experience so I wanted to get advice
    from someone with experience. Any help would be greatly appreciated!

    ReplyDelete
  9. Remarkable issues here. I'm very satisfied to look your post.

    Thank you a lot and I am taking a look ahead to touch you.

    Will you kindly drop me a e-mail?

    ReplyDelete
    Replies
    1. Dear User,
      Thank you for your feedback.
      Email for what?

      Regards,
      ora-data Team

      Delete
  10. User also create and explore own video to funbuzz.

    ReplyDelete
  11. If some one desires expert view concerning running
    a blog then i advise him/her to go to see this blog,
    Keep up the nice work.

    ReplyDelete
  12. If you are going for most excellent contents like I do, only go to see
    this web page every day for the reason that it presents
    feature contents, thanks

    ReplyDelete
  13. whoah this blog is great i like reading your articles.
    Keep up the good work! You realize, lots of persons are
    searching around for this information, you could help them greatly.

    ReplyDelete
    Replies
    1. Dear User,
      Thank you for your visiting and Great feedback.

      Regards,
      ora-data Team

      Delete
  14. please can you notify me your updates..

    ReplyDelete
    Replies

    1. Dear User,

      Please follow us on Facebook group: https://www.facebook.com/groups/471358400299093/

      Regards,
      ora-data Team

      Delete

Thank you for your comments and suggestions. It's good to talk you.