Oracle cloud control 12c 的启动与关闭

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

1、当前的环境配置
[[email protected] ~]$ 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

[[email protected] ~]$ more /etc/issue
Oracle Linux Server release 6.3
Kernel \r on an \m

[[email protected] ~]$ 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.)
[[email protected] ~]$ lsnrctl start
[[email protected] ~]$ ps -ef | grep pmon | grep -v grep
[[email protected] ~]$ sqlplus / as sysdba
SQL> startup
SQL> exit

#使用以下的命令启动oms以及agent
[[email protected] ~]$ $OMS_HOME/bin/emctl start oms
[[email protected] ~]$ $AGENT_HOME/bin/emctl start agent

3、查看安装信息
#通过查看之前的安装信息以及端口信息,然后据此连接到cloud control console
[[email protected] ~]$ cd $OMS_HOME/install
[[email protected] 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
[[email protected] 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

[[email protected] 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
[[email protected] ~]$ $OMS_HOME/bin/emctl stop oms -all

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

时间: 2024-10-17 16:45:43

Oracle cloud control 12c 的启动与关闭的相关文章

Oracle cloud control 12c 如何修改sysman密码

前阵子在虚拟机部署了Oracle Cloud Control 12c,事别几日,竟然忘记了登陆密码.主要是因为现在的Oracle有关的Software比之前提供更强的安全机制.什么简单的"oracle"之类的pwd不再支持了.这不过一阵子就搞忘了.这年头的,账户多,密码多,就是米不多,哈哈...下面说说其解决办法吧. 一.emctl命令emctl命令想必大家都见过,DB console时代经常会用到,现在功能是越来越强大了,下面仅仅列出有关修改pwd的部分emctl config om

Linux 6.3下安装Oracle Enterprise Cloud Control 12c

Oracle enterprise cloud control 12c的安装是一个比较复杂的过程,因为他需要依赖于Oracel database以及Oracle Weblogic.现在Oracle已经整合了Weblogic到cloud control安装包中还是省事很多,本文是基于Oracle Linux 6.3上安装Oracle enterprise cloud control 12c,以下是具体描述. 1.安装前的准备a) os安装参考   Virtual Box下安装Oracle Linu

Oracle Enterprise Manager Cloud Control 12c的安装

这里,我介绍的是Cloud Control 12c的安装.之前的版本叫Grid Control,这也是11g里面的叫法.在我写这篇博客时,Cloud Control 13c已经出来了,这个版本后续我再进行介绍. 在安装之前,我们先来看一下整体的架构. 首先,它需要一个数据库(就是上图的Repository),用来存放Cloud Control的配置信息.需要有一台服务器,用来安装Cloud Control.然后我们通过使用浏览器访问Cloud Control的控制台(也叫EM),然后对要监控的数

Oracle Enterprise Manager Cloud Control 12c R4 安装配置

准备软件 em12.1.0.4_linux64_V45344-01.zip em12.1.0.4_linux64_V45345-01.zip em12.1.0.4_linux64_V45346-01.zip 安装操作系统(OEL6.5) 给 OS 空间 50G 以上装完OS和CC后需要占用 30G 空间建议6G 内存最少4G [[email protected] newcc bin]$ cat /etc/hosts 127.0.0.1  localhostlocalhost.localdomai

Oracle LSNRCTL------监听器的启动和关闭

对于DBA来说,启动和关闭oracle监听器是很基础的任务,但是Linux系统管理员或者程序员有时也需要在开发数据库中做一些基本的DBA操作,因此了解一些基本的管理操作对他们来说很重要. 本文将讨论用LSNRCTL命令启动.关闭和查看监听器的状态的方法. 怎样启动.关闭和重新启动oracle监听器 在启动.关闭或者重启oracle监听器之前确保使用lsnrctl status命令检查oracle监听器的状态.除了得到监听器的状态之外,你还可以从lsnrctl status命令的输出中得到如下的信

Use emcli to delete obsolete agent targets in Oracle EM Cloud Control 12c

[[email protected] ~]$ cd /oem/oms/oms/bin 登录到oms中 [[email protected] bin]$ ./emcli login -username=sysman Enter password : Login successful 同步信息 [[email protected] bin]$ ./emcli sync Synchronized successfully 获取当前该主机mwtest02的agent所关联的targets [[email

oracle的启动和关闭

oracle004 oracle相关的程序的启动与关闭: 关闭:EM.ISQLPLUS -->listener --> 数据库 isqlplusctl stop .emctl stop dbconsole  -->lsnrctl stop -->有两种方式: 1. dbstop 2. sqlplus as / sysdb --> shutdown immediate 开启:listener --> 数据库 ---> EM.ISQPLUS 数据库 start --&

Oracle 12c CDB 和PDB 数据库的启动与关闭 说明

在Oracle 12c中,分CDB 和PDB,他们的启动和关闭操作整理如下. 1  Container Database (CDB) 对于CDB,启动和关闭与之前传统的方式一样,具体语法如下: STARTUP[NOMOUNT | MOUNT | RESTRICT | UPGRADE | FORCE | READ ONLY] SHUTDOWN[IMMEDIATE | ABORT] 要注意,在12c数据库创建完成后,默认情况下使用sqlplus / as sysdba  登录连接的是CDB. [[e

Oracle 10g RAC启动与关闭命令

一. 检查共享设备 一般情况下, 存放OCR 和 Voting Disk 的OCFS2 或者raw 都是自动启动的. 如果他们没有启动,RAC 肯定是启动不了的. 1.1 如果使用ocfs2的,检查ocfs2 状态 /etc/init.d/o2cb status 在挂载之前,/etc/init.d/o2cb status 显示为Checking O2CB heartbeat: Not active. 在格式化和挂载文件系统之前,应验证 O2CB 在两个节点上均联机:O2CB 心跳当前没有 活动,