Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1090812
  • 博文数量: 276
  • 博客积分: 10077
  • 博客等级: 上将
  • 技术积分: 2513
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-24 20:31
文章分类

全部博文(276)

文章存档

2020年(1)

2015年(5)

2012年(2)

2011年(6)

2010年(7)

2009年(224)

2008年(31)

我的朋友

分类:

2011-03-15 21:27:18

2。解决 PRKR-1023 : 在两个节点都做
$ ln -sf /etc/srvConfig.loc /oracle/srvm/config/srvConfig.loc

3。解决 PRKR-1064 :在两个节点都做
$ su
root's Password:
# mkdir /var/opt/oracle
# chown oracle:dba /var/opt/oracle
# chmod -R 777 /var/opt/oracle
# ln -sf /etc/srvConfig.loc /var/opt/oracle/srvConfig.loc
# ls -l /var/opt/oracle/srvConfig.loc
lrwxrwxrwx 1 oracle dba 18 Nov 27 15:18 /var/opt/oracle/srvConfig.loc -> /etc/srvConfig.loc
#

# more /var/opt/oracle/srvConfig.loc
srvconfig_loc=/dev/rsrvconfig
# ls -l /dev/rsrvconfig
crw-rw-r-- 1 oracle dba 45, 21 Nov 25 14:52 /dev/rsrvconfig
#

# dd if=/dev/rsrvconfig of=/dev/null bs=8192
16384+0 records in
16384+0 records out
#

4。创建数据库的时候报错(发生在5%,启动实例的时候)
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel

调整aio,AIX 5L 的默认最小AIO值是10,调的时候,可以以10为单位累加,
注意:
4/1。两个节点要一致
4/2。调整aio之后需要reboot,然后起HA,直到不报错为止。

Change / Show Characteristics of Asynchronous I/O

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
MINIMUM number of servers [20] #
MAXIMUM number of servers [100] #
Maximum number of REQUESTS [8192] #
Server PRIORITY [39] #
STATE to be configured at system restart available +
State of fast path enable

5.创建enhanced concurrent vg 时 系统报错:

this system does not support Enhanced Concurrent Capable volume groups

这时,要检查一下系统是否安装了 bos.clvm 的包

6。 创建数据库时没有权限访问裸设备
解决方法:
在安装oracle rac时oracle无法正常访问并行裸设备。
export PGSD_SUBSYS=grpsvcs 在oracle用户下的.profile里加入即可解决oracle无法并行访问raw lv
或者不安装VSD用的pssp rsct.basic.sp &rsct.compat.basic.sp和所有的VSD安装包
7。 HACMP同步失败
报错信息如下:
ERROR: Verification of Cluster Topology for RSCT failed.
See "/var/ha/log/topsvcs.default" for detailed information.
WARNING: File 'netmon.cf' is missing or empty on node dtwtdb01. This file is needed for a cluster with the single-adapter network net_rs232_01. Please create 'netmon.cf' file on node dtwtdb01 as described in 'HACMP Planning and Installation Guide'.
WARNING: File 'netmon.cf' is missing or empty on node dtwtdb02. This file is needed for a cluster with the single-adapter network net_rs232_01. Please create 'netmon.cf' file on node dtwtdb02 as described in 'HACMP Planning and Installation Guide'.

解决方法:
到两个节点的/usr/sbin/cluster目录下检查是否有netmon.cf文件,如果没有,请增加该文件,并增加内容;如果有,请检查内容,内容如下:
192.168.129.1
192.168.129.2
172.168.129.1
172.168.129.2
10.66.8.50
10.66.8.51

8.用netca来建立listener。启动netca,发现java报错。
错误如下:
Error loading native library:libnjni9.so.

解决办法:
$ORACLE_HOME/lib/libnjni9.so这个文件改名

9。 不能两个节点同时mount问题需要考虑的问题
问题现象
在启动数据库实例的时候,在第一个节点启动Oracle没有问题,在启动第二个节点时,Oracle数据库不能到open状态;如果这时将第一个节点 shutdown,第二个节点会自动open;也就是说:哪个节点先启动,就能到open状态;后启动的实例需要等第一个节点释放资源后才能启动成功。

问题解决,HACMP配置问题:
从日志文件分析,List of nodes: 0,和List of nodes: 1,可以看出,数据库启动的时候并不能认出两个节点,说明两台主机的通讯存在问题,因此,问题应该出在HACMP的配置中。检查HACMP配置。

问题解决,Oracle初始化参数问题2:
在参数文件中添加cluster_interconnect参数

问题解决,网络配置问题3:
修改网络参数,
/usr/sbin/no -o udp_sendspace=65536
/usr/sbin/no -o udp_recvspace=655360
/usr/sbin/no -o tcp_sendspace=65536
/usr/sbin/no -o tcp_recvspace=65536
/usr/sbin/no -o rfc1323=1
/usr/sbin/no -o sb_max=1310720
/usr/sbin/no -o ipqmaxlen=512

The information in this article applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0 to 9.2.0
This problem can occur on any platform.
Oracle Database
Symptoms
When starting the second instance of a RAC Cluster, The second node will hang indefinitely until the first node is stopped. Starting the second node first will result in the same behaviour for the first node. In essence, only one node can be brought up.
Changes
This would mostly occur in 9i so change that could trigger the problem is
1) Upgrade to 920
2) Applying the 9202 or 9203 patchset
Cause
If udp_sendspace and udp_recvspace is less than db_block_size * db_file_multiblock_read_count then there is a chance that some cr blocks are not received on the second instance which results in this hang
Fix
Check the udp send and recv parameters
For example on AIX we can get this values using
no -o udp_sendspace
no -o udp_recvspace

On increasing these values the problem does not reproduce.

udp_recvspace = 65536
udp_sendspace = 65536
解决办法:
加大udp_sendspace(用no –o udp_sendspace更改,并加入到rc.net,5L也可以使用?-p参数使重启后还生效),如果还有问题,请把db_file_multiblock_read_count改小。

回顾在rac建库时需要注意:1、gsdctl必须启动,2、no –a参数必须调整,3、lisener必须启动;4、hacmp的srv地址必须在同一组en上;


一、安装Oracle的准备工作
1.        检查物理内存的大小
# lsattr –E –l sys0 –a realmem
2.        检查交换空间是否足够。交换空间设置的原则是:
当实体memory<2GB时,swap设为实体Memory的2倍
当实体memory>=2GB 并且memory<=8GB时,swap设为实体memory的1倍。
当实体memory>8GB时,swap设为实体memory的0.5倍。
参照以上原则,我们的实体memory为8GB,故swap空间设为8GB。
使用以下命令查看当前交换空间的大小:
#lsps -a
使用以下命令修改swap的大小:
#chps -s 8 hd6 
说明:先使用lsvg rootvg 查看PPs的大小。X*PPs+原有直=现有值
3.        检查系统各分区的使用率。如/usr、/tmp的空间。/usr的空间大小建议为5GB,/tmp的空间要求不低于256MB,建议使用2GB的/tmp的空间,如果剩余空间足够的话。
检查各分区的使用率使用如下命令:
#df –m
更改各分区的大小,可以使用smitty jfs2命令来增加各分区的大小。也可以使用chfs命令来增加分区的大小,如以下命令将/tmp分区的大小增加512MB。
# chfs –a size=+’512M’ /tmp
4.        确认系统架构是否可以运行当前的软件。检查系统架构的位数命令是:
#bootinfo –y  (检查机器的架构位数)
#bootinfo –K  (检查系统内核的位数)
5.        检查所需安装的软件是否已正确安装:
a.        操作系统:AIX 5.2的Level要求不低于Level 04, AIX5.3的Level 要求不低于Level 02。查看系统level的命令如下:
#oslevel -r
b.        操作系统所需的文件集:bos.adt.base bos.adt.lib bos.adt.libm bos.perf.libperfstat bos.perf.perfstat bos.perf.proctools xlC.aix50.rte xlC.rte bos.adt.prof bos.cifs_fs.rte
注:bos.adt.libm默认没有安装,需重新安装,在第一张CD的bos.adt和bos.cifs_fs文件集中。
c.        Oracle JDBC/OCI Drivers所需的文件集JDK1.4.2(64bit)或是JDK1.3.1.11(32bit)。默认安装的是JDK1.4.2(32bit)
d.        检查文件集是否安装的命令是:
#lslpp –l 文件集名列表
6.        检查系统配置参数。执行以下命令:
#smitty chgsys
检查Maximum number of PROCESSES allowed per user的值是否大于等于2048,系统默认值为128。
7.        建立安装Oracle所需的oracle本位目录。建议Oracle安装在rootvg上。Oracle的本位目录建议单独用一个fs,/oracle。
8.        创建安装Oracle所需的用户组和用户名.分别用mkgroup, mkuser命令创建。
要求:创建的Oracle用户组为dba,用户名为oracle,其primary group为dba。将oracle用户的soft file size,soft data segment, soft stack size, soft core file size的值均设为-1。

9.   oracle 9i rac 不需要rsct.vsd*组件,否则建库的时候报打不打开裸设备

阅读(4651) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-03-27 18:58:37

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com