Configure Oracle Enterprise Manager 13c in Silent Mode

Source: Internet
Author: User
Tags server port



This article explains how to create a database silently and how to install the OEM 13C silently.



First, OEM database creation


1, Oracle official download oem13c, the file list is as follows:




12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Linux_x64.zip
em13100_linux64.bin
em13100_linux64-2.zip
em13100_linux64-3.zip
em13100_linux64-4.zip
em13100_linux64-5.zip


2. Unzip the OEM database template:



[oracle@odb ~]$ cd $ORACLE_HOME/assistants/dbca/templates
[oracle@odb templates]$ unzip /oem13/oem13c/12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Linux_x64.zip 
Archive:  /oem13/oem13c/12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Linux_x64.zip
  inflating: set_repo_param_12.1.0.2.0_Database_SQL_for_EM13_1_0_0_0_Large_deployment.sql  
  inflating: set_repo_param_12.1.0.2.0_Database_SQL_for_EM13_1_0_0_0_Medium_deployment.sql  
  inflating: set_repo_param_12.1.0.2.0_Database_SQL_for_EM13_1_0_0_0_Small_deployment.sql  
  inflating: shpool_12.1.0.2.0_Database_SQL_for_EM13_1_0_0_0.sql  
  inflating: 12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Large_deployment.dbc  
  inflating: 12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Medium_deployment.dbc  
  inflating: 12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Small_deployment.dbc  
  inflating: 12.1.0.2.0_Database_Template_for_EM13_1_0_0_0.dfb  
  inflating: 12.1.0.2.0_Database_Template_for_EM13_1_0_0_0.ctl


3. Create an OEM DB instance:


//dbca silent file content
[oracle@odb ~]$ vi db_12c.rsp
[GENERAL]
RESPONSEFILE_VERSION = "12.1.0"
OPERATION_TYPE = "createDatabase"
#-----------------------*** End of GENERAL section ***---------------- --------
[CREATEDATABASE]
GDBNAME = "emrep"
SID = "emrep"
#############
TEMPLATENAME = "12.1.0.2.0_Database_Template_for_EM13_1_0_0_0_Medium_deployment.dbc"
SYSPASSWORD = "abcABC12"
SYSTEMPASSWORD = "abcABC12"
EMCONFIGURATION = "NONE"
SYSMANPASSWORD = "abcABC12"
DBSNMPPASSWORD = "abcABC12"
STORAGETYPE=FS
DATAFILEDESTINATION = /u02/oradata
RECOVERYAREADESTINATION=/u02/oradata/flash_recovery_area
CHARACTERSET = "ZHS16GBK"
NATIONALCHARACTERSET= "AL16UTF16"
AUTOMATICMEMORYMANAGEMENT = "TRUE"
TOTALMEMORY = "8192"
#-----------------------*** End of CREATEDATABASE section ***---------------- --------
/ / Create a database instance
[oracle@odb ~]$ dbca -silent -responsefile /home/oracle/db_12c.rsp
Copying database files
1% complete
3% complete
10% complete
16% complete
23% complete
30% complete
33% complete
Creating and starting Oracle instance
35% complete
40% complete
44% complete
49% complete
50% complete
53% complete
55% complete
Completing Database Creation
58% complete
62% complete
65% complete
75% complete
85% complete
88% complete
Running Custom Scripts
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/emrep/emrep.log" for further details.
//netca silent file
[oracle@odb ~]$ vi netca_12c.rsp
[GENERAL]
RESPONSEFILE_VERSION="12.1"
CREATE_TYPE="CUSTOM"
[oracle.net.ca]
INSTALLED_COMPONENTS={"server","net8","javavm"}
INSTALL_TYPE=""typical""
LISTENER_NUMBER=1
LISTENER_NAMES={"LISTENER"}
LISTENER_PROTOCOLS={"TCP;1521"}
LISTENER_START=""LISTENER""
NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
NSN_NUMBER=1
NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
NSN_SERVICE={"PLSExtProc"}
NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}
/ / Create a listener
[oracle@odb ~]$ netca -silent -responsefile /home/oracle/netca_12c.rsp

Parsing command line arguments:
    Parameter "silent" = true
    Parameter "responsefile" = /home/oracle/netca_12c.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
    Running Listener Control:
      /u01/app/oracle/product/12.0.2/db_1/bin/lsnrctl start LISTENER
    Listener Control complete.
    Listener started successfully.
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is 0


