我這裏將介紹在linux系統下安裝ODI的過程。將ODI建立在linux的單獨的oracle用戶下,以便於管理。
linux版本: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
ODI版本: CD_10.1.3.5.0_LINUX.zip
JDK: java 1.6.0_19
ODI安裝步驟:
1.安裝JDk
因爲ODI是java應用程序,所以最好先安裝jdk,使用root用戶安裝,版本爲1.5及以上。
2.創建oracle用戶
[root@hebzhjg /]# groupadd oinstall
[root@hebzhjg /]# groupadd dba
[root@hebzhjg /]# groupadd oper
[root@hebzhjg /]# groupadd asmadmin
[root@hebzhjg /]# useradd -g oinstall -G dba,oper,asmadmin oracle
修改 oracle 用戶密碼
[root@hebzhjg /]# passwd oracle
Changing password for user oracle.
設置密碼: oracleroot
然後要修改 oracle 用戶環境變量( .bash_profile ),並在其中加入: export ODI_JAVA_HOME= /software/jdk1.6.0_18
3.上傳安裝文件
上傳到oracle用戶有完全控制的目錄中,解壓zip包,需要爲3個文件授予可執行權限。
在安裝文件的目錄下,執行
cd ./setup/Linux
chmod +x setup.sh
cd . /setup/Linux/Disk1/install
chmod +x runInstaller; chmod +x unzip;
好了,裝備工作都做好了,下一步安裝ODI。
4.安裝
推薦用xmanager工具遠程到linux桌面,使用圖形化界面安裝
在桌面中打開terminal,在oracle用戶下的 ./setup/Linux 目錄下執行 ./setup.sh
彈出安裝界面
點擊 “ next “,
點擊“ Next ”,
選擇第一項,點“ next ”,
選擇第一項,點“ next ”,
輸入安裝名和安裝絕對路徑,後點“ next ”,
注:如果本機安裝有 Oracle 數據庫或客戶端的話,安裝程序會自動讀取到其安裝名和安裝路徑,不要使用這個,修改其安裝名和安裝路徑。
密碼和用戶名相同, next
install
最後會彈出界面
提示用 root 執行腳本,用 root 用戶執行它。
[root@root oracle]# cd /home/oracle/oraInventory/
[root@root oraInventory]# ls
Contents logs orainstRoot.sh
ContentsXML oraInstaller.properties oui
install.platform oraInst.loc sessionContext.ser
[root@root oraInventory]# ./orainstRoot.sh
Changing permissions of /home/oracle/oraInventory to 770.
Changing groupname of /home/oracle/oraInventory to oinstall.
The execution of the script is complete
[root@root oraInventory]# cd ..
[root@root oracle]# ls
CD_10.1.3.5.0_LINUX.zip odi_install OraHome_1 oraInventory
[root@root oracle]# cd OraHome_1/
[root@root OraHome_1]# ls
install inventory oracledi oraInst.loc
install.platform jre oracledq root.sh
[root@root OraHome_1]# ./root.sh
=================================================================
TSS v11.5 - Metabase Server Installation, build spf13_8315
(c) 2007-8 Trillium Software, a division of Harte-Hanks
=================================================================
WARNING: NIS Detected.
Please ensure that the services entry uses files,
otherwise this installation of the Metabase may not
function correctly.
Writing installation log to: /home/oracle/OraHome_1/oracledq/metabase_server/metabase/etc/setup.log
calculating service labels...
installing services...
restarting xinetd...
Root installation finished.
[root@root OraHome_1]#
執行完畢後返回安裝界面。
安裝完成,點擊 Exit 退出安裝。
5.配置ODI
ODI需要一個支撐數據庫,我選擇使用oracle。
(1)先爲ODI創建兩個oracle用戶SNPM、SNPW。
(2) 創建主資料庫,運行: /home/oracle/OraHome_1/oracledi/bin/repcreate.sh
等待幾分鐘,
點擊確定。存儲庫創建完成。
(3)連接 主資料庫,運行: /home/oracle/OraHome_1/oracledi/bin/topology.sh
點擊新建
登錄名:自己隨便起
用戶:SUPERVISOR
密碼:SUNOPSIS
數據庫連接
用戶:snpm
密碼:snpm的密碼
驅動:oracle的驅動
URL:jdbc:oracle:thin:@192.168.1.100:1521:orcl
點擊確定後,點擊確定登錄topology。
(4)創建工作資料庫:選擇存儲庫