日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

在OEL5上安装配置Oracle Gird Control 10.2.0.5

發布時間:2024/7/19 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 在OEL5上安装配置Oracle Gird Control 10.2.0.5 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
早期的Grid Control問題實在太多了,以至于把10.2.0.1的Grid Control升級到10.2.0.5幾乎是不可能完成的任務;此外10.2.0.5以前的gc不支持11g作為repository database倉庫數據庫,不僅于此10.2.0.1版本是不支持rhel5或OEL5的,如果想安裝的話rhel/oel 4是僅有理想的平臺。這就這為我們制造了許多局限。如果是Fresh Installation的話似乎只安裝軟件(software only),而不在安裝10.2.0.1階段配置oms,在升級到10.2.0.5后再進行oms的config會是一種比較理想的安裝方法。不過我們仍需要應付一個復雜的配置過程,寫這個文檔的目的是幫助我們應付(包括已安裝過的人,因為很容易忘記)這種窘況。 1.我們需要一個已經存在的Oracle數據庫,當然它應當是純凈的(沒有相關的em repository),其版本最好是10.2.0.5或者11.2.0.2;我們假設你的數據庫已經滿足了一切安裝grid control的前提要求,這包括設置幾個初始化參數和裝有dbms_shared_pool包等等。 2.其次你需要下載對應的軟件,這包括了完全版本的10.2.0.1安裝介質和10.2.0.5 gc patchset,并且最好有10.2.0.5版的agent(個人經驗agent不太穩定,有時候需要重配,所以有介質的話會方便些):
  • Linux_Grid_Control_full_102010_disk1.zip
  • Linux_Grid_Control_full_102010_disk2.zip
  • Linux_Grid_Control_full_102010_disk3.zip
  • gc_x86_64_10205_part1of2.zip
  • gc_x86_64_10205_part2of2.zip
  • Linux_x86_64_Grid_Control_agent_download_10_2_0_5_0.zip
