How to start ASM instance at boot time - RHEL 2.1

Oracle 10.1.0.3
RHEL 2.1
I'm not able to get the ASM instance (not RAC) to start at boot time. It seems that the ocssd daemon does not finish starting until after all rc* scripts, including rc.local, have finished executing.
Patch 3458327 includes a new dbstart with header notes that are in conflict. The notes says that dbstart can't be used to start ASM until AFTER all rc* is finished.  Then it continues and states that ASM instance startup should be put in rc.local.
As soon as I get logged on, a ps -ef|grep ocssd shows the daemon running. I can then manually start the ASM instance.  There must be a way to get the ASM instance "auto" started at boot time.
Ideas?

The cheapest and administratively easiest way for me was to start Oracle instances (ASM and data) by "at" command :-) from rc scripts. Something like:
....echo "oracle start" | at now+2min....
Additionally the deferred startup has some additional advantages in my environment, so I am not motivated to look for better solution.
Best regards,
Pavel

Similar Messages

  • How to start OC4J at Linux boot time

    Hello,
    I am using Linux AS 3.0 and i have installed OC4J ( 9.0.4) ok, and OC4J also work fine.But each time i want to start OC4J , i must execute command java -jar oc4j.jar at console.
    Now, I want to start OC4J automatic at System startup ( ie: Linux boot time ).How can i do?
    Thanks.

    Just put your OC4J start/stop commands in a rc script.
    Scripts in the directories
    /etc/rc.d/rc2.d
    /etc/rc.d/rc3.d
    /etc/rc.d/rc5.d
    will be called by the operating system with the command line option start.
    The number in the directory names represent the desired run level of the machine.
    Scripts in the directory
    /etc/rc.d/rc0.d
    will be called during shutdown with the command line option stop.

  • 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

  • Failed to start ASM instance "+ASM1" on node "rac1"

    I have a problem, because when I start RAC and write command crs_stat -t
    column State have 2 wrong parameter..
    Name Type Target State Host
    ora.....CRM.cs application ONLINE ONLINE rac2
    ora....db1.srv application ONLINE ONLINE rac2
    ora.devdb.db application ONLINE ONLINE rac2
    ora....b1.inst application ONLINE OFFLINE
    ora....b2.inst application ONLINE ONLINE rac2
    ora....SM1.asm application ONLINE UNKNOWN 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 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 rac2
    When I try
    srvctl start asm -n rac1 then is wrong:
    PRKS-1009 : Failed to start ASM instance "+ASM1" on node "rac1", [PRKS-1009 : Failed to start ASM instance "+ASM1" on node "rac1", [CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.rac1.ASM1.asm' has placement error.]]
    [PRKS-1009 : Failed to start ASM instance "+ASM1" on node "rac1", [CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.rac1.ASM1.asm' has placement error.]]
    and when I try start instance manualy then
    PRKP-1001 : Error starting instance devdb1 on node rac1
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.devdb.devdb1.inst' has placement error.
    :( Where is my problem??

    hi, i have exactly the same error
    but your suggestions of remove an recreate the asm resource not working
    ./srvctl remove asm -n dbs2 -i +ASM2 -f
    PRKS-1023 : Failed to remove CRS resource for ASM instance "+ASM2" on node "dbs2", [CRS-0214: Could not unregister resource 'ora.dbs2.ASM2.asm'.]
    ./srvctl start asm -n dbs2
    PRKS-1009 : Failed to start ASM instance "+ASM2" on node "dbs2", [PRKS-1009 : Failed to start ASM instance "+ASM2" on node "dbs2", [CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.dbs2.ASM2.asm' has placement error.]]
    [PRKS-1009 : Failed to start ASM instance "+ASM2" on node "dbs2", [CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.dbs2.ASM2.asm' has placement error.]]
    how do i proceed?
    iam using solaris 10 with t2000 and t5210 server and oracle 10.2.0.4

  • Getting errors while starting ASM instance in 11gR2

    Hi All,
    While starting ASM instance, i'm getting the following errors.
    [grid@xxxxx ~]$ . oraenv
    ORACLE_SID = [+ASM2] ?
    The Oracle base has been set to /u01/app/oracle
    [grid@xxxxx ~]$ sqlplus "/ as sysasm"
    SQL*Plus: Release 11.2.0.3.0 Production on Thu May 3 05:23:52 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Connected.
    SQL> cl scr
    SQL> shut immediate
    ORA-00604: error occurred at recursive SQL level 1
    ORA-04031: unable to allocate 32 bytes of shared memory ("shared pool","unknown object","KGLH0^37a71565","kglHeapInitialize:temp")
    Please give me any suggestions?
    --Thanks,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    http://ora-04031.ora-code.com/
    ORA-04031:
    unable to allocate string bytes of shared memory ("string","string","string","string")
    Cause:     More shared memory is needed than was allocated in the shared pool.
    Action:     If the shared pool is out of memory, either use the dbms_shared_pool package to pin large packages, reduce your use of shared memory, or increase the amount of available shared memory by increasing the value of the INIT.ORA parameters "shared_pool_reserved_size" and "shared_pool_size". If the large pool is out of memory, increase the INIT.ORA parameter "large_pool_size".

  • How to start my instance??!!!!!!!!

    I installed Oracle 10g. Then I created an instance. After the instance was created, I went to OEM to look at the instance, and noticed it wasn't turned on. I went to the network folder and noticed I only had sqlnet.ora; no Listener.ora or tsnames.ora. I put the files there, but when I try to startup the instance, the password and usernames I created with the database don't work.
    Agent Connection to Instance failed
    Listener down

    PLease, do not multi-post the same issue
    How to start my instance??!!!!!!!!
    HELP!!!!!!!!!!!!!!!!!!!!!!!!!
    HELP!!!!!!!!!!!!!!!!!!!!!!!!!
    And don't think stacking a long string of "!!!!!" and/or '?????" on your subject helps get a better/faster answer.

  • Unable to start Oracle 10g instance on boot time (CentOS)

    Hi all,
    I am trying to automate oracle instance start-up on boot time. I have created /etc/oratab and /etc/init.d/dbora files. Also, all the links for run-levels 2,3,4 are set. My machine boots in run-level 3. While I can start the database manually, after the system has booted, I am not able to automate the instance start-up at boot time. Following is the error, I get:
    oracle: /oracle/bin/lsnrctl: error while loading shared libraries: libclntsh.so.9.0: cannot open shared object file: No such file or directory
    I know that normally this problem occurs due to LD_LIBRARY_PATH variable problem. So, I have set the following in /etc/init.d/dbora file.
    LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export LD_LIBRARY_PATH
    System-config (uname -a):
    Linux centos4-db-us-01 2.6.9-67.ELsmp #1 SMP Fri Nov 16 12:48:03 IST 2007 i686 i686 i386 GNU/Linux
    Any help on this issue is highly appreciated.
    Thanks,
    Varun.

    Here it is:
    <code>
    ORA_HOME=/oracle
    ORA_OWNER=oracle
    export ORA_HOME
    ORACLE_SID=wlctp01
    export ORACLE_SID
    ORACLE_HOME=/oracle
    export ORACLE_HOME
    LD_LIBRARY_PATH=/oracle/lib
    export LD_LIBRARY_PATH
    LD_LIBRARY_PATH_32=$ORACLE_HOME/lib32
    export LD_LIBRARY_PATH_32
    PATH=$ORACLE_HOME/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
    export PATH
    LD_ASSUME_KERNEL=2.4.19
    export LD_ASSUME_KERNEL
    EDITOR=vi
    export EDITOR
    if [ ! -f $ORA_HOME/bin/dbstart ]
    then
    echo "Oracle startup: cannot start"
    exit
    fi
    case "$1" in
    'start')
    # Start the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
    echo "Starting oracle instance."
    su - $ORA_OWNER -c $ORA_HOME/bin/dbstart >> /var/log/oracle
    su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start" >> /var/log/oracle
    'stop')
    # Stop the Oracle databases:
    # The following command assumes that the oracle login
    # will not prompt the user for any values
    su - $ORA_OWNER -c $ORA_HOME/bin/dbshut >> /var/log/oracle
    su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop" >> /var/log/oracle
    esac
    </code>

  • Starting BI Publisher at boot time

    Hi all,
    Is it possible to start BIP on boot in linux system or I have to start oc4j every time I restart my system?
    Thank You

    Hi,
    try my scripts in http://linux-dba.gutzmann.com. They work at my
    site.
    Regards
    Thomas
    Hoang Truong (guest) wrote:
    : Hi,
    : I tried to start up oracle databse at boot time on RedHat 5.2
    by
    : having the file dbora in /etc/rc.d/init.d and I also make some
    : soft links to dbora such as:
    : ln -s /etc/rc.d/init/dbora /etc/rc.d/rc.0/K10dbora
    : ln -s /etc/rc.d/init/dbora /etc/rc.d/rc.3/S99dbora
    : ln -s /etc/rc.d/init/dbora /etc/rc.d/rc.5/S99dbora
    : At linux run level 5, it took so long to start oracle. After
    : idle for a while, it prompted error message such as:
    : "bash: Resource temporary unavailable".
    : Finally oracle started.
    : Does anyone know how to solve this problem? Please help!!!
    : Thanks
    : Hoang.
    : (Note: I have pentium 200 MZH 96 M RAM, 6.4 G harddrive) :
    null

  • Problem starting ASM instance after installing Oracle Grid standalone

    Hi!
    After installing Oracle Grid 11gr2 and rebooting my machine:
    Linux localhost.localdomain 2.6.32-300.10.1.el5uek #1 SMP Wed Feb 22 17:37:40 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
    I run asmca command and it failed to startup ASM instance, I tried to paste the log but it's too long!
    Could someone help me please! thank you very much!
    José
    I paste just the last piece:
    +[main] [ 2012-03-15 15:01:56.853 CET ] [SQLEngine.initialize:354] m_bReaderStarted: false+
    +[main] [ 2012-03-15 15:01:56.857 CET ] [SQLEngine.initialize:358] Starting Reader Thread...+
    +[main] [ 2012-03-15 15:01:56.919 CET ] [UsmcaLogger.logExit:122] Exiting oracle.sysman.assistants.usmca.backend.USMInstance Method : createSQLEngine+
    +[main] [ 2012-03-15 15:01:56.919 CET ] [OracleHome.getVersion:877] OracleHome.getVersion called. Current Version: null+
    +[main] [ 2012-03-15 15:01:56.927 CET ] [InventoryUtil.getOUIInvSession:347] setting OUI READ level to ACCESSLEVEL_READ_LOCKLESS+
    +[main] [ 2012-03-15 15:01:56.927 CET ] [OracleHome.getVersion:896] Homeinfo /u01/app/grid/product/11.2.0/grid,1+
    +[main] [ 2012-03-15 15:01:56.928 CET ] [Version.isPre:274] version to be checked 11.2.0.1.0 major version to check against10+
    +[main] [ 2012-03-15 15:01:56.928 CET ] [Version.isPre:285] isPre.java: Returning FALSE+
    +[main] [ 2012-03-15 15:01:56.929 CET ] [OCR.loadLibrary:308]+
    Inside constructor of OCR
    +[main] [ 2012-03-15 15:01:56.929 CET ] [OCR.isCluster:939] Calling OCRNative for isCluster()+
    +[main] [ 2012-03-15 15:01:56.930 CET ] [OCR.isCluster:943] OCR Result status = true+
    +[main] [ 2012-03-15 15:01:56.930 CET ] [OCR.isCluster:955] Bolean result = false+
    +[main] [ 2012-03-15 15:01:56.930 CET ] [Version.isPre:274] version to be checked 11.2.0.1.0 major version to check against10+
    +[main] [ 2012-03-15 15:01:56.930 CET ] [Version.isPre:285] isPre.java: Returning FALSE+
    +[main] [ 2012-03-15 15:01:56.931 CET ] [MessageBundle.getMessageFields:338] MessageBundle.getMessage() failed to load the string PRKC-PRKC-1036 : CRS_HOME name passed to the method was null Exception: java.util.MissingResourceException: Can't find resource for bundle oracle.ops.mgmt.resources.PrkcMsg, key PRKC-1036 : CRS_HOME name passed to the method was null+
    +[main] [ 2012-03-15 15:01:56.931 CET ] [ClusterUtils.getCRSActiveVersion:1797] Error getting CRS active version: PRKC-PRKC-1036 : CRS_HOME name passed to the method was null : <null>+
    +[main] [ 2012-03-15 15:01:56.931 CET ] [OracleHome.getVersion:903] OracleHome.CRSActiveVersion: null+
    +[main] [ 2012-03-15 15:01:57.084 CET ] [OracleHome.getVersion:922] OracleHome.server.getVersion Version: 11.2.0.1.0+
    +[main] [ 2012-03-15 15:01:57.084 CET ] [OracleHome.getVersion:943] Current Version From Inventory: 11.2.0.1.0+
    +[main] [ 2012-03-15 15:01:57.084 CET ] [OracleHome.getVersion:948] using sqlplus: /u01/app/grid/product/11.2.0/grid/bin/sqlplus+
    +[main] [ 2012-03-15 15:01:57.084 CET ] [UsmcaLogger.logInfo:141] Role SYSASM+
    +[main] [ 2012-03-15 15:01:57.085 CET ] [UsmcaLogger.logInfo:141] OS Auth true+
    +[main] [ 2012-03-15 15:01:57.182 CET ] [SQLEngine.done:2148] Done called+
    +[main] [ 2012-03-15 15:01:57.183 CET ] [UsmcaLogger.logException:171] SEVERE:method oracle.sysman.assistants.usmca.backend.USMInstance:checkAndStartupInstance+
    +[main] [ 2012-03-15 15:01:57.183 CET ] [UsmcaLogger.logException:172] ORA-01034: ORACLE not available+
    +[main] [ 2012-03-15 15:01:57.183 CET ] [UsmcaLogger.logException:173] oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-01034: ORACLE not available+
    oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1650)
    oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeQuery(SQLEngine.java:823)
    oracle.sysman.assistants.usmca.backend.USMInstance.checkAndStartupInstance(USMInstance.java:573)
    oracle.sysman.assistants.usmca.backend.USMInstance.discoverASMInstance(USMInstance.java:340)
    oracle.sysman.assistants.usmca.service.UsmcaService.discoverASMInstance(UsmcaService.java:146)
    oracle.sysman.assistants.usmca.Usmca.execute(Usmca.java:230)
    oracle.sysman.assistants.usmca.Usmca.main(Usmca.java:333)
    +[main] [ 2012-03-15 15:01:57.184 CET ] [UsmcaLogger.logExit:122] Exiting oracle.sysman.assistants.usmca.backend.USMInstance Method : checkAndStartupInstance+
    +[main] [ 2012-03-15 15:01:57.184 CET ] [UsmcaLogger.logInfo:141] ASM failed to start. Check /u01/app/grid/cfgtoollogs/asmca/asmca-1203153PM0138.log for details.+

    Hi,
    i've got similar problem but my asm is not just down. After installing grid home with infrastructure I've restarted os and there is no crs services and the only result from this command:
    # ps -ef | grep grid
    grid      2075     1  0 13:58 ?        00:00:00 /u01/app/grid/product/11.2.0/grid/bin/ohasd.bin reboot
    root      2463  2439  0 14:06 pts/0    00:00:00 grep gridgive me opposite to this one before restart:
    $ ps -ef | grep grid
    grid      2076     1  0 13:01 ?        00:00:00 /u01/app/grid/product/11.2.0/grid/bin/ohasd.bin reboot
    grid      3646     1  0 13:44 ?        00:00:04 /u01/app/grid/product/11.2.0/grid/bin/ohasd.bin reboot
    grid      3806     1  0 13:45 ?        00:00:02 /u01/app/grid/product/11.2.0/grid/bin/oraagent.bin
    grid      3820     1  0 13:45 ?        00:00:00 /u01/app/grid/product/11.2.0/grid/bin/evmd.bin
    grid      3853  3820  0 13:45 ?        00:00:00 /u01/app/grid/product/11.2.0/grid/bin/evmlogger.bin -o /u01/app/grid/product/11.2.0/grid/evm/log/evmlogger.info -l /u01/app/grid/product/11.2.0/grid/evm/log/evmlogger.log
    root      3879  2307  0 13:46 pts/0    00:00:00 su - grid
    grid      3881  3879  0 13:46 pts/0    00:00:00 -bash
    grid      4172     1  0 13:48 ?        00:00:00 /u01/app/grid/product/11.2.0/grid/bin/cssdagent
    grid      4197     1  0 13:48 ?        00:00:00 /u01/app/grid/product/11.2.0/grid/bin/ocssd.bin
    grid      4550     1  0 13:49 ?        00:00:00 asm_pmon_+ASM
    grid      4552     1  0 13:49 ?        00:00:00 asm_psp0_+ASM
    grid      4554     1  0 13:49 ?        00:00:02 asm_vktm_+ASM
    grid      4558     1  0 13:49 ?        00:00:00 asm_gen0_+ASM
    grid      4560     1  0 13:49 ?        00:00:00 asm_diag_+ASM
    grid      4562     1  0 13:49 ?        00:00:00 asm_dia0_+ASM
    grid      4564     1  0 13:49 ?        00:00:00 asm_mman_+ASM
    grid      4566     1  0 13:49 ?        00:00:00 asm_dbw0_+ASM
    grid      4568     1  0 13:49 ?        00:00:00 asm_lgwr_+ASM
    grid      4570     1  0 13:49 ?        00:00:00 asm_ckpt_+ASM
    grid      4572     1  0 13:49 ?        00:00:00 asm_smon_+ASM
    grid      4574     1  0 13:49 ?        00:00:00 asm_rbal_+ASM
    grid      4576     1  0 13:49 ?        00:00:00 asm_gmon_+ASM
    grid      4578     1  0 13:49 ?        00:00:00 asm_mmon_+ASM
    grid      4580     1  0 13:49 ?        00:00:00 asm_mmnl_+ASM
    grid      4582     1  0 13:49 ?        00:00:00 oracle+ASM (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    grid      6128     1  0 13:52 ?        00:00:00 /u01/app/grid/product/11.2.0/grid/bin/tnslsnr LISTENER -inherit
    grid      6142  3881  0 13:53 pts/0    00:00:00 ps -ef
    grid      6143  3881  0 13:53 pts/0    00:00:00 grep grid
    $ srvctl status listener
    Listener LISTENER is enabled
    Listener LISTENER is running on node(s): pc
    $ srvctl status asm
    ASM is running on pcI'm using 2x 1TB hdisk as 2 pv in one vg. I thought that lvolume permissions are incorrect but now I had:
    # ls -l /dev | grep dm
    crw-rw----  1 root root      10,  61 May 16 13:57 cpu_dma_latency
    brw-rw----  1 root disk     253,   0 May 16 13:57 dm-0
    brw-rw----  1 root disk     253,   1 May 16 13:57 dm-1
    brw-rw----  1 grid asmadmin 253,  10 May 16 13:57 dm-10
    brw-rw----  1 grid asmadmin 253,  11 May 16 13:57 dm-11
    brw-rw----  1 grid asmadmin 253,  12 May 16 13:57 dm-12
    brw-rw----  1 grid asmadmin 253,  13 May 16 13:57 dm-13
    brw-rw----  1 grid asmadmin 253,   2 May 16 13:57 dm-2
    brw-rw----  1 grid asmadmin 253,   3 May 16 13:57 dm-3
    brw-rw----  1 grid asmadmin 253,   4 May 16 13:57 dm-4
    brw-rw----  1 grid asmadmin 253,   5 May 16 13:57 dm-5
    brw-rw----  1 grid asmadmin 253,   6 May 16 13:57 dm-6
    brw-rw----  1 grid asmadmin 253,   7 May 16 13:57 dm-7
    brw-rw----  1 grid asmadmin 253,   8 May 16 13:57 dm-8
    brw-rw----  1 grid asmadmin 253,   9 May 16 13:57 dm-9and:
    # ls -l /dev/vg_main/
    total 0
    lrwxrwxrwx 1 root root 7 May 16 13:57 asmlvol1 -> ../dm-2
    lrwxrwxrwx 1 root root 8 May 16 13:57 asmlvol10 -> ../dm-11
    lrwxrwxrwx 1 root root 8 May 16 13:57 asmlvol11 -> ../dm-12
    lrwxrwxrwx 1 root root 8 May 16 13:57 asmlvol12 -> ../dm-13
    lrwxrwxrwx 1 root root 7 May 16 13:57 asmlvol2 -> ../dm-3
    lrwxrwxrwx 1 root root 7 May 16 13:57 asmlvol3 -> ../dm-4
    lrwxrwxrwx 1 root root 7 May 16 13:57 asmlvol4 -> ../dm-5
    lrwxrwxrwx 1 root root 7 May 16 13:57 asmlvol5 -> ../dm-6
    lrwxrwxrwx 1 root root 7 May 16 13:57 asmlvol6 -> ../dm-7
    lrwxrwxrwx 1 root root 7 May 16 13:57 asmlvol7 -> ../dm-8
    lrwxrwxrwx 1 root root 7 May 16 13:57 asmlvol8 -> ../dm-9
    lrwxrwxrwx 1 root root 8 May 16 13:57 asmlvol9 -> ../dm-10
    lrwxrwxrwx 1 root root 7 May 16 13:57 lv01_swap -> ../dm-1
    lrwxrwxrwx 1 root root 7 May 16 13:57 lv02_root -> ../dm-0I've used search path for ams disks as /dev/dm* and /dev/vg_main/asm* and seen all of them in both configurations.
    I've tried to reconfigure HAS through (as root):
    $GRID_HOME/crs/install/roothas.pl -deconfig -force -verbose
    $GRID_HOME/root.shthis gave me working asm instance but after restart I'm in base position with no crs services.
    And... I've tried to startup crs after restart with no luck but before restart I can shutdown everything and startup ASM instance too (so everything is fine till the reboot). I'm on CentOS 6:
    $ uname -a
    Linux pc 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/Linux
    # cat /etc/issue
    CentOS release 6.2 (Final)
    Kernel \r on an \mAny hints about how to resolve this problem would be most welcome.
    Regards.

  • Would oracle start ASM instance automatically?

    Hi there,
    I experienced this yesterday while testing my scripts.
    I wrote couple of unix shell scripts (OEL) - one to shutdown all DBs (which, at the end shuts down the ASM instance as well) and the second one to start all the DBs.
    In the second one, I forgot to inclde the commands to startup the ASM instance first and executed the script. I noticed there were no errors during the DB startup (which included the DB that uses ASM) and when I checked the output of "ps -ef | grep pmon", +ASM instance was already up and running.
    So the ASM instance was started up automatically - I wonder if this is how it should be?
    If this is normal, should I forget about adding ASM instance startup commands to the second shell script?
    Regards

    user12033597 wrote:
    Hi there,
    I experienced this yesterday while testing my scripts.
    I wrote couple of unix shell scripts (OEL) - one to shutdown all DBs (which, at the end shuts down the ASM instance as well) and the second one to start all the DBs.
    In the second one, I forgot to inclde the commands to startup the ASM instance first and executed the script. I noticed there were no errors during the DB startup (which included the DB that uses ASM) and when I checked the output of "ps -ef | grep pmon", +ASM instance was already up and running.
    So the ASM instance was started up automatically - I wonder if this is how it should be?
    If this is normal, should I forget about adding ASM instance startup commands to the second shell script?
    RegardsWhat is the version?
    If 11gR2 , ASM home will come automatically i.e. diskgroups will be mounted.
    or check is there any script mentioned in init.d something like http://www.oracle-base.com/articles/linux/AutomatingDatabaseStartupAndShutdownOnLinux.php

  • Error while starting ASM instance

    when i was trying to startup my ASM database , i was getting the following error.
    SQL> startup
    ASM instance started
    Total System Global Area 125829120 bytes
    Fixed Size 2019000 bytes
    Variable Size 98644296 bytes
    ASM Cache 25165824 bytes
    ORA-15032: not all alterations performed
    ORA-15003: diskgroup "DBDATA" already mounted in another lock name space"
    thnx in advance

    Hi,
    i was not aware of ASM anymore, i can give some more details of this.
    There was already an instance named +ASM in the host, which has the diskgroup 'DBDATA' created.
    But now i have created a new instance and i was trying to connect to the same diskgroup.
    I dont have permission of the root, but i have the oracle login.
    could u pleaze help me in this regard...
    i need to connect to the diskgroup, if i try to stop the other instance, i was not getting the error, but the diskgroup is getting dis-mounted.
    thnx alot for the replies

  • How to install ASM instance in oracle linux 6.1

    Hi,
    I have installed oracle linux 6 and upgraded to oracle linux 6.1 (32 bit) for testing purpose.
    here is details of some commands
    [root@rac2 ~]# uname -a
    Linux rac2.test 2.6.32-131.0.15.el6.i686 #1 SMP Fri May 20 15:00:01 EDT 2011 i68 6 i686 i386 GNU/Linux
    [root@rac2 ~]# modprobe -l | grep oracle ####No output####
    [root@rac2 ~]# rpm -qa| grep oracleasm ####No output####
    [root@rac2 ~]# modprobe /etc/oracleasm
    FATAL: Module /etc/oracleasm not found.
    Please suggest me, do i have to download any other package for enable oracle asm.

    Hi,
    I have done these setup and still i am not able to create disk in asm. i have created partition with fdisk with name sdd2,sde2,sdf2
    here is the output of few command--
    [root@rac2 ~]# uname -r
    2.6.32-100.34.1.el6uek.i686
    [root@rac2 ~]# rpm -qa | grep oracle*
    oracle-logos-60.0.11-9.el6.noarch
    oraclelinux-release-notes-6Server-5.i686
    oraclelinux-release-6Server-1.0.2.i686
    oracleasm-support-2.1.5-1.el6.i686
    [root@rac2 ~]# /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) [y]:
    Scan for Oracle ASM disks on boot (y/n) [y]:
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver: [  OK  ]
    Scanning the system for Oracle ASMLib disks: [  OK  ]
    [root@rac2 ~]# /etc/init.d/oracleasm status
    Checking if ASM is loaded: yes
    Checking if /dev/oracleasm is mounted: yes
    [root@rac2 ~]# ls -la /dev/sd*
    brw-rw----. 1 root disk 8, 0 Sep 14 15:57 /dev/sda
    brw-rw----. 1 root disk 8, 1 Sep 14 15:58 /dev/sda1
    brw-rw----. 1 root disk 8, 2 Sep 14 15:57 /dev/sda2
    brw-rw----. 1 root disk 8, 16 Sep 14 15:57 /dev/sdb
    brw-rw----. 1 root disk 8, 17 Sep 14 15:58 /dev/sdb1
    brw-rw----. 1 root disk 8, 48 Sep 14 16:14 /dev/sdd
    brw-rw----. 1 root disk 8, 50 Sep 14 16:14 /dev/sdd2
    brw-rw----. 1 root disk 8, 64 Sep 14 16:14 /dev/sde
    brw-rw----. 1 root disk 8, 66 Sep 14 16:14 /dev/sde2
    brw-rw----. 1 root disk 8, 80 Sep 14 16:14 /dev/sdf
    brw-rw----. 1 root disk 8, 82 Sep 14 16:14 /dev/sdf2
    [root@rac2 ~]# /etc/init.d/oracleasm createdisk ASM01 /dev/sdd2
    Marking disk "ASM01" as an ASM disk: [FAILED]
    [root@rac2 ~]#
    [root@rac2 ~]# tail -20 /var/log/oracleasm
    Creating /dev/oracleasm mount point: /dev/oracleasm
    Loading module "oracleasm": oracleasm
    Mounting ASMlib driver filesystem: /dev/oracleasm
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    Disk "ASM01" does not exist or is not instantiated
    Writing disk header: done
    Instantiating disk: oracleasm-instantiate-disk: Unable to create ASM disk "ASM01": Permission denied
    failed
    Clearing disk header: done
    [root@rac2 ~]#
    I have tried to find out solution but did not get anything in google.
    Please suggest if any solution or may be i missed some setup.
    Ram

  • How to start new instance of Application server 6.0 sp3 on Solaris

    Hi!
    I am a new user of iPlanet Application server (ver. 6.0 sp3) for Solaris and I have problems with starting new instance of App. Server. Directory server and administration server are started during installation but application server isn't started. I've used Application Server Command Line Utilities to start server but I've got message "you must register
    the server instance via the application server admin tool". I've tried to do that but I don't know how. I've searched documentation and I haven't found what I'm looking for.I would like to know where can I find instructions for starting App. server?

    Hello,
    Start your "ksvradmin" from $IASHOME/bin/ksvradmin tool - a GUI tool and under file menu register the server instance by supplying port on which the server is running.. it is intuitive..
    Thanks
    Sudhir

  • How to start two threads at a time

    hi to all,
    can any one tell me how we can start two or more threads at a time
    this is my req in the application i want to check that
    can any body help me in this regard.
    ashok

    If you are starting a whole bunch of threads, and want them to be eligable for execution at about the same time (i.e. dont get staggered due to the overhead of starting), then you can use locking / waiting.
    I've not really had / wanted to do this before, but I suppose something like the following might work:
    import EDU.oswego.cs.dl.util.concurrent.Latch;
    import EDU.oswego.cs.dl.util.concurrent.Sync;
    public class StartupTest {
      private void test() {
        Latch startGun = new Latch();
        // create and start some threads - I'll just create one
        Thread t = new Thread(new TestRunnable(startGun));
        t.start();
        // all started? Ok - fire the start gun to release them
        startGun.release();
      private class TestRunnable implements Runnable {
        private Sync startGun;
        TestRunnable(Sync startGun) {
          this.startGun = startGun;
        public void run() {
          waitForStart();
          // what ever you were going to do here......
        private void waitForStart() {
          try {
            startGun.acquire();
          } catch (InterruptedException e) {
            // what ever... I'll just bharf.
            throw new RuntimeException(e);
    }Even with this, your threads aren't going to actually start working all at exactly the same time - but they'll all be eligable to start working at the same time.

  • How to start oc4j instance in linux

    I need the oracle report server to generate reports via the call from JSP.
    But the response contains no data. But i think that the problem is that the oc4j instance is not started or the port number i am using in the URL is wrong.
    I have two questions in my mind.
    1) How to start the oc4j instance in linux
    2) How to find the port number of the oracle report server. will it be stored in any files.
    Pls provide some inputs on this query.

    Hello,
    1) How to start the oc4j instance in linuxYou have not specified what version, so for standalone you can use the following command:
    java -jar oc4j.jar
    In 10.1.3 you need to use the oc4j.cmd/oc4j.sh file to start and stop OC4J.
    If you are using the Application Server, then please use opmnctl start and stop the OC4J instance.
    2) How to find the port number of the oracle report server. will it be stored in any files.
    Please post this to the Reports forum.
    Hope this helps.
    Deepak

Maybe you are looking for

  • Need help with text() processing in XSL

    Hello, I have an xml that contains such text in my xml: before<a>inside</a>after and an xsl that transforms it to HTML (a cut for xsl): <xsl:template match="a"> <xsl:apply-templates/> </xsl:template> <xsl:template match="text()"> <xsl:value-of disabl

  • Configure Xserve RAID as a single RAID 5 array?

    We just picked up a used Xserve RAID with 14x750GB drives, and we want to configure the entire unit as a single RAID5 array. RAID Utility will let us configure each side as a separate array, but not both sides in a single array. Is this not possible

  • RX9800 128MB, weird artifacting...

    First off here's my system specs: Antec TruePower 430 Power Supply MSI RX9800 128MB Asus P4PE Motherboard w/ 2.53 P4 ATI Catalyst 4.8 Drivers Nothing is overclocked... I just got this MSI 9800 Pro a few days ago and everything works fine except at ce

  • Big data in tables tbl_BuildCodeChange. How to destroy?

    The server is configured to automatically build. noticed that greatly increases tbl_BuildCodeChange table. What it is and how it can be cleaned.

  • Is it possible to Automate configuration of skydrive pro client for a document library

    Hi Everyone, I would like to automate the document library url(configuration) for skydrive pro client programatically.Please let me know if this is possible and how can we do this. Thanks in advance, Sailaja Kaladurgi.