linux oracle11.2安装 ins-1010,安装Oracle11.2.0.2 RAC for Linux X86-64(三)

启动图形工具,开始DB软件的安装:

[root@rac3 ~]# xhost +

access control disabled, clients can connect from any host

[root@rac3 ~]# su – oracle

[oracle@rac3 ~]$ cd /data/software/database

[oracle@rac3 database]$ ./runInstaller

第一个界面是安全更新,可以忽略掉;

第二个是metalink帐 信息;

安装选项:选择只安装软件;

格选择:默认情况下,安装类型配置为Oracle Real Application Clusters database installation,这时节点2应该出现,且被选中,如果没有不是CLUSTER没有启动,就是CLUSTER的安装存在问题。

配置SSH Connectivity:输入oracle密码,点击setup。

确认两个节点都选中后,点击NEXT:

语言选择:英文和简体中文;

数据库版本:企业版;

安装位置:Oracle Base输入/data/oracle,软件位置输入/data/oracle/product/11.2.0;

操作系统组:输入dba;

系统安装检查:执行和安装CLUSTER类似的步骤,在两个节点上运行脚本,使得Oracle可以修改可更新项:

[root@rac3 ~]# /tmp/CVU_11.2.0.2.0_oracle/runfixup.sh

/usr/bin/id

Response file being used is :/tmp/CVU_11.2.0.2.0_oracle/fixup.response

Enable file being used is :/tmp/CVU_11.2.0.2.0_oracle/fixup.enable

Log file location: /tmp/CVU_11.2.0.2.0_oracle/orarun.log

uid=1100(oracle) gid=1000(oinstall) groups=1000(oinstall),1200(dba)

忽略掉SWAP空间问题,开始安装。

安装结束之前,在两个节点上运行脚本:

[root@rac3 data]# /data/oracle/product/11.2.0/root.sh

Running Oracle 11g root script…

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME=/data/oracle/product/11.2.0

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

The contents of “dbhome” have not changed. No need to overwrite.

The contents of “oraenv” have not changed. No need to overwrite.

The contents of “coraenv” have not changed. No need to overwrite.

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 script.

Now product-specific root actions will be performed.

Finished product-specific root actions.

在oracle用户下添加环境变量:

umask 022

ORACLE_BASE=/data/oracle

export ORACLE_BASE

ORACLE_HOME=/data/oracle/product/11.2.0

export ORACLE_HOME

ORACLE_SID=rac1

export ORACLE_SID

PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch

export PATH

利用dbca创建数据库:

CLUSTER选择:选择Oracle Real Application Cluster database;

操作类型:选择创建数据库;

模板选择:选择定制方式;

策略类型:选择Admin-Managed,Global Database Name输入rac.us.oracle.com,选择两个节点;

OEM选择:是否配置OEM;

密码:输入SYS/SYSTEM用户密码;

存储位置:选择ASM,使用OMF,输入磁盘组DATA;

闪回和归档:设置是否配置恢复区和归档;

组件选择:选择安装数据库的组件;

初始化参数调整:设置内存、BLOCK_SIZE和字符集;

空间设置:设置合适的数据文件和日志文件的大小;

开始数据库安装。

数据库安装完毕后,登录sqlplus,检查数据库:

[root@rac3 data]# su – oracle

[oracle@rac3 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Sat Mar 26 02:26:00 2011

Copyright (c) 1982, 2010, Oracle.All

rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management,

OLAP,

Data Mining and Real Application Testing options

SQL> set pages 100 lines 120

SQL> select * from v$version;

BANNER

——————————————————————————–

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 – 64bit Production

PL/SQL Release 11.2.0.2.0 – Production

CORE11.2.0.2.0Production

TNS for Linux: Version 11.2.0.2.0 – Production

NLSRTL Version 11.2.0.2.0 – Production

SQL> select name from v$database;

NAME

———

RAC

SQL> select instance_name from v$instance;

INSTANCE_NAME

—————-

rac1

SQL> select instance_number, instance_name from gv$instance;

INSTANCE_NUMBER INSTANCE_NAME

————— —————-

1 rac1

2 rac2

至此数据库安装完成。

文章知识点与官方知识档案匹配,可进一步学习相关知识CS入门技能树Linux入门在线安装软件24768 人正在系统学习中 相关资源:橘子快速启动软件(橘子启动器)v3.0绿色免费版-其它代码类资源…

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年3月3日
下一篇 2021年3月3日

相关推荐