How to remove a RAC database

Hi Guys,
We have some issues with ASM diskgroups and due to this the diskgroups holding a 2 node RAC DB are not mounted . We want to remove this database cleanly so that we can drop the troubled diskgroups and create new one.Unfortunately we dont have a backup of this database as it is not production.So how can we clean it from asm/crs - dbca needs the database to be up before it can be removed but becuase of asm issue and non-availability of backups,it can not be brought up!
Any suggestions would be appreciated.
Thanks.

Hi,
as database is mounted by RAC
1. shutdown node2 (database and ASM instance)
2. login to node1 , rman- drop database, which will drop all datafile, controlfile etc.
3. srvclt remove datase -d <db_name> : to remove from CRS reposioty
4. delete all parameter file or password file etc from $ORALCE_HOME/dbs
5. remove detail from /etc/oratab
5. drop ASM diskgroup
For more detail following metalink notes.
Note 239998.1: 10g RAC: How to Clean Up After a Failed CRS Install
Note:311350.1 :How to cleanup ASM installation (RAC and Non-RAC)
Note:251412.1 :How to Drop the Target Database Using RMAN
Regards
[email protected]

Similar Messages

  • How to remove logical standby database configuration cleanly

    Hello,
    We are on RHL with 11.2.0.3 DB version. Due to various unknown reasons we would like to recreate logical standby database and for that purpose I would like to cleanly remove/uninstall/drop LOGICAL STANDBY DATABASE from the DATA GUARD configuration we have.
    The DG setup already has 1 PHYSICAL STANDBY DATABASE which is working fine. PRIM,PHYSICAL, and LOGICAL all are on different HOSTS. Could you please guide or suggest us exact MOS Doc id regarding this? I have found one MOS Doc id which is close enough but its steps include removing dg configuration completely which I don't want. Only Logical Standby database needs to be remove cleanly so that it can be installed again properly.
    We are using GRID CONTROL and DATA GUARD BROKER.
    Bundle of thanks in advance.
    Best Regards

    Hello;
    I would review this Oracle note:
    How to remove a Data Guard Configuration from Primary Database (Doc ID 733794.1)
    Best Regards
    mseberg

  • How to list the rac databases on unix terminal

    Hi guys, I am trying to find out how to list all the rac databases on the unix terminal.
    the following command gives the list of all the databases running on a server
    *'ps -ef |grep smon | awk '{print $8}' | awk -F"_" '{print $3}''*
    of those databases i am trying to find the all the databases which are rac enabled.
    I tried srvctl status database -d 'database name'
    but with that i could find info on only one database at a time. So I am looking for a single command that lists out all the rac databases at a single go.
    can someone please help me figure out that command
    Thank You

    Try:
    srvctl config database

  • How to remove session by database name

    Hi , 
    using exec sp_who will show the list of all the sessions.
    How i can remove all the session listed by sp_who by database name like master , etc
    Thank You , Shan Ali Khan

    This is a simple sp_who I named sp_who3  extrapolated by a 2008R2 instance, but you need to make your own and put to master.
    alter procedure sp_who3 (--- 1995/11/28 15:48
    @dbname varchar(max) = null ,
    @loginame sysname = NULL --or 'active'
    as
    declare @spidlow int,
    @spidhigh int,
    @spid int,
    @sid varbinary(85)
    select @spidlow = 0
    ,@spidhigh = 32767
    if ( @loginame is not NULL
    AND upper(@loginame collate Latin1_General_CI_AS) = 'ACTIVE'
    begin
    select spid , ecid, status
    ,loginame=rtrim(loginame)
    ,hostname ,blk=convert(char(5),blocked)
    ,dbname = case
    when dbid = 0 then null
    when dbid <> 0 then db_name(dbid)
    end
    ,cmd
    ,request_id
    from sys.sysprocesses
    where spid >= @spidlow and spid <= @spidhigh AND
    upper(cmd) <> 'AWAITING COMMAND'
    and ((case
    when dbid = 0 then null
    when dbid <> 0 then db_name(dbid)
    end = @dbname) or (@dbname is null))
    return (0)
    end
    if (@loginame is not NULL
    AND upper(@loginame collate Latin1_General_CI_AS) <> 'ACTIVE'
    begin
    if (@loginame like '[0-9]%') -- is a spid.
    begin
    select @spid = convert(int, @loginame)
    select spid, ecid, status,
    loginame=rtrim(loginame),
    hostname,blk = convert(char(5),blocked),
    dbname = case
    when dbid = 0 then null
    when dbid <> 0 then db_name(dbid)
    end
    ,cmd
    ,request_id
    from sys.sysprocesses
    where spid = @spid and
    ((case
    when dbid = 0 then null
    when dbid <> 0 then db_name(dbid)
    end) = @dbname or (@dbname is null))
    end
    else
    begin
    select @sid = suser_sid(@loginame)
    if (@sid is null)
    begin
    raiserror(15007,-1,-1,@loginame)
    return (1)
    end
    select spid, ecid, status,
    loginame=rtrim(loginame),
    hostname ,blk=convert(char(5),blocked),
    dbname = case
    when dbid = 0 then null
    when dbid <> 0 then db_name(dbid)
    end
    ,cmd
    ,request_id
    from sys.sysprocesses
    where sid = @sid and
    (( case
    when dbid = 0 then null
    when dbid <> 0 then db_name(dbid)
    end) = @dbname or (@dbname is null))
    end
    return (0)
    end
    -- loginame arg is null
    select spid,
    ecid,
    status,
    loginame=rtrim(loginame),
    hostname,
    blk=convert(char(5),blocked),
    dbname = case
    when dbid = 0 then null
    when dbid <> 0 then db_name(dbid)
    end
    ,cmd
    ,request_id
    from sys.sysprocesses
    where spid >= @spidlow and spid <= @spidhigh and
    (( case
    when dbid = 0 then null
    when dbid <> 0 then db_name(dbid)
    end) = @dbname or (@dbname is null))
    return (0) -- sp_who

  • How to use RAC database connection details in oc4j.xcfg files

    Hi all,
    we are using oc4j.xcfg files for the application module configuration for an ADF application. and one of the database has been configured on RAC. Any input on how to specify the RAC database details in the oc4j.xcfg file specially for the host name parameter.
    The example entry like in oc4j.xcfg is like
    ?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="AppModuleLocal">
    <AppModuleJndiName>dbta.model.AppModule</AppModuleJndiName>
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCName>connectDB</JDBCName>
    <ApplicationName>dbta.model.AppModule</ApplicationName>
    <jbo.project>Model</jbo.project>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="connectDB">
    <ENTRY name="ConnectionName" value="connectDB"/>
    <ENTRY name="URL" value="jdbc:oracle:thin:<user>/<pass>@<server>:<Port>:<SID>"/>
    <ENTRY name="HOSTNAME" value="<server>"/>
    <ENTRY name="JDBC_PORT" value="<port>"/>
    <ENTRY name="SID" value="<SID>"/>
    <ENTRY name="ConnectionType" value="JDBC"/>
    <ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
    <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
    <ENTRY name="DeployPassword" value="true"/>
    </ConnectionDefinition>
    how to specify the failover nodes details in the above entry for host name etc.
    Thanks
    Navin

    Here you are; all you want at
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/9i_jdbc/OCIdriverTAFSample/OCIdriverTAFSample.java.html

  • Add RAC database as a target for EMC 12c

    Hello,
    I have installed Enterprise manager 12c on Host 1 Redhat linux 5.5
    We have already installed a RAC database 2 nodes on Host 2 and Host 3 ; RAC version 11.2.0.3 on Redhat linux 5.5.
    I am planning to add the RAC database to be monitored by Enterprise manager 12c.
    I am going to deploy the agent using the following video: http://www.youtube.com/watch?v=dP-8Bw8CVu8
    How to add the RAC database to be monitored by the Enterprise manager 12c after the agent deploy on hosts: Host 2 and Host3?
    Thank you,
    Diego

    Pleae find the output;
    [oracle@host01 emd]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 02-MAR-2012 02:22:01
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Start Date                17-FEB-2012 04:46:16
    Uptime                    13 days 21 hr. 35 min. 44 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /opt/11.2.0/grid/network/admin/listener.ora
    Listener Log File         /opt/app/oracle/diag/tnslsnr/host01/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.32.65)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.32.66)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
      Instance "+ASM1", status READY, has 1 handler(s) for this service...
    Service "db.domain.com" has 1 instance(s).
      Instance "db1", status READY, has 2 handler(s) for this service...
    Service "dbXDB.domain.com" has 1 instance(s).
      Instance "db1", status READY, has 1 handler(s) for this service...
    Service "db_srvc.domain.com" has 1 instance(s).
      Instance "db1", status READY, has 2 handler(s) for this service...
    The command completed successfully
    [oracle@host01 emd]$

  • Clone a RAC database to a new RAC server

    Hi,
    How can clone a RAC database to a new RAC environment ?
    I installed Cluster and RDBMS 10g R1 in a new RAC server and I need to copy my database "dbrest" to the new server, my new database must have the same name ("dbrest"). My actual dbrest database is in ASM and I need to use ASM for the new database too.
    I don't have any database in the new RAC environment.
    At the end I need to have this configuration:
    Source configuration:
    SERVER:
    Node 1: srvprod1
    Node 2: srvprod2
    CLUSTER DB: dbrest using ASM
    Node 1: dbrest1
    Node 2: dbrest2
    Clone configuration:
    SERVER:
    Node 1: dupenv1
    Node 2: dupenv2
    CLUSTER DB: dbrest using ASM
    Node 1: dbrest1
    Node 2: dbrest2
    How can I do this?
    How can I copy my dbrest database to

    use rman Duplicate Database on srvprod* to dupenv*
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#BRADV165
    When duplicate database can run on both dupenv1 and dupenv2.
    use "srvctl" to add database, instance and services (if you have)
    Usage: srvctl add database -d <name> -o <oracle_home> [-m <domain_name>] [-p <spfile>] [-A <name|ip>/netmask] [-r {PRIMARY | PHYSICAL_STANDBY | LOGICAL_STANDBY}] [-s <start_options>] [-n <db_name>] [-y {AUTOMATIC | MANUAL}]
    Usage: srvctl add instance -d <name> -i <inst_name> -n <node_name>
    Usage: srvctl add service -d <name> -s <service_name> -r "<preferred_list>" [-a "<available_list>"] [-P <TAF_policy>]
    Usage: srvctl add service -d <name> -s <service_name> -u {-r "<new_pref_inst>" | -a "<new_avail_inst>"}

  • How to drop oracle 10.2.0.4 rac database on RHEL5

    Hi,
    I am having oracle 10.2.0.4 rac database with ASM configuration on RHEL5. Every week/day i take rman level 0 / level 1 backups by using RMAN into disk. Now i would like to test those backups. For that i need to drop this existing database and restrore, recovery from those backups. My database is configured with asm that is having two disk groups.
    DATA for storing data
    FRA for archive logs
    How can i drop the rac 10.2.0.4 database and restore & recovery database from RMAN backups with asm. Could any one send clean steps for this testing?
    Thanks
    Vamshi
    Edited by: user12052260 on Jun 17, 2011 10:41 AM
    Edited by: user12052260 on Jun 17, 2011 10:41 AM

    I asked about instances. Before performing your steps is it mandatory to bring down all the oracle instances. Before droping this database how to deregister these services from clusterware? After recover the database how to register the database services with clusterware?if you want to register/de-register, you need to use SRVCTL in clusterware. commands to ADD/REMOVE from clusterware, refer this below note.
    http://download.oracle.com/docs/cd/E14072_01/server.112/e10595/restart005.htm

  • How to remove database profile in report

    Hello,
    We have a report right now and upon accessing it, a window asking for a Database Profile comes out. This causes the program to have additional selection parameters for Project Definiton, WBS element etc.
    Before we just ran the report for Period, Year, Cost Center Group. Ever since the Database Profile appeared we now have to put * in the WBS element so that the report will run.
    Anyone know how to remove the Database Profile selection? One of our users reported that this wasn't in the selection parameters and our developer said there were no changes to the report.
    Are there possible reasons why the Database Profile suddenly appeared?
    FYI, the report was created using Report Groups (GR51/2/3)
    Thanks.

    Hi,
    What selection criteria you need?
    Database profile is needed to access objects from Logical PS DB. You have to put at least one selection object viz. Project Definition or WBS, or Network or Activity.
    Create one of your own profile as per requirements and default it in user param.
    Regards,
    Harsh.
    Edited by: Harsh Saxena on Jul 8, 2011 1:13 PM

  • How to install Oracle 11.2.0.4.0 Rac Database on Grid Infrastructure 12.1.0.2.0 (Windows 2012 R2)

    Hi all.
    This is the scenario:
    I have a 2 node cluster Microsoft Windows 2012 R2 x86_64, the nodes are part of domain.
    Installed Oracle 12cR1 (12.1.0.2.0) as follows:
    Installation done using domain administrator named "installoracle" that has been EXPLICIT promoted to local administrator in both nodes.
    One domain user named "oracle12c" with no administrator privileges neither in the domain or nodes.
    Installation, after a lot of customization in the OS of the nodes, has gone ok, perfect indeed, not even a warning during runinstaller execution.
    All services and resources are up & running, I have rebooted nodes and all comes back ok in place. In windows services I can see some services started with "oracle12c" user, and all windows groups: DBA, SYSKM, etc, has been created.
    Now I have to install Oracle RAC database in 11gR2 version (11.2.0.4.0) to accomplish with application requirements.
    So, I execute runInstaller (setup.exe) logged as administrator via domain administrator "installoracle" (the one that was able to do the smooth 12c GI installation) and the gui comes with out problems, but at 4th screen the one in which you have to choose what kind of installation you want to do (Single, RAC or RoN) I select RAC option, the gui returns error: crs is not running in the local node...
    Finally, in order to deliver some database 11.2.0.4.0 for my customer, I try to do installation of SW for Single Node, I did using "installoracle". The sw has been installed in one of the nodes. Then I have created a database and I have stored datafiles in ASM (this ASM is part of 12c clusterware) and also register the 11gR2 single instance database in the Grid Infrastructure listener
    So, whats next??? Why is this behavior??? I did similar installations in Linux/Solaris with no issue (well as everyone can imagine, always there are some issues, but when solved you got GI in 12c and databases in the release that you want 12c, 11g, 10g...)
    Any clue?
    Thanks in advance!!
    Best Regards!!

    To go back to old version (without changing compatible parameter), you can perform downgrade.
    Instructions are available at
    How to Downgrade from Database 11.2 to Previous Release (Includes 11.2.0.4 - 11.2.0.1) (Doc ID 883335.1)
    In this case you will having all the data file including the new one.
    But remember database may not be in the same status as before (Before upgrade). it may have invalid objects of higher version after downgrade. 
    Downgrade is applicable only to successfully upgraded databases. In case upgrade faced some issue, do not try downgrade there.
    Your second approach it not correct. Note that each datafile header will have db version. We can not open database in normal mode when header version and binary versions are different.

  • How to remove spaces at selection screen coming from logical database

    Hi Experties,
    When we hide some selection from the logical database.  The spaces still occupied and this make our selection screen looks awkward.
    How to remove the spaces left by hidden selection ?
    Regards
    Nislina

    Hi,
    I came across your un-answered question while searching for a solution on the similer problem. Though I couldn't fine a solution on SDN, but figured out one myself. Thought its a good idea to share it.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group4 = '003'.
          screen-active = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Here screen-group4 contains the sequence number of the select-options field starting from 000 onwards.
    You may like to assign points and close the question.
    Kind Regards,
    Khalid Mustafa

  • How to configuare RAC database in single system?

    Hi,
    I have installed Linux in my system. Can i create RAC database in that system? if it is possible , how to create RAC database?..
    Thanks,

    RAC on a single machine? Can't think of any other method than virtual machines.
    Tim Hall has a good article for RAC using virtual machines on Linux here...
    http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php

  • How to stop and start RAC Database

    Hi,
    Can anybody tell me How to stop and start RAC Database.
    Pls give me the exact procedure for OS - IBM Aix 5.3.
    Rajkumar

    Burleson,
    It so appears, as from the numerous times you have been published incorrect, untested information, and non-working scripts, you are not an Oracle guru,
    but only a self-proclaimed one.
    It also appears nothing on your 'CV' can be easily verified.
    You state you are an 'adjunct professor emeritus', however anyone who was kicked out after a few months can call himself a 'professor emeritus'.
    Looking at the enormous amount insults and slander you have posted directed to me and others on this forum, showing a highly unprofessional attitude toward your peers,violating this forums rules of conduct, don't you think you deserved to be banned completely?
    After all, you are always promoting your own publications here, which is also in violation of the rules for this forum.
    What makes you think that "Sybrand" is a man's name? How many male Sybrand's do you know? I don't know any, not one.
    That's your problem. I'm as much as male, as you are a fat, ugly, self-proclaimed Oracle-guru, which you are clearly not, you are only a fraud, and this glares from all of your publications.,
    Sybrand Bakker
    Senior Oracle DBA

  • How to remove an object lock from database in VMM?

    This seems to be a recurring issue for others as well, but the root cause might be different for each
    I am in a situation where I can't add additional disks to a VM because of running intoError (2602) "Unable to perform the job because one or more of the selected objects are locked by another job" - however, other VMs on
    the cluster are not locked and there are no other jobs running against the VM where I need to add the disks.
    Looks like a quirk in the VMM database to me - maybe an "orphaned lock"?  Would love to know how to remove this or how to handle this issue, as the recommended action in VMM doesn't really help much at all (To find out which
    job is locking the object, in the Jobs view, group by Status, and find the running or canceling job for the object. When the job is complete, try again.)  
    Why doesn't VMM at least say which job is locking the object? 

    This post is older than 30 days or we have not heard back from you. 
    Did this issue get resolved?  If so, please share with community how you resolved. 
    Otherwise, re-activate post if you still require assistance.
    o   
    Also, if you feel this is just a bug in SCVMM I recommend submitting bugs or recommendations to our connect site.  Connect offers the ability
    to have the product team directly evaluate a bug, design, or feature request.  Here is the link:
    https://connect.microsoft.com/site960
    Carmen M. Summers (MSFT) --Posting is provided "AS IS" with no warranties, and confers no rights.

  • For 4 node RAC database on Exadata x3-2, how many scan IP I should assign?

    We want to build a 4 node RAC 11gr23 on exadata x3-2.  Oracle only recommend 3 ip for scan listener. by previous observation of non-exadata RAC, seems each node will spread randomly one Scan Ip address. So if we assign 3 ip to one scan listener, how that will work on a 4-node RAC?
    Thanks

    You're welcome
    by Load balancing
    Oracle RAC databases increase load balancing by using the single client access name (SCAN) for the cluster to balance connections among all instances in a cluster database. SCAN also adds location independence for the databases, so that client configuration does not have to depend on which nodes are running a particular database or database instance.
    http://docs.oracle.com/cd/E11882_01/install.112/e48195/undrstnd.htm#RIWIN607
    Based on the environment, the following actions occur when you use SCAN to connect to an Oracle RAC database using a service name. The numbered actions correspond to the arrows shown in Figure 7-1.
    http://docs.oracle.com/cd/E11882_01/install.112/e48195/undrstnd.htm#CIHIBEIH
    Regards

