Oracle 12c 里面设置了全新的目录结构。

今天在处理12C OMS的一个问题时发现:

Oracle 12c 里面设置了全新的目录结构。也就是说和以前的版本相比,AGENT_HOME发生了一些变化。

OMS安装在node1 上。
bash-3.2$ hostname
mcsp-prod-oem-1
bash-3.2$ pwd
/app/oracle/Middleware
bash-3.2$ ls -lrth
total 184K
drwxr-xr-x 6 oracle oinstall 4.0K Nov 2 18:34 jdk16
drwxr-xr-x 7 oracle oinstall 36K Nov 2 18:37 modules
drwxr-xr-x 8 oracle oinstall 4.0K Nov 2 18:37 utils
-rw-r--r-- 1 oracle oinstall 1.8K Nov 2 18:37 registry.xml
-rw-r--r-- 1 oracle oinstall 85K Nov 2 18:37 registry.dat
-rw-r--r-- 1 oracle oinstall 623 Nov 2 18:37 ocm.rsp
drwxr-x--- 34 oracle oinstall 4.0K Nov 2 18:52 oracle_common
drwxr-xr-x 14 oracle oinstall 4.0K Nov 2 18:54 plugins
drwxr-x--- 3 oracle oinstall 4.0K Nov 2 20:59 user_projects
drwxr-xr-x 6 oracle oinstall 4.0K Nov 2 20:59 gc_inst
-rw-rw---- 1 oracle oinstall 476 Nov 2 21:06 domain-registry.xml
drwxr-xr-x 6 oracle oinstall 4.0K Nov 2 21:25 agent
drwxr-xr-x 2 oracle oinstall 4.0K Nov 8 19:38 logs
drwxr-x--- 51 oracle oinstall 4.0K Nov 8 21:44 Oracle_WT
drwxr-xr-x 50 oracle oinstall 4.0K Nov 8 21:46 oms
drwxr-xr-x 10 oracle oinstall 4.0K Nov 8 22:04 wlserver_10.3
bash-3.2$

Agent安装在node2上。

bash-3.2$ hostname
mcsp-prod-oem-2
bash-3.2$ pwd
/app/oracle/Middleware/agent
bash-3.2$ ls -lrth
total 28K
-rw-rw-r-- 1 oracle oinstall 91 Sep 23 07:52 agentimage.properties
-rwxr-xr-x 1 oracle oinstall 317 Nov 7 20:43 plugins.txt
drwxr-xr-x 9 oracle oinstall 4.0K Nov 7 20:43 plugins
drwxr-xr-x 3 oracle oinstall 4.0K Nov 7 20:50 core
-rw-r--r-- 1 oracle oinstall 422 Nov 7 20:57 plugins.txt.status
drwxr-xr-x 5 oracle oinstall 4.0K Nov 7 21:16 sbin
drwxr-xr-x 6 oracle oinstall 4.0K Nov 9 06:46 agent_inst


bash-3.2$ hostname
mcsp-prod-oem-1
bash-3.2$ ./emctl status oms
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
bash-3.2$ ./emctl status agent
Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent is Not Running
bash-3.2$ ./emctl start agent
Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
Starting agent ........ started.
bash-3.2$ ./emctl status agent
Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 12.1.0.1.0
OMS Version : 12.1.0.1.0
Protocol Version : 12.1.0.1.0
Agent Home : /app/oracle/Middleware/agent/agent_inst
Agent Binaries : /app/oracle/Middleware/agent/core/12.1.0.1.0
Agent Process ID : 31190
Parent Process ID : 31123
Agent URL : https://mcsp-prod-oem-2.oracle.com:3872/emd/main/
Repository URL : https://mcsp-prod-oem-1.oracle.com:4900/empbs/upload
Started at : 2011-11-09 06:42:46
Started by user : oracle
Last Reload : (none)
Last successful upload : 2011-11-09 06:42:57
Last attempted upload : 2011-11-09 06:42:57
Total Megabytes of XML files uploaded so far : 0.15
Number of XML files pending upload : 188
Size of XML files pending upload(MB) : 1.04
Available disk space on upload filesystem : 80.05%
Collection Status : Collections enabled
Last attempted heartbeat to OMS : 2011-11-09 06:42:51
Last successful heartbeat to OMS : 2011-11-09 06:42:51

---------------------------------------------------------------
Agent is Running and Ready
bash-3.2$ hostname
mcsp-prod-oem-2

bash-3.2$ ./emctl status agent
Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 12.1.0.1.0
OMS Version : 12.1.0.1.0
Protocol Version : 12.1.0.1.0
Agent Home : /app/oracle/Middleware/agent/agent_inst
Agent Binaries : /app/oracle/Middleware/agent/core/12.1.0.1.0
Agent Process ID : 8710
Parent Process ID : 8643
Agent URL : https://mcsp-prod-oem-1.oracle.com:3872/emd/main/
Repository URL : https://mcsp-prod-oem-1.oracle.com:4900/empbs/upload
Started at : 2011-11-02 21:37:50
Started by user : oracle
Last Reload : (none)
Last successful upload : 2011-11-09 06:55:11
Last attempted upload : 2011-11-09 06:55:11
Total Megabytes of XML files uploaded so far : 71.27
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 69.88%
Collection Status : Collections enabled
Last attempted heartbeat to OMS : 2011-11-09 06:55:17
Last successful heartbeat to OMS : 2011-11-09 06:55:17

---------------------------------------------------------------
Agent is Running and Ready


你可能感兴趣的:(oracle)