Oracle 12c Study之--Enterprise Manager Cloud Control Install

Oracle 12c Study之--Enterprise Manager Cloud Control Install

系統環境:RedHat EL6.4(64)
Oracle:   Oracle 11.2.0.3.0
EMCC:      VER 12.1.0.1

目標: 安裝Oracle 12c Enterprise Manager Cloud Control
Enterprise Manager Cloud Control is system management software that delivers centralized monitoring, administration, and life cycle management functionality for the complete IT infrastructure, including systems running Oracle and non-Oracle technologies.

Enterprise Manager Cloud Control Architecture

Enterprise Manager Cloud Control includes the following components:

  • Oracle Management Agent

  • Oracle Management Service

  • Oracle Management Repository

  • Oracle Management Plug-Ins

  • Enterprise Manager Cloud Control Console

Figure 1-2 shows a sample Enterprise Manager Cloud Control 

architecture and illustrates how these 

core components fit into the architecture.

Figure 1-2 Enterprise Manager Cloud Control Architecture



1、數據庫版本
17:37:23 SYS@ prod>select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production

2、啓動數據庫listener
[oracle@rh64 ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 02-SEP-2016 15:02:23
Copyright (c) 1991, 2011, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rh64)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date                02-SEP-2016 15:02:11
Uptime                    0 days 0 hr. 0 min. 11 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/rh64/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rh64)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "prod" has 1 instance(s).
  Instance "prod", status READY, has 1 handler(s) for this service...
Service "prodXDB" has 1 instance(s).
  Instance "prod", status READY, has 1 handler(s) for this service...
The command completed successfully

3、卸載資料庫上的DB control並刪除相關的用戶
[oracle@rh64 ~]$ emca -deconfig dbcontrol db -repos drop
STARTED EMCA at Sep 2, 2016 3:02:29 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: prod
Listener port number: 1521
Password for SYS user:  
Password for SYSMAN user:  
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Sep 2, 2016 3:02:42 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/prod/emca_2016_09_02_15_02_29.log.
Sep 2, 2016 3:02:42 PM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration
WARNING: EM is not configured for this database. No EM-specific actions can be performed. Some of the possible reasons may be: 
 1) EM is configured with different hostname then physical host. Set environment variable ORACLE_HOSTNAME=<hostname> and re-run EMCA script 
 2) ORACLE_HOSTNAME is set. Unset it and re-run EMCA script
Sep 2, 2016 3:02:42 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Sep 2, 2016 3:04:32 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Sep 2, 2016 3:04:32 PM

13:07:43 SYS@ prod>drop user sysman cascade;
User dropped.

14:32:31 SYS@ prod>drop user mgmt_view cascade;
User dropped.


4、配置repository db參數


14:48:02 SYS@ prod>alter system set processes=500 scope=spfile;
System altered.

14:48:30 SYS@ prod>alter system set session_cached_cursors=500 scope=spfile;

System altered.

14:49:59 SYS@ prod>alter system set shared_pool_size=500m scope=spfile;

System altered.

14:50:26 SYS@ prod>alter system set job_queue_processes=22 scope=spfile;
System altered.


14:51:23 SYS@ prod>show parameter cursor


NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cursor_bind_capture_destination      string      memory+disk
cursor_sharing                       string      EXACT
cursor_space_for_time                boolean     FALSE
open_cursors                         integer     300
session_cached_cursors               integer     50

14:51:29 SYS@ prod>show parameter pga

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
pga_aggregate_target                 big integer 0

14:51:45 SYS@ prod>alter system set pga_aggregate_target=500m scope=spfile;

System altered.

調整redo log files size:
14:55:50 SYS@ prod>alter database add logfile
14:55:59   2  '/u01/app/oracle/oradata/prod/redo04a.log' size 300m;

Database altered.

14:56:34 SYS@ prod>alter database add logfile
14:56:41   2  '/u01/app/oracle/oradata/prod/redo05a.log' size 300m;

Database altered.

14:57:01 SYS@ prod>alter database add logfile
14:57:05   2  '/u01/app/oracle/oradata/prod/redo06a.log' size 300m;

Database altered.


14:58:42 SYS@ prod>select group#,sequence#,status ,bytes from v$log;

    GROUP#  SEQUENCE# STATUS                BYTES
---------- ---------- ---------------- ----------
         4          7 CURRENT           314572800
         5          5 INACTIVE          314572800
         6          6 INACTIVE          314572800
         