Maybe you are looking for

  • How to display field value only once in REUSE_ALV_GRID_DISPLAY

    hi experts,                i am using REUSE_ALV_GRID_DISPLAY, for alv outpur display.but i want one of the field in output ,not to display the value which is of same, it have to be displayed only once, I mean i have a number which contains multiple l

  • PPPI PI sheet to trigger HUM goods receipt and PI order confirmation

    Hi gurus, We're running into a problem when setting up our PI sheets. We're using Handling Unit Management for our finished products and would like to use the PI sheet to post both the goods receipt of handling units and the order confirmation. For n

  • BPM 7.3 basis setup - deploy error

    Hi guys, I`m a PI developer and quite new to SAP BPM, only took part in the SAP training several months ago. Now the installed a BPM 7.3 system and I`m trying to implement some processes starting with the sample of the training. I created a RuleSet a

  • Quote Character Not Correct

    I have had this problem with KDE for some time, and I just can't figure it out. The problem is with Konq displaying the " character. A fine example is: http://www.popsci.com/popsci/science/ar - 71,00.html The character becomes a block. I have tried d

  • Just tripped over my power supply and...

    Thank you all at Apple design! My MagSafe pulled straight out and the Macbook didn't even move. These are the design things that really make it for me. The cosmetic looks of the MB are important, but for me it's all about what's inside. And to protec