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

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

316

积分

0

好友

0

主题
1#
发表于 2012-3-7 16:27:11 | 查看: 10173| 回复: 6
升级的时候没有仔细检查,结果,ASM PFILE里只有DATA,没有FRA,所以升级后只有一个ora.DATA.dg的资源。
现在PFILE已修改,FRA DG 已 MOUNT。

不会仅此而已吧?
crsctl add resource ora.FRA.dg -type ora.diskgroup.type
2#
发表于 2012-3-7 18:36:56
答案:
crsctl stat res ora.DATA.dg -p > ora.DATA.dg
vim ora.DATA.dg

cat ora.DATA.dg

NAME=ora.FRA.dg     //修改这里
TYPE=ora.diskgroup.type
ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--
ACTION_FAILURE_TEMPLATE=
ACTION_SCRIPT=
AGENT_FILENAME=%CRS_HOME%/bin/oraagent%CRS_EXE_SUFFIX%
ALIAS_NAME=
AUTO_START=never
CHECK_INTERVAL=300
CHECK_TIMEOUT=30
DEFAULT_TEMPLATE=
DEGREE=1
DESCRIPTION=CRS resource type definition for ASM disk group resource
ENABLED=1
LOAD=1
LOGGING_LEVEL=1
NLS_LANG=
NOT_RESTARTING_TEMPLATE=
OFFLINE_CHECK_INTERVAL=0
PROFILE_CHANGE_TEMPLATE=
RESTART_ATTEMPTS=5
SCRIPT_TIMEOUT=60
START_DEPENDENCIES=hard(ora.asm) pullup(ora.asm)
START_TIMEOUT=900
STATE_CHANGE_TEMPLATE=
STOP_DEPENDENCIES=hard(intermediate:ora.asm)
STOP_TIMEOUT=180
TYPE_VERSION=1.2
UPTIME_THRESHOLD=1d
USR_ORA_ENV=
USR_ORA_OPI=false
USR_ORA_STOP_MODE=
VERSION=11.2.0.3.0

crsctl add res ora.FRA.dg -type ora.diskgroup.type -file ora.DATA.dg

crsctl start res ora.FRA.dg

crsctl stat res ora.FRA.dg
NAME=ora.FRA.dg
TYPE=ora.diskgroup.type
TARGET=ONLINE          , ONLINE
STATE=ONLINE on node01, ONLINE on node02

回复 只看该作者 道具 举报

3#
发表于 2012-3-7 20:35:04
自问自答?  Great Post

回复 只看该作者 道具 举报

4#
发表于 2012-3-11 22:42:35
但是为什么这个地方的  AUTO_START=never  呢?

回复 只看该作者 道具 举报

5#
发表于 2012-3-11 23:17:24
[root@vrh2 ~]# cat /etc/oracle/ocr.loc
ocrconfig_loc=+systemdg
local_only=FALSE

The OCR diskgroup is auto mounted by the ASM instance during startup. The CRSD and ASM
dependency is maintained by OHASD.

ASM has to be up with the diskgroup mounted before any OCR operations can be
performed. There are bugs reported when the diskgroup having OCR was dismounted force
and/or ASM instance was shutdown abort.
When the stack is running, CRSD keeps reading/writing OCR.
OHASD maintains the resource dependency and will bring up ASM with the required
diskgroup mounted before it starts CRSD.

回复 只看该作者 道具 举报

6#
发表于 2012-3-11 23:19:04
NON-OCR/Votedisk

[root@vrh2 ~]# crsctl stat res ora.DATA.dg -p
NAME=ora.DATA.dg
TYPE=ora.diskgroup.type
ACL=owner:grid:rwx,pgrp:oinstall:rwx,other::r--
ACTION_FAILURE_TEMPLATE=
ACTION_SCRIPT=
AGENT_FILENAME=%CRS_HOME%/bin/oraagent%CRS_EXE_SUFFIX%
ALIAS_NAME=
AUTO_START=always
CHECK_INTERVAL=300
CHECK_TIMEOUT=30
DEFAULT_TEMPLATE=
DEGREE=1
DESCRIPTION=CRS resource type definition for ASM disk group resource
ENABLED=1
LOAD=1
LOGGING_LEVEL=1
NLS_LANG=
NOT_RESTARTING_TEMPLATE=
OFFLINE_CHECK_INTERVAL=0
PROFILE_CHANGE_TEMPLATE=
RESTART_ATTEMPTS=5
SCRIPT_TIMEOUT=60
START_DEPENDENCIES=hard(ora.asm) pullup(ora.asm)
START_TIMEOUT=900
STATE_CHANGE_TEMPLATE=
STOP_DEPENDENCIES=hard(intermediate:ora.asm)
STOP_TIMEOUT=180
TYPE_VERSION=1.2
UPTIME_THRESHOLD=1d
USR_ORA_ENV=
USR_ORA_OPI=false
USR_ORA_STOP_MODE=
VERSION=11.2.0.3.0

回复 只看该作者 道具 举报

7#
发表于 2012-3-12 09:04:29
AUTO_START

Indicates whether Oracle Clusterware automatically starts a resource after a cluster server restart. Valid AUTO_START values are:

    always: Restarts the resource when the server restarts regardless of the state of the resource when the server stopped.

    restore: Restores the resource to the same state that it was in when the server stopped. Oracle Clusterware attempts to restart the resource if the value of TARGET was ONLINE before the server stopped.

    never: Oracle Clusterware never restarts the resource regardless of the state of the resource when the server stopped.

回复 只看该作者 道具 举报

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

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

GMT+8, 2024-12-24 03:30 , Processed in 0.058972 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

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