5、安裝EMCC軟件       
[root@rh64 soft]# cd Disk1/
[root@rh64 Disk1]# ls -l

total 1739904
drwxr-xr-x 8 root root       4096 Feb 12  2012 install
drwxr-xr-x 4 root root       4096 Feb 12  2012 jdk
drwxrwxr-x 4 root root       4096 Feb 12  2012 libskgxn
drwxr-xr-x 4 root root       4096 Feb 11  2012 oms
drwxr-xr-x 2 root root       4096 Feb 12  2012 plugins
-rwxrwxr-x 1 root root      99523 Feb 22  2012 Release_Notes.pdf
drwxr-xr-x 2 root root       4096 Feb 12  2012 response
-rwxr-xr-x 1 root root       5136 Feb 10  2010 runInstaller
drwxr-xr-x 9 root root       4096 Feb 12  2012 stage
drwxr-xr-x 2 root root       4096 Feb 12  2012 wls
-rwxr-xr-x 1 root root 1781511210 Feb 11  2012 WT.zip

[oracle@rh64 Disk1]$ ./runInstaller ORACLE_HOSTNAME=rh64.enmo.com












在安裝過程中需要關閉自動統計的任務:
15:22:24 SYS@ prod>begin
15:22:28   2  dbms_auto_task_admin.disable(
15:22:42   3  client_name=>'auto optimizer stats collection',
15:23:08   4  operation=>null,
15:23:18   5  window_name=>null);
15:23:28   6  end;
15:23:29   7  /


PL/SQL procedure successfully completed.

15:24:31 SYS@ prod>select client_name,status from dba_autotask_client where client_name like 'auto optim%';

CLIENT_NAME                                                      STATUS
---------------------------------------------------------------- --------
auto optimizer stats collection                                  DISABLED

6、安裝完成運行allroot.sh腳本
[root@rh64 Disk1]# /u01/app/oracle/Middleware/oms/allroot.sh 

Starting to execute allroot.sh ......... 
Starting to execute /u01/app/oracle/Middleware/oms/root.sh ......
Running Oracle 11g root.sh script...
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/Middleware/oms
Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
/etc exist
Creating /etc/oragchomelist file...
/u01/app/oracle/Middleware/oms
Finished execution of  /u01/app/oracle/Middleware/oms/root.sh ......

Starting to execute /u01/app/oracle/Middleware/agent/core/12.1.0.1.0/root.sh ......
Finished product-specific root actions.
/etc exist
Finished execution of  /u01/app/oracle/Middleware/agent/core/12.1.0.1.0/root.sh ......

7、啓動EMCC Server服務
[oracle@rh64 ~]$ /u01/app/oracle/Middleware/oms/bin/emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0  
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Already Started
Oracle Management Server is Up
[oracle@rh64 bin]$ pwd
/u01/app/oracle/Middleware/agent/core/12.1.0.1.0/bin
[oracle@rh64 bin]$ ./emctl start agent
Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0  
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Agent is already running

啓動中的錯誤提示:
***********************************************************************
Fatal NI connect error 12537, connecting to:
 (LOCAL=NO)
  VERSION INFORMATION:
        TNS for Linux: Version 11.2.0.3.0 - Production
        Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
        TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
  Time: 02-SEP-2016 19:15:17
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12537
    
TNS-12537: TNS:connection closed
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
opiodr aborting process unknown ospid (3350) as a result of ORA-609
Fri Sep 02 19:32:19 2016

***********************************************************************
Fatal NI connect error 12537, connecting to:
 (LOCAL=NO)
  VERSION INFORMATION:
        TNS for Linux: Version 11.2.0.3.0 - Production
        Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
        TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
  Time: 02-SEP-2016 19:32:20
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12537
    
TNS-12537: TNS:connection closed
    ns secondary err code: 12560
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
opiodr aborting process unknown ospid (6029) as a result of ORA-609
Fri Sep 02 19:34:05 2016

[root@rh64 ~]# cat /etc/resolv.conf 
# Generated by NetworkManager
#search enmo.com

# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
[root@rh64 ~]# 

關閉/etc/resolv.conf,禁止DNS的查找

[root@rh64 ~]# mv  /etc/resolv.conf /etc/resolv.conf.bk

8、安裝完成通過console訪問

登錄User:   sysman
Password: sys man password




-----Agent 安裝後續中...
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章