Monday, November 13, 2017

Emca schedule db backup

../emca -config dbcontrol db -backup

STARTED EMCA at Nov 11, 2017 10:19:51 PM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle.  All rights reserved. 

Enter the following information:
Database SID: oiddb            
Database Control is already configured for the database oiddb
You have chosen to configure Database Control for managing the database oiddb
This will remove the existing configuration and the default settings and perform a fresh configuration                                                                           
Do you wish to continue? [yes(Y)/no(N)]: Y                                              
Listener ORACLE_HOME [ /apps/oracle/product/db11g/11.2.0.4/oiddb ]:                     
Password for SYS user:                                                                  
Password for DBSNMP user:                                                               
Password for SYSMAN user:                                                               
Email address for notifications (optional):                                             
Outgoing Mail (SMTP) server for notifications (optional):                               
Automatic backup schedule (HH:MM):                                                      
Automatic backup schedule (HH:MM): 10:30                                                
Host username for automatic backup: oracle                                              
Host user password for automatic backup:                                                
-----------------------------------------------------------------                       

You have specified the following settings

Database ORACLE_HOME ................ /apps/oracle/product/db11g/11.2.0.4/oiddb

Local hostname ................ suthakar.prince
Listener ORACLE_HOME ................ /apps/oracle/product/db11g/11.2.0.4/oiddb
Listener port number ................ 1521                                    
Database SID ................ oiddb                                           
Email address for notifications ...............                               
Outgoing Mail (SMTP) server for notifications ...............                 
Automatic backup schedule (HH:MM) ................ 10:30                      
Host username for automatic backup ................ oracle                    

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y                      
Nov 11, 2017 10:21:23 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /apps/oracle/cfgtoollogs/emca/oiddb/emca_2017_11_11_22_19_51.log.
Nov 11, 2017 10:21:23 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Nov 11, 2017 10:21:27 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Nov 11, 2017 10:22:15 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Nov 11, 2017 10:22:26 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Nov 11, 2017 10:22:34 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Nov 11, 2017 10:22:34 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Nov 11, 2017 10:22:52 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Nov 11, 2017 10:22:52 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://suthakar.prince:1158/em <<<<<<<<<<<
Nov 11, 2017 10:23:29 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************  WARNING  ************************

Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted.  The encryption key has been placed in the file: /apps/oracle/product/db11g/11.2.0.4/oiddb/suthakar.prince_oiddb/sysman/config/emkey.ora. Ensure this file is backed up as the encrypted data will become unusable if this file is lost.

***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Nov 11, 2017 10:23:29 PM
oracle@suthakar.prince$
emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
https://suthakar.prince:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /apps/oracle/product/db11g/11.2.0.4/oiddb/suthakar.prince_oiddb/sysman/log
oracle@suthakar.prince$


unable to connect secure and modified un secure which http://
--emctl unsecure dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
https://suthakar.prince:1158/em/console/aboutApplication
Configuring DBConsole for HTTP...   Done.
DBCONSOLE successfully stopped...   Done.
Agent is already stopped...   Done.
Unsecuring dbconsole...   Started.
DBConsole is now unsecured...  Done.
Unsecuring dbconsole...  Sucessful.
DBCONSOLE successfully restarted...   Done.
oracle@suthakar.prince$








No comments: