Access ASM instance remotely

Hi,
In a 2 nodes RAC environment, each ASM instance has its own HOME directory.
I was wondering wether it was possible to access the ASM instance remotely via SQLPLUS session or from a remote client (Toad, etc.)
I have seen the note 340277.1 and tried to configure listener and tnsnames for a remote connection but I still get the error : "ORA-12528: TNS:listener: all appropriate instances are blocking new connections".
Thanks for help
Bertrand

There is a known bug in TOAD. One of my colleagues found it on the TOAD support site. I am not sure what version it is fixed in.
I downloaded SQL*Developer, and used that with success.
Jeff
Message was edited by:
jefcen

Similar Messages

  • Accessing an ASM Instance via OEM

    Gaining access to an ASM-managed database instance via Enterprise manager is done in the same way as accessing a "normal" RDBMS database: http://<host>:<port>/em/
    Is it also possible to access the ASM instance itself via the OEM? If so, what's the typical URL/port for access?
    I have not seen this documented, and I wonder if it's possible to access the ASM instance via OEM after all, or can you view/manage ASM instance information only via SQL statements.
    Thank you.
    John

    That makes perfect sense... nufortunately, I'm sitll confused. I just found a series of screen shots that explicitly say "Database Control", and the home page shows the "+asm" link I mentioned in my earlier post. What's more: these screen shots are directly from Oracle! Their "Oracle By Example" series has an entry called "Creating and Managing ASM Disk Groups", and the section called "Viewing Disk Groups" has a series of shots that clearly shows first an ASM-managed instance, and then the ASM instance itself, being directly managed by Database Control.
    I wish someone from Oracle, or someone who has seen this in action, would chime in and let us know how it works!
    Thanks.

  • Oracle instance unable to access ASM

    Hi,
    I implemented Oracle RAC One Node (11.2.0.1) on RHE 5 on two nodes rac1 and rac2.
    My problem is Omotion utility is not working when I use it to migrate the instance ron_1 from rac1 to rac2
    [oracle@rac1 bin]$ ./Omotion -v
    RAC One Node databases on this cluster:
    #      Database                    Server                      Fix Required
    ===     ========        ==============================          ============
    [1]          ron                                  rac1                N
    Enter number of the database to migrate [1]: 1
    Specify maximum time in minutes for migration to complete (max 30) [30]:
    ron Database is administrator managed .
    ron database is running in ron server pool.
    Current Running instance: ron_1
    Current Active Server       : rac1
    Available Target Server(s) :
    #            Server            Available
    ===     ==================      =========
    [1]                   rac2          Y
    Enter number of the target node [1]: 1
    Omotion Started...
    Starting target instance on rac2...
    Error num: 2
    ERROR: Unable to start the new instance of ron on rac2.
    Run raconefix and run Omotion again.
    Exiting...In an attempt to know the reason, I tried creating the instance manually in rac2 node and following is what I got:
    [oracle@rac2 ~]$ export ORACLE_SID=ron_1
    [oracle@rac2 ~]$ sqlplus /nolog
    SQL*Plus: Release 11.2.0.1.0 Production on Mon Jan 31 20:06:23 2011
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> startup mount
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file '+DGDATA/ron/spfileron.ora'
    ORA-17503: ksfdopn:2 Failed to open file +DGDATA/ron/spfileron.ora
    ORA-01034: ORACLE not available
    ORA-27123: unable to attach to shared memory segment
    Linux Error: 13: Permission denied
    Additional information: 98305
    Additional information: 10It seems the oracle database instance in rac2 is unable to access ASM.
    [oracle@rac2 ~]$ id
    uid=502(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),504(asmadmin),506(asmdba)
    [oracle@rac2 ~]$ su grid -c "oracleasm configure"
    Password:
    ORACLEASM_ENABLED=true
    ORACLEASM_UID=grid
    ORACLEASM_GID=asmadmin
    ORACLEASM_SCANBOOT=true
    ORACLEASM_SCANORDER=""
    ORACLEASM_SCANEXCLUDE=""Any hint is appreciated.

    ahb72 wrote:
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file '+DGDATA/ron/spfileron.ora'
    ORA-17503: ksfdopn:2 Failed to open file +DGDATA/ron/spfileron.ora
    ORA-01034: ORACLE not available
    ORA-27123: unable to attach to shared memory segment
    Linux Error: 13: Permission deniedThe bottom error in the error stack usually points to the root cause of the problem. In this case, the o/s is refusing permission to a kernel call made by the Oracle s/w stack. The top call says it was trying to read the service parameter files. The bottom error says the o/s refused.
    This could be related to a number things. Unable to create a shared memory segment. Attempting to attach to a shared memory segment owned by someone else. Not being able to open or read/write to a specific disk device (such as the spfile). Etc.
    Isolate the problem by starting each of the s/w layers manually and independently. First starts CRS. Make sure its running fine. Starts ASM (assuming this was not started by CRS for mounting the OCR and voting volumes). Make sure ASM works and that the diskgroups are successfully mounted. Check that the spfile and control files for the RAC instance exist. Start the RAC instance.
    Each of these layers have their own set of log and trace files that should highlight any problems that the layer has in starting and running.

  • How does 1 ASM instance in a 10 node RAC cause all 10 ASM instance to hang

    Linux RHEL4
    11.2.0.1.0 GI
    11.2.0.1.0 RDBMS
    11.1.0.7.0 RDBMS
    10.2.0.4.4 RDBMS
    Yesterday we had one of the ASM instance on our 10-node cluster hang with a latch "ASM file allocation latch". Oracle support has stated we are hitting a bug with is fixed in the latest PSU.
    What I am trying to understand is how a latch on one ASM instance caused all 10 ASM instances to hang?
    Oracle Supports explanation still does not answer how all 10 ASM instance were affected other then the faulty code that the patch fixes. Bellow is info out of the SAR.
    Data Guard Site:
    ================
    ARC1 PID 21508 reports ORA-240 'control file enqueue held for more than 120 seconds' at Thu Oct 28 11:35:54 2010. This message means ARC1 PID 21508 was holding the enqueue past the maximum tine limit of 120 seconds.
    Next ARC0 PID 17398 reports ORA-16146: 'control file enqueue unavailable' at Thu Oct 28 11:36:52 2010. This means ARC0 PID 17398 tried to access the controlfile and it could get the lock.
    ARC1 PID 21508 is then killed at Thu Oct 28 11:49:57 2010.
    Killing enqueue blocker (pid=21508) on resource CF-00000000-00000000 by (pid=23078) by killing session 5.3
    We see that RSM has been restarted by Broker. This matches to the alert.log and messages showing RSM being restarted several time. i.e. RSM0 started with pid=84, OS id=27915
    Since this started happening around 11:14, the problem may have really started then instead of w/ the CF enqueue block.
    The primary appears to be shipping redo to the standby using asynchronous mode. Unless there was a gap, I do no know if ARC1 should have been doing any remote network I/O. Because a log switch to thread 1 sequence 5235 had just happened at 11:33am, I suspect it was a local disk I/O that was started at least. The ORA-240 is reported at 11:35, exactly 120 sec (or 2min) from this log switch. Notice also the entry to show the log thread 1 sequence 5234 was registered to the controlfile didn't happen yet.
    ASM Side:
    ============
    From the systemstate dump on ASM, multiple processes are waiting on 'ASM file allocation latch' and we are kind of stuck on stack:
    ksedsts()+461<-ksdxfstk()+32<-ksdxcb()+1782<-sspuser()+112<-0000003218E0C5B0<-kfuhInsert()+175<-kffilCreate()+601<-kfnsUFG()+3691<-kfnsBackground()+4382<-kfnDispatch()+527<-opiodr()+1149<-ttcpip()+1251<-opitsk()+1633<-opiino()+958<-opiodr()+1149<-opidrv()+570<-sou2o()+103<-opimai_real()+133<-ssthrdmain()+214<-main()+201<-__libc_start_main()+219
    This caused the hang on the ASM side and hence ASM was not responding to the database. The CF Enqueue issue on the database was a side effect of this.
    This is a direct <BUG:9232266> which is a duplicate of <BUG:8974548>

    Thanks Murali,
    I was little reluctent to open a tar since my experince says that its better to troubleshoot the issue yourself instead of spending time with the Oracle support :)
    Well, I got some more information on this : the sql for the process id of ASM instance is :
    Alter Diskgroup mount all;
    It looks like it is unable to mount the diskgroup and get hunged at that point , is it due to the new disk added to the system or do we missed something after adding the new disk.
    Also, the ASM process can not be killed from unix box while the ASM is down.
    Will appreciate your time if we can move in any directions from here ..
    Thanks ,
    Ankur

  • ASM instance on one node can not startup

    use dbca create database failure
    [oracle@rac1 ~]$ dbca -silent -responseFile /home/oracle/dbca.rsp
    Look at the log file "/opt/ora/product/10.2.0/db_1/cfgtoollogs/dbca/mydb.log" for further details.
    [oracle@rac1 ~]$ cat "/opt/ora/product/10.2.0/db_1/cfgtoollogs/dbca/mydb.log"
    PRKS-1009 : Failed to start ASM instance "+ASM2" on node "rac2", [CRS-0215: Could not start resource 'ora.rac2.ASM2.asm'.]
    ORA-03135: connection lost contact
    [oracle@rac2 bin]$ ./crs_stat -t
    Name           Type           Target    State     Host
    ora....SM1.asm application    ONLINE    ONLINE    rac1
    ora....C1.lsnr application    ONLINE    ONLINE    rac1
    ora.rac1.gsd   application    ONLINE    ONLINE    rac1
    ora.rac1.ons   application    ONLINE    ONLINE    rac1
    ora.rac1.vip   application    ONLINE    ONLINE    rac1
    ora....SM2.asm application    ONLINE    OFFLINE
    ora....C2.lsnr application    ONLINE    ONLINE    rac2
    ora.rac2.gsd   application    ONLINE    ONLINE    rac2
    ora.rac2.ons   application    ONLINE    ONLINE    rac2
    ora.rac2.vip   application    ONLINE    ONLINE    rac2so i try to start asm instance on rac2
    [oracle@rac2 bin]$ ./srvctl start asm -n rac2
    PRKS-1009 : Failed to start ASM instance "+ASM2" on node "rac2", [PRKS-1009 : Failed to start ASM instance "+ASM2" on node "rac2", [rac2:ora.rac2.ASM2.asm:
    rac2:ora.rac2.ASM2.asm:SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jul 25 17:58:21 2011
    rac2:ora.rac2.ASM2.asm:
    rac2:ora.rac2.ASM2.asm:Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    rac2:ora.rac2.ASM2.asm:
    rac2:ora.rac2.ASM2.asm:Enter user-name: Connected to an idle instance.
    rac2:ora.rac2.ASM2.asm:
    rac2:ora.rac2.ASM2.asm:SQL> ORA-03113: end-of-file on communication channel
    rac2:ora.rac2.ASM2.asm:SQL> Disconnected
    rac2:ora.rac2.ASM2.asm:
    CRS-0215: Could not start resource 'ora.rac2.ASM2.asm'.]]
      [PRKS-1009 : Failed to start ASM instance "+ASM2" on node "rac2", [rac2:ora.rac2.ASM2.asm:
    rac2:ora.rac2.ASM2.asm:SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jul 25 17:58:21 2011
    rac2:ora.rac2.ASM2.asm:
    rac2:ora.rac2.ASM2.asm:Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    rac2:ora.rac2.ASM2.asm:
    rac2:ora.rac2.ASM2.asm:Enter user-name: Connected to an idle instance.
    rac2:ora.rac2.ASM2.asm:
    rac2:ora.rac2.ASM2.asm:SQL> ORA-03113: end-of-file on communication channel
    rac2:ora.rac2.ASM2.asm:SQL> Disconnected
    rac2:ora.rac2.ASM2.asm:check the alert log find
    Mon Jul 25 17:58:23 2011
    Maximum Tranmission Unit (mtu) of the ether adapter is different
    on the node running instance 1, and this node.
    Ether adapters connecting the cluster nodes must be configured
    with identical mtu on all the nodes, for Oracle.
    Please ensure the mtu attribute of the ether adapter on all
    nodes are identical, before running Oracle.
    Mon Jul 25 17:58:23 2011
    Errors in file /opt/ora/admin/+ASM/bdump/+asm2_lmon_29711.trc:
    ORA-27550: Target ID protocol check failed. tid vers=%d, type=%d, remote instance number=%d, local instance number=%d
    LMON: terminating instance due to error 27550
    Mon Jul 25 17:58:25 2011
    Shutting down instance (abort)
    License high water mark = 0
    Mon Jul 25 17:58:28 2011
    Instance terminated by LMON, pid = 29711
    Mon Jul 25 17:58:30 2011
    Instance terminated by USER, pid = 29831and i checked my eth
    [root@rac1 oracle]# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 00:0C:29:3C:42:0C
              inet addr:192.168.40.102  Bcast:192.168.40.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:9762 errors:0 dropped:0 overruns:0 frame:0
              TX packets:6028 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1193646 (1.1 MiB)  TX bytes:1037252 (1012.9 KiB)
              Interrupt:67 Base address:0x2400
    eth0:1    Link encap:Ethernet  HWaddr 00:0C:29:3C:42:0C
              inet addr:192.168.40.201  Bcast:192.168.40.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Interrupt:67 Base address:0x2400
    eth1      Link encap:Ethernet  HWaddr 00:0C:29:3C:42:16
              inet addr:10.10.17.221  Bcast:10.10.17.225  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:30185 errors:0 dropped:0 overruns:0 frame:0
              TX packets:37936 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:19988844 (19.0 MiB)  TX bytes:35126056 (33.4 MiB)
              Interrupt:51 Base address:0x2480
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:52537 errors:0 dropped:0 overruns:0 frame:0
              TX packets:52537 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:4380651 (4.1 MiB)  TX bytes:4380651 (4.1 MiB)
    [root@rac2 ~]# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 00:0C:29:9C:CC:90
              inet addr:192.168.40.103  Bcast:192.168.40.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:3665 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1489 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:563952 (550.7 KiB)  TX bytes:243127 (237.4 KiB)
              Interrupt:67 Base address:0x2400
    eth0:1    Link encap:Ethernet  HWaddr 00:0C:29:9C:CC:90
              inet addr:192.168.40.202  Bcast:192.168.40.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              Interrupt:67 Base address:0x2400
    eth1      Link encap:Ethernet  HWaddr 00:0C:29:9C:CC:9A
              inet addr:10.10.17.222  Bcast:10.10.17.225  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:38281 errors:0 dropped:0 overruns:0 frame:0
              TX packets:29683 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:35182270 (33.5 MiB)  TX bytes:19905266 (18.9 MiB)
              Interrupt:51 Base address:0x2480
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:44387 errors:0 dropped:0 overruns:0 frame:0
              TX packets:44387 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:2299383 (2.1 MiB)  TX bytes:2299383 (2.1 MiB)any idea ?
    i try to run dbca on rac2 ,it seems OK
    ============
    ASM instance still have problem,no ASM instance create in rac1
    [oracle@rac2 bin]$ ./crs_stat -t
    Name           Type           Target    State     Host
    ora.mydb.db    application    ONLINE    ONLINE    rac1
    ora....b1.inst application    ONLINE    OFFLINE
    ora....b2.inst application    ONLINE    ONLINE    rac2
    ora....SM1.asm application    ONLINE    OFFLINE
    ora....C1.lsnr application    ONLINE    ONLINE    rac1
    ora....C2.lsnr application    ONLINE    OFFLINE              =>  ora.rac1.LISTENER_RAC2.lsnr   (i do not know where this resource come from ??)
    ora.rac1.gsd   application    ONLINE    ONLINE    rac1
    ora.rac1.ons   application    ONLINE    ONLINE    rac1
    ora.rac1.vip   application    ONLINE    ONLINE    rac1
    ora....SM2.asm application    ONLINE    ONLINE    rac2
    ora....C2.lsnr application    ONLINE    ONLINE    rac2
    ora.rac2.gsd   application    ONLINE    ONLINE    rac2
    ora.rac2.ons   application    ONLINE    ONLINE    rac2
    ora.rac2.vip   application    ONLINE    ONLINE    rac2and here is my dbca.rsp file content
    [GENERAL]
    RESPONSEFILE_VERSION = "10.0.0"
    OPERATION_TYPE = "createDatabase"
    [CREATEDATABASE]
    GDBNAME = "mydb.us.oracle.com"
    SID = "mydb"
    NODELIST=rac1,rac2
    TEMPLATENAME = "/home/oracle/mydb.dbc"
    SYSPASSWORD = "Myss123456"
    SYSTEMPASSWORD = "Myss123456"
    EMCONFIGURATION = "NONE"
    DBSNMPPASSWORD = "Myss123456"
    STORAGETYPE=ASM
    DISKLIST=/dev/oracleasm/disks/VOL1,/dev/oracleasm/disks/VOL2
    DISKGROUPNAME=ORADG
    REDUNDANCY=EXTRENAL
    DISKSTRING="/dev/oracleasm/disks/*"
    ASM_SYS_PASSWORD="Myss123456"
    LISTENERS = "listener1 listener2"Edited by: 859340 on 2011-7-24 下午7:23
    Edited by: 859340 on 2011-7-24 下午7:32
    Edited by: 859340 on 2011-7-24 下午7:35
    Edited by: 859340 on 2011-7-24 下午7:51

    Hi,
    Use this tech note on MOS.
    *Instance Crash on startup with ORA-27550: Target ID protocol check failed [ID 730516.1]*
    Regards,
    Levi Pereira

  • How to clean the asm instance from RAC manually

    for some reason i run crs_unregister asm and crs_unregister lsnr to remove the asm and listener resource from crs yesterday
    and today i want rebuild the asm instance ,so i run dbca again ,but error
    Error when starting ASM instance on node rac1: PRKS-1009 : Failed to start ASM instance "+ASM1" on node "rac1", [PRKS-1011 : Failed to check status of ASM instance "+ASM1" on node "rac1", [CRS-0210: Could not find resource ora.rac1.ASM1.asm.]]
    [PRKS-1011 : Failed to check status of ASM instance "+ASM1" on node "rac1", [CRS-0210: Could not find resource ora.rac1.ASM1.asm.]]
    DBCA could not startup the ASM instance on node: rac1. Manual intervention is required to recreate these instances. If you choose to proceed, ASM diskgroups will not be mounted on non-started remote ASM instances. Do you want to proceed with ASM diskgroup management?
    and problem is how to do this "Manual intervention is required to recreate these instances", I already do 1, dd the asm disk, 2, remove the +ASM directory from $ORACLE_BASE, 3,clean ASM info from /etc/oratab, so what i can do next ?
    i try restart crs ,now the error info is different !!
    [oracle@rac1 ~]$ dbca -silent -responseFile /home/oracle/dbca.rsp
    Look at the log file "/opt/ora/product/10.2.0/db_1/cfgtoollogs/dbca/silent6.log"
    for further details.
    [oracle@rac1 ~]$ cat /opt/ora/product/10.2.0/db_1/cfgtoollogs/dbca/silent6.log
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENER_+ASM1'
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENER_+ASM1'
    Edited by: 859340 on 2011-7-8 下午11:01

    Hi,
    Can you post the dbca log?
    and do you share the asm home with oracle home? if it is separated then add LISTENER_+ASM1 in tnsnames in ASMHOME, otherwise add it in ORACLEHOME
    Cheers

  • ORA-15077: could not locate ASM instance serving a required diskgroup

    My cluster is gone...
    due to restart of the network, the cluster fenced node2 from my configuration. Since the evicting, the cluster is not starting any more.
    ocrcheck
    PROT-602: Failed to retrieve data from the cluster registry
    PROC-26: Error while accessing the physical storage
    ORA-15077: could not locate ASM instance serving a required diskgroup
    The OCR Disks are within ASM.
    Oracleasm does see the disks
    crsctl query css votedisk is also giving the correct information about the votingsdisks which are also in the same OCR diskgroup
    crsctl query css votedisk
    ## STATE File Universal Id File Name Disk group
    1. ONLINE 0eb6aaa85e5c4fd6bf9d0481cfd7d517 (ORCL:VOTE1) [OCR]
    2. ONLINE 5a66449fbada4f34bf0c3be4574f03bc (ORCL:VOTE2) [OCR]
    3. ONLINE 76ad295ebc054f07bfea124fb08da432 (ORCL:VOTE3) [OCR]
    Located 3 voting disk(s).
    Any ideas why the cluster is not starting anymore ? I am afraid of restarting node 1...
    chris

    Really would help to know what operating system you are using...
    When you set up the disks for use with ASM, did you stamp them with ASMLIB? If not, did you configure device persistance with udev? Without using one of these methods, the disk identification can change when a node is restarted, and ASM is then unable to locate the disks.

  • Unable to recreate ASM instance in 10g rac (2 node )

    Hi,
    I have successfully installed the clusterware and database software.during ASM installation it got failed, i i have cleaned up ASM setup.
    Now i am not able to create asm instance it show following message
    PRKS-1011:Failed to check status of ASM instance "+ASM1" on node "rac1",[
    CRS-0210:Could not find resource ora.rac1.ASM1.asm
    here are few output of commands and activity done
    [oracle@rac1 ~]$ crs_stat -t
    Name Type Target State Host
    ora....C1.lsnr application ONLINE ONLINE rac1
    ora.rac1.gsd application ONLINE ONLINE rac1
    ora.rac1.ons application ONLINE ONLINE rac1
    ora.rac1.vip application ONLINE ONLINE rac1
    ora....C2.lsnr application ONLINE ONLINE rac2
    ora.rac2.gsd application ONLINE ONLINE rac2
    ora.rac2.ons application ONLINE ONLINE rac2
    ora.rac2.vip application ONLINE ONLINE rac2
    [oracle@rac1 ~]$
    [oracle@rac1 ~]$ crs_profile -validate ora.rac1.ASM1.asm
    CRS-0181: Cannot access the resource profile '/u01/app/oracle/product/10.2.0/crs_1/crs/public/ora.rac1.ASM1.asm.cap'.
    CRS-0180: Resource '/u01/app/oracle/product/10.2.0/crs_1/crs/public/ora.rac1.ASM1.asm.cap' validation failed.
    [oracle@rac1 ~]$ crs_profile -validate ora.rac2.ASM2.asm
    CRS-0181: Cannot access the resource profile '/u01/app/oracle/product/10.2.0/crs_1/crs/public/ora.rac2.ASM2.asm.cap'.
    CRS-0180: Resource '/u01/app/oracle/product/10.2.0/crs_1/crs/public/ora.rac2.ASM2.asm.cap' validation failed.
    [oracle@rac1 ~]$
    [oracle@rac1 ~]$
    [oracle@rac1 ~]$ crs_unregister ora.rac1.ASM1.asm
    CRS-0210: Could not find resource 'ora.rac1.ASM1.asm'.
    [oracle@rac1 ~]$ crs_unregister ora.rac2.ASM2.asm
    CRS-0210: Could not find resource 'ora.rac2.ASM2.asm'.
    I Have deleted following files
    rm -Rf $ORACLE_BASE/admin/+ASM
    rm -Rf $ORACLE_HOME/dbs/*ASM*
    [oracle@rac1 ~]$ rm -Rf $ORACLE_HOME/dbs/*ASM*
    [oracle@rac1 ~]$ rm -Rf $ORACLE_BASE/admin/+ASM
    [oracle@rac1 ~]$ ssh rac2
    Last login: Thu Feb 23 16:31:26 2012 from rac1.mylinux.localdomain
    [oracle@rac2 ~]$ rm -Rf $ORACLE_BASE/admin/+ASM
    [oracle@rac2 ~]$ rm -Rf $ORACLE_HOME/dbs/*ASM*
    dbca -silent -deleteASM -nodelist rac1,rac2 -----AS per oracle DOC
    Also removed entries from oratab file for ASM instances.
    Dbca error message during asm instance creation for both node
    PRKS-1011:Failed to check status of ASM instance "+ASM1" on node "rac1",[
    CRS-0210:Could not find resource ora.rac1.ASM1.asm
    PRKS-1011:Failed to check status of ASM instance "+ASM2" on node "rac2",[
    CRS-0210:Could not find resource ora.rac2.ASM2.asm
    Did i forget to remove entries for ASM instance somewhere.
    Please help me.

    Hi,
    I believe your OCR is corrupted....so restore the OCR from most recent backup (before error ).
    Using crs_* commands on resources with the prefix ora.* (resources provided by Oracle) remains unsupported.
    After restore OCR... remove ASM with "srvctl" command:
    http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm#CHDBDDAD
    Regards,
    Levi Pereira

  • ASM instance for Multiple DBs in a RAC environment - 10GR2

    Are there any drawbacks if you create 2 RAC databases ex Chicago (consisting on 2 nodes Chicago1 and Chicago2) and Orlando (consisting of Oralndo1 and Oralndo2) on the same ASM instance running on Oracle 10G R2.
    Would it be better to create 2 ASM instances?
    Thanks

    ASM is node specific. Meaning you can only have one ASM instance per node.. its like any other volume manager. You only need one volume manager/storage manager to handle the storage for a given node. Its no different with ASM.
    So irrespective of the number of databases you plan to create on a node, you will only have one ASM instance.
    A word of caution when creating multiple RDBMS instances, is to ensure you have sufficient resources for this. Unless the user access patterns are considerably different or the business needs stipulate separate database, you should also consider database consolidation if possible.

  • Shutdown ASM instance with database up???

    While reading through the Apex installation guide I ran across this statement:
    If Automatic Storage Management (ASM) is running, shut down all databases that
    use ASM except for the database where you will install Oracle Application
    Express, and then shut down the ASM instance.
    .... uh, leaving the one ASM based database up .. with the ASM instance itself shut down?
    Am I mis-reading? Or do I have a fundamental flaw in my understanding of the relationship of the ASM instance with the database instances?

    EdStevens wrote:
    Included .. but upgrades of Apex?
    Ed, upgrading Apex is fairly safe.
    However, do not merely rely on a datapump/export of the current Apex schema as backup, prior to installing the upgrade (creating a new schema). Reason: there are objects installed as SYS which will be overwritten by the upgrade, and not exported by the backup. [have an outstanding feature request filed with Apex team to fix this - there are no reasons for using SYS for app objects]
    Which is why I prefer a logical backup instead - an Apex export of apps and workspaces. This can be done via the command line. There is a Java program/jar for Apex that supports CLI access to automatically export all apps in all workspaces. I have a cron job that does this every night on all our databases as Apex apps are not made of the type of code one can checkout and edit from a traditional source code repository,
    What is not exported, is extra content such as images, custom style sheets and so on (static contents). But is it a better idea to have static contents served by the web server, rather than via a db server session.
    Apex is pretty kewl - one of the better web frameworks for Oracle that we've been using since Marvel/HTMLDB days. Some niggles. But overall an excellent product.

  • How to create an asm instance manaually? oracle 11gr2.

    env: oracle 11gr2 os: hpux or aix single machine , not rac.
    question:how to create an asm instance manaually?? diskgroup,listener,db ,they can be resigistered to crs??
    can anyone give me document about it?

    Hi,
    This is a simple answer:
    Automatic Storage Management (ASM)
    ASM was a new storage option introduced with Oracle Database 10gR1 that provides the services of a filesystem, logical volume manager, and software RAID in a platform-independent manner. ASM can stripe and mirror your disks, allow disks to be added or removed while the database is under load, and automatically balance I/O to remove "hot spots." It also supports direct and asynchronous I/O and implements the Oracle Data Manager API (simplified I/O system call interface) introduced in Oracle9i.
    ASM is not a general-purpose filesystem and can be used only for Oracle data files, redo logs, and control files. Files in ASM can be created and named automatically by the database (by use of the Oracle Managed Files feature) or manually by the DBA. Because the files stored in ASM are not accessible to the operating system, the only way to perform backup and recovery operations on databases that use ASM files is through Recovery Manager (RMAN).
    ASM is implemented as a separate Oracle instance that must be up if other databases are to be able to access it. Memory requirements for ASM are light: only 64 MB for most systems.
    Installing ASM
    On Linux platforms, ASM can use raw devices or devices managed via the ASMLib interface. Oracle recommends ASMLib over raw devices for ease-of-use and performance reasons. ASMLib 2.0 is available for free download from OTN. This section walks through the process of configuring a simple ASM instance by using ASMLib 2.0 and building a database that uses ASM for disk storage.
    Determine Which Version of ASMLib You Need
    ASMLib 2.0 is delivered as a set of three Linux packages:
    * oracleasmlib-2.0 - the ASM libraries
    * oracleasm-support-2.0 - utilities needed to administer ASMLib
    * oracleasm - a kernel module for the ASM library
    Each Linux distribution has its own set of ASMLib 2.0 packages, and within each distribution, each kernel version has a corresponding oracleasm package. The following paragraphs describe how to determine which set of packages you need.
    First, determine which kernel you are using by logging in as root and running the following command:
    uname -rm
    Ex:
    # uname -rm
    2.6.9-22.ELsmp i686
    The example shows that this is a 2.6.9-22 kernel for an SMP (multiprocessor) box using Intel i686 CPUs.
    Use this information to find the correct ASMLib packages on OTN:
    1. Point your Web browser to http://www.oracle.com/technology/tech/linux/asmlib/index.html
    2. Select the link for your version of Linux.
    3. Download the oracleasmlib and oracleasm-support packages for your version of Linux
    4. Download the oracleasm package corresponding to your kernel. In the example above, the oracleasm-2.6.9-22.ELsmp-2.0.0-1.i686.rpm package was used.
    Next, install the packages by executing the following command as root:
    rpm -Uvh oracleasm-kernel_version-asmlib_version.cpu_type.rpm \
    oracleasmlib-asmlib_version.cpu_type.rpm \
    oracleasm-support-asmlib_version.cpu_type.rpm
    Ex:
    # rpm -Uvh \
    > oracleasm-2.6.9-22.ELsmp-2.0.0-1.i686.rpm \
    > oracleasmlib-2.0.1-1.i386.rpm \
    > oracleasm-support-2.0.1-1.i386.rpm
    Preparing... ########################################### [100%]
    1:oracleasm-support ########################################### [ 33%]
    2:oracleasm-2.6.9-22.ELsm########################################### [ 67%]
    3:oracleasmlib ########################################### [100%]
    Configuring ASMLib
    Before using ASMLib, you must run a configuration script to prepare the driver. Run the following command as root, and answer the prompts as shown in the example below.
    # /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
    Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: [  OK  ]
    Creating /dev/oracleasm mount point: [  OK  ]
    Loading module "oracleasm": [  OK  ]
    Mounting ASMlib driver filesystem: [  OK  ]
    Scanning system for ASM disks: [  OK  ]
    Next you tell the ASM driver which disks you want it to use. Oracle recommends that each disk contain a single partition for the entire disk. See Partitioning the Disks at the beginning of this section for an example of creating disk partitions.
    You mark disks for use by ASMLib by running the following command as root:
    /etc/init.d/oracleasm createdisk DISK_NAME device_name
    Tip: Enter the DISK_NAME in UPPERCASE letters.
    Ex:
    # /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
    Marking disk "/dev/sdb1" as an ASM disk: [  OK  ]
    # /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
    Marking disk "/dev/sdc1" as an ASM disk: [  OK  ]
    # /etc/init.d/oracleasm createdisk VOL1 /dev/sdd1
    Marking disk "/dev/sdd1" as an ASM disk: [  OK  ]
    Verify that ASMLib has marked the disks:
    # /etc/init.d/oracleasm listdisks
    VOL1
    VOL2
    VOL3
    Create the ASM Instance
    ASM runs as a separate Oracle instance which can be created and configured using the Oracle Universal Installer. Now that ASMLib is installed and the disks are marked for use, you can create an ASM instance.
    Log in as oracle and start runInstaller:
    $ ./runInstaller
    1. Select Installation Method
    * Select Advanced Installation
    * Click on Next
    2. Specify Inventory Directory and Credentials
    * Inventory Directory: /u01/app/oracle/oraInventory
    * Operating System group name: oinstall
    * Click on Next
    3. Select Installation Type
    * Select Enterprise Edition
    * Click on Next
    4. Specify Home Details
    * Name: OraDB10gASM
    * Path: /u01/app/oracle/product/10.2.0/asm
    Note:Oracle recommends using a different ORACLE_HOME for ASM than the ORACLE_HOME used for the database for ease of administration.
    * Click on Next
    5. Product-specific Prerequisite Checks
    * If you've been following the steps in this guide, all the checks should pass without difficulty. If one or more checks fail, correct the problem before proceeding.
    * Click on Next
    6. Select Configuration Option
    * Select Configure Automatic Storage Management (ASM)
    * Enter the ASM SYS password and confirm
    * Click on Next
    7. Configure Automatic Storage Management
    * Disk Group Name: DATA
    * Redundancy
    - High mirrors data twice.
    - Normal mirrors data once. This is the default.
    - External does not mirror data within ASM. This is typically used if an external RAID array is providing redundancy.
    * Add Disks
    The disks you configured for use with ASMLib are listed as Candidate Disks. Select each disk you wish to include in the disk group.
    * Click on Next
    8. Summary
    * A summary of the products being installed is presented.
    * Click on Install.
    9. Execute Configuration Scripts
    * At the end of the installation, a pop up window will appear indicating scripts that need to be run as root. Login as root and run the indicated scripts.
    * Click on OK when finished.
    10. Configuration Assistants
    * The Oracle Net, Oracle Database, and iSQL*Plus configuration assistants will run automatically
    11. End of Installation
    * Make note of the URLs presented in the summary, and click on Exit when ready.
    12. Congratulations! Your new Oracle ASM Instance is up and ready for use.
    Kind regards
    Mohamed

  • Drop ASM instance.

    Hi,
    My OCR got corrupted and I am not able to recover as I don't have backup of that. Because of this, CRS daemon is not coming up and this leads me to clean up this cluster and build it again. I am not much worried as this is my second development env.
    I want to drop the disk groups but I am not able to do because those are not being mounted.
    SQL> select name from v$asm_diskgroup;
    NAME
    DG1
    RECOVERYDEST
    SQL> drop diskgroup DG1 including contents;
    drop diskgroup DG1 including contents
    ERROR at line 1:
    ORA-15039: diskgroup not dropped
    ORA-15001: diskgroup "DG1" does not exist or is not mounted
    If I do remove ASM using DBCA, will all diskgroups be removed or do I need to perform any cleanup?
    Thanks,

    Thanks Vishwa,
    Here is the output,
    $ ps -aef|grep d.bin
    oracle 5234 5215 0 18:37 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/evmd.bin
    oracle 5330 5329 0 18:37 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd.bin
    oracle 7646 7191 0 18:39 pts/1 00:00:00 grep d.bin
    $ crs_stat -t
    CRS-0184: Cannot communicate with the CRS daemon.
    When I do mount the DG1 diskgroup I am getting below error on all nodes,
    SQL> startup
    ASM instance started
    Total System Global Area 92274688 bytes
    Fixed Size 1217884 bytes
    Variable Size 65890980 bytes
    ASM Cache 25165824 bytes
    ORA-15032: not all alterations performed
    ORA-15130: diskgroup "DG1" is being dismounted
    ORA-15066: offlining disk "DG1_0000" may result in a data loss
    SQL> alter diskgroup DG1 mount;
    alter diskgroup DG1 mount
    ERROR at line 1:
    ORA-15032: not all alterations performed
    ORA-15130: diskgroup "DG1" is being dismounted
    ORA-15066: offlining disk "DG1_0000" may result in a data loss
    Ashok: As far as I know, OCR stores the information about Oracle clusterware controls and if it is not up then clusterware controls won't come up. My crsd daemon is not comming up (even though If I try manually to bring it up) and this daemon is directly liked up with OCR. Does it mean that if this daemon is not up then it won't allow O/S to access OCR? Even If I try to take backup using ocrconfig -export ..it throws an error.
    As I don't have backup of OCR, I need to drop the database and uninstall just Oracle clusterware and re-install and create the database. I want to clean up the disk headers as I want to use those to build diskgroup again, do you guys have any idea, how to do that?
    Do let me know if you have different view on this.
    Thanks.

  • Copying files from ASM to Remote ASM, Fails.

    Dear All,
    I am trying to copy files from ASM to Remote ASM disk groups, failing with the following error,
    ASMCMD-8201: (Bad argc for RDBMS:ASMCMD-8201) , any idea.
    Syntax: cp -- port 1521 +RECO_ABC/ABC/BKP/xyz.dbf sys@hostname.+ASM1:+RECO_XYZ/XYZ/xyz.dbf
    Thanks.

    cp -ifr <source file name> <user_name>@<host_name>.<Port Number>.<SID>:<targer path>/<target file name>
    user_name@host_name.<Port Number>.<SID>
    The user_name, host_name, and SID are required. The default port number is 1521.
    reason for error :
    It could be due to following reason.
    * not able to reach remote host.
    * Remote host listener is down.
    * Remote ASM Instance is not registered with listener and running non-default port.
    * sysasm remote connection does not work.
    * Incorrect password given for sys user.
    * Remote ASM Instance password file missing.
    We need to enable additional tracing for asmcmd connection to get a exact failure message.
    ++ set DBI_TRACE environment variable for asmcmd perl tracing.
    export DBI_TRACE=1
    ++ Now connect using asmcmd and re-produce the issue.

  • Ref: Multiple databases on same ASM Instance

    I am having an existing two Node RAC using ASM FIle System. I want to add one more database to the existing RAC using the same ASM diskgroup. We can create multiple databases using the same ASM instance?

    You need one ASM instance per server. You can have multiple instances resp databases running on that server accessing the same diskgroup made available on the server by the ASM instance.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Can there be multiple ASM instances on single node?

    Hi,
    Can there be multiple ASM instances on single node?
    This one says No : http://www.freelists.org/archives/oracle-l/02-2008/msg00317.html
    And This one says Yes : http://www.databasejournal.com/features/oracle/article.php/3571371
    Thanks in advance.
    Thanks,
    Harsha
    Edited by: user498756 on Sep 11, 2008 2:23 AM

    ...that document doesnt say you cannot have multiple ASM instances on a node. It says "...ASM, +you only need one ASM+ instance for that computer, to manage the two database instances that use ASM."
    The fact that you only need one - and I cannot think of a good reason to have more than one - does not preclude the fact that you do seem to be able to have multiple ASM instances on a single node, each looking after its own set of disks and diskgroups.
    Again - I cannot think of a good reason to do so though!
    -Bob

Maybe you are looking for