Oracle Enterprise Manager Cloud Control 12c(12.1) OMS&Agent 学习(1)
安装&启动关闭
关闭:
[oracle@ora12 oms]$ export OMS_HOME=/u01/em12c/emhome/oms
[oracle@ora12 oms]$ export AGENT_HOME=/u01/em12c/emagent/core/12.1.0.4.0
[oracle@ora12 oms]$ $OMS_HOME/bin/emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
AdminServer Successfully Stopped
Oracle Management Server is Down
[oracle@ora12 oms]$ $AGENT_HOME/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Stopping agent .... stopped.
[oracle@ora12 oms]$ ps -ef|grep u01
oracle 57765 54684 0 20:09 pts/1 00:00:00 grep u01
[oracle@ora12 oms]$
[oracle@ora12 oms]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Tue Dec 23 20:10:06 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
[oracle@ora12 trace]$ crontab -l
no crontab for oracle
[oracle@ora12 trace]$ su -
Password:
[root@ora12 ~]# crontab -l
no crontab for root
[root@ora12 ~]# reboot
启动:
上述步骤的反向操作!
安装:
alter system set processes= 500 scope=spfile;
alter system set session_cached_cursors=500 scope=spfile;
alter system set shared_pool_size=650M scope=spfile;
alter system set job_queue_processes=22 scope=spfile;
alter database add logfile size 320M;
alter system set open_cursors=350 scope=spfile;
alter system set sga_target=2g scope=spfile;
aLTER SYSTEM SET pga_aggregate_target=1G SCOPE=SPFILE;
高级安装
[oracle@ora12 ~]$ $AGENT_HOME/bin/emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 12.1.0.4.0
OMS Version : (unknown)
Protocol Version : 12.1.0.1.0
Agent Home : /u01/em12c/emagent/agent_inst
Agent Log Directory : /u01/em12c/emagent/agent_inst/sysman/log
Agent Binaries : /u01/em12c/emagent/core/12.1.0.4.0
Agent Process ID : 5922
Parent Process ID : 1969
Agent URL : https://ora12.dom:3872/emd/main/
Local Agent URL in NAT : https://ora12.dom:3872/emd/main/
Repository URL : https://ora12.dom:4903/empbs/upload
Started at : 2014-12-23 20:29:15
Started by user : oracle
Operating System : Linux version 2.6.39-400.17.1.el6uek.x86_64 (amd64)
Last Reload : (none)
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 1
Size of XML files pending upload(MB) : 0.01
Available disk space on upload filesystem : 66.81%
Collection Status : Collections enabled
Heartbeat Status : OMS is unreachable
Last attempted heartbeat to OMS : 2014-12-23 20:36:54
Last successful heartbeat to OMS : (none)
Next scheduled heartbeat to OMS : 2014-12-23 20:37:24
---------------------------------------------------------------
Agent is Running and Ready
自动启动!