To this, the OEM's DB instance creation is complete.



Second, installation configuration oem13c


1. Installing oem13c Software


/ / Create OEM silent file software_only.rsp
[oracle@odb ~]$ vi software_only.rsp
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=false
MYORACLESUPPORT_USERNAME=abc@125.com
MYORACLESUPPORT_PASSWORD=
INSTALL_UPDATES_SELECTION=skip
STAGE_LOCATION=
MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES=
MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES=
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/Middleware
AGENT_BASE_DIR=/u01/app/oracle/Agent
ORACLE_HOSTNAME=odb
B_upgrade=false
EM_INSTALL_TYPE=NOSEED
CONFIGURATION_TYPE=LATER
[oracle@odb oem13c]$ ./em13100_linux64.bin -silent -responseFile /home/oracle/software_only.rsp
0%................................................ ...............100%
Launcher log file is /tmp/OraInstall2016-06-28_11-01-38AM/launcher2016-06-28_11-01-38AM.log.
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz. Actual 1400.000 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 32263 MB Passed
Checking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required)
Checking temp space: must be greater than 300 MB. Actual 43236 MB Passed

Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2016-06-28_11-01-38AM
====Prereq Config Location main===
/tmp/OraInstall2016-06-28_11-01-38AM/stage/prereq
EMGCInstaller args -scratchPath
EMGCInstaller args /tmp/OraInstall2016-06-28_11-01-38AM
EMGCInstaller args -sourceType
EMGCInstaller args network
EMGCInstaller args -timestamp
EMGCInstaller args 2016-06-28_11-01-38AM
EMGCInstaller args -paramFile
EMGCInstaller args /tmp/sfx_AMC1wA/Disk1/install/linux64/oraparam.ini
EMGCInstaller args -silent
EMGCInstaller args -responseFile
EMGCInstaller args /home/oracle/new_install.rsp
EMGCInstaller args -nocleanUpOnExit
DiskLoc inside SourceLoc/u02/oem13c
EMFileLoc: /tmp/OraInstall2016-06-28_11-01-38AM/oui/em/
ScratchPathValue :/tmp/OraInstall2016-06-28_11-01-38AM
EMGCInstallUpdatesInfoOnNext:: calling actionOnClickofNext
Now in EMGCInstallUpdatesInfoOnNext.actionsOnClickofNext
EMGCInstallUpdatesInfoOnNext:: End of actionOnClickofNext
Session log file is /tmp/OraInstall2016-06-28_11-01-38AM/install2016-06-28_11-01-38AM.log
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Session log file is /tmp/OraInstall2016-06-28_11-01-38AM/install2016-06-28_11-01-38AM.log
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
OMS OracleHome :/u01/app/oracle/Middleware
Applying the required one-off patches.

Warning: The following configuration scripts need to be executed as the "root" user
  /u01/app/oraInventory/orainstRoot.sh
  /u01/app/oracle/Middleware/oms/allroot.sh
To execute the configuration scripts:
 Open a new terminal window
 2. Login in as "root"
 3. Run the scripts
 
Enterprise Manager Cloud Control Installation has finished.
[root@odb ~]# /u01/app/oraInventory/orainstRoot.sh
[root@odb ~]# /u01/app/oracle/Middleware/allroot.sh


2. Configure OEM


