Monday, September 7, 2015

Enable Maintenance Mode in Oracle EBS

Maintenance Mode is a new mode of operation in which the Oracle Applications system is made accessible only for patching activities not allowing the users to login to any responsibility. This provides optimal performance for AutoPatch sessions, reduces downtime during patching sessions and also it provides a clear separation between normal runtime operation and system downtime for patching.

You can enable maintenance mode either by using Ad utility (adadmin) or OAM (oracle applications Manager)

To enable Maintenance Mode by adadmin,  and apply your environment file and then start adadmin.

In the adadmin utility you will get a main menu where you can select to 'change to maintenance mode' then you will get a sub menu where you select 'Enable Maintenance Mode', If you want to disable select 'Disable Maintenance Mode'. When you Enable or Disable 'Maintenance Mode', adadmin will execute the below script:

$AD_TOP/patch/115/sql/adsetmmd.sql sending the parameter 'ENABLE' or 'DISABLE'

When adsetmmd.sql runs, it sets the Profile Option 'Applications Maintenance Mode' (APPS_MAINTENANCE_MODE) to 'MAINT' to Enable 'Maintenance Mode' and to 'NORMAL' to Disable it.

Once patch application is completed you can again disable the maintenance mode by using adadmin. Also to check that maintenance mode is enabled or not to executing the following query in your apps schema
-bash-3.2$ sqlplus apps/apps

SQL> select fnd_profile.value('APPS_MAINTENANCE_MODE') from dual; 
The above query will return MAINT if maintenance mode is enabled else it will return NORMAL.

Note: Also remember that Maintenance Mode is only needed for AutoPatch Sessions. Other AD utilities do not require Maintenance mode.

Follow below steps for Enabling Maintenance Mode:
Connect as Apps user.

SQL> select fnd_profile.value('APPS_MAINTENANCE_MODE') from dual;
FND_PROFILE.VALUE('APPS_MAINTENANCE_MODE')
--------------------------------------------------------------------------------
NORMAL
SQL>

Sourced the environment file and run adadmin

-bash-3.2$ adadmin
                     Copyright (c) 2002, 2012 Oracle Corporation
                        Redwood Shores, California, USA
                   Oracle E-Business Suite AD Administration
                                 Version 12.2.0
NOTE: You may not use this utility for custom development
      unless you have written permission from Oracle Corporation.
Successfully created out directory
Your default directory is '/u01/R122_TEST_EBS/fs1/EBSapps/appl'.
Is this the correct APPL_TOP [Yes] ?
AD Administration records your AD Administration session in a text file
you specify.  Enter your AD Administration log file name or press [Return]
to accept the default file name shown in brackets.
Filename [adadmin.log] :
************* Start of AD Administration session *************
AD Administration version: 12.2.0
AD Administration started at: Wed Aug 12 2015 03:47:22
*** Not Edition Enabled User ***
            AD Administration Main Menu
   --------------------------------------------------
   1.    Generate Applications Files menu
   2.    Maintain Applications Files menu
   3.    Compile/Reload Applications Database Entities menu
   4.    Maintain Applications Database Entities menu
   5.    Change Maintenance Mode
   6.    Exit AD Administration
Enter your choice [6] : 5

             Change Maintenance Mode
   ----------------------------------------
Maintenance Mode is currently: [Disabled].
Maintenance mode should normally be enabled when patching
Oracle E-Business Suite and disabled when users are logged on
to the system.  See the Oracle E-Business Suite Maintenance
Utilities manual for more information about maintenance mode.

Please select an option:
   1.    Enable Maintenance Mode
   2.    Disable Maintenance Mode
   3.    Return to Main Menu

Enter your choice [3] : 1

