Oracle cloud control 12c 的啟動與關閉,cloud12c

來源:互聯網
上載者:User

Oracle cloud control 12c 的啟動與關閉,cloud12c

    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 : http://blog.csdn.net/leshami
[oracle@oel63 install]$ more portlist.ini
Enterprise Manager Upload Http Port=4889
Enterprise Manager Upload Http SSL Port=4903
Enterprise Manager Central Console Http SSL Port=7802
Node Manager Http SSL Port=7403
Managed Server Http Port=7202
Enterprise Manager Central Console Http Port=7788
Oracle Management Agent Port=3872
Admin Server Http SSL Port=7102
Managed Server Http SSL Port=7301

[oracle@oel63 install]$ more setupinfo.txt

This information is also available at:

        /u01/oms12cr3/oms/install/setupinfo.txt

See below for information pertaining to your Enterprise Manager installation:

 

#以下是登入到cloud control console以及登入到Weblogic的URL,根據這個URL登入後進行相應的管理
Use the following URL to access:

        1. Enterprise Manager Cloud Control URL: https://oel63.ycdata.net:7802/em
        2. Admin Server URL: https://oel63.ycdata.net:7102/console

The following details need to be provided during the additional OMS install:

        1. Admin Server Hostname: oel63.ycdata.net
        2. Admin Server Port: 7102

You can find the ports details used by this deployment at : /u01/oms12cr3/oms/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/gc_inst/em/EMGC_OMS1/sysman/backup on host oel63.ycdata.net. See Cloud Control Administrators Guide for details on how to back up and recover an OMS.

   NOTE: This backup is valid only for the initial OMS configuration. 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 on a regular basis to ensure they capture the current OMS configuration. Use the following command to backup the OMS configuration:
/u01/oms12cr3/oms/bin/emctl exportconfig oms -dir <backup dir>

 

4、關閉OMS及repository DB
[oracle@oel63 ~]$ $OMS_HOME/bin/emctl stop oms -all

[oracle@oel63 ~]$ $AGENT_HOME/bin/emctl stop agent
[oracle@oel63 ~]$ lsnrctl stop
[oracle@oel63 ~]$ export ORACLE_SID=ora11g
[oracle@oel63 ~]$ sqlplus / as sysdba
SQL> shutdown immediate;


 


oracle 12c怎進入圖形介面,也就是企業管理器,11g有manger console,12c不見了,幫幫忙

1、啟動EM Database Express 12c,設定連接埠即可啟用EM Express
SQL> show parameter dispatchers
SQL> exec DBMS_XDB_CONFIG.setHTTPPort(8080);

2、安裝Oracle Enterprise Manager Cloud Control 12c.
 
怎卸載oracle12c

1、如果資料庫配置了自動儲存管理(ASM),應該先刪除聚集同步服務CSS(Cluster Synchronization Services).刪除CSS服務的方法是在DOS命令列中執行如下命令: localconfig delete
2、在“服務”視窗中停止oracle的所有服務。
3、在“開始”菜單中依次選擇“程式” / “Oracle-OraDb12c_home1” / "Oracle Installation Products" /"Universal Install",開啟Oracle Universal Installer(OUI)視窗。
4、單擊“卸載產品”按鈕,開啟“產品清單”視窗。選中要刪除的Oracle產品, 單擊“刪除”按鈕,開啟“確認刪除”對話方塊。
5、在“確認刪除”對話方塊中單擊“是”按鈕,開始刪除選擇的Oracle產品。
6、刪除自動儲存管理(ASM),在DOS命令列中執行如下命令: oracle -delete -asnsid +asm
7、運行regedit命令,開啟註冊表視窗。刪除註冊表中與Oracle相關的內容,具體如下。★刪除HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE目錄。★刪除HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services中所有以oracle或OraWeb為開頭的鍵。★刪除HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Application中所有以oracle開頭的鍵。★刪除HKEY_CLASSES_ROOT目錄下所有以Ora、Oracle、Orcl或EnumOra為首碼的鍵。★刪除HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/ Explorer/MenuOrder/Start Menu/Programs中所有以oracle開頭的鍵。★刪除HKEY_LOCAL_MACHINE/SOFTWARE/ODBC/ODBCINST.INI中 除Microsoft ODBC for Oracle註冊表鍵以外的所有含有Oracle的鍵。其中有些登錄機碼可能在卸載Oracle產品的時候已經被刪除。
8、刪除環境變數中的PATH和CLASSPATH中包含Oracle的值。
9、刪除“開始” / “程式” 中所有Oracle的組和表徵圖。
10、刪除所有和ORACLE相關的目錄。 ★C:\app\asus\oradata ★C:\Program Files (x86)\Oracle ★C:\Users\asus\AppData\Roaming\PLSQL Developer ★ORACLE_BASE目錄 ★C:DOcuments and Setting \系統使用者名稱\LocalSettings\Temp目錄下的臨時檔案。
注意:在刪除安裝目錄下oracle相關檔案的時候可能存在個別檔案無法刪除的現象,比如說BIN目錄下的oci.dll檔案,這個是軟體安裝後(不......餘下全文>>
 

相關文章

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.