Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

40

积分

0

好友

14

主题
1#
发表于 2013-3-25 13:36:46 | 查看: 4617| 回复: 3
oracle linux 5.7 os  安装好10。2.0.1cluster后。升级到10.2.0.5后。 执行root102.sh  报错。
root102.sh [root@rac1 install]# ./root102.sh
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /s01/app/oracle/product/10.2.0/crs
Relinking some shared libraries.
Relinking of patched files is complete.
/bin/chmod: cannot access `/s01/app/oracle/product/10.2.0/crs/lib/libclntsh.so.10.1': No such file or directory
WARNING: directory '/s01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/s01/app/oracle/product' is not owned by root
WARNING: directory '/s01/app/oracle' is not owned by root
WARNING: directory '/s01/app' is not owned by root
WARNING: directory '/s01' is not owned by root
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
ocrcheck failed. Check /s01/app/oracle/product/10.2.0/crs/srvm/log for more details

/s01/app/oracle/product/10.2.0/crs/srvm/log 为空目录。
2#
发表于 2013-3-25 14:05:38
FYI

root102.sh after applying 10.2.0.4 patchset encounter 'ocrcheck failed' error [ID 743723.1]

Symptoms
After upgrading CRS from 10.2.0.1 to 10.2.0.4 via OUI, running root102.sh, give error:
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
./root102.sh[801]: 18983 Killed
ocrcheck failed. Check /vol2/crs/oracle/product/10.2/srvm/log for more details

Cause
The problem is caused by ulimit stack size is under sized.

During execution of root102.sh, building 64 bit libttsh10.so library, encounter 'out of memory' error from the OS.
Building 64bit libttsh.so
ld +s -G -b -o /vol2/crs/oracle/product/10.2/lib/libttsh10.so -c
....
-lunwind -lnsl -lc -lpthread

Out of Memory.
/vol2/crs/oracle/product/10.2/bin/genagtsh /vol2/crs/oracle/product/10.2/lib/libagtsh.so 1.0

ulimit for root and oracle is undersized:

Using: /usr/bin/ksh -f -c "ulimit -a"
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 206383
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303

"Out of memory" indicates undersized memory.

Solution
1. Increase ulimit for both root and oracle to these values.
/home/oracle$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 4194300
stack(kbytes) 392192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 4096

2. Make sure both 'libclntsh.so.10.1' and 'libttsh10.so' has 755 permission and owned by Oracle before you run the installer.

回复 只看该作者 道具 举报

3#
发表于 2013-3-25 14:10:51
Maclean Liu(刘相兵 发表于 2013-3-25 14:05
FYI

root102.sh after applying 10.2.0.4 patchset encounter 'ocrcheck failed' error

我是直接安装好10.2.0.1 后 升级到10.2.0.5的。 也要按照这个检查么?

回复 只看该作者 道具 举报

4#
发表于 2013-3-25 15:54:19
这些参数应当在 装10.2.0.1 前设置好

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-16 09:24 , Processed in 0.056941 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569