随笔-49  评论-67  文章-27  trackbacks-0

安装SLES 10 x86_64

分区时使用Ext3文件系统;

选择软件包时,选择"Oracle Server Base"和"C/C++ Compiler and Tools",同时保证选择了"32Bit Runtime Environment";下面是软件包选择的一个截图。

安装SLES 10的Server Pack

使用SPident或者"cat /etc/SuSE-release"来校验

oracle:~ # cat /etc/SuSE-release

SUSE Linux Enterprise Server 10 (x86_64)

VERSION = 10

PATCHLEVEL = 2

oracle:~ # SPident -v

Summary (using 890 packages)

Product/ServicePack conflict match update (shipped)

SLE-10-x86_64 0 0% 325 36.5% 0 (2754 11.8%)

SLE-10-x86_64-SP1 0 0% 470 52.8% 0 (2938 16.0%)

SLE-10-x86_64-SP2 0 0% 889 99.9% 0 (2337 38.0%)

Unknown 1 0.1%

CONCLUSION: System is up-to-date!

found SLE-10-x86_64-SP2

Oracle安装先决条件

SuSE提供了orarun来自动完成很多Oracle预安装的任务。为了下面安装Oracle,需要进行如下配置。

激活oracle用户

在安装了Oracle Server Base之后,系统就自动创建了oracle用户。但是,默认的该用户是被禁用了的。

oracle:~ # vim /etc/passwd

oracle:x:103:106:Oracle user:/opt/oracle:/bin/false

为此,我们需要激活该用户。手工编辑/etc/passwd文件:

oracle:x:103:106:Oracle user:/opt/oracle:/bin/bash

修改oracle用户口令

oracle:~ # passwd oracle

Changing password for oracle.

New Password:

Bad password: too simple

Reenter New Password:

Password changed.

修改Oracle环境变量

编辑/etc/profile.d/oracle.sh文件中Oracle的环境变量如下:

oracle:~ # vim /etc/profile.d/oracle.sh

# ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1

ORACLE_HOME=$ORACLE_BASE/product/10gR2/db

ORACLE_SID=ESEC

修改ORACLE_HOME和ORACLE_SID环境变量。

设置内核参数

运行rcoracle start命令设置内核参数。因为还没有安装Oracle数据库,忽略期间报的错误。

oracle:~ # rcoracle start

#############################################################################

# Begin of O R A C L E startup section #

#############################################################################

Oracle Database Software not yet installed!

SETTINGS start from /etc/sysconfig/oracle

- Set Kernel Parameters for Oracle: yes

- Start Oracle Listener: no

- Start Oracle Database: no

- Start Oracle Webserver: no

- Start Oracle EManager: no

- Start Oracle iSQLPLUS Manager: no

- Start Oracle Agent: no

- Start Oracle Internet Filesystem: no

- Start Oracle Directory Manager: no

Oracle Agent undefinied or not properly set. Please check.

Setting kernel parameters for Oracle, see file

/etc/sysconfig/oracle for explanations.

Shared memory: SHMMAX=3294967296 SHMMNI=4096 SHMALL=2097152

Semaphore values: SEMMSL=1250 SEMMNS=32000 SEMOPM=100 SEMMNI=256

Other values: FILE_MAX_KERNEL=131072 IP_LOCAL_PORT_RANGE=1024 65000

RMEM_DEFAULT=4194304 WMEM_DEFAULT=262144 RMEM_MAX=4194304 WMEM_MAX=262144

Huge Pages: SHM_GROUP=dba NR_HUGE_PAGES=0

ULIMIT values: MAX_CORE_FILE_SIZE_SHELL=unlimited

FILE_MAX_SHELL=65536 PROCESSES_MAX_SHELL=16384

Kernel parameters set for Oracle: done

- Starting Listener... unused

+ Starting Database(s)...

unused

- Starting Apache... unused

- Starting Application Server... unused

- Starting Application Server Console... unused

- Starting Agent... unused

- Starting Enterprise Manager... unused

- Starting iSQLPLUS Manager... unused

- Starting Oracle Internet Filesystem... unused

- Starting Oracle Internet Directory... unused

#############################################################################

# End of O R A C L E section #

#############################################################################

检验oracle用户

oracle:~ # su oracle

oracle@oracle:/root> id

uid=103(oracle) gid=106(oinstall) groups=106(oinstall),107(dba)

安装Oracle 10g

解压Oracle软件

#gunzip 10201_database_linux_x86_64.cpio.gz

