ASM Basics

I have Oracle 10gR2 software installed in one machine and all datafiles kept in ASM disk group. Can anyone explain the physical side(like Hub, SCSI controller,..) of how the machine which has the Oracle software installed is connected to the ASM Disk group?

Hi,
Your question is quick to ask, but has a complex answer. You need to have a really good "hardware" and computer design knowledge..
I'll try to explain it shortly and simply.
There are different components in your setup.
1- physical disks: There you can have local storage (disks, raid array, ...) or shared storage (SAN, NAS,...). The computer on which you're going to run ASM must have physical access to the disk devices. He must see the LUNs if you're using a SAN, or he must see the raid array, or ...
2- the host(s): It must be configured to use ASM. On Unix platforms, the raw devices must be owned by the software owner (oracle), belong to the dba group (dba) and be in chmod 660. The SAN/RAID/... drivers must be loaded into kernel.
3- ASM: ASM is a filesystem. The host O.S. can't see what's in this kind of filesystem (except with Linux/asmlib and it's not so straightforward). Only Oracle binaries can use ASM filesystems. When ASM sees a raw disk which it can access (owned by oracle:dba mode 660 on unix, remember?) it reads the disk header to see what'sin the disk.
4- the diskgroups: they are made of different "disks" (1). When you tell ASM to create a diskgroup, it writes some information at the beginning of the "disk" in order to mark it as an ASM "disk". Then ASM manages redundancy, ..., as you told it it sould be done.
A little sample:
Disk1\                         / PARTITION 1 \
Disk2\\                        / PARTITION 2 - ASM DISKGROUP 1 \
Disk3--- RAID 5 ARRAY <-> HOST - PARTITION 3 \                 - ASM Instance <-> DB Instance
Disk4//                        \ PARTITION 4 - ASM DISKGROUP 2 /
Disk5/In the sample I quickly graphed, you can see there are 5 physical disks in a RAID 5 array. A Raid controller would certainly manage the array, and the controller would show one volume to the OS. It's possible to have a software raid manager (in linux for example) and in that case, the host O.S. is the raid controller.
At O.S. level, the raid volume is split into partitions, or can be used as-is, and the ASM instance is configures to use a set of partitions and organize them into disk groups. the ASM instance is the filesystem manager, the DB processes access this filesystem in order to read the files as an other software would read an NTFS volume via O.S. interfaces.
To give a more logical sample, here's the setup I have for my main standby database:
Disk1 \
Disk2 \        - RawDisk1a
Disk3  - SAN 1 - RawDisk2a
Diskn /
                             HOST <-> ASM DISKGROUP (RawDisk1a,RawDisk2a mirror on RawDisk1b,RawDisk2b) <-> ASM Instance <-> DB Instance
Disk1 \
Disk2 \        - RawDisk1b
Disk3  - SAN 2 - RawDisk2b
Diskn /Here the DB Instance uses the ASM filesystem to access a data diskgroup. The diskgroup is mirored on 2 SANs via ASM FAILGROUPs usage. ASM sees the RawDisk(n) via kernel API, but writes directly to it. The ASM software if in charge of the mirroring at ASM level (cf DISKGROUP REDUNDANCY LEVEL in the doc). Each RawDisk is set in a different failgroup, so if one SAN fails, ASM can still work using the other SAN.. If a disk in either SAN fails, ASM isn't even informed.. The SAN is in charge of the RAID redundancy.
Well, it's a complex matter.
I hope I cleared some of your doubts, and I'm sure I raised some more concerns.
Ask away if you want some more explanations.
Regards,
Yoann.

Similar Messages

  • ASM basic interrogation

    Hi
    I've actually my asm instance UP with 2 disk groups.
    i've create my directories with asmcmd. It's ok.
    it's just a test and i've only two directories /test1 and /test2 in the asm structure.
    now for instance database, i've try to take some modifications on my old init file like user_background_dest = '+ASM/test1
    after that sqlplus, startup nomount pfile=initorcl.ora (it's just for a primary test, verify first that the initfile understand the asm path.
    it doesn't work i've the error
    ORA-07446: sdnfy: bad value '+ASM/test1' for parameter user_dump_dest.
    where is my mistake ?
    So, question: How my instance database can be catch the asm instance ?
    regards
    Den

    Hi
    it's ok for the database nomount.
    After that, I try to perform a CREATE DATABASE order ...
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00200: control file could not be created
    ORA-00202: control file: '/ASM+/ASM_GRP1/ctl/control01.ctl'
    ORA-27040: file create error, unable to create file
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    in my inittest.ora i've
    control_files = (/ASM+/ASM_GRP1/ctl/control01.ctl,
    /ASM+/ASM_GRP1/ctl/control02.ctl)
    How to catch the asm tree ?
    Regards
    Den

  • Advantages of using Portal in HCM implementation

    Dear all,
    I need to implement HCM in one of our existing SAP ERP R3 4.7 systems. I also need to get my ESS to be published as a webpage for all my employees at different geographical locations. Please advice me on the advantages and dis-advantages of the scenarios explained below.
    Scenario 1: Only using ITS (Internet Transaction Server)
    I need to publish my portal page in the web, so I install HR support packages in the ERP system and also deploy the ESS component. I install a standalone ITS system on a separate machine and integrate the same with the ERP system. Now the HR-ESS component is distributed over the web through the ITS. SAP transactions are displayed over the web and the ESS component is used through a web browser.
    Scenario 2: Using ITS and a Portal System
    I implement the HR support packages in the ERP system, install and configure the ITS, implement a three system portal landscape (NW 04 EP 6.0 SR1) Publish the portal page over the web and enhance the ESS application through the same. Here the ERP system acts as the backend for the portal system.
    I also have a doubt regarding the same. As SAP ERP R3 4.7 does not have an inbuilt ITS, is it necessary for me to install and configure a standalone ITS for the interconnectivity between the ERP and the Portal systems?
    Kindly help me with the suggestions.
    Thank you
    Regards,
    Vineeth Damodar

    hello, the LM3S8962 microcontroller is a good sispositivos for developing applications of medium complexity, according to your questions:
    1. if you work applications with embedded systems will save labview time in prototyping, we know that if you work with a company specific microcontroller, you must learn the language with which you are working Asm, Basic, C, then if you change hardware again start adapting your code in the libraries of the new compiler. Labview does not happen. 
    2. Labview only works with some microcontroller manufacturers and specific models.
    Atom
    Certified LabVIEW Associate Developer

  • Advantages of using labview in embedded application when compared to c ?

    Hello all,
    I am looking to develop embedded application with help of labview programming
    Started with Lm3s8962 evaluation board.
    So i would like to know
    1 Advantages of using labview in embedded application when compared to c ?
    2 Can we deploy the code in any kind of  controller by writting drivers for it ?

    hello, the LM3S8962 microcontroller is a good sispositivos for developing applications of medium complexity, according to your questions:
    1. if you work applications with embedded systems will save labview time in prototyping, we know that if you work with a company specific microcontroller, you must learn the language with which you are working Asm, Basic, C, then if you change hardware again start adapting your code in the libraries of the new compiler. Labview does not happen. 
    2. Labview only works with some microcontroller manufacturers and specific models.
    Atom
    Certified LabVIEW Associate Developer

  • Basic questions about installing ASM

    I can't seem to find definitive answers to the following. Let me try here. I want to build a Linux server, running RDBMS 11.2.0.3, with ASM. This is just the prototype server, in our conversion from Oracle 11g on AIX without ASM to Oracle 11g on Linux with ASM.
    I already have an Oracle VM cluster running, and have built a number of VMs from templates, and all that works fine. Now I'm trying to install ASM, and have failed several times. Maybe I'm doing something fundamentally bad. Here are two questions:
    1. Is it true that the only (reasonable) way to install ASM is to install the product called "Grid Infrastructure"? As best I can tell, the answer is "yes". But GI seems to be so much more than ASM, much that I don't think I want or need. Is there an easier way to get ASM?
    2. The certification matrix swears that Grid Infrastructure 11.2.0.3 is certified on Oracle Linux 6. Yet (1) I see many posts on OTN and elsewhere on the net that say it is NOT supported, and that there are mant problems in gettng the installation to work, and (2) I have been trying to install on OEL 6, and can't get the installer to complete. Specifically, the root.sh script fails with "ohasd has failed to start...". Before pursuing my installation problems any more, I just want to make sure: Should this install on OEL 6?

    Terry Phelps wrote:
    I can't seem to find definitive answers to the following. Let me try here. I want to build a Linux server, running RDBMS 11.2.0.3, with ASM. This is just the prototype server, in our conversion from Oracle 11g on AIX without ASM to Oracle 11g on Linux with ASM.
    I already have an Oracle VM cluster running, and have built a number of VMs from templates, and all that works fine. Now I'm trying to install ASM, and have failed several times. Maybe I'm doing something fundamentally bad. Here are two questions:
    1. Is it true that the only (reasonable) way to install ASM is to install the product called "Grid Infrastructure"? As best I can tell, the answer is "yes". But GI seems to be so much more than ASM, much that I don't think I want or need. Is there an easier way to get ASM?ASM is a feature of Oracle Grid Infrastructure Installation. So you will need Install GI to use ASM.
    There is one GI installation wich can be installed and configured in two different way. For a Cluster or For a Standalone.
    This Options must be choosen during installation.
    The GI installation for a Standalone is called Oracle Restart.
    The GI installation for a Cluster is called Oracle Clusterware.
    Both option above have the ASM feature.
    2. The certification matrix swears that Grid Infrastructure 11.2.0.3 is certified on Oracle Linux 6. Yet (1) I see many posts on OTN and elsewhere on the net that say it is NOT supported, and that there are mant problems in gettng the installation to work, and (2) I have been trying to install on OEL 6, and can't get the installer to complete. Specifically, the root.sh script fails with "ohasd has failed to start...". Before pursuing my installation problems any more, I just want to make sure: Should this install on OEL 6?Many users here on OTN tried to install Grid Infrastructure on RHEL6/OEL6 when it was not certified. So many issues show up.
    After it was certified by Oracle there are several notes on MOS that will help you follow important steps for a successful installation.
    I think you should use OEL 6, since Oracle Linux 6 was Certified by Oracle Corporation you have all support on this product.
    Start with this note : *Master Note of Linux OS Requirements for Database Server [ID 851598.1]*
    *Database Client or Database Server Install on Red Hat Enterprise Linux 6 (RHEL6) or Oracle Linux 6 [ID 1350000.1]*
    http://levipereira.wordpress.com/2012/04/18/certification-of-the-oracle-database-on-oracle-linux-6-and-red-hat-enterprise-linux-6/

  • Basic asm architecture

    Hi,
    What is the difference between asm file and data file, asm extent and database extent,*asm allocation unit and database block*?
    I can understand database architecture.but unable to understand asm architecture in documentation.
    Is Asm file physical one?Where can i see it if it's?
    Is asm file equal to data file?
    Is allocation unit equal to data block?
    Thanks & Regards,
    VN

    >
    Hi VN,
    What is the difference between asm file and data file, *asm extent
    and database extent*,*asm allocation unit and database block*? http://www.oracle-base.com/articles/10g/automatic-storage-management-10g.php
    http://www.orafaq.com/wiki/ASM_FAQ
    Whenever you have difficulty with anything in Oracle, these two sites (orafaq and oracle-base)
    are a good starting point to understanding.
    The Oracle docco is quite good on this topic.
    http://docs.oracle.com/cd/B16341_01/doc/server.102/b14196/asm001.htm
    http://docs.oracle.com/cd/B28359_01/server.111/b31107/asmcon.htm
    Googling gives plenty of blogs and other resources - you'll have to do your own
    reading.
    This is your record on the forums
    ===============
    user3266490      
         Newbie
    Handle:      user3266490
    Status Level:      Newbie (25)
    Registered:      Nov 26, 2008
    Total Posts:      1,355
    Total Questions:      794 (651 unresolved) *<== WOW*
    ===============
    This is ridiculous - 650 unresolved threads. Please read the group FAQ (you have over a
    1000 posts) and follow the guidelines. Close off threads.
    Thanks in advance.
    HTH,
    Paul...
    VN

  • Can't create database using ASM (SOLVED)

    Hi all
    I'm trying to use ASM for the first time, on Oracle 10.2.0.1 on Solaris x64.
    I have installed the ASM instance into /opt/oracle/asm/10.2.0 and created disk groups. I have cssd running OK. I am able to start and stop the ASM instance without problems, and I can select from v$asm_diskgroup to confirm that disks are mounted OK.
    I have then installed Oracle EE separately into /opt/oracle/server/10.2.0. I first did a software only install, and now I am trying to create a DB.
    The problems come when I try to use this ASM instance to host a new database. I first tried to use DBCA to create a new database, but on database creation I got the following errors:
    ORA-00200: control file could not be created
    ORA-00202: control file: '+DBLIVE1'
    ORA-17502: ksfdcre:4 Failed to create file +DBLIVE1
    ORA-15001: diskgroup "DBLIVE1" does not exist or is not mounted
    ORA-15055: Message 15055 not found; No message file for product=RDBMS, facility=ORA
    ORA-01031: insufficient privileges
    I then told DBCA just to create the DB creation scripts, and I tried manually running these with SQL*Plus.
    When doing it with SQL*PLus, I initially got the same error as shown above. But then something changed (sorry, not sure what), and now the error I get is:
    CREATE DATABASE "NEONREL1"
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00349: failure obtaining block size for '+DBLIVE1'
    ORA-01031: insufficient privileges
    I've put some debug info below, showing me succesfully connecting to the ASM instance and then attempting to create the DB using the db creation scripts, showing the error at the end. You can see that the oracle OS user is able to connect fine to ASM, then I swithc ORACLE_SID and ORACLE_HOME to the EE install and try to create the DB, at which point it apparently can't connect to ASM any more.
    I've tried the DB creation many times, and in between attempts I completely empty $ORACLE_HOME/admin/<dbname> and delete the files related to the attempted install from $ORACLE_HOME/dbs/ . I've also stopping/starting ASM, rebooting, and I've done the install of ASM and EE a couple of times over in case I made any mistakes in my earlier attempts.
    Any help would be much appreciated!
    Tom
    ##### CHECKING ASM
    oracle@neonrcom-db1:~$ uname -a
    SunOS neonrcom-db1 5.10 Generic_127128-11 i86pc i386 i86pc
    # css is running
    oracle@neonrcom-db1:~$ ps -ef | grep css
    oracle 498 1 0 21:46:40 ? 0:01 /opt/oracle/asm/10.2.0/bin/ocssd.bin
    # listener is running in the ASM instance
    oracle@neonrcom-db1:~$ ps -ef | grep tnsl
    oracle 1332 1 0 21:49:59 ? 0:00 /opt/oracle/asm/10.2.0/bin/tnslsnr LISTENER -inherit
    # ASM is only entry in /var/opt/oracle/oratab
    oracle@neonrcom-db1:~$ grep -v "^#" /var/opt/oracle/oratab
    +ASM:/opt/oracle/asm/10.2.0:N
    # I can connect to ASM fine, and it has diskgroups mounted.
    oracle@neonrcom-db1:~$ export ORACLE_HOME=/opt/oracle/asm/10.2.0
    oracle@neonrcom-db1:~$ export ORACLE_SID='+ASM'
    oracle@neonrcom-db1:~$ sqlplus "sys as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jul 21 20:53:10 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> set line 150
    SQL> select name, block_size, state, type, total_mb, free_mb from v$asm_diskgroup;
    NAME BLOCK_SIZE STATE TYPE TOTAL_MB FREE_MB
    DBARCH1 4096 MOUNTED EXTERN 2096856 2096784
    DBLIVE1 4096 MOUNTED EXTERN 4193904 4193812
    #### Contents of init.ora for new DB
    db_create_file_dest=+DBLIVE1
    db_recovery_file_dest=+DBARCH1
    db_recovery_file_dest_size=2147483648
    ##### DB INSTALLATION ATTEMPT
    oracle@neonrcom-db1:~$ export ORACLE_HOME=/opt/oracle/server/10.2.0
    oracle@neonrcom-db1:~$ export ORACLE_SID='NEONREL1'
    oracle@neonrcom-db1:~$ export PATH=$ORACLE_HOME/bin:$PATH
    oracle@neonrcom-db1:~$ /opt/oracle/server/10.2.0/admin/NEONREL1/scripts/NEONREL1.sh
    You should Add this entry in the /var/opt/oracle/oratab: NEONREL1:/opt/oracle/server/10.2.0:Y
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jul 21 22:10:54 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    specify a password for sys as parameter 1
    Enter value for 1: xxx
    specify a password for system as parameter 2
    Enter value for 2: xxx
    specify a password for sysman as parameter 3
    Enter value for 3: xxx
    specify a password for dbsnmp as parameter 4
    Enter value for 4: xxx
    specify ASM SYS user password as parameter 6
    Enter value for 6: xxx
    Connected to an idle instance.
    SQL> spool /opt/oracle/server/10.2.0/admin/NEONREL1/scripts/CreateDB.log
    SQL> startup nomount pfile="/opt/oracle/server/10.2.0/admin/NEONREL1/scripts/init.ora";
    ORACLE instance started.
    Total System Global Area 1.9294E+10 bytes
    Fixed Size 2054976 bytes
    Variable Size 2264925376 bytes
    Database Buffers 1.7012E+10 bytes
    Redo Buffers 14721024 bytes
    SQL> CREATE DATABASE "NEONREL1"
    2 MAXINSTANCES 8
    3 MAXLOGHISTORY 1
    4 MAXLOGFILES 16
    5 MAXLOGMEMBERS 3
    6 MAXDATAFILES 100
    7 DATAFILE SIZE 300M AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    8 EXTENT MANAGEMENT LOCAL
    9 SYSAUX DATAFILE SIZE 120M AUTOEXTEND ON NEXT 10240K MAXSIZE UNLIMITED
    10 SMALLFILE DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE SIZE 20M AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED
    11 SMALLFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE SIZE 200M AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED
    12 CHARACTER SET AL32UTF8
    13 NATIONAL CHARACTER SET UTF8
    14 LOGFILE GROUP 1 SIZE 51200K,
    15 GROUP 2 SIZE 51200K,
    16 GROUP 3 SIZE 51200K
    17 USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword";
    CREATE DATABASE "NEONREL1"
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00349: failure obtaining block size for '+DBLIVE1'
    ORA-01031: insufficient privileges
    Message was edited by:
    tjobbins

    Update: I've worked out the difference between the two sets of errors I get.
    The basic error is this:
    ORA-00200: control file could not be created
    ORA-00202: control file: '+DBLIVE1'
    ORA-17502: ksfdcre:4 Failed to create file +DBLIVE1
    ORA-15001: diskgroup "DBLIVE1" does not exist or is not mounted
    ORA-15055: Message 15055 not found; No message file for product=RDBMS, facility=ORA
    ORA-01031: insufficient privileges
    However if my init.ora contains the line:
    control_files=/opt/oracle/server/10.2.0/dbs/cntrlNEONREL1.dbf
    then I instead get the second error:
    CREATE DATABASE "NEONREL1"
    ERROR at line 1:
    ORA-01501: CREATE DATABASE failed
    ORA-00349: failure obtaining block size for '+DBLIVE1'
    ORA-01031: insufficient privileges
    So basically these must be the same error, just in the second case I'm not trying to put the control file on the ASM so it fails at a different point.
    But both errors must be because of the same cause, I suppose.

  • ASM installation failure from Oracle GRID under Windows 7 64 bit

    I am a rookie..I am running Oracle database 11gR2 running on a Windows 7 64 bit system.
    I am implementing ASM onto my system solely for learning purposes
    The implementation of ASM has changed between database releases 11gR1 and 11gR2 such that it is no longer configured locally but is now implemented from within Oracle GRID. Unfortunately, the book I am using to study my OCP from was written at the time of 11gR1 so I can no longer follow its instructions to create and configure ASM. Instead of using DBCA I now need to use ASMCA to configure ASM.
    As a preliminary requirement I successfully installed Oracle Grid and configured it to run on my standalone server.
    I created two partitions on my harddrive ...... drive G: and drive H: with intent of using them as my ASM disks. 45 Gig and 50 gig in size respectively formatted with the NTFS filesystem.
    I ran ASMCA in an attempt to create an ASM instance
    I specified these partition drives '\\.\G:' and '\\.\H:' in the disk discovery path which were successfully picked up.
    However when ASMCA executed the creation process after some time it failed with the following message:
    One or more diskgroup(s) creation failed as below:
    DiskGroup mydisks creation failed with the following message:
    ORA-15018: diskgroup cannot be created
    ORA-00600: internal error code, arguments: [17090], [], [], [], [], [], [], [], [], [], [], []
    Check C:\app\peter\cfgtoollogs\asmca\asmca-12101712AM0558.log for details.
    Which I did and found many things
    Thread-40] [ 2012-10-17 00:25:05.723 EST ] [UsmcaLogger.logInfo:141] Oradim Command : C:\app\11.2.0\grid\bin\oradim.exe -new -asmsid +ASM -startmode manual -srvcstart demand -spfile
    [Thread-40] [ 2012-10-17 00:25:05.723 EST ] [UsmcaLogger.logEntry:113] Entering oracle.sysman.assistants.usmca.util.UsmcaUtil Method : executeCommand
    [Thread-40] [ 2012-10-17 00:25:05.723 EST ] [UsmcaLogger.logInfo:141] Command: C:\app\11.2.0\grid\bin\oradim.exe -new -asmsid +ASM -startmode manual -srvcstart demand -spfile
    [Thread-40] [ 2012-10-17 00:25:07.254 EST ] [UsmcaLogger.logInfo:141] Instance created.
    Ok. As above the ASM instance appeared to have been successfully created so as part of my investigative process to confirm what the script actually did successfully execute I attempted to log into the ASM instance to see how far it would get. It fails with the following result
    C:\Windows\system32>set ORACLE_SID=+ASM
    C:\Windows\system32>sqlplus sys as sysasm
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Oct 17 10:16:36 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:
    I checked Windows Task Manager
    There is an OracleOHService and it is running
    LISTENER is running ie the local listener running on port 1521 that was originally created with a previous basic stand alone installation of the Oracle 11gR2 database . (ie before I installed Oracle GRID). No other listeners are running.
    Can t see any evidence of any ASM service on Windows Task manager started/stopped or otherwise. Neither can I see evidence of a CSS service.
    The log file that was generated is large I am not clear on what I should be looking for in order to find clues as to how I might manually resolve this problem and possibly 'salvage' the installation. Any advice would be appreciated.

    Hi,
    read the documentation:
    http://www.oracle.com/pls/db112/to_pdf?pathname=install.112/e24169.pdf
    and you will find multiple errors, you probably did.
    Especially the part on preparing storage.
    Regards
    Sebastian

  • Database creation with ASM using dbca

    hi all,
    i found the steps to create the database using ASM diskgroup.
    but i received errors when configuring the FRA(flash recovery area), DBF(normal), +ARCH(archival dest),
    i tried atleast 2 to 3 times from scratch but found the same error....................
    ORA: 19624
    ORA: 19870
    here are the steps can somebody correct these steps..................
    Create Virtual Disks from VM Ware software when server is down.
    Choose Edit Virtual Machine Settings.
    Click on Add button
    Press Next and Highlight Hard Disk, then click Next
    Check ‘Create a New Virtual Disk’
    Choose SCSI as type
    Select Size as 2 GB
    Name the virtual disk as ‘ASMDBF1.vmdk’
    Create additional disks as:
    ASMDBF1.vmdk for DBF files
    ASMDBF2.vmdk Failover group
    ASMFRA.vmdk Flash Back Recovery Area
    ASMREDO.vmdk Redo Log Area
    ASMARCH.vmdk Archived Logs
    •     Start up the server OraWorld1
    •     Go to Disk Management and you will be prompted with a screen which should display all five disks with a check mark. Accept defaults and Click next.
    •     On second script all five will be unchecked, click Next
    •     Press Finish to complete and you should see all 5 disks as Type Basic Unallocated. For each of the disk perform:
    1.     Right click, New Partition, Extended Partition and Finish
    2.     Right click, New Logical drive, Do not assign drive letter nor partition it.
    3.     From command prompt type Diskpart and enter Automount enable.
    4.     From command prompt, configure basic CRS services as
    5.     C:\oracle\product\10.2.0\db_1>localconfig add
    6.     C:\oracle\product\10.2.0\db_1>localconfig add
    7.     Step 1: creating new OCR repository
    8.     Successfully accumulated necessary OCR keys.
    9.     Creating OCR keys for user 'administrator', privgrp ''..
    10.     Operation successful.
    11.     Step 2: creating new CSS service
    12.     successfully created local CSS service
    13.     successfully added CSS to home
    •     Launch DBCA and choose Configure Storage Management.
    •     Select Create New group, choose stamp disks which will show you all of your five disks. Configure ASM links to all these disks as:
    1.     ORCLDISKASMDBF1 \Device\Harddisk1\Partition1
    2.     ORCLDISKASMDBF2 \Device\Harddisk2\Partition1
    3.     ORCLDISKASMFRA \Device\Harddisk3\Partition1
    4.     ORCLDISKASMREDO \Device\Harddisk4\Partition1
    5.     ORCLDISKASMARCH \Device\Harddisk5\Partition1
    Now make Change Disk Discovery Path as Null and you should see all disks.
    Now create Disk groups as :
    ARCH \\.\ORCLDISKASMARCH External 1GB
    REDO \\.\ORCLDISKASMREDO External 1GB
    FRA \\.\ORCLDISKASMFRA External 2GB
    DBF (MAIN GROUP WITH 2 SUB-GROUPS) Must create as Normal Redundancy
    DBFP \\.\ORCLDISKASMDBF1 External 2GB
    DBFS \\.\ORCLDISKASMDBF2 External 2GB
    You now have a running ASM instance on the server.
    •     Checking ASM instance
    You can always use DBCA to check settings of ASM.
    Alternatively, go to command prompt:
    Set ORACLE_SID=+ASM
    Sqlplus /nolog
    Connect sys/password as sysdba
    Show sga (80MB)
    Total System Global Area 83886080 bytes
    Fixed Size 1247420 bytes
    Variable Size 57472836 bytes
    ASM Cache 25165824 bytes
    SQL>desc You can then check C:\oracle\product\10.2.0\db_1\database for these files. You can also view v$parameter for all possible values for ASM instance.
    +asm.asm_diskgroups='DATA1','ARCH','REDO','FRA','DBF'#Manual Mount
    *.asm_diskgroups='DATA1','ARCH','REDO','FRA','DBF'
    *.asm_diskstring=''
    *.background_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\bdump'
    *.core_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\cdump'
    *.instance_type='asm'
    *.large_pool_size=12M
    *.remote_login_passwordfile='SHARED'
    *.user_dump_dest='C:\oracle\product\10.2.0\admin\+ASM\udump'
    You can change some of the values like large pool and even db cache size. You can also manually create the disk group as:
    Create diskgroup DBF NORMAL redundancy
    Failgroup flgrp1 disk ‘\\.\ORCLDISKDATA0’, ‘\\.\ORCLDISKDATA1’
    Failgroup flgrp2 disk ‘\\.\ORCLDISKDATA2’, ‘\\.\ORCLDISKDATA3’;
    Check Candidate disks:
    select group_number, disk_number, mount_status, header_status, state, path from v$asm_disk;
    Other useful queries:
    Select group_number, name, total_mb, free_mb, state, type
    From v$asm_diskgroup;
    Select group_number, disk_number, mount_status, header_status, state, path, failgroup
    From v$asm_disk;
    You can use sql commands to perform most of the ASM tasks, however EM console can also be used here
    Oracle Database Installation
    •     Launch DBCA
    •     Choose Create Database and select OLTP type
    •     Name it as ORCL2, choose ASM as file system, select all disk groups to be used.
    •     Use oracle managed files as:+DBF press Next
    *•     Specify Flash Recovery Area as +FRA*
    *•     Enable archiving at +ARCH*
    *•     Choose Auto SGA as 55% of memory*
    *•     Leave else default and complete DB creation.*
    *•     Launch NetConfig and define Listener with default settings.* here i received the errors,.................
    Database ORCL2 is created with the following attributes:
    NAME: ORCL2
    SPFILE: +ARCH/ORCL2/spfileORCL2.ora
    URL: http://oraworld1:1158/em

    Strange, those messages are RMAN backup errors -- are you trying to backup the database?
    Or...if you selected "create starter database" it may be that dbca is not finding the backup files from the "demo" database.
    :p

  • 10g ASM on Logical Volumes vs. Raw devices and SAN Virtualization

    We are looking at setting up our standards for Oracle 10g non-rac systems. We are looking at the value of Oracle ASM in our environment.
    As per the official Oracle documentation, raw devices are preferred to using Logical Volumes when using ASM.
    From here: http://download.oracle.com/docs/cd/B19306_01/server.102/b15658/appa_aix.htm#sthr
    ef723
    "Note: Do not add logical volumes to Automatic Storage Management disk groups. Automatic Storage Management works best when you add raw disk devices to disk groups. If you are using Automatic Storage Management, then do not use LVM for striping. Automatic Storage Management implements striping and mirroring."
    Also, as per Metalink note 452924.1:
    "10) Avoid using a Logical Volume Manager (LVM) because an LVM would be redundant."
    The issue is: if we use raw disk devices presented to ASM, the disks don't show up as used in the unix/AIX system tools (i.e. smit, lspv, etc.). Hence, when looking for raw devices on the system to add to filesystems/volume groups/etc., it's highly possible that a UNIX admin will grab a raw device that is already in use by Oracle ASM.
    Additionally, we are using a an IBM DS8300 SAN with IBM SAN Volume Controller (SVC) in front of it. Hence, we already have storage virtualization and I/O balancing at the SAN/hardware level.
    I'm looking for a little clarification to the following questions, as my understanding of their responses seem to confict:
    QUESTION #1: Can anyone clarify/provide additional detail as to why Logical volumes are not preferred when using Oracle ASM? Does the argument still hold in a SAN Virtualized environment?
    QUESTION #2: Does virtualization at the software level (ASM) make sense in our environment? As we already have I/O balancing provided at the hardware level via our SVC, what do we gain by adding yet another level of I/O balancing at the ASM level? Or as in the
    arguments the Oracle documentation makes against using Lvm, is this an unnecessary redundant striping (double-striped or in our case triple-striped/plaid)?
    QUESTION #3: So does SAN Virtualization conflict or compliment the virtualization provided by ASM?

    After more research/discussions/SR's, I've come to the following conclusion.
    Basically, in an intelligent storage environment (i.e. SVC), you're not getting a 100% bang for the buck by using ASM. Which is the cat's meow in a commodity hardware/unintelligent storage environment.
    Using ASM in a SVC environment potentially wastes CPU cycles having ASM balance i/o that is already balanced on the backend (sure if you shuffle a deck of cards that are already shuffled you're not doing any harm, but if they're already shuffled - then why are you shuffling them again??).
    That being said, there may still be some value for using ASM from the standpoint of storage management for multiple instances on a server. For example, one could better minimize space wastage by being able to share a "pool" of storage between mulitiple instances, rather than having to manage space on an instance-by-instance (or filesystem by filesystem) level.
    Also, in the case of having a unfriendly OS where one is unable to dynamically grow a filesystem (i.e. database outage required), there would be a definite benefit provided by ASM in being able to dynamically allocate disks to the "pool". Of course, with most higher-end end systems, dynamic filesystem growth is pretty much a given.
    In the case of RAC, regardless of the backend, ASM with raw is a no-brainer.
    In the case of a standalone instance, it's a judgement call. My vote in the case of intelligent storage where one could dynamically grow filesystems, would be to keep ASM out of the picture.
    Your vote may be different....just make sure you're putting in a solution to a problem and not a solution that's looking for a problem(s).
    And there's the whole culture of IT thing as well (i.e. do your storage guys know what you're doing and vice versa).....which can destroy any technological solution, regardless of how great it is.

  • Need for multiple ASM disk groups on a SAN with RAID5??

    Hello all,
    I've successfully installed clusterware, and ASM on a 5 node system. I'm trying to use asmca (11Gr2 on RHEL5)....to configure the disk groups.
    I have a SAN, which actually was previously used for a 10G ASM RAC setup...so, reusing the candidate volumes that ASM has found.
    I had noticed on the previous incarnation....that several disk groups had been created, for example:
    ASMCMD> ls
    DATADG/
    INDEXDG/
    LOGDG1/
    LOGDG2/
    LOGDG3/
    LOGDG4/
    RECOVERYDG/
    Now....this is all on a SAN....which basically has two pools of drives set up each in a RAID5 configuration. Pool 1 contains ASM volumes named ASM1 - ASM32. Each of these logical volumes is about 65 GB.
    Pool #2...has ASM33 - ASM48 volumes....each of which is about 16GB in size.
    I used ASM33 from pool#2...by itself to contain my cluster voting disk and OCR.
    My question is....with this type setup...would doing so many disk groups as listed above really do any good for performance? I was thinking with all of this on a SAN, which logical volumes on top of a couple sets of RAID5 disks...the divisions on the disk group level with external redundancy would do anything?
    I was thinking of starting with about half of the ASM1-ASM31 'disks'...to create one large DATADG disk group, which would house all of the database instances data, indexes....etc. I'd keep the remaining large candidate disks as needed for later growth.
    I was going to start with the pool of the smaller disks (except the 1 already dedicated to cluster needs) to basically serve as a decently sized RECOVERYDG...to house logs, flashback area...etc. It appears this pool is separate from pool #1...so, possibly some speed benefits there.
    But really...is there any need to separate the diskgroups, based on a SAN with two pools of RAID5 logical volumes?
    If so, can someone give me some ideas why...links on this info...etc.
    Thank you in advance,
    cayenne

    The best practice is to use 2 disk groups, one for data and the other for the flash/fast recovery area. There really is no need to have a disk group for each type of file, in fact the more disks in a disk group (to a point I've seen) the better for performance and space management. However, there are times when multiple disk groups are appropriate (not saying this is one of them only FYI), such as backup/recovery and life cycle management. Typically you will still get benefit from double stripping, i.e. having a SAN with RAID groups presenting multiple LUNs to ASM, and then having ASM use those LUNs in disk groups. I saw this in my own testing. Start off with a minimum of 4 LUNs per disk group, and add in pairs as this will provide optimal performance (at least it did in my testing). You should also have a set of standard LUN sizes to present to ASM so things are consistent across your enterprise, the sizing is typically done based on your database size. For example:
    300GB LUN: database > 10TB
    150GB LUN: database 1TB to 10 TB
    50GB LUN: database < 1TB
    As databases grow beyond the threshold the larger LUNs are swapped in and the previous ones are swapped out. With thin provisioning it is a little different since you only need to resize the ASM LUNs. I'd also recommend having at least 2 of each standard sized LUNs ready to go in case you need space in an emergency. Even with capacity management you never know when something just consumes space too quickly.
    ASM is all about space savings, performance, and management :-).
    Hope this helps.

  • Difference between ASM Disk Group, ADVM Volume and ACFS File system

    Q1. What is the difference between an ASM Disk Group and an ADVM Volume ?
    To my mind, an ASM Disk Group is effectively a logical volume for Database files ( including FRA files ).
    11gR2 seems to have introduced the concepts of ADVM volumes and ACFS File Systems.
    An 11gR2 ASM Disk Group can contain :
    ASM Disks
    ADVM volumes
    ACFS file systems
    Q2. ADVM volumes appear to be dynamic volumes.
    However is this therefore not effectively layering a logical volume ( the ADVM volume ) beneath an ASM Disk Group ( conceptually a logical volume as well ) ?
    Worse still if you have left ASM Disk Group Redundancy to the hardware RAID / SAN level ( as Oracle recommend ), you could effectively have 3 layers of logical disk ? ( ASM on top of ADVM on top of RAID/SAN ) ?
    Q3. if it is 2 layers of logical disk ( i.e. ASM on top of ADVM ), what makes this better than 2 layers using a 3rd party volume manager ( eg ASM on top of 3rd party LVM ) - something Oracle encourages against ?
    Q4. ACFS File systems, seem to be clustered file systems for non database files including ORACLE_HOMEs, application exe's etc ( but NOT GRID_HOME, OS root, OCR's or Voting disks )
    Can you create / modify ACFS file systems using ASM.
    The oracle toplogy diagram for ASM in the 11gR2 ASM Admin guide, shows ACFS as part of ASM. I am not sure from this if ACFS is part of ASM or ASM sits on top of ACFS ?
    Q5. Connected to Q4. there seems to be a number of different ways, ACFS file systems can be created ? Which of the below are valid methods ?
    through ASM ?
    through native OS file system creation ?
    through OEM ?
    through acfsutil ?
    my head is exploding
    Any help and clarification greatly appreciated
    Jim

    Q1 - ADVM volume is a type of special file created in the ASM DG.  Once created, it creates a block device on the OS itself that can be used just like any other block device.  http://docs.oracle.com/cd/E16655_01/server.121/e17612/asmfilesystem.htm#OSTMG30000
    Q2 - the asm disk group is a disk group, not really a logical volume.  It combines attributes of both when used for database purposes, as the database and certain other applications know how to talk "ASM" protocol.  However, you won't find any general purpose applications that can do so.  In addition, some customers prefer to deal directly with file systems and volume devices, which ADVM is made to do.  In your way of thinking, you could have 3 layers of logical disk, but each of them provides different attributes and characteristics.  This is not a bad thing though, as each has a slightly different focus - os file system\device, database specific, and storage centric.
    Q3 - ADVM is specifically developed to extend the characteristics of ASM for use by general OS applications.  It understands the database performance characteristics and is tuned to work well in that situation.  Because it is developed in house, it takes advantage of the ASM design model.  Additionally, rather than having to contact multiple vendors for support, your support is limited to calling Oracle, a one-stop shop.
    Q4 - You can create and modify ACFS file systems using command line tools and ASMCA.  Creating and modifying logical volumes happens through SQL(ASM), asmcmd, and ASMCA.  EM can also be used for both items.  ACFS sits on top of ADVM, which is a file in an ASM disk group.  ACFS is aware of the characteristics of ASM\ADVM volumes, and tunes it's IO to make best use of those characteristics. 
    Q5 - several ways:
    1) Connect to ASM with SQL, use 'alter diskgroup add volume' as Mihael points out.  This creates an ADVM volume.  Then, format the volume using 'mkfs' (*nix) or acfsformat (windows).
    2) Use ASMCA - A gui to create a volume and format a file system.  Probably the easiest if your head is exploding.
    3) Use 'asmcmd' to create a volume, and 'mkfs' to format the ACFS file system.
    Here is information on ASMCA, with examples:
    http://docs.oracle.com/cd/E16655_01/server.121/e17612/asmca_acfs.htm#OSTMG94348
    Information on command line tools, with examples:
    Basic Steps to Manage Oracle ACFS Systems

  • New to ASM, need pointers

    Just took a new job. Shop has some of the DB's on ASM. This is the first time I've had to deal with it, so am starting my reading with the 2-Day DBA and the Admin Guide. Does anyone have any recommendations for other reading to get me up to speed.
    Believe it or not, my first project assignment is to actually migrate one of the systems (one dev and on prod db) off of ASM and back to OS file systems. ASM files include data and temp TS, redo logs, and control files.
    Just to keep things interesting, they are still using the old java client based db manager from pre-10g (though it is still included with the 10g installation). No dbcontrol, no Grid. That's all on my personal to-do list.

    EdStevens wrote:
    Just took a new job. Shop has some of the DB's on ASM. This is the first time I've had to deal with it, so am starting my reading with the 2-Day DBA and the Admin Guide. Does anyone have any recommendations for other reading to get me up to speed.Ed,
    ASM is not all that magical. The DB's interaction with disk is basically still raw disk, and ASM simply provides some metadata, such as "your block is on this spot of the disk" telling the various readers and the DBWR where to position the heads. That metadata is kept on the raw disk in a special area, and served up by a stripped down version of the Oracle DB kernel. The DB is a client to that ASM instance, and you see typical Server Processes on that ASM instance.
    The 11gR2 ASM manual at http://docs.oracle.com & http://tahiti.oracle.com is one of the better sources of info, and relevant to older versions once you read the "What's New" section. (http://www.oracle.com/pls/db112/portal.portal_db?selected=16&frame=#oracle_automatic_storage_management) I found the older versions of the docs aren't as good.
    But the best source for understanding ASM is the book "Oracle Automatic Storage Management: Under-the-Hood & Practical Deployment Guide (Oracle Press)" authored by Nitin Vengurlekar, Murali Vallath, and Rich Long. It contains actual words of wisdom by the creator of ASM.
    Since you are migrating off ASM, one word: RMAN. You can actually use RMAN to migrate one data file at a tme, if you wish. (For demo purposes, I've had a DB running with one tablespace using 3 data files - one in ASM, one on raw disk and one on cooked file system. Works, if you don't mind "ugly", but it makes an amusing demo.) Just avoid OMF. Some decent discussion in the docs at http://docs.oracle.com/cd/B19306_01/backup.102/b14191/dbxptrn.htm
    HTH
    /Hans
    (I'd be curious why they are moving off ASM, but that is probably a story for a different thread, perhaps over a beer. Going to Collborate? Chat offline if'n you want.)

  • Data Guard: db_file_name_convert/log_file_name_convert when using ASM/OMF

    All,
    I have a call currently open with Oracle regarding the setting of the parameters db_file_name_convert and log_file_name_convert in a data guard environment. We use ASM / OMF for storage and file naming and my question is basically do these parameters have to be set. The documentation says they do where the file structure is different between PRIMARY and STANDBY.
    I have successfully tested failover and switchover without these parameters. I have also added a new tablespace on the PRIMARY and watched it create a new OMF datafile on standby when the logs are switched.
    I just can't see a reason for setting them when using ASM / OMF.
    I'm hoping someone can enlighten me here because I'm getting nowhere whith support. The following is our Data Guard setup:
    PRIMARY
    DB_NAME=IBSLIVE
    DB_UNIQUE_NAME=IBSLIVE
    ASM Disk Groups:
    +PRODDATA (Data Files, Control Files, Redo Logs)
    +PRODFLASH (Archive Logs, Flashback Logs, RMAN backups)
    +PRODLOGS (Multiplexed Control & Redo Logs)
    STANDBY
    DB_NAME=IBSLIVE
    DB_UNIQUE_NAME=IBSDR
    ASM Disk Groups:
    +DRDATA (Data Files, Control Files, Redo Logs)
    +DRFLASH (Archive Logs, Flashback Logs, RMAN backups)
    +DRREDO (Multiplexed Control & Redo Logs)
    Many Thanks,
    Ian.

    Ian,
    I'm having similar thoughts.
    I have created a new instance with files in asm under +datadisk/obosact (this is the smae name as primary)
    I then modify the db_unique_name from obosact to obosactdr as is required for standby to work
    When I recover (duplicate target database for standby; ) I find that the files are in datadisk/obosactdr not in the datadisk/obosact area
    I found this reference http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10g_RACPrimaryRACPhysicalStandby.pdf
    4. Connect to the ASM instance on one standby host, and create a directory within the DATA disk group that has the same name as the DB_UNIQUE_NAME of the standby database. For example: SQL> ALTER DISKGROUP data ADD DIRECTORY '+DATA/BOSTON';
    This step seems to indicate that the location of the files is determined by the db_unique_name not the db_file_name_convert paramenter
    DId you ever resolve the issue?

  • ASM disks in RAC need to be shared disks?

    Hi all,
    sorry for the very basic question but I'm getting a lot of confusion...
    I have clusterware installed on node1 and node2 and I'm going to create ASM instances on both nodes.
    Does the ASM disks need to be physically shared among the two nodes?
    Many thanks for help
    aldo

    ...I've brutally tried both ways and found the answer. Yes the disks need to be physically shared
    aòdp

Maybe you are looking for