Beruflich Dokumente
Kultur Dokumente
2. OS Installation :
We are using CentOS 6.5 for this installation. Please download the latest software and install OS.
While installing the OS select the option to install database server, so the most of the required
rpms will be installed by default.
3. Database Installation :
Please follow my article Database 12c Installation on CentOS 6.5 for database installation. We
need to have the database installed for oem 12c installation. It is called oracle management
repository. Oracle database 12c is not yet certified with the oem 12c at the time i am writing this
article. But i used database 12c as OMR for oem 12c installation.
Please complete all the following pre-requisite on OMR
[oracle@fsrsrv10 oem12c]$ sqlplus '/as sysdba'
SQL*Plus: Release 12.1.0.1.0 Production on Mon Feb 24 03:04:33 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> sho parameter session_cached
NAME
TYPE
VALUE
------------------------------------ ----------- -----------------------------session_cached_cursors
integer 50
SQL> sho parameter shared_
NAME
TYPE
VALUE
------------------------------------ ----------- -----------------------------hi_shared_memory_address
integer 0
max_shared_servers
integer
shared_memory_address
integer 0
shared_pool_reserved_size
big integer 95630131
shared_pool_size
big integer 0
shared_server_sessions
integer
shared_servers
integer 1
SQL> alter system set session_cached_cursors=200 scope=both;
alter system set session_cached_cursors=200 scope=both
*
ERROR at line 1:
ORA-02096: specified initialization parameter is not modifiable with this
option
SQL> desc v$log
Name
Null? Type
----------------------------------------- -------- ---------------------------GROUP#
NUMBER
THREAD#
NUMBER
SEQUENCE#
NUMBER
BYTES
NUMBER
BLOCKSIZE
NUMBER
MEMBERS
NUMBER
ARCHIVED
VARCHAR2(3)
STATUS
VARCHAR2(16)
FIRST_CHANGE#
NUMBER
FIRST_TIME
DATE
NEXT_CHANGE#
NUMBER
NEXT_TIME
DATE
CON_ID
NUMBER
SQL> desc v$logname
ERROR:
ORA-04043: object v$logname does not exist
SQL> desc v$logfile
Name
Null? Type
----------------------------------------- -------- ---------------------------GROUP#
NUMBER
STATUS
VARCHAR2(7)
TYPE
VARCHAR2(7)
MEMBER
VARCHAR2(513)
IS_RECOVERY_DEST_FILE
VARCHAR2(3)
CON_ID
NUMBER
SQL> select group#,thread#,bytes/1024/1024 from v$log;
GROUP# THREAD# BYTES/1024/1024
---------- ---------- --------------1
1
50
2
1
50
3
1
50
SQL> select group#,thread#,MEMBERS,bytes/1024/1024 from v$log;
make-3.81
binutils-2.20.51.0.2-5.11
gcc-4.4.4
libaio-0.3.107
glibc-common-2.12-1
libstdc++-4.4.4
libXtst-1.0.99.2-3.el6.x86_64.rpm
Platform
sysstat-9.0.4
For Agent :
Platform
Oracle Linux 6.x
(Red Hat 6 Kernel and Unbreakable Enterprise Kernel
(UEK))
make-3.81
binutils-2.20.51.0.2-5.11
gcc-4.4.4
libaio-0.3.107
glibc-common-2.12-1.7
libstdc++-4.4.4
sysstat-9.0.4
Ensure that the host name specified in the /etc/hosts file is unique, and ensure that it maps to the
correct IP address of that host. Otherwise, the installation can fail on the product-specific
prerequisite check page.
The following is the recommended format of the /etc/hosts file:
<ip> <fully_qualified_host_name> <short_host_name>
4.n.Port Requirements :
Ensure that the ports you assign (within the given range) to the following components are free
and available:
o Admin Server HTTP SSL Port = 7101 - 7200
o Enterprise Manager Upload HTTP Port = 4889 - 4898
o Enterprise Manager Upload HTTP SSL Port = 1159, 4899 - 4908
o Enterprise Manager Central Console HTTP Port = 7788 - 7798
o Enterprise Manager Central Console HTTP SSL Port = 7799 - 7809
o Oracle Management Agent Port = 3872, 1830 - 1849
o Node Manager = 7101 - 7200
o Managed Server HTTP Port = 7201 - 7300
o Managed Server HTTPS Port = 7301 - 7400
5. Oem 12cR3 Installation Procedure :(Advanced)
6.Verification Checks :
Access the following URL with sysman user and navigate to different pages to verify everything
looks good.
https://<oms hostname>:7802/em
7.Starting and Stopping oem 12c Services :
Use the following commands to start all components :
$ export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
$ export OMS_HOME=/u01/app/oracle/Middleware/oms
$ export AGENT_HOME=/u01/app/oracle/Middleware/agent/core/12.1.0.3.0
# Start everything
$ $ORACLE_HOME/bin/sqlplus '/as sysdba'
SQL> startup
$lsnrctl start listener
$ $OMS_HOME/bin/emctl start oms
$ $AGENT_HOME/bin/emctl start agent
Use the following commands to stop all components :
$ export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
$ export OMS_HOME=/u01/app/oracle/Middleware/oms
$ export AGENT_HOME=/u01/app/oracle/Middleware/agent/core/12.1.0.3.0
# Stop everything
$ $OMS_HOME/bin/emctl stop oms -all
$ $AGENT_HOME/bin/emctl stop agent
$ $ORACLE_HOME/bin/sqlplus '/as sysdba'
SQL> shut immediate
$ $lsnrctl stop listener