#cpio -idmv < 10201_database_linux_x86_64.cpio

安装Oracle 10g SP2

确保使用oracle用户登录系统,必须使用图形界面进行安装。为了在SuSE 10上安装Oracle 10g,必须手工修改安装配置文件,以确保Oracle支持SuSE 10系统。在Oracle安装文件路径下编辑文件:

vim install/oraparam.ini

[Certified Versions]

Linux=redhat-3,SuSE-9,SuSE-10,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2

选择高级安装

选择默认的Inventory目录

选择安装企业版

在安装之前,Oracle会检查系统设置灯信息是否符合要求。我们将检查未成功的选择为"User Verified"。

选择"Install database Software only"

查看安装概要并选择安装

下面是安装进程。

在安装结束之前,系统会提示使用root用户登录,执行下面脚本。

使用另一个窗口登录,执行脚本。

选择"Exit"完成安装。

安装补丁

在Novell官方的文档中,Sentinel需要Oracle安装补丁10.2.0.3。从metalink网站上下载Oracle的补丁p5337014_10203_Linux-x86-64.zip。该补丁有1G多,而且下载时需要metalink的帐号才能下载。

下载后解压,并确保使用oracle用户运行Disk1中的runInstaller进行安装。跟安装Oracle 10g时一样,安装程序首先要检查系统兼容性,为了在SLES 10上安装,需要修改配置文件,使之支持在SuSE 10上的安装。修改方法与Oracle 10g安装时的一样。

下图是安装时的欢迎界面。

首先现在Oracle 10g的安装目录。

接下来,是安装的信息。确认后执行安装。

下图是安装进度。

安装结束前,提示需要用户以root身份手工执行root.sh脚本。

打开另一个窗口,执行ORACLE_HOME目录下的root.sh脚本。

执行完脚本后,点击"OK",系统提示完成补丁安装,点击"Exit"退出系统安装。

应用关键补丁

下面,需要通过opatch工具安装Oracle的关键补丁。同样,首先从metalink网站上下载补丁:p5881721_10203_Linux-x86-64.zip并解压。请确保使用oralce用户进行下面的操作。

进入5881721目录,运行$ORACLE_HOME/OPatch/opatch apply -local。下图是安装过程。

输入y之后继续安装。

y

User Responded with: Y

Backing up files and inventory (not for auto-rollback) for the Oracle Home

Backing up files affected by the patch '5881721' for restore. This might take a while...

Backing up files affected by the patch '5881721' for rollback. This might take a while...

Execution of 'sh /mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721/custom/scripts/pre -apply 5881721 ':

Return Code = 0

Patching component oracle.sysman.repository.core, 10.2.0.3.0a...

Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/DBVerify.class"

Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/dbclone/DBCloneObject.class"

Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/dbclone/DBCloneVerify.class"

Patching component oracle.sysman.bsln, 10.2.0.3.0...

Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/emSDK/chart/EmChartBean.class"

Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/emSDK/svlt/RedirectServlet.class"

Patching component oracle.sysman.agent.core, 10.2.0.3.0a...

Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmem.a" with "sysman/lib32/libnmem.a/nmemdisp.o"

Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmexml.a" with "sysman/lib32/libnmexml.a/nmex.o"

Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmehl.a" with "sysman/lib32/libnmehl.a/nmehl.o"

Patching component oracle.rdbms, 10.2.0.3.0...

Updating archive file "/opt/oracle/product/10gR2/db/lib/libserver10.a" with "lib/libserver10.a/qmurd.o"

Copying file to "/opt/oracle/product/10gR2/db/cpu/CPUJan2007/catcpu.sql"

Copying file to "/opt/oracle/product/10gR2/db/cpu/CPUJan2007/catcpu_rollback.sql"

ApplySession adding interim patch '5881721' to inventory

Verifying the update...

Inventory check OK: Patch ID 5881721 is registered in Oracle Home inventory with proper meta-data.

Files check OK: Files from Patch ID 5881721 are present in Oracle Home.

--------------------------------------------------------------------------------****************************************************************************************************************************************************************** ATTENTION **** **** Please note that the Security Patch Installation (Patch Deinstallation) is **** not complete until all the Post Installation (Post Deinstallation) **** instructions noted in the Readme accompanying this patch, have been **** successfully completed. **** ******************************************************************************************************************************************************************

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

Execution of 'sh /mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721/custom/scripts/post -apply 5881721 ':

Return Code = 0

Running make for target libnmemso

Running make for target ioracle

The local system has been patched and can be restarted.