/ / Silent file new_install.rsp
[oracle@odb ~]$ vi new_install.rsp
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=false
MYORACLESUPPORT_USERNAME=abc@125.com
MYORACLESUPPORT_PASSWORD=
INSTALL_UPDATES_SELECTION=skip
STAGE_LOCATION=
MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES=
MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES=
PROXY_USER=
PROXY_PWD=
PROXY_HOST=
PROXY_PORT=
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/Middleware
ORACLE_HOSTNAME=jxhisdb
AGENT_BASE_DIR=/u01/app/oracle/Agent
WLS_ADMIN_SERVER_USERNAME=weblogic
WLS_ADMIN_SERVER_PASSWORD=abcABC12
WLS_ADMIN_SERVER_CONFIRM_PASSWORD=abcABC12
NODE_MANAGER_PASSWORD=abcABC12
NODE_MANAGER_CONFIRM_PASSWORD=abcABC12
ORACLE_INSTANCE_HOME_LOCATION=/u01/app/oracle/gc_inst
CONFIGURE_ORACLE_SOFTWARE_LIBRARY=true
SOFTWARE_LIBRARY_LOCATION=/u02/swlib
DATABASE_HOSTNAME=jxhisdb
LISTENER_PORT=1521
SERVICENAME_OR_SID=emrep
SYS_PASSWORD=abcABC12
SYSMAN_PASSWORD=abcABC12
SYSMAN_CONFIRM_PASSWORD=abcABC12
DEPLOYMENT_SIZE=MEDIUM
MANAGEMENT_TABLESPACE_LOCATION=/u02/oradata/emrep/mgmt.dbf
CONFIGURATION_DATA_TABLESPACE_LOCATION=/u02/oradata/emrep/mgmt_ecm_depot.dbf
JVM_DIAGNOSTICS_TABLESPACE_LOCATION=/u02/oradata/emrep/mgmt_ad4j.dbf
AGENT_REGISTRATION_PASSWORD=abcABC12
AGENT_REGISTRATION_CONFIRM_PASSWORD=abcABC12
STATIC_PORTS_FILE=
PLUGIN_SELECTION=
B_upgrade=false
EM_INSTALL_TYPE=NOSEED
CONFIGURATION_TYPE=ADVANCED
CONFIGURE_SHARED_LOCATION_BIP=false
CONFIG_LOCATION=
CLUSTER_LOCATION=
[oracle@odb ~]$ cd /u01/app/oracle/Middleware/sysman/install
[oracle@odb install]$ ./ConfigureGC.sh -silent -responseFile /home/oracle/new_install.rsp
====Prereq Config Location main===
EMGCInstaller args -onlyconfig
EMGCInstaller args -oh
EMGCInstaller args /u01/app/oracle/Middleware
EMGCInstaller args -scratchPath
EMGCInstaller args /u01/app/oracle/Middleware
EMGCInstaller args -sourceLoc
EMGCInstaller args /u01/app/oracle/Middleware
EMGCInstaller args -silent
EMGCInstaller args -responseFile
EMGCInstaller args /home/oracle/new_install.rsp
DiskLoc inside SourceLoc/u01/app/
EMFileLoc: /u01/app/oracle/Middleware/oui/em/
ScratchPathValue :/u01/app/oracle/Middleware
.............................
AgentConfiguration:agent configuration has been started
Validating OMS_HOST and EM_UPLOAD_PORT
Performing free port detection..

AgentConfiguration: Executing emctl deploy agent command...

AgentConfiguration: Executing emctl config agent command...

AgentConfiguration:agent configuration finished with status = true

2016-06-28_03-53-36PM: Configuration Assistant "Agent Configuration Assistant" has Succeeded.

*** The Installation was Successful. ***


This information is also available at:

        /u01/app/oracle/Middleware/install/setupinfo.txt

See the following for information pertaining to your Enterprise Manager installation:

Use the following URL to access:

        1. Enterprise Manager Cloud Control URL: https://odb:7802/em
        2. Admin Server URL: https://odb:7102/console
        3. BI Publisher URL: https://odb:9803/xmlpserver

The following details need to be provided while installing an additional OMS:

        1. Admin Server Host Name: odb
        2. Admin Server Port: 7102

You can find the details on ports used by this deployment at : /u01/app/oracle/Middleware/install/portlist.ini

 NOTE:
 An encryption key has been generated to encrypt sensitive data in the Management Repository. If this key is lost, all encrypted data in the Repository becomes unusable.
 A backup of the OMS configuration is available in /u01/app/oracle/gc_inst/em/EMGC_OMS1/sysman/backup on host odb. See Cloud Control Administrators Guide for details on how to back up and recover an OMS.
 For example, it will not reflect plug-ins installed later, topology changes like the addition of a load balancer, or changes to other properties made using emctl or emcli. Backups should be Created a regular basis to ensure they capture the current OMS configuration. Use the following command to backup the OMS configuration:
/u01/app/oracle/Middleware/bin/emctl exportconfig oms -dir <backup dir> 


Here, the installation configuration for oem13c is complete.



This article from "candon123" blog, declined reprint!



Configure Oracle Enterprise Manager 13c in Silent Mode


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.