OCM實驗-grid control安裝
http://pan.baidu.com/share/link?shareid=2150812508&uk=2282362436 密碼:qb3d
我們需要對DBSNMP賬戶進行解鎖
SYS@OCM2>select username,account_status from dba_users;
USERNAME ACCOUNT_STATUS
------------------------------ --------------------------------
OUTLN OPEN
SYS OPEN
SYSTEM OPEN
DBSNMP EXPIRED & LOCKED
WMSYS EXPIRED & LOCKED
TSMSYS EXPIRED & LOCKED
DIP EXPIRED & LOCKED
7 rows selected.
SYS@OCM2>alter user dbsnmp identified by oracle account unlock;
User altered.
SYS@OCM2>select username,account_status from dba_users;
USERNAME ACCOUNT_STATUS
------------------------------ --------------------------------
OUTLN OPEN
SYS OPEN
SYSTEM OPEN
DBSNMP OPEN
WMSYS EXPIRED & LOCKED
TSMSYS EXPIRED & LOCKED
DIP EXPIRED & LOCKED
7 rows selected.
System altered.
SYS@OCM2>@?/rdbms/admin/dbmspool.sql
127.0.0.1 localhost
192.168.152.20
ocm2
192.168.152.10
ocm1
127.0.0.1 localhost.localhost localhost
192.168.152.20
ocm2.com ocm2
192.168.152.10
ocm1.com ocm1
https://community.oracle.com/thread/996240
System altered.
設定session_cached_cursors引數
SYS@OCM2>alter system set session_cached_cursors=300
scope=spfile;
執行dbmspool.sql指令碼
下面進入到grid control的安裝,這個安裝是使用圖形介面的。需要使用root賬戶先執行一個xhost + 命令。
[oracle@ocm2 Disk1]$ ls
dcommon doc index.htm install libskgxn oms rdbms response runInstaller stage
然後啟動圖形安裝介面
[oracle@ocm2 Disk1]$ ./runInstaller
在這個頁面,我們選擇使用一個存在的資料庫。
輸入軟體的安裝路徑,這個採用預設設定即可。
這個頁面是來檢查系統的環境的,這裡我們看到出現一個警告。這裡需要注意的是出現警告如果忽略可以繼續安裝,如果出現失敗false,這就要進行處理,然後才能繼續。
我們先來看看這個警告
這個警告是由於/etc/hosts中的配置引起的。目前的/etc/hosts配置如下
[oracle@ocm2 logs]$ cat /etc/hosts
將其修改為這樣
[root@ocm2 ~]# vi /etc/hosts
該問題就可以解決了。
該問題還可以參考如下資訊
http://www.itpub.net/thread-1517786-1-1.html
在這個頁面,我們需要輸入主機名、埠、ORACLE_SID和sys的密碼。輸入完成後,我們需要點選prefill Tablespace locations
我們需要在資料庫上指定兩個新表空間存放管理GC資料庫物件
然後點選ok
這時出現一個ERROR,open_cursors引數值應該大於300。這個錯誤我們可以在另外的命令列視窗執行下面的命令
SYS@OCM2>alter system set open_cursors=400
scope=both;
該頁面選擇預設即可
在該頁面我們需要設定AGENT註冊密碼和sysman密碼,密碼要求至少5位,必須包含數字。這裡我們將密碼全部設定為oracle123
總結頁面,點選install
進入安裝介面
在安裝過程中,可能出現如下錯誤
錯誤處理
[root@ocm2 lib]# cd /usr/lib
[root@ocm2 lib]# ls -lrt libgd*
-rwxr-xr-x 1 root root 118056 Mar 14 2008 libgdict-1.0.so.5.0.5
-rwxr-xr-x 1 root root 252612 Jan 5 2010 libgd.so.2.0.0
-rwxr-xr-x 1 root root 25652 Sep 26 2012 libgdbm.so.2.0.0
-rwxr-xr-x 1 root root 578312 Jan 9 2013 libgdk-x11-2.0.so.0.1000.4
-rwxr-xr-x 1 root root 62076 Jan 9 2013 libgdk_pixbuf_xlib-2.0.so.0.1000.4
-rwxr-xr-x 1 root root 94272 Jan 9 2013 libgdk_pixbuf-2.0.so.0.1000.4
lrwxrwxrwx 1 root root 16 Jan 8 18:53 libgdbm.so.2 -> libgdbm.so.2.0.0
lrwxrwxrwx 1 root root 14 Jan 8 18:54 libgd.so.2 -> libgd.so.2.0.0 # 我這個之前已經執行過了。
lrwxrwxrwx 1 root root 26 Jan 8 18:55 libgdk-x11-2.0.so.0 -> libgdk-x11-2.0.so.0.1000.4
lrwxrwxrwx 1 root root 34 Jan 8 18:55 libgdk_pixbuf_xlib-2.0.so.0 -> libgdk_pixbuf_xlib-2.0.so.0.1000.4
lrwxrwxrwx 1 root root 29 Jan 8 18:55 libgdk_pixbuf-2.0.so.0 -> libgdk_pixbuf-2.0.so.0.1000.4
lrwxrwxrwx 1 root root 21 Jan 8 19:00 libgdict-1.0.so.5 -> libgdict-1.0.so.5.0.5
然後執行
[root@ocm2 lib]# ln -s libgdbm.so.2.0.0 /usr/lib/libdb.so.2
進入到grid control 安裝路徑
[oracle@ocm2 ~]$ cd /u01/app/oracle/OracleHomes/oms10g/opmn/bin
[oracle@ocm2 bin]$ ls
argus opmn opmnconfig opmnctl opmnctl.tmp opmndep
啟動opmn
[oracle@ocm2 bin]$ ./opmnctl startall
opmnctl: starting opmn and all managed processes...
然後回到安裝介面點選 continue.安裝介面將提示執行一個指令碼
[root@ocm2 lib]# /u01/app/oracle/OracleHomes/oms10g/allroot.sh
Starting to execute allroot.sh .........
Starting to execute /u01/app/oracle/OracleHomes/oms10g/root.sh ......
Running Oracle10 root.sh script...
\nThe following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/OracleHomes/oms10g
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished execution of /u01/app/oracle/OracleHomes/oms10g/root.sh ......
Starting to execute /u01/app/oracle/OracleHomes/agent10g/root.sh ......
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/OracleHomes/agent10g
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
Finished execution of /u01/app/oracle/OracleHomes/agent10g/root.sh ......
[root@ocm2 lib]#
指令碼執行後,進入到註冊介面我們監控只要所有選項的狀態全部succeeded 即可
這時,我們就完成了gc的安裝。這個頁面我們需要記錄URL
下面我們使用瀏覽器來登入grid control
這裡我們需要資料sysman/oracle123
這裡顯示了本機資料庫的情況。
到這裡我們grid control的安裝工作就基本完成了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/11590946/viewspace-1069236/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- OCM實驗-grid control agent安裝
- 安裝Grid Control
- 安裝10.2.0.4 Grid Control之前需要安裝 10.2.0.3.0 Grid Control
- Grid Control的安裝
- 如何解除安裝Oracle Grid ControlOracle
- zt_如何解除安裝oracle grid controlOracle
- 【GC】OEL4.8解除安裝重新部署安裝Grid Control OMSGC
- Grid能否安裝、是否正常安裝的校驗語法
- Oracle10g Grid Control客戶端的安裝Oracle客戶端
- 【GC】OEL4.8部署安裝 Grid Control OMSGC
- OCM考試-GC安裝GC
- STATSPACK 安裝(OCM複習)
- OCM實驗-網路配置
- OCM實驗-手工建庫
- 安裝GRID CONTROL The OPMN Process Manager failed to start報錯處理AI
- 安裝Grid Control , OPMN Process Manager failed to start 問題解決AI
- 安裝Oracle 10g Grid Control 時碰到 OUI-25031Oracle 10gUI
- 安裝Oracle10.2.0.4 Grid Control 時Linux Packages找不到OracleLinuxPackage
- Solaris環境安裝Oracle Enterprise Manager 10g Grid ControlOracle
- 安裝Oracle Enterprise Manager 10g Grid Control Release 10.1.0.3Oracle
- SAP安裝實驗
- OEM Grid Control裡通過安裝Yast來監控和管理主機AST
- 【GC】使用 agentDownload.linux完成Grid Control Agent的快速部署安裝GCLinux
- OCM 10G RAC安裝大綱
- GoldenGate , Grid ControlGo
- OCM實驗-測試環境的搭建
- Linux 5.7現有資料庫上安裝Oracle10g Grid ControlLinux資料庫Oracle
- oracle grid control 10g 在redhat linux 4 下的安裝與配置OracleRedhatLinux
- heartbeat安裝配置實驗
- 12.2.0.1.0 Grid RU安裝
- 12.2.0.1 Grid RUR 安裝
- 12.2 Grid RUR 安裝
- Oracle grid infrastructure 解除安裝OracleASTStruct
- oracle grid control etc/hostsOracle
- 準備安裝Oracle Enterprise Manager 10g Grid Control Release 2 (10.2.0.2.0)Oracle
- 安裝Grid Control: PLS-00201 'MGMT_TIME_SYNC.STARTUPSYNC' must be declared
- Step by step install grid control agent on linux 5.3 x86_64遠端安裝Linux
- Zabbix安裝實驗報告