免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1313 | 回复: 0
打印 上一主题 下一主题

solaris8+vxvm3.0.4+oracle9.2.0.1+vcs35专题:(九)配置应用 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-25 14:57 |只看该作者 |倒序浏览
十一、安装ORACLE9.2.0.1
   实验中,将ORACLE做为应用进行测试.对于不同平台下ORACLE的安装博客里面都有提到,这里因为是在双机环境下搭建ORACLE环境,情况比较特殊,特殊的地方在于ORACLE软件与ORACLE数据库所放置的地方的不同.这里采用的方法是在各自主机上安装ORACLE9.2.0.1软件,然后在共享存储上安装ORACLE数据库,下面说一下具体方法:
   1,在两台主机新增一块36GB希捷硬盘,将整盘做为一个独立分区挂载在挂载点"/oracle":
[email=root@solarisa]root@solarisa[/email]
# df -k
/dev/dsk/c0t1d0s0    35009161 5796016 28863054    17%    /oracle
   2,将此分区信息写入/etc/vfstab文件,让每次系统启动时自动挂载此分区:
[email=root@solarisa]root@solarisa[/email]
# cat /etc/vfstab
/dev/dsk/c0t1d0s0       /dev/rdsk/c0t1d0s0      /oracle ufs     2       yes     -
   3,FTP上传ORACLE9.2.0.1三个安装文件共计1.41GB至/opt/storm_software目录,因为之前在交换机上将连接端口设置为100MB全双工,局域网内上传速度能达到平均10MB/S;
   4,安装文件格式类似于solaris64_9.2.0.1.0.Disk1.cpio.gz,文件上传后,首先要通过gunzip对.gz后缀进行解压,解压后得到类似于solaris64_9.2.0.1.0.Disk1.cpio的文件;再通过命令"cpio -icdmv
   5,设置用户和组:
[email=root@solarisa]root@solarisa[/email]
# groupadd dba
[email=root@solarisa]root@solarisa[/email]
# groupadd oinstall
[email=root@solarisa]root@solarisa[/email]
# useradd -d /opt/oracle -g oinstall -G dba -m oracle
[email=root@solarisa]root@solarisa[/email]
# passwd oracle
[email=root@solarisa]root@solarisa[/email]
# groupadd apchadm
[email=root@solarisa]root@solarisa[/email]
# useradd -d /opt/apache -g oinstall -G apchadm -m apache
[email=root@solarisa]root@solarisa[/email]
# passwd apache
通常说来,创建的用户一般放置在/export/home分区,因为这里已经没有分区可用,所以放在/opt/oracle下;
   6,设置内核参数:
编辑/etc/system文件,添加以下内容:
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmesg=10
重启系统,让内核设置生效.
   7,设置安装目录:
[email=root@solarisa]root@solarisa[/email]
# mkdir -p /oracle/product/9.2.0
[email=root@solarisa]root@solarisa[/email]
# chown -R oracle:oinstall /oracle
[email=root@solarisa]root@solarisa[/email]
# chmod -R 755 /oracle
   8,设置oracle用户的环境变量(仅供参考):
[email=root@solarisa]root@solarisa[/email]
# su - oracle
[email=root@solarisa]root@solarisa[/email]
$ vi .profile
DISPLAY=192.168.1.101:0.0;export DISPLAY
ORACLE_BASE=/oracle;export ORACLE_BASE
ORACLE_HOME=/oracle/product/9.2.0;export ORACLE_HOME
ORACLE_SID=ora;export ORACLE_SID
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data;export ORA_NLS33
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:usr/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
NLS_LANG=american_america.ZHS16GBK; export NLS_LANG
PATH=$ORACLE_HOME/bin:/usr/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/ccs/bin
其中值得注意的是,DISPLAY中显示的地址是远程终端的IP地址(即PC机的IP地址)
   9,关闭备机,在主机solarisa上以ORACLE用户登陆X-MANAGER(图形化管理软件),进入到/oracle/Disk1目录,./runInstaller进行安装.安装的时候注意安装路径,将ORACLE软件安装到/oracle目录下,将ORACLE数据库安装到共享卷组/oradata上(mount /dev/vx/dsk/datadg/vol01 /oradata);
   10,主机安装过程完毕之后,将主机solarisa中ORACLE安装文件rcp -cp带权限拷贝到备机solarisb中单独进行ORACLE软件的安装.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6589/showart_471242.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP