在Window下安裝Oracle 12C Cloud Control Agent


① 准備好安裝源,這個ORACLE普通賬號無法下載到,有需要的可以聯系我
   p14570373_112000_Generic.zip,用於Windows 64位操作系統

② 解壓p14570373_112000_Generic.zip,
   同時要進一步解壓里面的12.1.0.2.0_AgentCore_233.zip

③ 配置12.1.0.2.0_AgentCore_233.zip解壓出來的文件agent.rsp
   #Enter the OMS host name
    OMS_HOST=Could Control Server Name
        
    #Enter the upload port (HTTP or HTTPS) for communicating with the OMS
    #Default HTTP Port is 4890    HTTPS Port is 4904
    EM_UPLOAD_PORT=Could Control HTTP Or HTTPS Upload Port

    #Enter a password for registering new Management Agents that join the Enterprise Manager system
    AGENT_REGISTRATION_PASSWORD=Could Control AGENT REGISTRATION PASSWORD 不是SYSMAN的密碼

    #Enter a directory location on the destination host where all Management Agent-related configuration files can be stored
    AGENT_INSTANCE_HOME=D:\agent\agent_inst

    #Enter a free port on which the Management Agent process should be started
    #If you do not enter any value, then either 3872 or any free port between 1830 and 1849 is honored
    AGENT_PORT=3872

    #Enter TRUE if you want the Management Agent to start automatically once it is installed and configured. Otherwise, enter FALSE.
    #注意這項默認就已經在 agent.rsp 里面,為了好看才把它寫到這里來
    b_startAgent=true

    #Enter the fully qualified domain name of the host where you want to install the agent
    ORACLE_HOSTNAME=Install Agent Host Name

    #Enter the name of the Oracle home you want to see created for the Management Agent
    s_agentHomeName=agent12cR2

    #Enter the customized Management Agent service name
    s_agentServiceName=Oracleagent12cAgent
        
        這里注意幾點:
        ♢ OMS_HOST參數為服務器的hostname,假如服務器端配置的名稱帶域名的,必須在客戶端hosts文件中配置短名稱或者長名稱
        ♢ AGENT_REGISTRATION_PASSWORD,這個密碼不是SYSMAN的密碼
           如果忘記了
           可以在服務器端執行emctl secure setpwd sysmanpassword agentregisterpasswd,重置這個密碼
    ♢ ORACLE_HOSTNAME,是客戶端的HOST_NAME,假如在一個多網卡的環境中
          一定不能直接就用客戶端的HOST_NAME,在Windows 下這個HOST_NAME,不是唯一對應着一個固定的IP,所以必須要在hosts文件重新配置一個
          例如我的host_name 是Shark,可是這里配置的ORACLE_HOSTNAME=shark-vm,Hosts文件中添加了一個條目
           192.168.202.1 shark-vm
          同時要在服務器端的Host文件中配置此內容,當然如果你有DNS服務器,就只需要在DNS配置此內容就可以了。

          這個參數配置不正確的話,在Clound Control Console上就找不到主機目標
     這些配置項,配置錯的話,都會導致第④步出錯


④ 以管理員身份打開cmd.exe,尤其是Windows 7,Windows 2008,Windows 8上
    agentDeploy.bat AGENT_BASE_DIR=D:\agent\agent_inst OMS_HOST= Could Control Server Name  EM_UPLOAD_PORT=4890 AGENT_REGISTRATION_PASSWORD=passwd ORACLE_HOSTNAME=Install Agent Host Name   
    ♢ 這里還有一個參數:-ignorePrereqs,忽略先決條件檢查,這個很重要,否則你要更改很多.ini文件中的[Certified Versions]中的Windows項Windows=4.0,5.0,5.1,5.2,6.0,6.1,6.2,6.3    

  ♢  注意AGENT_BASE_DIR參數不要設置和安裝源同一路徑下     

⑤  在 Clound Control Console,搜尋相關管理目標,注意客戶端上的數據庫、監聽器登管理對象,是需要手動搜尋。


          


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM