Creating ASM

Please, can someone put me through on how to create ASM disk groups?
I've tried it severally with the DBCA but I don't quite get it.
Actually, I want to create a Database that uses ASM. Incase, you want
to give me a link to read about ASM ... I've tried that.
All I need is the steps you used in creating yours, possibly.
Regards,
Cherish

ASM is a way of using plain raw disk partitions without having a file system on the partition.
Since you do not specify Operating System, I will lump you in with the traditional Windows user who generally does not specify operating system.
If you used Start > Settings > Administrative Tools > Computer Management > Storage > Disk Management, the disk must be visible to Windows, but NOT available as a C:, D:, E: (or any other) disk.
From that point on, there are three simple steps:
1) Answer the question: which direct accessed storage or raw logical volume or LUN are you using dedicated to ASM?
2) After that, you install the ASM software from the database installation disks. Put it into it's own ORACLE_HOME, select ASM installation, and tell it which disks from the above step that you reserved for ASM. This will present all available raw disks from step 1 to let yuo create a disk group.
3) Finally, from a database software ORACLE_HOME, run DBCA and tell it to use ASM as the storage for the database.

Similar Messages

  • Issue At the time of Creating ASM instance through DBCA For 11g RAC  db :

    Hi,
    I have configured two node RAC with OEL5.
    I have installed below software successfully under different home locations.
    1) Clusterware :
    2) ASM
    3) Database
    I want to run ASM instance under separate home but when i am executing dbca from ASM home location to create asm i am facing a problem which is not traceable by me. Please help me if any body has any idea on it.
    Problem:
    Sometime(displayed below) ASM instance is running from node 1 and some times from node 2. At a time ASM in both instance is not in online state. At the end dbca is displaying ORA-01034: ORACLE not available. Please let me know what may be the exact reason for this.
    1) State 1
    Name Type Target State Host
    ora....SM1.asm application ONLINE ONLINE mac1
    ora....C1.lsnr application ONLINE ONLINE mac1
    ora.mac1.gsd application ONLINE ONLINE mac1
    ora.mac1.ons application ONLINE ONLINE mac1
    ora.mac1.vip application ONLINE ONLINE mac1
    ora....SM2.asm application ONLINE OFFLINE
    ora....C2.lsnr application ONLINE ONLINE mac2
    ora.mac2.gsd application ONLINE ONLINE mac2
    ora.mac2.ons application ONLINE ONLINE mac2
    ora.mac2.vip application ONLINE ONLINE mac2
    2)Name Type Target State Host
    ora....SM1.asm application ONLINE OFFLINE
    ora....C1.lsnr application ONLINE ONLINE mac1
    ora.mac1.gsd application ONLINE ONLINE mac1
    ora.mac1.ons application ONLINE ONLINE mac1
    ora.mac1.vip application ONLINE ONLINE mac1
    ora....SM2.asm application ONLINE ONLINE mac2
    ora....C2.lsnr application ONLINE ONLINE mac2
    ora.mac2.gsd application ONLINE ONLINE mac2
    ora.mac2.ons application ONLINE ONLINE mac2
    ora.mac2.vip application ONLINE ONLINE mac2
    With Regards,
    SNP

    Yes you are right , I have to make to sure stock budget doesn't get credited.
    If you remember in one of my other threads, i wanted to derive commitment item from Matl grp, it was for this purpose. I will derive commitment through matl group at the time of procurement / GR etc and assign a dummy commitment item to stock a/cs. Where as i will derive a consumption commiment item from consumption GLs.
    Thank you
    Chris

  • Problem with create asm disk group

    Hi all
    I am about configuring ASM, so I have downloaded the Grid infrastructure 11g (32 bit), I have configured and created parameters and directories.
    I runned the installer but get stack at the 3 step where I have to change the discovery path. I have taped as path /dev where I have created 3 partitions sdb1, sdc1 and sdd1.
    Is there any thing should I perform on partitions may be or parameters to set before I go through the installation?
    Thanks for help

    You can use the below link to install ASMLIB:
    http://gssdba.wordpress.com/category/asm/
    REFERANCE : Doc ID 580153.1
    There are two different methods to configure ASM on Linux:
    ASM with ASMLib I/O: This method creates all Oracle database files on raw block devices managed by ASM using ASMLib calls. RAW devices are not required with this method as ASMLib works with block devices.
    ASM with Standard Linux I/O: This method creates all Oracle database files on raw character devices managed by ASM using standard Linux I/O system calls. You will be required to create RAW devices for all disk partitions used by ASM.
    You can download the ASMLIB rpm’s from below URL:
    http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html
    STEP 01: LOG IN AS ROOT USER AND INSTALL THE RPMS
    [root@node1 ASMLIB]# rpm -Uvh oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm \
    > oracleasmlib-2.0.4-1.el5.i386.rpm \
    > oracleasm-support-2.1.8-1.el5.i386.rpm
    warning: oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
    Preparing… ########################################### [100%]
    1:oracleasm-support ########################################### [ 33%]
    2:oracleasm-2.6.18-164.el########################################### [ 67%]
    3:oracleasmlib ########################################### [100%]
    STEP 02: CONFIGURE ASMLIB
    [root@node1 ASMLIB]# /etc/init.d/oracleasm configure
    Configuring the Oracle ASM library driver.
    This will configure the on-boot properties of the Oracle ASM library
    driver. The following questions will determine whether the driver is
    loaded on boot and what permissions it will have. The current values
    will be shown in brackets (‘[]‘). Hitting <ENTER> without typing an
    answer will keep that current value. Ctrl-C will abort.
    Default user to own the driver interface []: oracle
    Default group to own the driver interface []: dba
    Start Oracle ASM library driver on boot (y/n) [n]: y
    Scan for Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver: [ OK ]
    Scanning the system for Oracle ASMLib disks: [ OK ]
    STEP 03 :CREATE ASM DISK
    [root@node1 ASMLIB]# /etc/init.d/oracleasm listdisks
    [root@node1 ASMLIB]#
    [root@node1 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
    Marking disk “VOL1″ as an ASM disk: [ OK ]
    [root@node1 ~]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdc1
    Marking disk “VOL2″ as an ASM disk: [ OK ]
    [root@node1 ~]# /etc/init.d/oracleasm createdisk VOL3 /dev/sdd1
    Marking disk “VOL3″ as an ASM disk: [ OK ]
    [root@node1 ~]# /etc/init.d/oracleasm createdisk VOL4 /dev/sde1
    Marking disk “VOL4″ as an ASM disk: [ OK ]
    [root@node1 ~]# /etc/init.d/oracleasm createdisk VOL5 /dev/sdf1
    Marking disk “VOL5″ as an ASM disk: [ OK ]
    [root@node1 ~]# /etc/init.d/oracleasm listdisks
    VOL1
    VOL2
    VOL3
    VOL4
    VOL5
    [root@node1 ~]#

  • Unable to create ASM instance in Sol 10 with oracle 10g

    Hi
    I am trying to create ASM instance in oracle 10g, getting an error will try to add localconfig add command
    "bash-3.00# /export/home/oracle/oracle/product/10.2.0/db_1/bin/localconfig add reset
    Failure at scls_scr_create with code 1
    Internal Error Information:
    Category: 1234
    Operation: scls_scr_create
    Location: mkdir
    Other: Unable to make user dir
    Dep: 2
    Successfully accumulated necessary OCR keys.
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    Configuration for local CSS has been initialized
    Adding to inittab
    /etc/init.d/init.cssd: /var/opt/oracle/scls_scr/Sun/root/cssrun: cannot create
    Startup will be queued to init within 30 seconds.
    Checking the status of new Oracle init process...
    Expecting the CRS daemons to be up within 600 seconds.
    Giving up: Oracle CSS stack appears NOT to be running.
    Oracle CSS service would not start as installed
    Automatic Storage Management(ASM) cannot be used until Oracle CSS service is started "
    initcssd has been installed and unable to start also getting an error
    # svcs -x svc:/system/initcssd:default
    svc:/system/initcssd:default (system activity reporting package)
    State: maintenance since Wed Nov 16 10:39:29 2011
    Reason: Start method failed repeatedly, last exited with status 2.
    See: http://sun.com/msg/SMF-8000-KS
    See: sar(1M)
    See: /var/svc/log/system-initcssd:default.log
    Impact: This service is not running.
    Can some please help me to create this instance, alos need a initcssd.zip file for 10g

    Hi thanks,
    I have passed more steps, CSS is started after changing the hostname, after that I created two drive and mounted properly
    when I try to create a ASM disk its failing with following error and idea
    SQL> CREATE DISKGROUP DB_DATA NORMAL REDUNDANCY
    2 FAILGROUP controller1 DISK '/dev/dsk/c0d1s0'
    3 FAILGROUP controller2 DISK '/dev/dsk/c1d1s0';
    CREATE DISKGROUP DB_DATA NORMAL REDUNDANCY
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15031: disk specification '/dev/dsk/c1d1s0' matches no disks
    ORA-15025: could not open disk '/dev/dsk/c1d1s0'
    ORA-15056: additional error message
    Intel SVR4 UNIX Error: 13: Permission denied
    Additional information: 42
    Additional information: 134497888
    Additional information: -809278080
    ORA-15031: disk specification '/dev/dsk/c0d1s0' matches no disks
    ORA-15025: could not open disk '/dev/dsk/c0d1s0'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 25: Inappropriate ioctl for device
    Additional information: 16
    Additional information: 134497888
    Additional information: -809278080

  • Create ASM Disk Groups cannot see Disk Path to select during installation

    Hello Guys,
    I am setting up 2 node RAC on 11gR2 and Linux.
    I have configured all the pre-installation steps that are required to run Grid Setup as per my understanding.
    I have configure SAN partitions using multipath.
    I can see my SAN volume when i query multipath -l
    Then i configured the raw partitions by oracleasm. Configured and then created mount points:
    /dev/oracleasm/disks/
    CRSVOL1 DATAVOL1 FRAVOL1
    Later on I created the disks using oracle asm command:
    /usr/sbin/oracleasm createdisk CRSVOL1 /dev/mapper/racdbp1 and so on...
    I have run /usr/sbin/oracleasm scandisks
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    And when i list disk with command /usr/sbin/oracleasm listdisks
    it shows the disk like this on both nodes:
    CRSVOL1
    DATAVOL1
    FRAVOL1
    BUT during the installation screen when it comes to create ASM Disk Groups It shows nothing in the add disk frame, I cant select the volumes I can list, like i did above.
    Any hint please?
    Thanks, Imran

    Thanks but my problem is very specific. I feel that i have performed all the necessary steps to get complete the step i discussed above. As per different commands all is set. But i am unable to see Disks and Disks Paths during the installation screen. This is another output to verify if the installe user have rights on the asm devices:
    [grid@racnode1 mapper]$ cd /dev/oracleasm/disks/
    DATAVOL1 ETSCRS1 ETSVOT1 ETSVOT3 FRAVOL1
    ETSASM1 ETSCRS2 ETSVOT2 EXTRADM
    [grid@racnode1 mapper]$ cd /dev/oracleasm/disks/
    [grid@racnode1 disks]$ ls -ltr
    total 0
    brw-rw---- 1 grid asmadmin 8, 1 Oct 2 16:47 ETSASM1
    brw-rw---- 1 grid asmadmin 8, 5 Oct 2 16:47 DATAVOL1
    brw-rw---- 1 grid asmadmin 8, 6 Oct 2 16:47 FRAVOL1
    brw-rw---- 1 grid asmadmin 8, 7 Oct 2 16:47 ETSVOT1
    brw-rw---- 1 grid asmadmin 8, 8 Oct 2 16:47 ETSVOT2
    brw-rw---- 1 grid asmadmin 8, 9 Oct 2 16:47 ETSVOT3
    brw-rw---- 1 grid asmadmin 8, 10 Oct 2 16:47 ETSCRS1
    brw-rw---- 1 grid asmadmin 8, 11 Oct 2 16:47 ETSCRS2
    brw-rw---- 1 grid asmadmin 8, 13 Oct 2 16:47 EXTRADM
    I will appreciate if you can help me to get through this step... Is there anything else needs to be verified?
    Regards, Imran

  • Error in Creating ASM Diskgroups

    Hi,
    I am trying to create ASM instance and diskgroups on windows XP.
    but when i execute "Create diskgroup" command it gives me following error.
    SQL> create diskgroup test_asm normal redundancy
    2 failgroup controller1 disk 'F:\asmdisks\disk1','F:\asmdisks\disk2'
    3 failgroup controlled2 disk 'F:\asmdisks\disk3','F:\asmdisks\disk4';
    create diskgroup test_asm normal redundancy
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15031: disk specification 'F:\asmdisks\disk4' matches no disks
    ORA-15025: could not open disk 'F:\ASMDISKS\DISK4'
    ORA-15059: invalid device type for ASM disk
    OSD-04018: Unable to access the specified directory or device.
    O/S-Error: (OS 1200) The specified device name is invalid.
    ORA-15031: disk specification 'F:\asmdisks\disk3' matches no disks
    ORA-15025: could not open disk 'F:\ASMDISKS\DISK3'
    ORA-15059: invalid device type for ASM disk
    OSD-04018: Unable to access the specified directory or device.
    O/S-Error: (OS 1200) The specified device name is invalid.
    ORA-15031: disk specification 'F:\asmdisks\disk2' matches no disks
    ORA-15025: could not open disk 'F:\ASMDISKS\DISK2'
    ORA-15059: invalid device type for ASM disk
    OSD-04018: Unable to access the specified directory or device.
    O/S-Error: (OS 1200) The specified device name is invalid.
    ORA-15031: disk specification 'F:\asmdisks\disk1' matches no disks
    ORA-15025: could not open disk 'F:\ASMDISKS\DISK1'
    ORA-15059: inv
    The Create command and the init.ora parameter is as follows :
    SQL> create diskgroup test_asm normal redundancy
    2 failgroup controller1 disk 'F:\asmdisks\disk1','F:\asmdisks\disk2'
    3 failgroup controlled2 disk 'F:\asmdisks\disk3','F:\asmdisks\disk4';
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Diagnostics and Statistics
    background_dump_dest=E:\oracle\product\10.2.0\db_1\admin\+ASM\bdump
    core_dump_dest=E:\oracle\product\10.2.0\db_1\admin\+ASM\cdump
    user_dump_dest=E:\oracle\product\10.2.0\db_1\admin\+ASM\udump
    # Miscellaneous
    instance_type=asm
    # Pools
    large_pool_size=12M
    # Security and Auditing
    remote_login_passwordfile=SHARED
    asm_diskstring = 'F:\asmdisks\'
    SQL> show parameter asm
    NAME TYPE VALUE
    ----------- asm_diskgroups string
    asm_diskstring string F:\asmdisks\
    asm_power_limit integer 1
    SQL> select * from v$asm_disk;
    no rows selected

    Hi,
    is that specified disks (disk 1 to 4) are available in the path 'F:\asmdisks\ ' ???
    If ' yes' then what kind of DISK is that ?
    And add space between DISK1 F:\asmdisks\ (F:\asmdisks\ DISK) and try.
    Thanks,
    Ranjith
    Edited by: Ranjith on Mar 8, 2012 11:16 PM

  • Help while creating ASM instance on rac environment on Linux

    Help while creating ASM instance on rac environment on Oracle enterprise Linux 4 x84_64 Update 5 (10g2).
    a) Installed ASMLib 2.0 Packages
    b) Configured and Loaded the ASMLib 2.0 Packages
    c) Created ASM Disks for Oracle
    d) I can see, three volumes already defined for ASM file system.
    By running following command (on both node), I get following that means disk are detected.
    /etc/init.d/oracleasm listdisks
    VOL1
    VOL2
    VOL3
    But Disk members not displayed for creating disk groups. I even tried to "Change Disk Discovery Path" button and put "ORCL:VOL*" but still no luck.
    Someone told me use, use ADD DISKS button but this button is disabled for me.
    Can anyone, please help me if I missing something.

    *****SOLVED******
    Thanks for reply..
    I set the Change Disk Discovery Path" to /dev/oracleasm/disk/* instead of "ORCL:VOL* and this worked for me.

  • Unable to Create ASM Diskgroup ORA-15020 and ORA-15018

    Hello Team,
    Unable to create ASM diskgroup with following error:
    SQL> create diskgroup data_asm1 external redundancy disk '/dev/sdf*';
    create diskgroup data_asm1 external redundancy disk '/dev/sdf*'
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15020: discovered duplicate ASM disk "DATA_ASM1_0000"
    ASM Diskstring
    SQL> show parameter asm_diskstring
    NAME                                 TYPE        VALUE
    asm_diskstring                       string      /dev/oracleasm/disks/DISK*, /dev/sd*
    Please let me know how to i solve this issue
    Regards,

    Hi Tobi,
    I checked the status of the res GRID.dg ... it was offline on second node. Logged on second node and checked the status of it viz:v$asm_diskgroup, it was dismount. I mounted it and then try to add the newly added diskgroup(+GRID) with OCR and viola it worked....
    ========================================================
    ora.GRID.dg
                   ONLINE  ONLINE       rac3                                       
                   OFFLINE OFFLINE      rac4                                       
    SQL> select group_number,name,state,type from v$asm_diskgroup;
    GROUP_NUMBER NAME                           STATE       TYPE
               1 DATA                           MOUNTED     EXTERN
               0 GRID                           DISMOUNTED
    SQL> alter diskgroup grid mount;
    Diskgroup altered.
    SQL>  select group_number,name,state,type from v$asm_diskgroup;
    GROUP_NUMBER NAME                           STATE       TYPE
               1 DATA                           MOUNTED     EXTERN
               2 GRID                           MOUNTED     EXTERN
    ==============================================
    ora.GRID.dg
                   ONLINE  ONLINE       rac3                                       
                   ONLINE  ONLINE       rac4                                       
    ===============================================
    [root@rac3 bin]# ./ocrcheck
    Status of Oracle Cluster Registry is as follows :
             Version                  :          3
             Total space (kbytes)     :     262120
             Used space (kbytes)      :       2804
             Available space (kbytes) :     259316
             ID                       :   48011651
             Device/File Name         :      +DATA
                                        Device/File integrity check succeeded
             Device/File Name         :      +grid
                                        Device/File integrity check succeeded
                                        Device/File not configured
                                        Device/File not configured
                                        Device/File not configured
             Cluster registry integrity check succeeded
             Logical corruption check succeeded
    ==========================================================================================
    ASMCMD> lsdg
    State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
    MOUNTED  EXTERN  N         512   4096  1048576     20472    16263                0           16263              0             N  DATA/
    MOUNTED  EXTERN  N         512   4096  1048576      5114     4751                0            4751              0             N  GRID/
    ======================================================================================================
    Thank you very much, appreciated..
    Thank you Aritra .
    Guys you rock.
    Regards,

  • ORA-01034: ORACLE not available error while creating ASM or database

    Hi all,
    I am using oracle database 10gR2 on windows 2000 pro system.
    I have Installed oracle software and there was no issue with that but now I am facing ORA-01034: ORACLE not available error while trying to create asm instance or even while creating database through dbca.
    I have tried creating the asm instance manually and it was succeeded. Also database creation was successful through manual steps.
    Any idea guys?? How to resolve this issue??

    Hi FK,
    On Windows, it can sometimes mean that the services are not running. I have a check here:
    http://www.dba-oracle.com/t_check_verify_windows_services.htm
    Have you tried using oradim?
    http://www.dba-oracle.com/tips_oradim_utility.htm
    The oradim utility provides more than just the ability to start and stop Windows databases. Windows oradim can create and edit databases. It also allows DBAs to configure script-based installation mechanisms.
    The oradim utility is used on the Windows platform to perform these tasks.
    C:\oracle9i\bin\oradim -startup -sid ORCL92 –usrpwd manager
    -starttype SRVC,INST -pfile C:\oracle9i\admin\ORCL92\pfile\init.ora
    • startup – Indicates that the specified instance should be started.
    • sid – The SID of the database to start.
    • usrpwd – The password for the database user.
    • starttype – Specifies whether to start the instance, the service, or both
    Hope this helps. . .
    Don Burleson
    Oracle Press author

  • Can not find disks when creating ASM disk group (11.0.2.3 on OEL 6)

    Hi
    I`m trying to install 11.0.2.3 Grid on OEL6.
    Every thing is fine until it prompt to ask where I want to put OCR and VOTING DISK. I choose to put them in ASM. So it prompt another window to ask create ASM DISK GROUP.
    In this window there was an area called "add disk". There suppose to be some disks listed in this area to chose. But in my case, nothing here. I can not chose disks to add to ASM DISK GROUP.
    Below are descriptions of my installation.
    Oracle Grid 11.0.2.3
    OEL 6 as the platform.
    I use two nodes mounting the same NFS. I created some zero-padded files on the NFS directory as the ASM DISKS. (This disks should be showing the the area above)
    I install everything using only one account oracle. The group is oinstall and dba
    Edited by: Kramer on Jun 5, 2013 8:52 PM

    Well as i see your asm_diskstring could be the problem. ASMlib would have been there isnt it , I would want you to stick to default value and then try also I would suggest you to once post the output of the following and lets see whats happening
    [root@ora ~]# /etc/init.d/oracleasm scandisks
    [root@ora ~]# /etc/init.d/oracleasm listdisks
    [root@ora ~]# ls -ltr /dev/oracleasm/disks/*

  • Create Asm first or Db first?

    Hi guru ,
    I finish off create my 10gr2 db at my vmware@centos , i start to do some R&D on ASM on it , i manage to create it using raw-device , i wonder how to i link the existing 10g to this ASM instance ?
    Based on some of the article on OTN , internet i found out that most of the article is create ASM instance then follow by DB instance ?
    So is it i must create another db instance for this ??

    i do try to query rman user at dba_users but there is no such user exists ?? any idea on that ? by default there is no rman user in oracle,u have to create it if u want to manage oracle database with recovery catalog.
    but in ur case u don't need to create it .
    just connect rman with sys user.
    Rman is a utility.
    like
    Oracle>>rman target=/
    Recovery Manager: Release 8.1.6.0.0 - Production
    RMAN-06005: connected to target database: TEST (DBID=1784089182)
    RMAN>
    Thanks
    Kuljeet

  • Creating ASM instance on windows (manually)

    Hi all,
    Can anyone guide me steps how to create ASM instance (manually) on windows in Oracle 11g.
    Because i am missing local config fine in <ORACLE_HOME>/bin folder in 11g
    Regards,
    Vikas Kohli

    Hi,
    From ASM HOME (%ORACLE_HOME%)
    # To create a new config
    Windows
    %ORACLE_HOME%/bin/localconfig.bat add
    # To recreate config
    Windows
    %ORACLE_HOME%/bin/localconfig.bat  reset <ORACLE_HOME>Then using DBCA create/reconfigure ASM instance from ASM HOME.
    I assume you are using version Oracle 11.1, if it's 11.2 ignore all above.
    Hope this helps,
    Levi Pereira

  • ASM: cannot create asm disks - permission denied

    We cannot create ASM disks using the command:
    # /etc/init.d/oracleasm creatdisk ASMDISK1 /dev/mapper/mpathdp1
    Marking disk "ASMDISK1" as an ASM disk: [FAILED]
    The log (/var/log/oracleasm) has the following:
    Clearing disk header: done
    Disk "ASMDISK1" does not exist or is not instantiated
    Writing disk header: done
    Instantiating disk: oracleasm-instantiate-disk: Unable to create ASM disk "ASMDISK1": Permission denied
    failed
    Clearing disk header: done
    The command is being executed by the root user. Our environment is OEL6:
    [oracle@uxdbidbd1 mapper]$ uname -rm
    2.6.32-100.28.11.el6.x86_64 x86_64
    To install ASMLib we did the following:
    Installed the three packages:
    1.oracleasm-support-2.1.4-1.el5.x86_64.rpm
    2.oracleasmlib-2.0.4-1.el5.x86_64.rpm
    3.oracleasm-2.6.18-238.9.1.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
    [root@uxdbidbd1 ~]# modprobe oracleasm
    [root@uxdbidbd1 ~]# /etc/init.d/oracleasm configure
    Configuring the Oracle ASM library driver.
    This will configure the on-boot properties of the Oracle ASM library
    driver. The following questions will determine whether the driver is
    loaded on boot and what permissions it will have. The current values
    will be shown in brackets ('[]'). Hitting <ENTER> without typing an
    answer will keep that current value. Ctrl-C will abort.
    Default user to own the driver interface []: oracle
    Default group to own the driver interface []: oinstall
    Start Oracle ASM library driver on boot (y/n) [n]: y
    Scan for Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver: [  OK  ]
    Scanning the system for Oracle ASMLib disks: [  OK  ]
    [root@uxdbidbd1 ~]#
    [root@uxdbidbd1 ~]# /etc/init.d/oracleasm status
    Checking if ASM is loaded: yes
    Checking if /dev/oracleasm is mounted: yes
    Our SA partitioned the disk using fdisk:
    [root@uxdbidbd1 ~]# fdisk -l /dev/mapper/mpathd
    Disk /dev/mapper/mpathd: 52.4 GB, 52428800000 bytes
    255 heads, 63 sectors/track, 6374 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x4849251a
    Device Boot Start End Blocks Id System
    /dev/mapper/mpathdp1 1 6374 51199123+ 83 Linux
    Here are the owner/permissions:
    [oracle@uxdbidbd1 mapper]$ ls -al /dev/mapper/
    lrwxrwxrwx. 1 root root 7 Apr 22 14:58 mpathd -> ../dm-5
    brw-rw-r--. 1 oracle oinstall 253, 6 Apr 25 10:56 mpathdp1
    [oracle@uxdbidbd1 dev]$ ls -al /dev
    brw-rw----. 1 root disk 253, 5 Apr 22 15:45 dm-5
    drwxr-xr-x. 4 root root 0 Apr 22 14:58 oracleasm
    [oracle@uxdbidbd1 oracleasm]$ ls -al /dev/oracleasm
    total 0
    drwxr-xr-x. 4 root root 0 Apr 22 14:58 .
    drwxr-xr-x. 23 root root 7200 Apr 24 03:41 ..
    -rw-rw----. 1 oracle oinstall 0 Apr 22 14:58 .check_iid
    drwxr-xr-x. 1 root root 0 Apr 22 14:58 disks
    -rw-rw----. 1 oracle oinstall 0 Apr 22 14:58 .get_iid
    drwxrwx---. 1 oracle oinstall 0 Apr 22 14:58 iid
    -rw-rw----. 1 oracle oinstall 0 Apr 22 14:58 .query_disk
    -rw-rw----. 1 oracle oinstall 0 Apr 22 14:58 .query_version
    We ran an strace on the createdisk command that is failing and I noticed this in the output file:
    28830 mknod("/dev/oracleasm/disks/ASMDISK1", S_IFBLK|0600, makedev(253, 6)) = -1 EACCES (Permission denied)
    28830 write(2, "oracleasm-instantiate-disk: ", 28) = 28
    28830 write(2, "Unable to create ASM disk \"ASMDI"..., 56) = 56
    We changed /dev/oracleasm/disks to 777 in order to test but we got the same result. Do we need to adjust the permissions to all of the parent directories in the path (/dev/oracleasm/disks)? I've been looking around for anything related to permissions on /dev/oracleasm but the docs don't mention anything. Any help would be greatly appreciated.

    From what I understand, you should not set device permissions of /dev/oracleasm since oracleasm takes care of it according to /etc/init.d/oracleasm configure.
    The problem in your case seems to be that ASM refuses to initialize and write metadata to your device. Was the device previously used by ASM? ASM will fail to initialize a device that contains previous ASM metadata. To erase the device you will need to use the dd command, e.g. dd if=/dev/zero of=/dev/sdb. Both ASMLib and raw devices require the candidate disks to be partitioned before they can be accessed. To create a partition on /dev/sdb, for instance, type fdisk /dev/sdb and create a standard partition using the defaults. This will create /dev/sdb1 and you can try oracleasm createdisk again.
    You may try the above, but anyway, I was not sure how much you can trust your installation. The problem could also be that you installed the oracleasm kernel driver and asmlib software for OEL 5. Oracle Linux 6 includes an oracleasm kernel driver and as far as I remember you must not install another oracleasm kernel driver. Using modprob oracleasm and installing oracleasm support package using yum should do the trick. You may also need to download and install the asmlib package for the Oracle ASM grid install to see the ASM disks.

  • Creating ASM for test purpose

    hi all,
    I am trying to setup ASM for test purpose on winxp with oracle 10g release 1.
    I have created asm instance with
    oradim -NEW -ASMSID +ASM -STARTMODE auto
    and my pfile located in E:\oracle\product\10.1.0\Db_1\database looks like.
    INSTANCE_TYPE=ASM
    ASMALLOW_ONLY_RAW_DISKS = FALSE
    DB_UNIQUE_NAME = +ASM
    ASM_DISKSTRING ='E:\asmdisks\*'
    LARGE_POOL_SIZE = 16M
    BACKGROUND_DUMP_DEST ='E:\oracle\product\10.1.0\admin\+ASM\bdump'
    USER_DUMP_DEST = 'E:\oracle\product\10.1.0\admin\+ASM\udump'
    CORE_DUMP_DEST = 'E:\oracle\product\10.1.0\admin\+ASM\cdump'
    I have created 3 disks with following commands
    asmtool -create e:\asmdisks\disk1 512
    asmtool -create e:\asmdisks\disk2 512
    asmtool -create e:\asmdisks\disk3 512
    now when i do
    SET ORACLE_SID=+ASM
    and
    sqlplus / as sysdba
    I get
    SQL> select path, mount_status from v$asm_disk;
    no row selected.
    and for obvious reasons I get following message
    SQL> create diskgroup data external redundancy disk
    2 'E:\asmdisks\disk1';
    create diskgroup data external redundancy disk
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15031: disk specification 'E:\asmdisks\disk1' matches no disks
    ORA-15025: could not open disk 'E:\ASMDISKS\DISK1'
    ORA-15059: invalid device type for ASM disk
    OSD-04018: Unable to access the specified directory or device.
    O/S-Error: (OS 1200) The specified device name is invalid.
    Please guide me..I am very new to ASM .

    Hi all,
    my problem got resolved.
    I have created same fake disks by asmtool and the created diskgroups by "create diskgroup.. " then I was able to see the diks in v$asm_disk view..
    I have successfully migrated my database to ASM if u have any questions do mail me @ [email protected].

  • Trying to create ASM instance, thinks one already exists?

    I've got a problem with creating the ASM instance. Basically, I've reinstalled (v11.1.0.6) clusterware, and two database software installs (one for asm, one for db) due to a san swap. Now, I believe that there is still a hangover to the original installation. When creating the ASM instance through DBCA on Windows, I get the following:
    DBCA could not startup the ASM instance configured on this node. To proceed with ASM diskgroup management you need the ASM instance to be up and running. Do you want to recreate the ASM instance on this node?
    Yes
    Enter password
    DBCA will now create and start the ASM instance. After the ASM instance is started, you can create disk groups to be used as storage for your database.
    OK
    ASM Instance Creation...
    Encountered file error when copying listeners from home=D:\oracle\product\11.1.0\asm_2
    OK
    The operation will be stopped. Re-run DBCA after successfully running NetCA.
    I have a listener running (listener_rac), I have a similar problem with netca as it says I already have a listener called listener, which I do not, however, I have created listener_rac instead.
    I feel trhat the problem is that ASM1 (for node 1) or ASM2 (for node 2) already exists. However, I can not find either of these. I can create an ASM instance in single node mode, however, this creates an instance +ASM, which does not conflict.
    How do I find the non-existent instance, and remove it? (not in registry or services)
    Alternatively, any other ideas as to what is happening?
    Thank you for your time.

    I have a listener running (listener_rac), I have a similar problem with netca as it says I already have a listener called listener, which I do not, however, I have created listener_rac insteadDBCA created your listener... you can check on listener status
    srvctl status nodeapps  -n node01
    Listener is running on node: node01
    srvctl status nodeapps  -n node02
    Listener is running on node: node02
    if not start, start it by
    Usage: srvctl start listener -n <node_name> [-l <lsnr_name_list>]
    srvctl start listener  -n node01
    by the way, you cam use "netca" delete/recreate (listener_rac)
    After that, point to ASM:
    I feel trhat the problem is that ASM1 (for node 1) or ASM2 (for node 2) already exists. However, I can not find either of these. What did you see?
    crs_stat
    srvctl status asm -n node01
    srvctl status asm -n node02
    if you see asm on node01/node2... you can start them if thet offline
    srvctl start asm -n node01
    srvctl start asm -n node02
    and then.. use "DBCA" to help create ASM diskgroups.
    I can create an ASM instance in single node mode, however, this creates an instance +ASM, which does not conflict.that can conflict.. don't start it (+ASM)
    How do I find the non-existent instance, and remove it? (not in registry or services)
    Alternatively, any other ideas as to what is happening?use "crs_stat" command
    http://download.oracle.com/docs/cd/B28359_01/rac.111/b28255/crsref.htm#CWADD6025
    and use "srvctl"
    http://download.oracle.com/docs/cd/B28359_01/rac.111/b28254/srvctladmin.htm#RACAD028

Maybe you are looking for

  • Finder window behaviour

    Since installing Lion the finder windows seem to have an odd (and annoying) behaviour. The focus suddenly switches to the top of the window when scrolling to inspect the files. This is particularly problematic in List mode, there was a similar proble

  • Download query SQ01 SQ02 RSAQR3TR

    Hi. I'm trying to download a query however in this version is not longer possible, I'm ussing the report RSAQR3TR in versión 6.0. Is there any way to download it???

  • Need to determine which partner function level is pulling in the currency (

    need to determine which partner function level is pulling in the currency (sold to, ship to , bill to or payer)on sales invoices Also I my requirement is to have different currency based on different ship to party for same sold to..then how set up th

  • Ipad 2 has no sim card tray!

    i don't see sim card tray in ipad 2 model A1397. can apple replace it?  i bought it on apple online store! may i ask for replace online? there isn't any retail stores around

  • I need an example of useBean...

    No matter what I do I can't seem to get a page to compile that uses useBean and a bean class, so could someone please post a working example.