Oracle cloud control 12c 的啟動與關閉

來源:互聯網
上載者:User

Oracle cloud control 12c 的啟動與關閉

Oracle cloud control 12c整個安裝比較複雜,光是安裝路徑的選擇,登入密碼,連接埠號碼等眾多個配置不免讓人眼花繚亂,目不暇接。本文描述的是安裝完畢後如何擷取安裝時設定的各類連接埠號碼,URL以及如何啟動、關閉cloud control等等,供大家參考。

有關cloud control的安裝配置可以參考:Oracle Enterprise Manager Cloud Control 12c Release 3 Installation 

1、當前的環境配置
[oracle@oel63 ~]$ more ~/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_HOSTNAME=oel63.ycdata.net; export ORACLE_HOSTNAME
ORACLE_UNQNAME=ora11g; export ORACLE_UNQNAME
ORACLE_BASE=/u01/ora11g; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/db_1; export ORACLE_HOME
ORACLE_SID=ora11g; export ORACLE_SID

PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

export OMS_HOME=/u01/oms12cr3/oms
export AGENT_HOME=/u01/agent12cr2/core/12.1.0.3.0

[oracle@oel63 ~]$ more /etc/issue
Oracle Linux Server release 6.3
Kernel \r on an \m

[oracle@oel63 ~]$ sqlplus -v

SQL*Plus: Release 11.2.0.3.0 Production

 

2、啟動repository DB及OMS
#啟動oms前,需要先啟動Repository DB,該DB用於存放收集到的監控資訊
#啟動DB時,同時需要啟動監聽器,否則收到Failed to connect to repository database.
#不過OMS會自動重啟,當偵測到DB和監聽處於UP時(OMS will be automatically restarted once it identifies that database and listener are up.)
[oracle@oel63 ~]$ lsnrctl start
[oracle@oel63 ~]$ ps -ef | grep pmon | grep -v grep
[oracle@oel63 ~]$ sqlplus / as sysdba
SQL> startup
SQL> exit

 

#使用以下的命令啟動oms以及agent
[oracle@oel63 ~]$ $OMS_HOME/bin/emctl start oms
[oracle@oel63 ~]$ $AGENT_HOME/bin/emctl start agent

 

3、查看安裝資訊
#通過查看之前的安裝資訊以及連接埠資訊,然後據此串連到cloud control console
[oracle@oel63 ~]$ cd $OMS_HOME/install
[oracle@oel63 install]$ more eminstall.info
INSTALL_TYPE=NOSEED
UPGRADE=false
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/oms12cr3  #Weblogic安裝位置
OMS_HOME=/u01/oms12cr3/oms                    #OMS安裝位置
AGENT_HOME=/u01/agent12cr2/core/12.1.0.3.0    #Agent安裝位置
AGENT_BASE_DIR=/u01/agent12cr2                #Agent基目錄

 

#下面是一些重要的連接埠資訊 Author : Leshami  Blog :

相關文章

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.