How To Create manually an ASM Instance From Scratch

This note will explain how to create an ASM instance from scratch instead of using DBCA.

步骤如下:

Before you start, its recommended that ASM instance installed in a separate Oracle home, it is very useful in the case of applying patches and upgrade. For example you can upgrade ASM home from 10.2.0.3 to 10.2.0.4 while database home still on 10.2.0.3.

1) Because CSS must be running before any ASM instance, you have to make sure that CSS service is running:

# crsctlcheckcss
ClusterSynchronizationServicesappearshealthy


If its not running, you should configure CSS process by running $ORACLE_HOME/bin/localconfig script:

#$ORACLE_HOME/bin/localconfigall

/etc/oracledoesnotexist.Creatingitnow.
SuccessfullyaccumulatednecessaryOCRkeys.
CreatingOCRkeysforuser'root',privgrp'root'..
Operationsuccessful.
ConfigurationforlocalCSShasbeeninitialized

Addingtoinittab
Startupwillbequeuedtoinitwithin90seconds.
CheckingthestatusofnewOracleinitprocess...
ExpectingtheCRSdaemonstobeupwithin600seconds.

CSSisactiveonthesenodes.
DEV1
CSSisactiveonallnodes.
OracleCSSserviceisinstalledandrunningunderinit(1M)


2) Create the init+ASM.ora file in $ORACLE_HOME/dbs (this ORACLE_HOME being the newly created one).

(Change any of these parameters if needed for your environment)

# Default asm_diskstring values for supported platforms:
# Solaris (32/64 bit) /dev/rdsk/*
# Windows NT/XP //./orcldisk*
# Linux (32/64 bit) /dev/raw/*
# HPUX /dev/rdsk/*
# HPUX(Tru 64) /dev/rdisk/*
# AIX /dev/rhdisk/*

ASM_DISKSTRING=''
INSTANCE_TYPE='ASM'
LARGE_POOL_SIZE=40M
REMOTE_LOGIN_PASSWORDFILE='EXCLUSIVE'
USER_DUMP_DEST=$ORACLE_HOME/admin/+ASM/udump
BACKGROUND_DUMP_DEST=$ORACLE_HOME/admin/+ASM/bdump
CORE_DUMP_DEST=$ORACLE_HOME/admin/+ASM/cdump


3) Creating ADMIN directories:

$cd$ORACLE_HOME
$mkdirdbs
$mkdiradmin
$cdadmin
$mkdir+ASM
$cd+ASM
$mkdirudump
$mkdirbdump
$mkdircdump


4) Starting the ASM Instance

For UNIX platforms:

#su-oracle
$ORACLE_SID=+ASM;exportORACLE_SID
$sqlplus"/assysdba"
SQL>startup


For Microsoft Windows platforms:

C:/>oradim-new-asmsid+ASM-syspwdchange_on_install
-pfileD:/oracle/product/10.2.0/admin/+ASM/pfile/init.ora-spfile
-startmodemanual-shutmodeimmediate

Instancecreated.

C:/>oradim-edit-asmsid+ASM-startmodea
C:/>setoracle_sid=+ASM
C:/>sqlplus"/assysdba"

SQL>startuppfile='C:/oracle/product/10.1.0/admin/+ASM/pfile/init.ora';


5) Create SPFILE from PFILE:

SQL>createspfile='+ASM'frompfile;


6) For Unix platform, put an entry in the oratab file for the ASM intance:

+ASM:<ASMOracleHome>:Y


You may get the following error on first start:

ORA-15110: no diskgroups mounted

This error can be safely ignored, when creating a new diskgroup, the diskgroup name will be added automatically to the asm_diskgroups parameter and you will not get this error again.

From Oracle

-------------------------------------------------------------------------------------------------------

Blog http://blog.csdn.net/tianlesoftware

Email: dvd.dba@gmail.com

DBA1 群:62697716(); DBA2 群:62697977() DBA3 群:62697850()

DBA 超级群:63306533(); DBA4 群: 83829929 DBA5群: 142216823

聊天 群:40132017 聊天2群:69087192

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值