Oracle 12c agent install for windows,oracle12c

來源:互聯網
上載者:User

Oracle 12c agent install for windows,oracle12c

 

在Oracle EM12c 中部署agent的方法分兩種,一種是通過EM12c的控制台通過ssh直接把agent“推送”安裝到被管理端,這種方法在linux平台的OMS和被管理端比較簡單,因為Linux平台有內建的ssh工具,不需要進行ssh工具的配置。但是如果是windows的平台的OMS和被管理端要進行安裝Cygwin工具,前期的準備步驟比較多。第二種方法是通過指令碼靜默安裝的方法(Silentinstallation),這種方法在windows的被管理端上安裝agent相對比較簡單一些,當然這種方法在Linux上兩樣也適用。

 

下面是通過EM CLI工具在windows上部署agent的方法

 

1. 配置軟體庫

靜默安裝需要軟體下載agent的zip檔案,軟體庫要提前配置好。

下面是在登入EM12c 環境配置軟體庫:

 

點擊添加,輸入名字和位置:


將使用這個位置下載agent部署zip檔案。

 

 

2. 下載agent部署檔案

使用EMCLI(EnterpriseManager Command Line Interface)命令下載agent安裝包,EMCLI已經隨在EM12c release3的OMS在伺服器端已經安裝成功.

使用EMCLI要確保安裝了java 1.6以上的環境。

 

C:\Users\Administrator>java -version

java version "1.7.0_51"

Java(TM) SE Runtime Environment (build 1.7.0_51-b13)

Java HotSpot(TM) 64-Bit Server VM (build24.51-b03, mixed mode)

 

使用sysman使用者登入EMCLI環境

E:\app\em\mw\oms\BIN>emcli login-username=sysman

Enter password

Login successful

 

同步sync

E:\app\em\mw\oms\BIN>emcli sync

Synchronized successfully

 

查詢OMS支援管理的平台

E:\app\em\mw\oms\BIN>emcliget_supported_platforms

-----------------------------------------------

Version = 12.1.0.3.0

 Platform = Microsoft Windows x64 (64-bit)

-----------------------------------------------

Platforms list displayed successfully.

 

 

3. 部署agent

 

下載支援被管理的平台的agent安裝包

emcli get_agentimage -destination=E:\app\em\swlib\12.3-platform="Microsoft Windows x64 (64-bit)" -version=12.1.0.3.0

 

 ===Partition Detail ===

Space free : 138 GB

Space required : 1 GB

Check the logs atE:\app\em\gc_inst\em\EMGC_OMS1\sysman\emcli\setup/.emcli/get_a

gentimage_2014-03-11_17-42-19-PM.log

Downloading E:\app\em\swlib\12.3\12.1.0.3.0_AgentCore_233.zip

File savedas E:\app\em\swlib\12.3\12.1.0.3.0_AgentCore_233.zip

DownloadingE:\app\em\swlib\12.3\12.1.0.3.0_PluginsOneoffs_233.zip

File savedas E:\app\em\swlib\12.3\12.1.0.3.0_PluginsOneoffs_233.zip

DownloadingE:\app\em\swlib\12.3\unzip

File savedas E:\app\em\swlib\12.3\unzip

Agent Image Download completedsuccessfully.

 

 

一個zip檔案在下面的目錄裡:

 

複製這個檔案到被管理的目標伺服器,解壓縮並部署EM12c agent

 

解壓後注意下面兩個主要的檔案

agentDeploy.bat     Batch file to deploy the agent.

agent.rsp           Agent response file that requiresconfiguration.

 

agent.rsp檔案需要修改下面相應的參數:

OMS_HOST=OMS_ORCL.com  #OMS Host Servername,the name is confing in \etc\hosts

EM_UPLOAD_PORT=4800  #Upload port forOMS

AGENT_REGISTRATION_PASSWORD=pssword  #You can add a newone in security if you don't already have.

AGENT_INSTANCE_HOME=E:\app\agent12c  #Installation directory on new target

AGENT_PORT=3872  #Agent port

b_startAgent=true

ORACLE_HOSTNAME=TRGT_ORCL.com  #Name of targethost

s_agentHomeName=TRGT_ORCL  #Name of thetarget in EM12c

 

 

 

正在執行代理配置...

正在執行命令:E:\app\core\12.1.0.3.0\oui\bin\runConfig.batORACLE_HOME=E:\app\co

re\12.1.0.3.0RESPONSE_FILE=E:\app\core\12.1.0.3.0\agent.rsp ACTION=configure MO

DE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml}RERUN=true

Configuration Log Location:E:\app\core\12.1.0.3.0\cfgtoollogs\cfgfw\CfmLogger<ti

mestamp>.log

錯誤: 代理配置失敗 SEVERE:Oracle 主目錄 名稱無效。Oracle 主目錄 名稱最多隻能包含

 128 個字元, 並且只能包含字母數字字元和底線。

 

參考:

http://dbakevlar.com/2013/10/em12c-agent-deployment-on-windows/

 

EM CLI部署見:

http://docs.oracle.com/cd/E24628_01/em.121/e17786/deploy.htm

 


oracle database 12c的用戶端instantclient-basic-nt-12101 問怎安裝

用戶端安裝比伺服器端安裝簡單多了,而且32位的更加簡單。
前提是安裝好JDK,然後
你就一步一步Next,安裝完成後,用附帶的Net Manger配置一下伺服器的帳號與地址。
這樣就可以訪問資料庫了。
 
Oracle 12C安裝問題

你沒裝IIS吧,裝完就好了。
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.