ASM lost disk, rebuilt disk grp. No dbid, how to copy ctl file to ASM?

Hi all,
I'm trying to help out on what is turning out to be a real challenge.
This looks to be Oracle 10.1.0.4.0 (version showed by rman and sqlplus).
There is ASM...but it was set to redundancy of EXTERN, but not really external redundancy. This is a test box, and I guess they were just trying to use what disks they had....I dunno, it was set up long before I got here.
Out of all the instances I've had to look at....for this one server, I have no DBID's documented.
This is a HP-UX box....they replaced the bad ASM drive, and I rebuilt the DATADG disk group.
RMAN settings...well, show all just gives defaults, as that I don't have a control file in place. This was, however, set up to autobackup control files and spfiles...but I don't know the DBID, and can't figure how to find the DBID....
I did, however, find the snapshot controlfile...and hoping I could use that.
I am, however, stumped as to how to copy this copy of the control file, into ASM.
I have found and old pfile that I can use to start the instance. I have started it nomount with this.
I looked at the parameter for control file and found:
SQL> show parameter control_file
NAME TYPE VALUE
control_file_record_keep_time integer 7
control_files string +DATADG/instance/control01.ctl
, +DATADG/instance/control02.c
tl, +DATADG/instance/control03
.ctl, +DATADG/instance/control
04.ctl
So, I know where they are to go. This is such an old version, I guess there was no ASMCMD...I can't find that command.
I'm thinking, if I could find a way to copy this snapshot of the control file onto ASM in the old places it was, I could startup up the database, and it would then be able to restore and recover with the RMAN backups?
Any suggestions?
cayenne

Just a quick update on this.
I was able to find a snapshot of the controlfile on disk....
I went into asm and recreated the directory where the controlfiles were kept, and used rman to copy the snapshot controlfile to where the originals were kept:
export ORACLE_SID=+ASM
connect with sqlplus and do:
SQL> alter diskgroup DATADG add directory '+DATADG/instance';
Diskgroup altered.
Then in RMAN:
restore controlfile to '+DATADG/instance/control01.ctl' from '/u01/app/oracle/product/10.1.0/Db_1/dbs/snapcf_INSTANCE.f';
restore controlfile to '+DATADG/instance/control02.ctl' from '/u01/app/oracle/product/10.1.0/Db_1/dbs/snapcf_INSTANCE.f';
restore controlfile to '+DATADG/instance/control03.ctl' from '/u01/app/oracle/product/10.1.0/Db_1/dbs/snapcf_INSTANCE.f';
restore controlfile to '+DATADG/instance/control04.ctl' from '/u01/app/oracle/product/10.1.0/Db_1/dbs/snapcf_INSTANCE.f';
I then got out of RMAN...back into sqlplus and mounted the database instance:
SQL> connect / as sysdba
Connected.
SQL> alter database mount;
Database altered.
Checking to see backups:
RMAN> run {
2> allocate channel vh1 type sbt_tape;
3> restore database preview;
4> }
allocated channel: vh1
channel vh1: sid=321 devtype=SBT_TAPE
channel vh1: NMO v4.1.0.0
Starting restore at 30-SEP-11
Starting implicit crosscheck backup at 30-SEP-11
Finished implicit crosscheck backup at 30-SEP-11
Starting implicit crosscheck copy at 30-SEP-11
Finished implicit crosscheck copy at 30-SEP-11
searching for all files in the recovery area
cataloging files...
cataloging done
no files cataloged
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
33235 Incr 0 9G SBT_TAPE 00:23:51 11-AUG-11
List of Datafiles in backup set 33235
File LV Type Ckp SCN Ckp Time Name
1 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/system.413.573936825
2 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/undotbs1.409.573936855
3 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/sysaux.406.573936867
4 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/users.432.573936895
5 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/rcv_cat.437.573987643
6 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/mgmt_tablespace.448.574422259
7 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/mgmt_ecm_depot_ts.844.574422261
8 0 Incr 330744282 11-AUG-11 +DATADG/instance/datafile/oem_repository.533.574022071
Backup Set Copy #1 of backup set 33235
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:23:51 NO WEEKLY_INSTANCE_081111040003
List of Backup Pieces for backup set 33235 Copy #1
BP Key Pc# Status Media Piece Name
34399 1 AVAILABLE server.003 fjmjmnmo_1_1
34400 2 AVAILABLE server.003 fjmjmnmo_2_1
34401 3 AVAILABLE server.003 fjmjmnmo_3_1
34402 4 AVAILABLE server.003 fjmjmnmo_4_1
34403 5 AVAILABLE server.003 fjmjmnmo_5_1
Finished restore at 30-SEP-11
released channel: vh1
I think I'm ready to try to figure out the restore and recover parts now....
I tried to recover the spfile from autobackup...but that didn't work:
RMAN> restore spfile from autobackup;
Starting restore at 30-SEP-11
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: sid=321 devtype=SBT_TAPE
channel ORA_SBT_TAPE_1: NMO v4.1.0.0
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=320 devtype=DISK
channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110930
channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110929
channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110928
channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110927
channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110926
channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110925
channel ORA_SBT_TAPE_1: looking for autobackup on day: 20110924
channel ORA_SBT_TAPE_1: no autobackup in 7 days found
recovery area destination: +RECOVERYDG
database name (or lock name space) used for search: INSTANCE
channel ORA_DISK_1: no autobackups found in the recovery area
channel ORA_DISK_1: looking for autobackup on day: 20110930
channel ORA_DISK_1: looking for autobackup on day: 20110929
channel ORA_DISK_1: looking for autobackup on day: 20110928
channel ORA_DISK_1: looking for autobackup on day: 20110927
channel ORA_DISK_1: looking for autobackup on day: 20110926
channel ORA_DISK_1: looking for autobackup on day: 20110925
channel ORA_DISK_1: looking for autobackup on day: 20110924
channel ORA_DISK_1: no autobackup in 7 days found
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 09/30/2011 10:01:09
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
Anyway...further along than I was.....
Suggestions welcome....
cayenne

Similar Messages

  • TS1541 Startup disk full after installing Leopard.  How do I delete files safely?

    How can I delete files in my startup disk.  I have deleted photos and music files but the trash will not empty.

    When files refuse to delete, what error message are you getting?
    Allan

  • How to copy DB files from UNIX filesystem to ASM in RMAN?

    Hi,
    I have a cold backup copied from a RAC ASM by using RMAN to UNIX filesystem. I made it like this:
    RMAN> run
    copy datafile 1 to '/backup/PDAMLPF2/offline/system.306.715096785';
    copy datafile 2 to '/backup/PDAMLPF2/offline/undotbs1.260.715096755';
    Now, I need to restore (or copy) this cold backup into another RAC ASM system to create a DB. How can I do the copy back?
    Thanks for advise!

    If you are using 11.1 or above you can use asmcmd cp command otherwise use dbms_file_transfer package. But keep in mind that since you are not using RMAN in any of those stages you will need to modify controlfile anyhow.
    Regards,
    Husnu Sensoy

  • How to copy archivelog-files from a ASM instance to another ASM instance

    Hello ,
    our RAC database has to be moved to another Datacenter. The database has a size of several Terrabyte. Will will create a standby database (on a cluster) on the new datacenter (using RMAN backup). Since the RMAN backup takes rather long we would like to copy the archive logs to the new datacenter. Since the archivelog-files are stored on a dirskgroup of an asm instance we have the following question:
    - how can the archivelog files get copied from the current location to the new location?
    Rgds
    Jan

    VivaLaVida wrote:
    Many thanks for your answer...
    As a matter of fact the archivelogs are not backuped on a filesystem. If so we would copy them from the source to the destination host (that's easy).
    The question is "how to get them copied from one ASM diskgroup to another ASM diskgroup". RMAN might be a good solution - but we would need to
    figure that out...
    We talking about 100 GB of archivelogs a day - therefore we don't want to wait until the standby database is configured and online. To have the archivelogs
    already on the new host in the new datacenter would save alot of time.What is ASM version?
    The copy is peer to peer? (i.e Can you copy files from one ASM to another directly?)

  • How to multiplexing control files in ASM instance???

    Hi Folks
    I have an Oracle DB10g R2 with ASM in which the unique control file is in one group of ASM.
    My question is how to multiplex the controlfile and redo logs???
    Very thanks,
    Wilson

    Hi, you can use the OMF feature of ORACLE to move the controlfile into the ASM.
    1. you create a backup controlfile: ALTER DATABASE BACKUP CONTROLFILE TO '/home/oracle/control.bac';
    2. you specify the locations:
    - ALTER SYSTEM SET db_create_online_log_dest_1='+ASMGROUP1'; -- RMAN will restore one mirror of the controlfile in each of these locations!
    - ALTER SYSTEM SET db_create_online_log_dest_2='+ASMGROUP1';
    ALTER SYSTEM SET db_recover_file_dest='+ASMGROUP1'; -- this will make RMAN restore the controlfile in the flash_recovery_area!
    3. you create a pfile from spfile:
    - CREATE PFILE FROM SPFILE;
    4. you archive the current redolog:
    - ALTERSYSTEM ARCHIVE LOG ALL;
    and SHUTDOWN IMMEDIATE
    5. you edit the pfile by removing the entry for CONTROL_FILES!!!
    - and after this: CREATE SPFILE FROM PFILE;
    6. you use RMAN to restore the controlfile in the ASM:
    RMAN> STARTUP NOMOUNT;
    RMAN> RESTORE CONTROLFILE FROM '/home/oracle/control.bac';
    RMAN> ALTER DATABASE MOUNT;
    RMAN> RECOVER DATABASE USING BACKUP CONTROLFILE;
    RMAN>ALTER DATABASE OPEN RESETLOGS;
    Hope this helps,
    Lutz

  • Where can I find the Start up disk and how can I delete file from it.

    where can I find the Start up disk on theMac Book Air?
    How can I delete files from it?

    The startup disk is the internal SSD in your MBA.  You may delete files by draging the file  to Trash (or clicking on them and then execute COMMAND+Delete).  Then empty Trash.
    Ciao.

  • Disk Utitlity has "Lost Connection" with Disk Management tool"

    [ Edited by Apple Discussions Moderator; please start a new topic about your technical issue. ]
    Running OSX10.3.8
    I installed:
    "iTunes" (6.0.2)
    "iPod Updater 2005-11-17" ((null))
    "iChat Update" (2.1)
    Went to repair disk permissions
    I get this error:
    Disk Utitlity has "Lost Connection" with Disk Management tool" Please quit Disk Utility.
    then it says quitting Disk Utility may render the disk useless. Stopping the scan just gives a "stopped by User" red text message in the DU screen.
    Had to Quit. No other way out.
    Now it will not repair "or" verify Disk permissions at all.
    What to do?
    Powermac G4 1.25ghz, OS9/OSX   Mac OS X (10.3.8)  

    Getting the same results booting off of the install CD. I even ran fsck -y after a soft boot(command S). Note I also installed the iPod updater and iChat update.
    I'm getting a crash log that has to do with DiskManagement
    Path: /System/Library/PrivateFrameworks/DiskManagement.framework/Resources/DiskManage mentTool
    I tossed the pref file for Disk utility and tried to locate a pref for the Disk Management but nada...
    Is there a prefs file that needs to be tossed?
    Anyone do a recent Onyx Maintainence cleaning?
    Is there a way to do an iTunes Uninstal and reinstall a previous version?
    Powermac G4 1.25ghz, OS9/OSX   Mac OS X (10.3.8)  
    Powermac G4 1.25ghz, OS9/OSX   Mac OS X (10.3.8)  

  • I lost the installation disks for CS4 master collection. Where can I download the installation file?

    Hello,
    I lost the installation disks for CS4 master collection polish version. Where can I download the installation file?

    Hi filmowka,
    Welcome to the Community!
    Go to http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html and choose Master collection CS4 from the list.
    Follow the Very Important Section else the download will not start.
    Thanks!
    Ankit

  • I have lost the install disks that came with my 2011 macbook pro, do i need to pay for new disks?

    Hi
    Iv lost my install disks for my 2011 Macbook pro and i want to reformat my hard drive. Do i need to buy new discs? I cant find a download on the appstore so i guess i cant download it for free since i have already bought it.
    Any Ideas on how to resolve this issue?
    Cheers!
    Tom.

    Yes. Phone Apple Support and order replacements.
    (66912)

  • I lost my install disk to my mac book 10.6.8

    My computer is corrupted and needs the intall disk to fix my issues but lost my install disk to my book 10.6.8

    Phone Apple Support and order replacements.
    (67436)

  • I have lost my installation disk for my mac book pro running Snow Leopard 10.6." Where can I replace it?"

    I have lost my installation disk for my mac book pro running Snow Leopard 10.6." Where can I replace it?"

    You can get replacement System Install & Restore CD/DVDs from Apple's Customer Support - in the US, (800) 767-2775 - for a nominal S&H fee. You'll need to have the model and/or serial number of your Mac available.

  • I need to reinstall the system software on my older iMac. I have lost the system disks, though... so now what? It had 10.4.

    I need to reinstall the system software on my older iMac. I have lost the system disks, though... so now what? It had 10.4. We moved, and I have looked everywhere. Am I doomed to find a way to buy it? Can taking it into the Apple Store fix it? Will it be expensive THERE? I've already saved all of the files I want off of it.... I just need it to work now.

    You've lost me on why you need to reinstall Tiger, when you already have all the files you wanted (which means Tiger worked perfectly fine). If you want to upgrade to Leopard, that's a different issue: your Mac needs to meet the minimum system requirements for that, which you can easily determine.
    If you just want to get a replacement set of Tiger install discs, you can try calling AppleCare and see if they're able to send you a replacement set, and if not, you'll have to buy a new set yourself. You can get them on eBay, Craigslist, and HardCore Mac (http://store.yahoo.com/hardcoremac/), although they sell it for ridiculous prices.
    < Edited by Host >

  • I lost my Hard disk and had to replace it, how can I get another copy of lion OS, P.S. I bought my macbook pro with preinstalled Lion OS

    I lost my Hard disk and had to replace it with a new one, how can I get another copy of lion OS, as the guy at the serive center installed 10.6 for me.
    P.S. I bought my macbook pro with preinstalled Lion OS

    If you have a way to wipe 10.6.8 off, you can then reboot your machine (with no OS) and since your system came preinstalled with Lion, Internet Recovery should occur which will boot to Apple's servers into a Recovery HD for you to redownload and install Lion.
    To be safe I would first make a clone of the current installation using Carbon Copy Cloner or SuperDuper!. This way you have a way to recover.

  • How to add ASM Disk to Disk Group that is shown as MEMBER?

    HI,
    We have a Production Oracle RAC on HP-UX. We have Two Disk Groups one for Arcive (ARC_DISK) and other for Database(DATA_DISK).
    Today I wanted to add another 200 GB of Disk Space to the DATA_DISK Group.
    I opened DBCA and could not find the new disk in the 'Show Candidates' option. But after the Unix admin changed the ownership and permission of the Disk, it was shown in 'Show Candidates' option. I selected this Disk and continued but got an error later as we didnt change the ownership and permission from the 2nd Unix server. After doing this, , when I open DBCA to add disk, nothing is shown in 'Show Candidates' option but when we click on 'Show All', the new disk is listed as MEMBER (header status) but not allocated to any Disk Group.
    I would like to know how to allocate this Disk (which is already shown as MEMBER) to the DATA_DISK - ASM diskgroup. This is a production database system.
    Rgds,
    Thiru

    user1983888 wrote:
    Hi,
    Due to huge difference in Disk Size which I am trying to add to the existing Disk Group which has 1024 GB of Disk, would it be a better idea to create a new Disk Group with 200g GB Disk? Will this command work as the header_status is already MEMBER?
    SQL>CREATE DISKGROUP DATA_DISK1
    EXTERNAL REDUNDANCY
    DISK 'disk path';
    Thanks.Yes, you can create new diskgroup (DATA_DISK1). Just make sure all datafile in DATA_DISK autoextend off, then create all your new datafile to the new diskgroup DATA_DISK1. The command will not work as the header_status is MEMBER. You'll receive ORA-15018 & ORA-15033 error. As I mentioned before, you need to use FORCE option or format the disk using dd* command before perform above command.
    1st Option : (Format the raw disk using dd command creating new diskgroup. Header_status MEMBER -> CANDIDATE). E.g.
    1. dd if=/dev/zero of=/dev/rdsk/c2t1d0 bs=8192 count=1000 //any rac nodes
    2. # chown oracle:oinstall /dev/rdsk/c2t1d0 //perform on both node. This apply if using LVM or direct access to raw
    3. SQL> create diskgroup data_disk1 external redundancy disk '/dev/rdsk/c2t1d0'; //any RAC node in ASM instance
    4. SQL> alter diskgroup data_disk1 mount; //try to mount on the other node
    2nd Option : (Using FORCE option when creating the new diskgroup. Header_Status = MEMBER)
    1. # chown oracle:oinstall /dev/rdsk/c2t1d0 //perform on both node. This apply if using LVM or direct access to raw
    2. SQL> create diskgroup data_disk1 external redundancy disk '/dev/rdsk/c2t1d0' force; //any RAC node in ASM instance
    3. SQL> alter diskgroup data_disk1 mount; //try to mount on the other node
    Just be careful when using FORCE option or DD command. If you perform this operation on existing ASM disk groups disk, it may destroy existing disk groups.

  • RAC and ASM with geographically seperated disks

    We are planning to use RAC and ASM with four nodes. The two nodes will be at one location and another two nodes at different location. The ASM disks also will be available locally. Is it possible to configure ASM with geographycally serepared disks.
    We are thinking of two RAC and ASM setups with two nodes each and streams replication between the RACs.
    I want to know what is the best method to implement. Is it RAC with four nodes OR two RACs with two nodes each and streams replication between the RACs.

    Apart from the latency issue, which has been mentioned by others, you also need to mirror your disks between the two sites and be very careful about split brain scenarios under node or site crashes.
    You need to mirror the disks between the sites in case one site crashes completely and loses all network access. The only way the second site can carry on is if it has access to all the data disks, and the cluster control disks (terms vary for this, such as quorum or voting disk). If you do not mirror you simply do not have a resilient design. Resilience is about eliminating all single points of failures, which means duplicating everything i.e. mirroring.
    And mirroring between two remote sites adds more volume to the data traffic between the two sites. And it would need to be synchronous rather than asynchronous to guarantee no data loss. And your commits for each transaction would be limited by the round trip time to write to the remote site and get the acknowledgement back.
    Split brain is something you need to avoid with remote clusters, and local clusters too. If the network goes down between the two sites and both sites have local copies of all of the data and cluster control disks, which site becomes the primary and which one becomes the standby? You cannot have both sites coming back up as primary with active databases and accepting transactions! At this point you have split brain, and each side is processing transactions independently, and both databases are now deviating from each other with different data changes.
    I don't think a 4 node RAC environment split across geographical distances is really viable, except under small transaction volumes, and where response time (transaction time) is not critical. If you have high volumes and need fast transactions then you need to only use local RAC configurations, and replicate between the two sites asynchronously. DataGuard is easier, but you need to decide if you need Streams and how to make it work for you.
    John

Maybe you are looking for

  • Multiple users on same external drive

    I want the three itunes users to be able to see the whole library of songs when each is logged on. At present when a new song is imported the others do not automatically have it shown in their song list. How can I make it so everyone sees all the mus

  • Mac Pro shut down on its own, then on boot up it beeped steadily for 2 min?

    I put my 2009 Mac Pro to sleep then the next day I find it completely shut down! I boot it up and then I hear a steady beep (every second) for about 2 minutes. After 2 minutes the beeping went away. Any idea what caused Mac Pro to shut down on its ow

  • Outlook 2013 set as default mail client but still shows error box saying it isn't?

    We have recently installed Office 2013 64-bit on 4 servers. We previously used Outlook 2007 64-bit. We set Outlook 2013 as the default mail client and do not have another mail client installed on the servers. However when you first login you get an e

  • Ess/mss best practice

    When implementing employee self service and manager self service what are the best practices when creating ids.  Do most use active directory. Or employee Ids and or generated numbers.  I would like to know what the best methods some may recommend. T

  • Mobile site implementation of an existing set

    is it possible to design just a muse mobile site of an existing non-muse desktop site that doesn't need changing which was designed by another developer?