要下載這一大堆介質可能是我們安裝過程中最麻煩的一件事情,特別是當你的網絡狀況欠佳的季節。 因為都是zip包,所以你只需要使用unzip命令將以上介質一一解壓到合適目錄就可以了。 3.配置OMS所在主機的內核參數和rpm包,下面給出了相關配置文件的示例值: /etc/sysctl.conf: kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 # semaphores: semmsl, semmns, semopm, semmni net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144/* 注意以上參數并不一定適合你的主機,具體如何配置請參見Metalink文檔 */同時修改/etc/security/limits.conf參數文件: * soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536/* 星號換上你的安裝用戶名,如oracle或者其他dba組成員 */安裝適當的rpm包,安裝database時需要的包一律也都需要,此外請特別留意安裝一下幾個包: compat-libstdc++-296-2.96-138.i386 libstdc++-devel-4.1.2-48.el5.x86_64 libstdc++-devel-4.1.2-48.el5.i386 glibc-devel-2.5-49.x86_64 glibc-devel-2.5-49.i386并建立下列符號連接: ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2 4.上述工作完成后我們需要修改response文件以滿足安裝的需要,在10.2.0.1安裝介質的解壓目錄下操作: [root@nas media]# ls dcommon doc index.htm install libskgxn oms rdbms response runInstaller stage[root@nas media]# vi response/em_using_existing_db.rsp /* 修改em_using_existing_db.rsp響應文件 */包括以下參數需要從默認值修改為指定值: UNIX_GROUP_NAME="dba" #dba應當是有效的安裝用戶所在組FROM_LOCATION="/s01/media/oms/Disk1/stage/products.xml" #FROM LOCATION指向安裝介質stage目錄下的products.xml文件BASEDIR="/s01/app/gc" #BASEDIR指向grid control安裝的基礎目錄INSTALLATION_NAME="oms10g" #安裝名s_reposHost="rh3.oracle.com" #repository數據庫的主機名或ip地址s_reposPort="1521" #repository數據庫的監聽端口s_reposSID="EMREP" #repository數據庫的sids_reposDBAPwd="maclean" #repository數據庫的sys用戶密碼s_mgmtTbsName="/s01/orabase/oradata/EMREP/mgmt.dbf" #repository數據庫今后的mgmt表空間的數據文件名s_ecmTbsName=s_mgmtTbsName="/s01/orabase/oradata/EMREP/mgmt_ecm.dbf" #repository數據庫今后的ecm表空間的數據文件名s_securePassword="maclean" #agent將來使用的secure密碼s_securePasswordConfirm="maclean" #確認上一步的密碼b_lockedSelected=false #確定agent交互是否被鎖s_reposPwd="maclean" #確定倉庫數據庫中模式擁有者(sysman)的密碼s_reposPwdConfirm="maclean" #確認上一步的密碼 5.以靜默方式安裝grid control 10.2.0.1,但不配置oms: [maclean@nas ~]$ export TMP=/tmp[maclean@nas ~]$ /s01/media/install/runInstaller -noconfig -silent -ignoreSysPrereqs -responseFile \ /s01/media/response/em_using_existing_db.rsp use_prereq_checker=false b_skipDBValidation=true -force以上安裝完成后,運行相關腳本: [maclean@nas ~]$ su - root -c "/home/maclean/oraInventory/orainstRoot.sh"[maclean@nas ~]$ su - root -c "/s01/app/gc/oms10g/allroot.sh"并使用opmonctl命令關閉http等服務: [maclean@nas ~]$ /s01/app/gc/oms10g/opmn/bin/opmnctl stopall opmnctl: stopping opmn and all managed processes... 5.接下來我們需要安裝grid control 10.2.0.5補丁集,同樣的需要修改一個response響應文件: [maclean@nas 10205]$ unzip /tmp/gc_x86_64_10205_part2of2.zip Archive: /tmp/gc_x86_64_10205_part2of2.zip extracting: p3731593_10205_Linux-x86-64.zip[maclean@nas 10205]$ unzip p3731593_10205_Linux-x86-64.zip ..............[maclean@nas ~]$ cp /s01/10205/3731593/Disk1/response/patchset.rsp /s01/10205/3731593/Disk1/response/oms_patchset.rsp/* 對oms_patchset.rsp修改已有的參數為指定值 */[maclean@nas ~]$ vi /s01/10205/3731593/Disk1/response/oms_patchset.rspORACLE_HOME="/s01/app/gc/oms10g" b_softwareonly=true s_sysPassword="maclean" sl_pwdInfo={ "maclean" } oracle.iappserver.st_midtier:szl_InstanceInformation={ "maclean" }ORACLE_HOME_NAME="oms10g" #另外增加以上條目[maclean@nas ~]$ /s01/10205/3731593/Disk1/runInstaller -noconfig -silent \ -responseFile /s01/10205/3731593/Disk1/response/oms_patchset.rsp/* 以上10.2.0.5補丁安裝完成后,同樣需要執行root.sh */[maclean@nas ~]$ su - root -c "/s01/app/gc/oms10g/root.sh" 6.完成上述安裝后可以開始配置OMS了: [maclean@nas ~]$ export PERL5LIB=/s01/app/gc/oms10g/perl/lib/5.6.1[maclean@nas ~]$ /s01/app/gc/oms10g/perl/bin/perl /s01/app/gc/oms10g/sysman/install/ConfigureGC.pl \ /s01/app/gc Base Directory: /s01/app/gcStarting ito execute Configuration Assistants: Running the configuration assistants using the following command: /s01/app/gc/oms10g/oui/bin/runConfig.sh INV_PTR_LOC=/s01/app/gc/oms10g/oraInst.loc ORACLE_HOME=/s01/app/gc/oms10g ACTION=configure MODE=perform COMPONENT_XML={encap_oms.1_0_0_0_0.xml} perform - mode is starting for action: configure以上命令的具體形式為: <OMS ORACLE_HOME>/perl/bin/perl <OMS ORACLE_HOME>/sysman/install/ConfigureGC.pl <Parent Directory filepath> 配置會消耗大量的時間,建議通過.../oms10g/cfgtoollogs/oui/configActions<>.log.日志文件監控配置過程:[root@nas oui]# cd /s01/app/gc/oms10g/cfgtoollogs/oui[root@nas oui]# tail -f configActions2011-01-23_08-57-20-AM.log ... return status = 0 (success) Oracle JAAS [Sun Jan 23 08:57:43 CST 2011] $ORACLE_HOME/j2ee/home/config/jazn-data.xml is synchronized successfully to dcm repository. Please check the log file [/s01/app/gc/oms10g/cfgtoollogs/jaznca.log] for details.The plug-in Java Security Configuration Assistant has successfully been performed ------------------------------------------------------ ------------------------------------------------------ The plug-in Web Cache Configuration Assistant is running2 Start traversing... got process-manager node got ias-instance node attrValue=IASPTattrValue=DSAattrValue=HTTP_ServerattrValue=LogLoaderattrValue=dcm-daemonattrValue=OC4JattrValue=WebCacheEntity found.got ias-instance node Current status is : enabled Changing the value of port to enabledModified ... Before After WaitForComplete After WaitForComplete Completed smiSetStatus Checking status ... enableconfiguration In ... getWebcachePort WebCache Default Port :7777 In ... updateApacheConf Apache Port Value : 7777 Apache Before WaitForComplete Apache After WaitForComplete Checking for Apache updation status Apache httpd.conf updated smiTearDown Will be checking the status ... Webcache Configuration finished successfullyThe plug-in Web Cache Configuration Assistant has successfully been performed ------------------------------------------------------ ------------------------------------------------------ The plug-in Oracle Application Server Instance Configuration Assistant is runningThe plug-in Oracle Application Server Instance Configuration Assistant has successfully been performed ------------------------------------------------------ ------------------------------------------------------ The plug-in OC4J Instance Configuration Assistant is runningReading ini file - '/s01/app/gc/oms10g/j2ee/deploy.ini' Adding web-app 'IsWebCacheWorkingWeb.war' for app 'IsWebCacheWorking'. Adding web-app 'wsrp-samples.war' for app 'portletapp'. Initializing DCM...done. OC4J instance 'home' already exists. Starting OC4J instance 'home'...done. Deploying application 'portletapp' to OC4J instance 'home'. Notification ==> Application Deployer for portletapp STARTS [ 2011-01-23T08:58:00.972CST ] Notification ==> Undeploy previous deployment Notification ==> Removing files for app file:/s01/app/gc/oms10g/j2ee/home/applications/portletapp.ear Notification ==> Copy the archive to /s01/app/gc/oms10g/j2ee/home/applications/portletapp.ear Notification ==> Unpack portletapp.ear begins... Notification ==> Unpack portletapp.ear ends... Notification ==> Initialize portletapp.ear begins... Notification ==> Initialize portletapp.ear ends... Notification ==> Initialize wsrp-samples begins... Notification ==> Initialize wsrp-samples ends... Notification ==> deleting: /s01/app/gc/oms10g/j2ee/home/applications/portletapp.ear Notification ==> deleting: /s01/app/gc/oms10g/j2ee/home/applications/portletapp/wsrp-samples.war Notification ==> Application Deployer for portletapp COMPLETES [ 2011-01-23T08:58:01.319CST ] Deploying application 'IsWebCacheWorking' to OC4J instance 'home'. Notification ==> Application Deployer for IsWebCacheWorking STARTS [ 2011-01-23T08:58:01.328CST ] Notification ==> Undeploy previous deployment Notification ==> Removing files for app file:/s01/app/gc/oms10g/j2ee/home/applications/IsWebCacheWorking.ear Notification ==> Copy the archive to /s01/app/gc/oms10g/j2ee/home/applications/IsWebCacheWorking.ear Notification ==> Unpack IsWebCacheWorking.ear begins... Notification ==> Unpack IsWebCacheWorking.ear ends... Notification ==> Initialize IsWebCacheWorking.ear begins... Notification ==> Initialize IsWebCacheWorking.ear ends... Notification ==> Initialize IsWebCacheWorkingWeb begins... Notification ==> Initialize IsWebCacheWorkingWeb ends... Notification ==> deleting: /s01/app/gc/oms10g/j2ee/home/applications/IsWebCacheWorking.ear Notification ==> deleting: /s01/app/gc/oms10g/j2ee/home/applications/IsWebCacheWorking/IsWebCacheWorkingWeb.war Notification ==> Application Deployer for IsWebCacheWorking COMPLETES [ 2011-01-23T08:58:01.362CST ] Calling updateConfig to notify DCM of new deployments...done. Adding dependent libraries for application 'portletapp'...done. Adding OC4J mount points for application 'portletapp'...done. Adding OC4J mount points for application 'IsWebCacheWorking'...done. Calling SMI to save changes. SMISession.saveChanges succeeded. Binding web app 'wsrp-samples' to default-web-site for application 'portletapp' in OC4J instance 'home' Web app 'wsrp-samples' bound successfully. Binding web app 'IsWebCacheWorkingWeb' to default-web-site for application 'IsWebCacheWorking' in OC4J instance 'home' Web app 'IsWebCacheWorkingWeb' bound successfully. Calling updateConfig to notify DCM of new web-bindings...done. Adding application 'portletapp' to the DCM repository...done. Application 'portletapp' deployed successfully. Adding application 'IsWebCacheWorking' to the DCM repository...done. Application 'IsWebCacheWorking' deployed successfully. Stopping OC4J instance 'home'...done. Calling SMI to retry init of failed plugins...done. Terminating DCM...done. Copying /s01/app/gc/oms10g/j2ee/deploy.ini to /s01/app/gc/oms10g/j2ee/deploy.ini.1295744298019.bak. Writing any undeployed entries back to /s01/app/gc/oms10g/j2ee/deploy.ini.Oc4jDeploy tool completed successfully!The plug-in OC4J Instance Configuration Assistant has successfully been performed ------------------------------------------------------ ------------------------------------------------------ The plug-in Register DCM Plug-Ins With EM is runningOperation successful.The plug-in Register DCM Plug-Ins With EM has successfully been performed ------------------------------------------------------ ------------------------------------------------------ The plug-in DCM Repository Backup Assistant is runningbackup created: InstalledImage_EnterpriseManager0.nasThe plug-in DCM Repository Backup Assistant has successfully been performed ------------------------------------------------------ ------------------------------------------------------ The plug-in EM Technology Stack Upgrade is runningThe plug-in EM Technology Stack Upgrade has successfully been performed ------------------------------------------------------ ------------------------------------------------------ The plug-in OMS Configuration is runningOperation Stopping OPMN Processes is in progress. Operation EM Deploying is in progress. Operation Creating OMS Respository is in progress. Operation Configuring OMS is in progress. OMS is being Secured and Lock is set to false. Precompiling JSPs. Performing installation of CLI services for client. Operation Restarting OPMN Processes is in progress.The plug-in OMS Configuration has successfully been performed ------------------------------------------------------ ------------------------------------------------------ The plug-in Agent Configuration Assistant is runningPerforming free port detection on host=nas Securing the agent Performing targets discovery and agent configurationThe plug-in Agent Configuration Assistant has failed its perform method ------------------------------------------------------ The action configuration has failed its perform method ################################################### 7.如果以上oms configuration順利完成那么Grid Control的網頁界面已經可以登錄了,但我們在本地服務器上的agent仍是10.2.0.1版本的(所以Agent Configuration Assistant失敗了),這里我推薦將原agent目錄刪除后通過10.2.0.5的agent介質(Linux_x86_64_Grid_Control_agent_download_10_2_0_5_0.zip)重新安裝并部署,這樣可以很大程度上避免出現問題。

轉載于:https://www.cnblogs.com/macleanoracle/archive/2013/03/19/2967675.html

總結

以上是生活随笔為你收集整理的在OEL5上安装配置Oracle Gird Control 10.2.0.5的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。