OPatch succeeded.

最后,通过$ORACLE_HOME/OPatch/opatch lsinventory命令进行补丁状态检查。

oracle@oracle:/mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721> /opt/oracle/product/10gR2/db/OPatch/opatch lsinventory

Invoking OPatch 10.2.0.3.0

Oracle interim Patch Installer version 10.2.0.3.0

Copyright (c) 2005, Oracle Corporation. All rights reserved..

Oracle Home : /opt/oracle/product/10gR2/db

Central Inventory : /opt/oracle/oraInventory

from : /etc/oraInst.loc

OPatch version : 10.2.0.3.0

OUI version : 10.2.0.3.0

OUI location : /opt/oracle/product/10gR2/db/oui

Log file location : /opt/oracle/product/10gR2/db/cfgtoollogs/opatch/opatch2008-06-20_14-33-53PM.log

Lsinventory Output file location : /opt/oracle/product/10gR2/db/cfgtoollogs/opatch/lsinv/lsinventory2008-06-20_14-33-53PM.txt

--------------------------------------------------------------------------------Installed Top-level Products (2):

Oracle Database 10g 10.2.0.1.0

Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0

There are 2 products installed in this Oracle Home.

Interim patches (3) :

Patch 5881721 : applied on Fri Jun 20 14:26:08 GMT+08:00 2008

Created on 19 Feb 2007, 02:16:34 hrs US/Pacific

Bugs fixed:

5885186, 5881721

Patch 5556081 : applied on Fri Jun 20 11:51:55 GMT+08:00 2008

Created on 9 Nov 2006, 22:20:50 hrs PST8PDT

Bugs fixed:

5556081

Patch 5557962 : applied on Fri Jun 20 11:51:46 GMT+08:00 2008

Created on 9 Nov 2006, 23:23:06 hrs PST8PDT

Bugs fixed:

4269423, 5557962, 5528974

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

OPatch succeeded.

如果成功,将出现"OPatch succeeded."字样。

至此,针对Sentinel 6的Oracle安装已经完成。接下来就是进行Sentinel产品的安装。

安装SLES 10的Server Pack

使用SPident或者"cat /etc/SuSE-release"来校验

oracle:~ # cat /etc/SuSE-release

SUSE Linux Enterprise Server 10 (x86_64)

VERSION = 10

PATCHLEVEL = 2

oracle:~ # SPident -v

Summary (using 890 packages)

Product/ServicePack conflict match update (shipped)

SLE-10-x86_64 0 0% 325 36.5% 0 (2754 11.8%)

SLE-10-x86_64-SP1 0 0% 470 52.8% 0 (2938 16.0%)

SLE-10-x86_64-SP2 0 0% 889 99.9% 0 (2337 38.0%)

Unknown 1 0.1%

CONCLUSION: System is up-to-date!

found SLE-10-x86_64-SP2

Oracle安装先决条件

SuSE提供了orarun来自动完成很多Oracle预安装的任务。为了下面安装Oracle,需要进行如下配置。

激活oracle用户

在安装了Oracle Server Base之后,系统就自动创建了oracle用户。但是,默认的该用户是被禁用了的。

oracle:~ # vim /etc/passwd

oracle:x:103:106:Oracle user:/opt/oracle:/bin/false

为此,我们需要激活该用户。手工编辑/etc/passwd文件:

oracle:x:103:106:Oracle user:/opt/oracle:/bin/bash

修改oracle用户口令

oracle:~ # passwd oracle

Changing password for oracle.

New Password:

Bad password: too simple

Reenter New Password:

Password changed.

修改Oracle环境变量

编辑/etc/profile.d/oracle.sh文件中Oracle的环境变量如下:

oracle:~ # vim /etc/profile.d/oracle.sh

# ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1

ORACLE_HOME=$ORACLE_BASE/product/10gR2/db

ORACLE_SID=ESEC

修改ORACLE_HOME和ORACLE_SID环境变量。

设置内核参数

运行rcoracle start命令设置内核参数。因为还没有安装Oracle数据库,忽略期间报的错误。

oracle:~ # rcoracle start

#############################################################################

# Begin of O R A C L E startup section #

#############################################################################

Oracle Database Software not yet installed!

SETTINGS start from /etc/sysconfig/oracle

- Set Kernel Parameters for Oracle: yes

- Start Oracle Listener: no

- Start Oracle Database: no

- Start Oracle Webserver: no

- Start Oracle EManager: no

- Start Oracle iSQLPLUS Manager: no

