2009年9月10日星期四

嘗鮮Oracle11gR2 (vmwareserver+OEL5.3+Oracle11gR2)

oracle11gR2出來一段時間了,一直手懶,今天終於提起精神安裝了一下,嘗鮮一下:)

1.在vmware上面安裝OEL5.3版本的linux

安裝方法參考:http://www.oracle.com/technology/obe/11gr1_db/install/oel5gainst/oel5gainst.htm 儘管是oracle 11gR1的

2.解壓oracle下載下來的zip包,開始安裝,這裡遇到一個問題,就是直接在vmware oracle上面運行 runInstall,屏幕狂閃,根本就沒有辦法操作,沒有辦法使用Xmanager,遠程安裝.

3 配置xmanager安裝:

a. /etc/inittab中設置:

id:5:initdefault:

b. Enable XDMCP因為我這裡就是用了gnome所以配置就配置一個:

/etc/gdm/custom.conf

[xdmcp]
Enable=1

c. 重啟linux

d. 工作機使用xmanager Broadcast mode

4 開始安裝:

 

ora11gr2install1

ora11gr2install2

ora11gr2install3

ora11gr2install4

ora11gr2install5

ora11gr2install6

ora11gr2install7

ora11gr2install8

ora11gr2install9

少裝幾個rpm的包

[root@ora11gR2 Server]# rpm -Uvh libaio*
warning: libaio-0.3.106-3.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
        package libaio-0.3.106-3.2.x86_64 is already installed
        package libaio-0.3.106-3.2.i386 is already installed
[root@ora11gR2 Server]# rpm -Uvh libaio-0.3.106-3.2.x86_64.rpm
warning: libaio-0.3.106-3.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
        package libaio-0.3.106-3.2.x86_64 is already installed
[root@ora11gR2 Server]# rpm -Uvh libaio-devel-0.3.106-3.2.*
warning: libaio-devel-0.3.106-3.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:libaio-devel           ########################################### [ 50%]
   2:libaio-devel           ########################################### [100%]
[root@ora11gR2 Server]# rpm -Uvh sysstat*
warning: sysstat-7.0.2-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:sysstat                ########################################### [100%]
[root@ora11gR2 Server]# rpm -Uvh unixODBC-*
warning: unixODBC-2.2.11-7.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
error: Failed dependencies:
        libqt-mt.so.3 is needed by unixODBC-kde-2.2.11-7.1.i386
        qt >= 2.1 is needed by unixODBC-kde-2.2.11-7.1.i386
        libqt-mt.so.3()(64bit) is needed by unixODBC-kde-2.2.11-7.1.x86_64
        qt >= 2.1 is needed by unixODBC-kde-2.2.11-7.1.x86_64
[root@ora11gR2 Server]# rpm -Uvh unixODBC-2.2.11-7.1.*
warning: unixODBC-2.2.11-7.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:unixODBC               ########################################### [ 50%]
   2:unixODBC               ########################################### [100%]

[root@ora11gR2 Server]#
[root@ora11gR2 Server]# rpm -Uvh unixODBC-devel-2.2.11-7.1.*
warning: unixODBC-devel-2.2.11-7.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:unixODBC-devel         ########################################### [ 50%]
   2:unixODBC-devel         ########################################### [100%]
[root@ora11gR2 Server]#

 

 

ora11gr2install10

 

ora11gr2install11

ora11gr2install12

ora11gr2install13

ora11gr2install14

ora11gr2install15

[root@ora11gR2 Server]# cd /u01/app/oraInventory/
[root@ora11gR2 oraInventory]# ls
ContentsXML       logs                     oraInst.loc     oui
install.platform  oraInstaller.properties  orainstRoot.sh
[root@ora11gR2 oraInventory]# ./orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@ora11gR2 oraInventory]# pwd
/u01/app/oraInventory
[root@ora11gR2 oraInventory]# cd ../oracle/product/11.2.0/db_1/
[root@ora11gR2 db_1]# ./root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/11.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Creating /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 product-specific root actions.
[root@ora11gR2 db_1]#

 

ora11gr2install16

完成!

没有评论:

发表评论