`
helloyesyes
  • 浏览: 1273030 次
  • 性别: Icon_minigender_2
  • 来自: 武汉
文章分类
社区版块
存档分类
最新评论

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表空间和数据文件的关系,否则拒绝申请

分享到:
评论

相关推荐

    Simple application that shows how to use the Data Control to

    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.

    UE(官方下载)

    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 ...

    Foundations for Analytics with Python O-Reilly-2016-Clinton W. Brownley

    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 ...

    Packt.OpenStack.Administration.with.Ansible

    on how to check the health of your cloud manually and leverage Ansible to set up Nagios and the necessary checks to monitor your cloud. Nagios is one of the leading open source monitoring platforms ...

    EXCEL.2007.CHARTS.MADE.EASY

    Excel 2007 Charts Made Easy shows you how to upgrade from simple pie and bar charts to rich data visualization using the full range of charts available in the latest version of the software....

    VclZip pro v3.10.1

    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. ...

    WPF Data Binding with LINQ to SQL

    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 ...

    Your Excel Survival Kit pdf

    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 ...

    vb写的ole 回调函数

    ' 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 ...

    .net Newtonsoft.Json 4.0 release

    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 ...

    Amazon Web Services in Action

    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, ...

    Unity3DBookPageCurl-master翻书插件

    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 ...

    Fix_Damaged_FAT_Manually.rar_Damaged

    How To Fix Damaged FAT Manually

    Fix_Damaged_FAT_Manually.zip_Damaged

    How To Fix Damaged FAT Manually

    VS自带API查询器

    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.

    微带线计算工具TXLine

    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 ...

    Amazon Web Services in Action(Manning,2015)

    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...

    2D Apple Games by Tutorials 2.0.pdf

    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 ...

    Json.NET 6.0 R3 For.NET(2.0-4.5)

    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.

Global site tag (gtag.js) - Google Analytics