Linux平台Oracle 11g单实例 + ASM存储 安装部署 快速参考(二)

2015-04-07 14:09:39 · 作者: · 浏览: 92
2040_Linux-x86-64_2of7.zip


p13390677_112040_Linux-x86-64_3of7.zip


7.安装grid组件


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


#cd /u01/tmp/


#unzip p10404530_112030_Linux-x86-64_3of7.zip


#chown -R grid:oinstall grid


Xmanager软件用grid用户登录


$cd /u01/tmp/grid


$./runInstaller


图形界面安装,最后root用户执行两个脚本,执行脚本的屏幕输出如下:


?


# /u01/app/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.


# /u01/app/11.2.0/grid/root.sh


Performing root user operation for Oracle 11g


?


The following environment variables are set as:


? ? ORACLE_OWNER= grid


? ? ORACLE_HOME=? /u01/app/11.2.0/grid


?


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


Now product-specific root actions will be performed.


?


To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:


/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl


To configure Grid Infrastructure for a Cluster execute the following command:


/u01/app/11.2.0/grid/crs/config/config.sh


This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.


8.根据上步执行的脚本输出提示,确定单节点需要root用户执行下面的命令


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


/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl


9.使用asmca创建ASM 磁盘组


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


Xmanager软件用grid用户登录


$asmca


10.安装oralce软件


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


#cd /u01/tmp/


#unzip p13390677_112040_Linux-x86-64_1of7.zip;unzip p13390677_112040_Linux-x86-64_2of7.zip


#chown -R oracle:oinstall database


Xmanager软件用oracle用户登录


$cd /u01/tmp/database/


$./runInstaller


图形界面安装,最后root用户执行一个脚本


#/u01/app/oracle/product/11.2.0/db_1/root.sh


11.创建数据库


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


Xmanager软件用oracle用户登录


$dbca


图形界面建库,Storage Type选择ASM,+DATA1磁盘组,数据库字符集根据实际情况选择。


12.使用grid用户创建监听


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


Xmanager软件用grid用户登录


$netca


13.客户端测试数据库连接


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


ping IP地址


tnsping IP地址


sqlplus system/oracle@IP地址/jyzhao


14.由于lv的权限在重启后会变回root用户,需要添加开机启动脚本


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


vi /etc/rc.d/rc.local


chown grid:asmadmin /dev/mapper/ora*


创建rc.local的链接文件


ln -sf /etc/rc.d/rc.local /etc/rc.d/rc1.