ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Solaris 10下迁移10G RAC (四)

Solaris 10下迁移10G RAC (四)

原创 Linux操作系统 作者:space6212 时间:2018-12-13 15:39:03 0 删除 编辑
最近做了一个rac数据库的迁移,中间涉及到很多部分内容,包括rac环境的搭建、ASM的设置、数据库的迁移、升级等。
本文是这次迁移工作的第四部分:安装数据库软件。

4 安装数据库软件

安装完clusterware后,就可以进行安装数据库的操作了。

4.1检查当前系统是否满足安装数据库的条件

bash-3.00$ ./runcluvfy.sh stage -pre dbinst -n pre1,pre2

Performing pre-checks for database installation

Checking node reachability...

Node reachability check passed from node "pre1".

Checking user equivalence...

User equivalence check passed for user "oracle".

Checking administrative privileges...

User existence check passed for "oracle".

Group existence check passed for "oinstall".

Membership check for user "oracle" in group "oinstall" [as Primary] passed.

Group existence check passed for "dba".

Membership check for user "oracle" in group "dba" passed.

Administrative privileges check passed.

Checking node connectivity...

Node connectivity check passed for subnet "172.0.2.0" with node(s) pre2,pre1.

Node connectivity check passed for subnet "10.0.0.0" with node(s) pre2,pre1.

Suitable interfaces for VIP on subnet "172.0.2.0":

pre2 ce0:172.0.2.3 ce0:172.0.2.4

pre1 ce0:172.0.2.1 ce0:172.0.2.2

Suitable interfaces for the private interconnect on subnet "10.0.0.0":

pre2 ce1:10.0.0.2

pre1 ce1:10.0.0.1

Node connectivity check passed.

Checking system requirements for 'database'...

Total memory check passed.

Free disk space check passed.

Swap space check passed.

System architecture check passed.

Operating system version check passed.

Package existence check passed for "SUNWarc".

Package existence check passed for "SUNWbtool".

Package existence check passed for "SUNWhea".

Package existence check passed for "SUNWlibm".

Package existence check passed for "SUNWlibms".

Package existence check passed for "SUNWsprot".

Package existence check passed for "SUNWsprox".

Package existence check passed for "SUNWtoo".

Package existence check passed for "SUNWi1of".

Package existence check passed for "SUNWi1cs".

Package existence check passed for "SUNWi15cs".

Package existence check passed for "SUNWxwfnt".

Package existence check passed for "SUNWlibC".

Package existence check failed for "SUNWscucm:3.1".

Check failed on nodes:

pre2,pre1

Package existence check failed for "SUNWudlmr:3.1".

Check failed on nodes:

pre2,pre1

Package existence check failed for "SUNWudlm:3.1".

Check failed on nodes:

pre2,pre1

Package existence check failed for "ORCLudlm:Dev_Release_06/11/04,_64bit_3.3.4.8_reentrant".

Check failed on nodes:

pre2,pre1

Package existence check failed for "SUNWscr:3.1".

Check failed on nodes:

pre2,pre1

Package existence check failed for "SUNWscu:3.1".

Check failed on nodes:

pre2,pre1

Kernel parameter check failed for "SEMMNI".

Check failed on nodes:

pre2,pre1

Kernel parameter check failed for "SEMMNS".

Check failed on nodes:

pre2,pre1

Kernel parameter check failed for "SEMMSL".

Check failed on nodes:

pre2,pre1

Kernel parameter check failed for "SEMVMX".

Check failed on nodes:

pre2,pre1

Kernel parameter check failed for "SHMMAX".

Check failed on nodes:

pre2,pre1

Kernel parameter check failed for "SHMMIN".

Check failed on nodes:

pre2,pre1

Kernel parameter check failed for "SHMMNI".

Check failed on nodes:

pre2,pre1

Kernel parameter check failed for "SHMSEG".

Check failed on nodes:

pre2,pre1

Group existence check passed for "dba".

Group existence check passed for "oinstall".

User existence check passed for "oracle".

User existence check passed for "nobody".

System requirement failed for 'database'

Checking CRS integrity...

Checking daemon liveness...

Liveness check passed for "CRS daemon".

Checking daemon liveness...

Liveness check passed for "CSS daemon".

Checking daemon liveness...

Liveness check passed for "EVM daemon".

Checking CRS health...

CRS health check passed.

CRS integrity check passed.

Checking node application existence...

Checking existence of VIP node application (required)

Check passed.

Checking existence of ONS node application (optional)

Check passed.

Checking existence of GSD node application (optional)

Check passed.

Pre-check for database installation was unsuccessful on all the nodes.

从返回的信息来看,失败的地方可以分为两个部分:

第一部分是包检测失败,这个原因在前面已经讲过了,不会影响安装,可以忽略。

第二部分是系统内核参数检测有问题,实际上我已经在/etc/system中设置了相关的内核参数,并且已经生肖,我估计是因为solaris10中,runcluvfy.sh检测的是资源控制器中设置的参数,而不是/etc/system中设置的参数,所以会报错。如果你确定已经正确地在/etc/system中设置了合理的参数,则这个错误问题不大,不会影响安装。

4.2正式开始安装oracle software

pre1上以root执行:

# xhost +

access control disabled, clients can connect from any host

# su - oracle

Sun Microsystems Inc. SunOS 5.10 Generic January 2005

$ bash

bash-3.00$ export DISPLAY=172.0.2.1:1.0

bash-3.00$ cd /backup/soft/database/

bash-3.00$ ls

10gr2_db_sol.cpio install runInstaller welcome.html

doc response stage

bash-3.00$ ./runInstaller

在界面中选择自定义安装、下一步,选择oracle主目录

下一步,选择需要安装的节点,这里把所有节点都选择(pre1),

下一步,选择需要安装的组件

下一步,oracle进行一系列的检查,都通过后点击下一步

选择系统组(dba

下一步,选择安装内容,这里需要用ASM,所以选择第二项,oracle会自动先安装oracle software,然后再安装ASM

下一步,开始安装,oracle在第一个节点安装结束后,会自动把文件拷贝到其他节点中。

安装完软件后,需要配置监听,配置完监听后,oracle会自动运行dbca,配置ASM

输入sys密码,

设置参数文件的路径,因为现在还没有共享存储,故选择第一个IFILE,注意把路径修改至:

$ORACLE_HOME/dbs/init+ASM.ora

下一步,oracle开始创建ASM实例,实例创建完毕后,进入ASM DISKGROUP设置界面:

输入DISK GROUP名称:DATA

选择外部冗余

/dev/rdsk/c3t0d0s6/dev/rdsk/c3t0d2s6前打勾,把这两个分区作为ASM磁盘组的磁盘,点击下一步创建磁盘组。

下一步,点击finish

Oracle还会弹出一个界面要求建库,这里打算用其他地方恢复一个数据库到本地,所以直接选择cancel

最后需要在所有节点以root用户执行一个脚本:

bash-3.00# /oracle/app/product/10.2/database/root.sh

Running Oracle10 root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /oracle/app/product/10.2/database

Enter the full pathname of the local bin directory: [/usr/local/bin]:

Creating /usr/local/bin directory...

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /var/opt/oracle/oratab file...

Entries will be added to the /var/opt/oracle/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.

至此,oracle软件安装完毕。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/231499/viewspace-63865/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2005-01-25

  • 博文量
    245
  • 访问量
    168540