- Start Oracle Agent: no

- Start Oracle Internet Filesystem: no

- Start Oracle Directory Manager: no

Oracle Agent undefinied or not properly set. Please check.

Setting kernel parameters for Oracle, see file

/etc/sysconfig/oracle for explanations.

Shared memory: SHMMAX=3294967296 SHMMNI=4096 SHMALL=2097152

Semaphore values: SEMMSL=1250 SEMMNS=32000 SEMOPM=100 SEMMNI=256

Other values: FILE_MAX_KERNEL=131072 IP_LOCAL_PORT_RANGE=1024 65000

RMEM_DEFAULT=4194304 WMEM_DEFAULT=262144 RMEM_MAX=4194304 WMEM_MAX=262144

Huge Pages: SHM_GROUP=dba NR_HUGE_PAGES=0

ULIMIT values: MAX_CORE_FILE_SIZE_SHELL=unlimited

FILE_MAX_SHELL=65536 PROCESSES_MAX_SHELL=16384

Kernel parameters set for Oracle: done

- Starting Listener... unused

+ Starting Database(s)...

unused

- Starting Apache... unused

- Starting Application Server... unused

- Starting Application Server Console... unused

- Starting Agent... unused

- Starting Enterprise Manager... unused

- Starting iSQLPLUS Manager... unused

- Starting Oracle Internet Filesystem... unused

- Starting Oracle Internet Directory... unused

#############################################################################

# End of O R A C L E section #

#############################################################################

检验oracle用户

oracle:~ # su oracle

oracle@oracle:/root> id

uid=103(oracle) gid=106(oinstall) groups=106(oinstall),107(dba)

安装Oracle 10g

解压Oracle软件

#gunzip 10201_database_linux_x86_64.cpio.gz

#cpio -idmv < 10201_database_linux_x86_64.cpio

安装Oracle 10g SP2

确保使用oracle用户登录系统,必须使用图形界面进行安装。为了在SuSE 10上安装Oracle 10g,必须手工修改安装配置文件,以确保Oracle支持SuSE 10系统。在Oracle安装文件路径下编辑文件:

vim install/oraparam.ini

[Certified Versions]

Linux=redhat-3,SuSE-9,SuSE-10,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2

选择高级安装

选择默认的Inventory目录

选择安装企业版

在安装之前,Oracle会检查系统设置灯信息是否符合要求。我们将检查未成功的选择为"User Verified"。

选择"Install database Software only"

查看安装概要并选择安装

下面是安装进程。

在安装结束之前,系统会提示使用root用户登录,执行下面脚本。

使用另一个窗口登录,执行脚本。

选择"Exit"完成安装。

安装补丁

在Novell官方的文档中,Sentinel需要Oracle安装补丁10.2.0.3。从metalink网站上下载Oracle的补丁p5337014_10203_Linux-x86-64.zip。该补丁有1G多,而且下载时需要metalink的帐号才能下载。

下载后解压,并确保使用oracle用户运行Disk1中的runInstaller进行安装。跟安装Oracle 10g时一样,安装程序首先要检查系统兼容性,为了在SLES 10上安装,需要修改配置文件,使之支持在SuSE 10上的安装。修改方法与Oracle 10g安装时的一样。

下图是安装时的欢迎界面。

首先现在Oracle 10g的安装目录。

接下来,是安装的信息。确认后执行安装。

下图是安装进度。

安装结束前,提示需要用户以root身份手工执行root.sh脚本。

打开另一个窗口,执行ORACLE_HOME目录下的root.sh脚本。

执行完脚本后,点击"OK",系统提示完成补丁安装,点击"Exit"退出系统安装。

应用关键补丁

下面,需要通过opatch工具安装Oracle的关键补丁。同样,首先从metalink网站上下载补丁:p5881721_10203_Linux-x86-64.zip并解压。请确保使用oralce用户进行下面的操作。

进入5881721目录,运行$ORACLE_HOME/OPatch/opatch apply -local。下图是安装过程。

输入y之后继续安装。

y

User Responded with: Y

Backing up files and inventory (not for auto-rollback) for the Oracle Home

Backing up files affected by the patch '5881721' for restore. This might take a while...

Backing up files affected by the patch '5881721' for rollback. This might take a while...

Execution of 'sh /mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721/custom/scripts/pre -apply 5881721 ':

Return Code = 0

