WEB开发网
开发学院数据库Oracle 在HP-UX及AIX和RHEL的安装的Oracle 11gR2 RAC 阅读

在HP-UX及AIX和RHEL的安装的Oracle 11gR2 RAC

 2012-05-13 15:31:48 来源:WEB开发网   
核心提示:restrict 10.20.28.0 mask 255.255.255.0 nomodify notrap 注意 /etc/hosts的文件应如下:127.0.0.1 localhost loopback 2.客户端配置:ntpdate 10.20.28.39Crontab -e0-59/1
restrict 10.20.28.0 mask 255.255.255.0 nomodify notrap
 
注意 /etc/hosts的文件应如下:
127.0.0.1           localhost    loopback
 
2.客户端配置:
ntpdate 10.20.28.39
Crontab -e
0-59/10 * * * * /usr/bin/ntpdate 10.20.28.39
 
3.修改slewing 选项
vi etc/sysconfig/ntpd 文件,添加 -x 标志,如下例所示:
# Drop root to id 'ntp:ntp' by default.
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
 
4.在两个节点启动守护进程
Chkconfig ntpd on
 
2.4.       DNS配置
由于节点数一般较少采用SCAN没有实际意义,采用一个小的trick欺骗cluvfy工具,保证在验证的时候正常通过;
#[/]mv /usr/bin/nslookup /usr/bin/nslookup.org
#[/]cat /usr/bin/nslookup
#!/usr/bin/sh
HOSTNAME=${1}
if [[ $HOSTNAME = "r-cluster-scan" ]]; then
    echo "Server:         24.154.1.34"
    echo "Address:        24.154.1.34#53"
    echo "Non-authoritative answer:"
    echo "Name:   r-cluster-scan"
    echo "Address: 11.1.1.21" #假设11.1.1.21 为SCAN地址
else
    /usr/bin/nslookup.org $HOSTNAME
fi
 
注意:if you need to modify your SQLNET.ORA, ensure that EZCONNECT is in the list if you specify the order of the naming methods used for client name resolution lookups (11g Release 2 default is NAMES.DIRECTORY_PATH=(tnsnames, ldap, ezconnect)).
 
2.5.       创建用户目录及环境变量设置
2.5.1 HP-UX创建用户目录及环境变量设置
 
1.创建用户及相应的目录
#/usr/sbin/groupadd -g 501 oinstall
#/usr/sbin/groupadd -g 502 dba
#/usr/sbin/groupadd -g 503 oper
/#usr/sbin/groupadd -g 504 asmadmin
#/usr/sbin/groupadd -g 505 asmoper
#/usr/sbin/groupadd -g 506 asmdba
#/usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracle
/#usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
#mkdir –p /u01/app/crs_base
#mkdir –p /u01/app/crs_home
#mkdir –p /u01/app/oracle/product/11.2.0/db_1
#chown –R oracle:oinstall /u01/app/oracle
#chown –R grid:ointall /u01/app/crs*
# chown grid:asmadmin /dev/rdsk/cxtydz
# chmod 660 /dev/rdsk/cxtydz
# chown grid:asmadmin /dev/rdisk/cxtydz
# chmod 660 /dev/rdisk/cxtydz
 
注:Before installation, OCR files must be owned by the user performing the installation (grid or oracle). That installation user must have oinstall as its primary group. During installation, OUI changes ownership of the OCR files to root.

上一页  1 2 3 4 5 6 7 8 9 10 11  下一页

Tags:HP UX AIX

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接