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 /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
[oracle@oel63 ~]$ more ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export PATH=$PATH:$HOME/bin
# Oracle Settings
export TMP=/tmp;
export TMPDIR=$TMP;
export ORACLE_HOSTNAME=oel63.ycdata.net;
export ORACLE_UNQNAME=ora11g;
export ORACLE_BASE=/u01/ora11g;
export ORACLE_HOME=$ORACLE_BASE/db_1;
export ORACLE_SID=ora11g;
export PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH;
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
export OMS_HOME=/u01/oms12cr3/oms
export AGENT_HOME=/u01/agent12cr2/core/12.1.0.3.0
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 ~]$ more $OMS_HOME/install/eminstall.info
INSTALL_TYPE=NOSEED
UPGRADE=false
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/oms12cr3 #Weblogic安裝位置
OMS_HOME=/u01/oms12cr3/oms #OMS安裝位置
AGENT_BASE_DIR=/u01/agent12cr2 #Agent基目錄
AGENT_HOME=/u01/agent12cr2/core/12.1.0.3.0 #Agent安裝位置
#下面是一些重要的埠資訊
[oracle@oel63 install]$ more $OMS_HOME/install/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 $OMS_HOME/install/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:
2. Admin Server URL:
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
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;
有關cloud control的安裝配置可以參考:Oracle Enterprise Manager Cloud Control 12c Release 3 Installation
1、當前的環境配置
[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
[oracle@oel63 ~]$ more ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export PATH=$PATH:$HOME/bin
# Oracle Settings
export TMP=/tmp;
export TMPDIR=$TMP;
export ORACLE_HOSTNAME=oel63.ycdata.net;
export ORACLE_UNQNAME=ora11g;
export ORACLE_BASE=/u01/ora11g;
export ORACLE_HOME=$ORACLE_BASE/db_1;
export ORACLE_SID=ora11g;
export PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH;
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
export OMS_HOME=/u01/oms12cr3/oms
export AGENT_HOME=/u01/agent12cr2/core/12.1.0.3.0
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 ~]$ more $OMS_HOME/install/eminstall.info
INSTALL_TYPE=NOSEED
UPGRADE=false
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/oms12cr3 #Weblogic安裝位置
OMS_HOME=/u01/oms12cr3/oms #OMS安裝位置
AGENT_BASE_DIR=/u01/agent12cr2 #Agent基目錄
AGENT_HOME=/u01/agent12cr2/core/12.1.0.3.0 #Agent安裝位置
#下面是一些重要的埠資訊
[oracle@oel63 install]$ more $OMS_HOME/install/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 $OMS_HOME/install/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:
2. Admin Server URL:
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
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;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9034054/viewspace-2055736/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE 12C Cloud Control(二)介紹OracleCloud
- 安裝Cloud Control 12cCloud
- Oracle 12c 關閉歸檔模式Oracle模式
- oracle資料庫的啟動關閉與各種服務Oracle資料庫
- 3.1.1.3 使用Cloud Control 啟動資料庫Cloud資料庫
- 啟動與關閉服務
- Oracle 12c叢集啟動故障Oracle
- Oracle 11gR2 RAC 叢集服務啟動與關閉總結Oracle
- 3 啟動和關閉
- Oracle 11g關閉開啟AWROracle
- Oracle11g RAC啟動關閉情況大概總結Oracle
- windows10怎麼關閉快速啟動_windows10關閉快速啟動的方法Windows
- nginx關閉/重啟/啟動的操作方法Nginx
- win10系統快速啟動怎麼關閉 關閉Windows快速啟動Win10Windows
- 01啟動(關閉)套接字
- 9. 啟動、關閉tomcatTomcat
- centos下nginx啟動、重啟、關閉CentOSNginx
- win10快速啟動怎麼關閉_win10如何關閉快速啟動Win10
- oracle 12c PDB隨CDB啟動和連結PDB的方式Oracle
- win10啟動管理器關閉的方法_win10關閉啟動管理器的方法Win10
- Adobe Creative Cloud總是自動更新,關閉Creative Cloud自動更新教程Cloud
- Oracle資料庫歸檔模式的開啟和關閉Oracle資料庫模式
- Linux下的MongoDB安裝&啟動&關閉LinuxMongoDB
- win10 自動重啟關閉方法_win10自動重啟怎麼關閉Win10
- 如何關閉win10快速啟動_win10系統快速啟動怎麼關閉Win10
- ORACLE 12C RAC資料庫的啟停Oracle資料庫
- Oracle 12c RAC CSSD程式無法啟動real time模式OracleCSS模式
- 修改/dev/shm大小造成Oracle 12c叢集啟動故障devOracle
- vs2019智慧提示的關閉與開啟
- golang程式優雅關閉與重啟Golang
- MySQL啟動和關閉命令總結MySql
- OracleLinux上的Oracle開關機自啟動OracleLinux
- Oracle 12c DG備庫啟動報錯standby database requires recoveryOracleDatabaseUI
- Oracle 12.2 Heavy swapping 資料庫自動關閉OracleAPP資料庫
- db2資料庫的啟動和關閉DB2資料庫
- 關於Oracle 12c的叢集監控(CHM)Oracle
- win10開機自啟動程式關閉方法_win10怎麼關閉開機啟動項Win10
- 4.2.1.11 學習如何啟動和關閉CDB
- Android 書本開啟和關閉動畫Android動畫