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表空间和数据文件的关系,否则拒绝申请
分享到:
相关推荐
Simple application that shows how to use the Data Control to connect to the Biblio.mdb database and display all authors in the Authors table.
We are often asked if it is possible to run an UltraEdit macro or script on a file from the command line. The answer is yes - and it's not only possible, it's extremely simple! Using find/replace ...
Next, the chapter discusses how to use three different types of conditional logic to filter for specific rows from the input file and write them to a CSV output file. Then the chapter presents two ...
Modified the SFX code (the code used to create the SFX stub distributed with VCLZip) so that it handles filenames that have been run through an OEM Conversion. The SFX was losing accented characters. ...
These tutorials describe how to map your classes to your tables manually (rather than with an automated tool like SqlMetal) so that you can have support for M:M relationships and data binding against ...
how to set up a simple list and how to create a list for your recurring data. It’s the piece that’s often omitted in many Excel books. You get it here. Chapter 3, “Further Cleaning, Slicing, and ...
' create an instance of the server for the first client... all other ' clients will get a ptr to the initial instance when they do their ' creates. This model is more efficient from a memory ...
you don't have a class to serialize or deserialize to, or the JSON is radically different from your class and you need to manually read and write from your objects. LINQ to JSON allows you to easily ...
This section will explore how to create a scene like the “Example_2_Controled Flipping” scene To be able to let the user control page flipping using some buttons, create your book, add an "Auto ...
What is PInvoke.net? A wiki for .NET developers ... PInvoke.net supplies you with tried and tested signatures and type definitions, so that you don't have to spend time writing them from scratch.
For RDS, automated backups can be enabled to create regular backups of the database instance, which can be used for point-in-time recovery or to restore the instance to a specific point in time. ...
If you want to create an icon for the program, then you need to manually add the program item through the Windows Program Manager (or through Explorer in Windows 95/98/NT/2000). Consult your Windows ...
You'll start with a broad overview of AWS and learn how to spin-up servers manually and from the command line. Then you'll explore infrastructure automation with the AWS CloudFormation service, where...
So far, you’ve learned how to move and rotate SpriteKit nodes — a node being anything that appears onscreen — by manually setting their positions and rotations over time. This do-it-yourself ...
- **Method**: To serve content stored in S3 but not publicly accessible directly, create an Origin Access Identity (OAI) for CloudFront and grant access to the objects in your S3 bucket to that OAI. ...
Json.NET Json.NET is a popular ... you don't have a class to serialize or deserialize to, or the JSON is radically different from your class and you need to manually read and write from your objects.
You will use the Encog Java framework and discover how to do rapid development with Encog, allowing you to create large-scale neural network applications. The book also discusses the inability of ...
It is an invaluable resource for developers looking to create dynamic and interactive web applications using Flex 3 and Rails 2. By following the detailed instructions and best practices outlined in ...
This book concentrates on basic tasks such as how to set up and configure Moodle and how to perform day-to-day administration activities, and progresses on to more advanced topics that show you how to...