sqlplus -s &un_apps/***** @/u01/R122_TEST_EBS/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsetmmd.sql ENABLE

Successfully enabled Maintenance Mode.

Review the messages above, then press [Return] to continue
Please select an option:
   1.    Enable Maintenance Mode
   2.    Disable Maintenance Mode
   3.    Return to Main Menu
Enter your choice [3] : 3
            AD Administration Main Menu
   --------------------------------------------------
   1.    Generate Applications Files menu
   2.    Maintain Applications Files menu
   3.    Compile/Reload Applications Database Entities menu
   4.    Maintain Applications Database Entities menu
   5.    Change Maintenance Mode
   6.    Exit AD Administration
Enter your choice [6] : 6

Backing up restart files, if any......Done.
There is no timing information available for the current session.
AD Administration is complete.
Errors and warnings are listed in the log file
/u01/R122_TEST_EBS/fs_ne/inst/r1213nls_slc04pjp/logs/appl/conc/log/adadmin.log
and in other log files in the same directory.
-bash-3.2$



SQL> select fnd_profile.value('APPS_MAINTENANCE_MODE') from dual;
FND_PROFILE.VALUE('APPS_MAINTENANCE_MODE')
--------------------------------------------------------------------------------
MAINT
SQL>
Same way you can invoke adadmin to disable maintenance mode.

That's it. Hope this will help you.

Regards,
Chowdari

Online Oracle DBA 11gR2 Training

Online Oracle Database 11gR2 Training will be conducted through Web Conference where we share our screen to audience and will show all the topics starting from installation till cloning practically,
which includes explanation of real-time scenarios and interview questions for each topic.

Oracle Database Administration (DBA) 11gR2 Training Course Content:

What is Oracle Database?
  • Popular database management system (DBMS) software and why Oracle DBMS.
  • History and Current trends of DBMS and Database Administration.
  • Tasks of a Database Administrator.
Installing Oracle Database Software
  • Understand pre-requisites for a successful Oracle RDBMS software installation.
  • Installation of Oracle 11gR2 database software.
  • Installation of Oracle 12cR1 database software (Latest Release).
Oracle Database Architecture
  • Planning for an Oracle database creation.
  • Creating an Oracle database using the Graphical Tool (Database Configuration Assistant).
  • Startup and Shutdown of a database.
  • Components of an Oracle database and detailed architecture.
  • In detail explanation about Oracle Database File System
  • Oracle database memory and process architecture.
  • In detail explanation about System Global Area and its components
  • In detail explanation about Oracle Background Processes
  • In detail explanation about How Database Works when its processing data
SPFile/PFile Management
  • What Is a Server Parameter File?
  • Migrating to a Server Parameter File
  • Creating a Server Parameter File
  • The SPFILE Initialization Parameter
  • Changing / Clearing Initialization Parameter Values
  • Recovering a Lost or Damaged Server Parameter File
  • Viewing Parameter Settings
Control File Management
  • What Is a Control File?
  • Creating Control Files
  • Troubleshooting After Creating Control Files
  • Backing Up Control Files
  • Recovering a Control File Using a Current Copy
  • Displaying Control File Information
Online Redo-Log Management 
  • What Is the Redo Log?
  • Planning the Redo Log
  • Creating Redo Log Groups and Members
  • Relocating and Renaming Redo Log Members
  • Dropping Redo Log Groups and Members
  • Forcing Log Switches
  • Verifying Blocks in Redo Log Files
  • Clearing a Redo Log File
  • Viewing Redo Log Information
  • Resizing Online RedoLogs
Undo Management
  • What Is Undo?
  • Introduction to Automatic Undo Management
  • Setting the Minimum Undo Retention Period
  • Sizing a Fixed-Size Undo Tablespace
  • Managing Undo Tablespaces
  • Migrating to Automatic Undo Management
  • Undo Space Data Dictionary Views
Archivelog Management
  • What Is the Archived Redo Log?
  • Choosing Between NOARCHIVELOG and ARCHIVELOG Mode
  • Controlling Archiving
  • Specifying Archive Destinations
  • About Log Transmission Modes
  • Managing Archive Destination Failure
  • Controlling Trace Output Generated by the Archivelog Process
  • Viewing Information About the Archived Redo Log
Database Storage
  • Tablespaces and allocation types
  • Create tablespaces.
  • Create datafiles with fixed size and autoextend option.
  • Control files and producing a trace output to view its contents.
  • How to rename datafiles in a controlfile.
  • Redolog File architecture and best practices.
  • Enabling Archivelog mode for a database with automatic archiving.
Oracle Networking
  • Introduction.
  • Oracle listener configuration.
  • Oracle database connections from other computers.
  • Using Oracle netca (Network Configuration Assistant) for network configuration file tnsnames.ora.
  • Oracle listener administration and TNS_ADMIN environment variable.
  • Database Links
User Administration and Security
  • How to create database users.
  • How to set database profile limits for a user for efficient resource management.
  • Unlocking a user account and enabling password management.
  • Oracle database authorization using object and system privileges
  • Oracle database authorization using database roles
  • How to audit Oracle database connections in standard and XML mode.
  • How to audit Oracle DBA commands (SYS Operations).
  • How to schedule Oracle database jobs using DBMS_SCHEDULER package.
Oracle DataPump
  • What Is Data Pump Import?
  • Invoking Data Pump Import
  • Parameters Available in Import’s Command-Line Mode
  • Commands Available in Import’s Interactive-Command Mode
  • Examples of Using Data Pump Import
User Managed (MANUAL) Backup and Recovery
  • Introduction and planning for a robust Backup and Recovery Strategy.
  • How to take an Oracle database backup in offline mode (COLD BACKUP).
  • How to take an Oracle database backup in online mode (HOT BACKUP).
  • How to clone a database using Cold Backup.
  • How to clone a database using Hot Backup.
  • How to recreate source database from a user-managed backup (Media failure scenario)
RMAN Backup and Recovery
  • Advantages of RMAN method compared to manual method.
  • Database backup using RMAN in normal and compressed mode.
  • Oracle database backup metadata.
  • Database backup using RMAN catalog.
  • Querying the RMAN metadata.
  • How to clone a database using RMAN duplicate (11g R2 new feature: Backup based duplication).
  • How to restore and recover a database using its backup in the event of a media failure.
  • Oracle database backup retention policies and backups to Tape/offsite.
  • Fast Recovery Area for better management of backups and archive log files.
Oracle Database Patches
  • Introduction to Oracle versions and how to understand a version.
  • What are one-off/interim patches.
  • Learn about Oracle Interim Patch Installer (OPATCH).
Cloning Oracle Database
  • Overview of Cloning Methods
  • Cloning an Oracle Database Using Recovery Manager (RMAN) Backup
  • Cloning an Oracle Database Using Staging Areas
  • Cloning an Oracle Database Using an Existing Backup
Questions

Duration:  4 Weeks – Daily 1 Hour/Weekend 2 Hours | One-to-One | Mail:  mbcdba@gmail.com

If you want to take this course please send mail to me or contact me.

Thanks,
Chowdari

Friday, September 4, 2015

AIOUG (All India Oracle User Group) Conference Sangam15

The Oracle user conference, Sangam 15 is being conducted by AIOUG (All India Oracle User Group) at  Hyderabad on 21st and 22nd November 2015.

More details for this event go to http://www.sangam15.com/

Keep in touch with AIOUG announcements by joining social network channels.

www.facebook.com/aioug
www.twitter.com/aioug

Have a nice day!!! :-)

Thanks,
Chowdari

Some Most Popular Articles