当前位置: 移动技术网 > IT编程>数据库>Oracle > Oracle cloud control 12c的启动、关闭及获取安装信息的方法

Oracle cloud control 12c的启动、关闭及获取安装信息的方法

2017年12月12日  | 移动技术网IT编程  | 我要评论

oracle cloud control 12c整个安装比较复杂,光是安装路径的选择,登录密码,端口号等众多个配置不免让人眼花缭乱,目不暇接。本文描述的是安装完毕后如何获取安装时设定的各类端口号,url以及如何启动、关闭cloud control等等,供大家参考。

有关cloud control的安装配置可以参考:

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基目录
 
#下面是一些重要的端口信息
[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;

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网