Patching component oracle.sysman.repository.core, 10.2.0.3.0a...

Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/DBVerify.class"

Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/dbclone/DBCloneObject.class"

Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emDB.jar" with "/sysman/jlib/emDB.jar/oracle/sysman/emo/util/dbclone/DBCloneVerify.class"

Patching component oracle.sysman.bsln, 10.2.0.3.0...

Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/emSDK/chart/EmChartBean.class"

Updating jar file "/opt/oracle/product/10gR2/db/sysman/jlib/emCORE.jar" with "/sysman/jlib/emCORE.jar/oracle/sysman/emSDK/svlt/RedirectServlet.class"

Patching component oracle.sysman.agent.core, 10.2.0.3.0a...

Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmem.a" with "sysman/lib32/libnmem.a/nmemdisp.o"

Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmexml.a" with "sysman/lib32/libnmexml.a/nmex.o"

Updating archive file "/opt/oracle/product/10gR2/db/sysman/lib32/libnmehl.a" with "sysman/lib32/libnmehl.a/nmehl.o"

Patching component oracle.rdbms, 10.2.0.3.0...

Updating archive file "/opt/oracle/product/10gR2/db/lib/libserver10.a" with "lib/libserver10.a/qmurd.o"

Copying file to "/opt/oracle/product/10gR2/db/cpu/CPUJan2007/catcpu.sql"

Copying file to "/opt/oracle/product/10gR2/db/cpu/CPUJan2007/catcpu_rollback.sql"

ApplySession adding interim patch '5881721' to inventory

Verifying the update...

Inventory check OK: Patch ID 5881721 is registered in Oracle Home inventory with proper meta-data.

Files check OK: Files from Patch ID 5881721 are present in Oracle Home.

--------------------------------------------------------------------------------****************************************************************************************************************************************************************** ATTENTION **** **** Please note that the Security Patch Installation (Patch Deinstallation) is **** not complete until all the Post Installation (Post Deinstallation) **** instructions noted in the Readme accompanying this patch, have been **** successfully completed. **** ******************************************************************************************************************************************************************

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

Execution of 'sh /mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721/custom/scripts/post -apply 5881721 ':

Return Code = 0

Running make for target libnmemso

Running make for target ioracle

The local system has been patched and can be restarted.

OPatch succeeded.

最后,通过$ORACLE_HOME/OPatch/opatch lsinventory命令进行补丁状态检查。

oracle@oracle:/mnt/hgfs/oracle/Oracle10g/Linux/patch/p5881721_10203_Linux-x86-64/5881721> /opt/oracle/product/10gR2/db/OPatch/opatch lsinventory

Invoking OPatch 10.2.0.3.0

Oracle interim Patch Installer version 10.2.0.3.0

Copyright (c) 2005, Oracle Corporation. All rights reserved..

Oracle Home : /opt/oracle/product/10gR2/db

Central Inventory : /opt/oracle/oraInventory

from : /etc/oraInst.loc

OPatch version : 10.2.0.3.0

OUI version : 10.2.0.3.0

OUI location : /opt/oracle/product/10gR2/db/oui

Log file location : /opt/oracle/product/10gR2/db/cfgtoollogs/opatch/opatch2008-06-20_14-33-53PM.log

Lsinventory Output file location : /opt/oracle/product/10gR2/db/cfgtoollogs/opatch/lsinv/lsinventory2008-06-20_14-33-53PM.txt

--------------------------------------------------------------------------------Installed Top-level Products (2):

Oracle Database 10g 10.2.0.1.0

Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0

There are 2 products installed in this Oracle Home.

Interim patches (3) :

Patch 5881721 : applied on Fri Jun 20 14:26:08 GMT+08:00 2008

Created on 19 Feb 2007, 02:16:34 hrs US/Pacific

Bugs fixed:

5885186, 5881721

Patch 5556081 : applied on Fri Jun 20 11:51:55 GMT+08:00 2008

Created on 9 Nov 2006, 22:20:50 hrs PST8PDT

Bugs fixed:

5556081

Patch 5557962 : applied on Fri Jun 20 11:51:46 GMT+08:00 2008

Created on 9 Nov 2006, 23:23:06 hrs PST8PDT

Bugs fixed:

4269423, 5557962, 5528974

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

OPatch succeeded.

如果成功,将出现"OPatch succeeded."字样。

至此,针对Sentinel 6的Oracle安装已经完成。接下来就是进行Sentinel产品的安装。

posted on 2008-06-21 20:14 思考 阅读(2239) 评论(0)  编辑  收藏 所属分类: LinuxNovell

只有注册用户登录后才能发表评论。


网站导航: