How to restore .MDF file to other instance

Hi All
I need your help, one of my sql cluster crashed. I rebuild SQL Cluster with same instance name and cluster name. I want to know how to restore one of our user database .MDF database file. By mistaken i deleted .LDF file. And now i'm facing challenge
to restore .MDF file.
If anyone face this issue, please share you experience.
Regards
Rinks

I entirely agree with Dan that you should restore the database from a clean backup.
Since the cluster crashed, I suspect that the database was not shut down cleanly and in this case you will not be able to attach the MDF with the suggestions Dan made.
It is possible to what Paul Randall calls a "hackattach", but I am not going to describe this here. You will be able to access the database, but the database may be full of corruptions. So I really hope that you have a backup.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • How to repair .mdf file?

    My sql databases in SQL Server 2014 has the status "suspend" as I saw in SQL Management Studio. I can't restore to serviceable condition sql databases through standard procedures. I need to restore .mdf file.

    You may try to use third party tool
    SQL Server Repair Toolbox. Free demo version is available from here http://www.sqlserver.repairtoolbox.com/how-to-repair-an-mdf-file.html
    In case this solution couldn't help you, make use of next steps: 
    1. select ‘run’ from ‘start’ enter 
    2. ‘cmd’ and then enter type “chkdsk 
    3. x: /r” and press enter key, here X represents drive where mdf file is 
    4. stored to confirm restore press “Y” restart system, the drive will be scanned at startup and the MDF file is recovered

  • How to Restore Control file to New Server

    I want to test my backup by restoring the full backup of my production database on a separate test server.
    I have taken following action for restore to test server:
    •     Copy full backup to Test Server on same folder where it was in Production Server.
    •     Copy parameter file to Test Server. (Edit control file location on it)
    •     Connect Rman
    •     Set DB with new DBID
    •     Startup Nomount (from new parameter file)
    RUN
    ALLOCATE CHANNEL c1 TYPE DISK;
    RESTORE CONTROLFILE FROM AUTOBACKUP;
    ALTER DATABASE MOUNT;
    Then we found following error:
    RMAN> RESTORE CONTROLFILE FROM AUTOBACKUP;
    Starting restore at 07-NOV-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=9 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day: 20071107
    channel ORA_DISK_1: looking for autobackup on day: 20071106
    channel ORA_DISK_1: looking for autobackup on day: 20071105
    channel ORA_DISK_1: looking for autobackup on day: 20071104
    channel ORA_DISK_1: looking for autobackup on day: 20071103
    channel ORA_DISK_1: looking for autobackup on day: 20071102
    channel ORA_DISK_1: looking for autobackup on day: 20071101
    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 11/07/2007 16:35:13
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    Can anyone guide me, how to restore control file?
    Irfan

    RMAN> RESTORE CONTROLFILE FROM AUTOBACKUP;
    Starting restore at 07-NOV-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=9 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day:
    20071107
    channel ORA_DISK_1: looking for autobackup on day:
    20071106
    channel ORA_DISK_1: looking for autobackup on day:
    20071105
    channel ORA_DISK_1: looking for autobackup on day:
    20071104
    channel ORA_DISK_1: looking for autobackup on day:
    20071103
    channel ORA_DISK_1: looking for autobackup on day:
    20071102
    channel ORA_DISK_1: looking for autobackup on day:
    20071101
    channel ORA_DISK_1: no autobackup in 7 days found
    RMAN-00571:It seems to me its not finding the contolfile from 7 days before sysdate ,increase the window size using
    RMAN>restore controlfile from autobackup maxdays 15;Khurram

  • How to Restore a file In Yosemite's Time Machine?

    Since upgrading to Yosemite, I am having difficulty figuring out how to restore a file using Time Machine.  When I select a file, and click on a recent date, the selected date does Not remain selected, and the "Restore" button is grayed out.  How do I select a date and restore???

    Don't try to restore the file; restore the Note. Go in Mail to the mailbox where the note belongs. Enter Time Machine from there and step back until you find the Note.

  • How to restore .bu file

    hi,
    i created back up through SBO Backup (SAP Business One Service Manager )
    i got the Back up files and all Attachments folders.
    But i want to restore this (.bu) and .zip files into existing company database
    while creating time i got these files:
    one backup file - extension is .bu
    other all attachment files and word docs , bitmaps these files are  .Zip extension
    I want to restore these files .
    thnk you.

    SQL server 2005 : supporting back files type is : .bak and .tm
    My problem not solved
    But i got .bu (file type) backup. how can i restore this file ..
    Eg: these files are i got .
    1) backup file name is : Testdatabase091510140500.BU
    2) Attachments091510140536.zip
    3) BitMaps091510140537.zip
    4) ExcelDocs091510140539.zip
    5) WordDocs091510140539.zip
    how to restore these files into my existing company data base
    Regards
    Manoj

  • HT1766 how to restore data file from back up on iPhone 5 docs to go

    how to restore data file from back up on iPhone 5 docs to go

    If it backed up the lock file, then Lightroom was open when Time Machine ran, and the backup therefore may be corrupted.  You could try restoring that backup (without overwriting your week ago version) and see if it'll open.  If it does, you're off and running.  What methods have you tried?

  • How to add music files from other hard drives

    how to add music files from other external hard drives??

    Not sure what you are trying to achieve.. You can copy the files to anywhere you like.. but the TC is a backup target for Time Machine.. it is not a media server.. it is totally useless copying your files to the TC as they will not be backed up from there.. TC has no built in backup and TM cannot backup network drives.

  • How should i share file with other devices such as nokia,blackberry and etc using bluetooth

    I want to share  files between other deivce such as nokia but couldnt, could u help me tell how can i share files with other devices???

    @AKRBTN: Thanks for the reply and info.
    That is a solution, but it really isn't viable.
    It is sad that apple refuses to support this.
    A simple example: Sitting somewhere with no signal and you want to share a file (photo) with your colleague or friend, who happens to be right next to you.
    Or even if there is signal and you don't want to be paying fees or data charges.
    Or you may be in a rehearsal studio and need to share that very important file and have no time to go outside and get signal and try to send the file, which then everyone else has to go outside and catch the signal and pay fees.
    Anyway, I see that this is a dead end with apple, so I guess I will be back to carrying 2 phones around again.
    Peace,
    SB

  • My iphone 4 bluetooth does not discover any other devices or phones having bluetooth and ofcourse does not pair with other bluetooth devices or phones? How can i transfer files to other devices through bluetooth? Thanx

    My iphone 4 bluetooth does not discover any other devices or phones having bluetooth and ofcourse does not pair with other bluetooth devices or phones? How can i transfer files to other devices through bluetooth? Thanx

    you can't tranfer files with the built in program that apple gives you, you may (i belevie) download an app that allows you

  • How do i download files using other downloader (like orbit downloader) instead of firefox downloader itself?

    how do i download files using other downloader (like orbit downloader) instead of firefox downloader itself?
    please give me detailed steps to do it
    i have orbit downloader

    I tried it again, and this time when I resumed it lost about 10Mbytes, so I guess this means that the app store downloader saves its data every 10MBytes.
    I will try downloading the whole thing again(XCode4) and just hope that this time I can get the whole download before it decides to wipe out what it has already downloaded.

  • How to attach .mdf file to sql server 2008 EXPRESS

    I have .mdf files created using SQL SERVER management studio 2012 in another computer and wish to attach the same to SQL SERVER 2008 EXPRESS in another computer. How should I do so? I tried this method :How
    to: Attach a Database File to SQL Server Express but then it shows an error that the database cannot be created due to compatibility issues.
    Msg 948: The database xyz cannot be opened because it is version 706. This server supports version 655 and earlier. A downward path is not supported..
    Any help??

    I have .mdf files created using SQL SERVER management studio 2012 in another computer and wish to attach the same to SQL SERVER 2008 EXPRESS in another computer. How should I do so? I tried this method :How
    to: Attach a Database File to SQL Server Express but then it shows an error that the database cannot be created due to compatibility issues.
    Msg 948: The database xyz cannot be opened because it is version 706. This server supports version 655 and earlier. A downward path is not supported..
    Any help??
    You are trying to attach SQL Server 2012  database files to SQL Server 2008 R2 which is not allowed, you either need to upgrade your SQL Server 2008 to 2012 or alternatively you can generate all scripts from SQL Server 2012 and execute it in SQL Server
    2008 R2.
    You can refer below link to how to generate script.
    http://blog.sqlauthority.com/2012/07/18/sql-server-generate-script-for-schema-and-data-sql-in-sixty-seconds-021-video/
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    Praveen Dsa | MCITP - Database Administrator 2008 |
    My Blog | My Page

  • How to restore mail files from Time Capsule onto a different machine?

    My Macbook Pro hard drive crashed, and I want to restore my backed-up mail files from Time Capsule onto my Desktop Mac (iMac 27").  When I try to restore by opening Time Capsule with Mail already open, I can only see the current mail files on the iMac (not the backed up files on the MacBook Pro), even when I point to the MacBook Pro backup file.

    Hello there, AngryMario.
    The following Knowledge Base article offers up how to restore mailboxes and content using Time Machine:
    Mail (Mountain Lion): Restore mailboxes and their content
    http://support.apple.com/kb/PH11713
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How to restore data files from a purchased app that isn't working

    I recently had to reset my iPad after an ios7 problem with hyperlinks.  The reset fixed the hyperlink problem but now I can't open excel or word files created in a purchased application, productivity suite.  When I click on the file, it starts to open then switches back to the app icon.  Tried deleting and reinstalling the app and now all the files are gone from my iPad.  I backed up my iPad to my desktop before deleting the app but can't figure out how to restore just the files I need. 

    You should be able to mount the partition once you've loaded up the live CD. Just figure out which one it is by using
    fdisk -l
    then mount it to /mnt or wherever you want it.
    As for moving/saving them, I'm not entirely sure how to get them onto an external server. You might have to mount another partition in order to install any apps that you need to connect to an external server, but wait for someone who really knows to answer before you try it. If you're only talking about 4 or 5 MB, I would just mount a USB stick and dump them on there.
    Last edited by Xyne (2008-09-28 03:38:02)

  • How to restore illustrator file after crash?

    how to restore adobe illustrator files after crash OS win 8, and I could backup

    To enable us to help you better, you need to provide as many details as you can about the problem you are experiencing.
    If you design your question effectively, you can get good information from people who are knowledgeable about the topic and who are happy to help you.
    Prepare your question. Think it through. Hasty-sounding questions get hasty answers, or none at all.
    What troubleshooting have you done so far?
    Asking an effective question will get you help faster read how here
    Suggestions for asking for help on a site.
    http://www.catb.org/~esr/faqs/smart-questions.html
    Wanikiya and Dyami--Team Zigzag

  • How to generate *.mdf file?

    Hello!
    I wish to generate a .mdf(measurement data file which is read in Vector CANape) file from *.txt or *.xls file. I'm looking to a VI that can do this or how can I convert a .txt file to a .mdf file.
    Thanks!

    Perhaps this will help.

Maybe you are looking for

  • Problem with yahoo! SMTP POP server mail account on new upgraded iphone 4.3.5

    PLEASE HELP! I am a California AT&T wireless customer with a new iphone 4 on the iOS 4.3.5 upgraded system and suddenly I am unable to successfully add my Yahoo! email account and have it configured to send/receive my emails.  I was able to successfu

  • Setting in cm, need to change to inches

    Crystal Reports v11R2, running on Vista SP1, USA, all Windows settings to English, USA. All of my Crystal Reports are in cm (metric) and not inches. I have yet to find a solution to this annoyance.  During install I am prompted, I obviously selected

  • How can I deinstall Mavericks from my Mac book OS X Mountain Lion

    I want to deinstall Maverick from my Mac Book and go back to Mountain lion

  • Error when trying to save .ai file

    Hi, I created a business card in Adobe Illustrator CS2 and now I want to change my email address on the card. I did that and tried to save it but when I did this error message came up: "The path does not exist". I don't know why it's doing that. I wa

  • Retrieving overwritten imported photos

    Hi, I imported some photos I took with a friend's camera, and I neglected to fill in the boxes to name the event etc. (This is the first time I've ever imported photos from a camera.) After importing a few photos I saw there were a few more on the ca