HOW TO RESTORE A .BAK SQL BACKUP IN VSUAL STUDIO 2010

Respected sir,
         i have microsoft visual studio 2010.i have a websit in ASP.NET with sql server database.
i have my database as .bak files.i cant restore it.
         please help me urgent, how to restore the database.
         thanks in advance.
         please help me
                              with regards,
                                          jamsheedh cv

Hi jamsheedh,
In addition, if you want to restore .bak file, you can also run the restore command in the Visual Studio 2010 Command Prompt. Note that right click the run as administrator. The restore statement:
Restore database <databasename>
From disk=’path\.bak’
With move ‘<data>’ to ‘new path\.mdf’,
move ‘<log>’ to ‘new path\.ldf’,
replace
There is an example about restoring database in VS 2008 command prompt, you can review the following article.
http://blogs.artinsoft.net/Mrojas/archive/2010/10/22/How-to-restore-SQLSERVER-bak-file-to-mdf.aspx
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support

Similar Messages

  • How to restore ipad using last backup in icloud

    how to restore ipad using last backup in icloud

    Restore from iCloud Backup
    1. Erase all contents and settings (Settings>General>Reset>Erase all content and settings)
    2. You'll be asked twice to confirm
    3. You'll see Apple logo and progress bar
    4. You'll see a big iPad logo on screen
    5. Configuration start
    6. Set language
    7. Set country
    8. Enable Location Service
    9. Select network, enter password and join network
    10. You'll be given 3 options (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    11. Selected Restore from iCloud Backup
    12. You'll be required to enter Apple ID and Password
    13. Agree to Terms and Conditions
    14. Select Backup file
    15. You'll see progress bar
    16. Red slider will appear; slide to unlock; step #1 to #16 is fast
    17. Pre-installed apps will be restored first
    18. Message: Purchased apps and media will now be automatically downloaded
    19. You'll see a pageful of apps with Waiting/Loading/Installing
    20. When the restore process is complete, your device will restart. You should connect the device to iTunes to sync data not contained in the backup (such as music, videos, apps, and so on).

  • How to Restore iPad from iPhone Backup?

    I have an iPad and an iPhone, now I have a problem, I want to Restore iPad from iPhone, but Idon't know how to do this job, can you give me some advise about how to restore iPad from iPhone backup file?

    Restore from iCloud Backup
    1. Settings>General>Reset>Erase all content and settings
    2. Tap Erase
    3. You'll see Apple logo and progress bar
    4. Hello
    5. Slide to set up
    6. Set language
    7. Set country
    8. Choose Wi-Fi network; enter Wi-Fi password
    9. (a) Use Location Service (b) Don't Use Location Service
    10. Select option
    11. (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    12. Selected Restore from iCloud Backup
    13. Enter password for iCloud
    14. Agree to Terms and Conditions
    15. Setup Apple ID
    16. Select backup
    17. Restoring from iCloud
    18. Hello
    19. Restore Completed. Your iPad was restored successfully. There are just a few more steps to follow and then you're done!
    20. Continue
    21. Finish setting iCloud enter Password
    22. Updating iCloud settings
    23. Create a Passcode
    24. Welcome to iPad
    25. Get Started
    26. Restoring Apps and Media
    27. Enter Apple ID and Password
    28. Notice: Restore Incomplete, some items could not be downloaded from the Store. If they are on your computer, you can restore them by syncing with iTune
    29. Connect iPad to iTune to sync with computer
    30. Sync Music, Videos and Album Artwork

  • HT4972 i updated my 4th genedration ipod touch to 6.ios, but now I can't find out how to restore it with my backup. can anyone help?

    I updated my 4th generation Ipod touch, but now I can't find out how to restore it from my backup.  I backed it up to my computer. 
    Can anyone help?

    iOS: How to back up and restore your content

  • How to Restore iPhoto Library from BackUp?

    My iPhoto library has gone blank, although its trash has the 4,555 images. And all organization, albums, keywords, photo names, gone. Recently my backup storage, where library kept, went blank. I got a new backup, and a pro restored most of old data, and transfered to new one. So, I have the Library on the new backup, and need to restore it in the iPhoto Library, rather than create a new one, which as I understand will lose albums, keywords, etc. A friend says that way to hold down a key when opening iPhoto that will have it look for old library and restore? Not in Help or elsewhere.
    I had a MacBook Pro, when this first happen. Now have iMac and have iLife 09, but don't want to instal it until photo library restored.
    Sounds basic, but how to restore.
    Thanks,
    Armando

    Armando
    The simplest way to restore is to put the Library in the Pictures Folder and launch iPhoto.
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library' To select a Library.
    Regards
    TD

  • How to restore a deleted iCloud backup? I deleted the backup to free up the 5 GB free storage and now on my iPhone some of my Contacts are missing a phone

    How to restore a deleted iCloud storage backup?
    I deleted it all to free up the free 5 GB storage and now on my iPhone 5s some of my Contacts are missing a phone # info and some of the Contacts are missing entirely. Thank you.

    I used this to restore my deleted notes from Time Machine, hope this helps others
    closed Notes,
    turned WiFi off,
    entered finder/go+option/ to 'get to library':  /Library/Containers/com.apple.Notes/Data/Library/Notes/
    entered TM and selected the 3 files/ hit restore/ keep both (just to make sure, then I deleted the newer file, not the 'restored' file when this worked out)
    opened notes and my deleted notes were back so I copied my notes into pages as a backup,
    turned on WiFi and the notes disappeared!
    replaced my restored notes by copy/pasting my backups into notes/iCloud.... 
    notes/mac would not show across iCloud.... don't remeber this being an issue prior to Mavericks when 'all' notes were selected?
    Apple needs to hear from us so they can fix glitches like this.  TM was created for instances like this, hopefully this is just an oversite.  Pass this along to Apple Feedback/iCloud/bug.  If enough of us flag such issues, hopfully it's addressed on the next update.
    Dear Apple, this should be much easier than it is. We should be able to open Notes, go into Time Machine, and restore anything regardless if it's on my Mac or on the cloud.

  • How to restore XP Mode from backup VHD file?

    Hi,
    Please can you give us some steps on how to restore from these backups?
    I have Windows 7 Professional, 64-Bit .
    I have XP Mode looking nice now, with my legacy game installed and running nicely
    I have created a folder called C:\XP Mode Backups Apr 7 2014
    In this folder are 59 folders and files copied from the backup directories
    %USERPROFILE%/AppData\Local\Microsoft\Windows Virtual PC
    %USERPROFILE%/AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines
    %USERPROFILE%/Virtual Machines
    So, in the event that I have to re-install XP Mode, how can I restore it as is will all the applications,  and especially ALL the Windows Updates for XP Mode that I cannot connect to the internet ever again after 8th April 2014.
    You see my concern, after XP D-Day, I am only supposed to run XP Mode after I have disconnected from the internet.
    So, I don't want to have to spend 2 hours on the internet downloading all the updates that were released prior to XP Apocalypse day.
    Is it possible for some instructions on how to restore from the above files?
    I am guessing that I can just re-install XP Mode from the download (which I am also keeping in that folder, then copy the files from the above backup directory into the correct locations on my Windows 7 C:\ drive.
    Alternatively, is it just a case of going to the %USERPROFILE%/Virtual Machines directory, click Create Virtual Machine and after choosing location, and clicking Next, select Use an existing virtual hard
    disk and choose the VHD for Windows XP Mode in my restore folder? I guess in this case there is no need to reinstall XP Mode from the download executable from Microsoft?
    Which one is correct?
    Thanks for any help
    Philip

    You are actually in the wrong forum for your problem.  You need to go to the Windows Virtual PC and XP Mode forum @
    http://social.technet.microsoft.com/Forums/windows/en-US/home?forum=w7itprovirt to have your question addressed appropriately.
    But, the best solution is to made a copy of the .VHD file for your XP Mode.  You would need a functioning XP Mode system to restore any backups from your current XP Mode system.  It acts and functions exactly as it would if you had the system installed
    on hardware instead of in a Virtual Machine.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • How to restore a database from backup taken in standby database

    Its our  environment standard to run backup in standby database.
    Now we have to perform refresh production database to UAT database.
    I have performed normal refresh/duplicate.  Is there any additional procedures need to be followed to perform refresh from standby database backup

    RMAN Restoration to New Server with Different Directory and New Database Name
    In this case, I have an existing production database with RMAN Level 0 backup:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'C:\flash_recovery_area\galaxy\backupsets\autobackup\SAMSUNG-ctl_%F';
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'C:\flash_recovery_area\galaxy\backupsets\level0\level0-%d-%T-%U' MAXPIECESIZE 4G;
    DELETE NOPROMPT ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE - 7';
    SHOW ALL;
    REPORT SCHEMA;
    LIST BACKUP OF DATABASE;
    REPORT NEED BACKUP;
    REPORT UNRECOVERABLE;
    LIST EXPIRED BACKUP BY FILE;
    LIST ARCHIVELOG ALL;
    REPORT OBSOLETE;
    CROSSCHECK BACKUP DEVICE TYPE DISK;
    CROSSCHECK COPY OF ARCHIVELOG ALL;
    DELETE NOPROMPT EXPIRED BACKUP DEVICE TYPE DISK;
    DELETE NOPROMPT OBSOLETE DEVICE TYPE DISK;
    RUN {
    sql 'alter system archive log current';
    BACKUP INCREMENTAL LEVEL 0 DATABASE PLUS ARCHIVELOG DELETE INPUT;
    LIST BACKUP OF DATABASE;
    REPORT NEED BACKUP;
    REPORT UNRECOVERABLE;
    LIST EXPIRED BACKUP BY FILE;
    LIST ARCHIVELOG ALL;
    REPORT OBSOLETE;
    CROSSCHECK BACKUP DEVICE TYPE DISK;
    CROSSCHECK COPY OF ARCHIVELOG ALL;
    DELETE NOPROMPT EXPIRED BACKUP DEVICE TYPE DISK;
    DELETE NOPROMPT OBSOLETE DEVICE TYPE DISK;
    The backupsets will be restored into a new server with different file structure. The database will also be different. In the new server, I have created a blank database (SID or CUSTOM database with the name DBGRID). This is easier so I won't have to create any directories, user ORADIM or create new PWFile.
    This document assumes that a blank (starter) database has been created in the new server. The RDBMS version is the same as the source database.
    In this example, the source database name is GALAXY and the target database name is DBGRID.
    Let me know if you have any feedback or comments. All I want is to share these steps with you and make it better so we can help other DBA's as well.
    Steps start here
    -->
    ORIGINAL DATABASE: GALAXY
    DUPLICATE DATABASE: DBGRID
    FROM THE SOURCE DATABASE (GALAXY)
    1. Backup the database using RMAN incremental backups.
    2. Check the RMAN logs generated and look for the result of the command:
    C:\Users\Administrator>set ORACLE_SID=GALAXY
    C:\Users\Administrator>rman target /
    Recovery Manager: Release 11.2.0.1.0 - Production on Wed Aug 1 06:55:08 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: GALAXY (DBID=3578870300)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema for database with db_unique_name GALAXY
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace RB segs Datafile Name
    1    680      SYSTEM *** C:\ORACLE\ORADATA\GALAXY\SYSTEM01.DBF
    2    510      SYSAUX *** C:\ORACLE\ORADATA\GALAXY\SYSAUX01.DBF
    3    140      UNDOTBS1 *** C:\ORACLE\ORADATA\GALAXY\UNDOTBS01.DBF
    4    5        USERS *** C:\ORACLE\ORADATA\GALAXY\USERS01.DBF
    5    106      EXAMPLE *** C:\ORACLE\ORADATA\GALAXY\EXAMPLE01.DBF
    6    2048     ALLINDEX *** C:\ORACLE\ORADATA\GALAXY\ALLINDEX01.DBF
    List of Temporary Files
    =======================
    File Size(MB) Tablespace Maxsize(MB) Tempfile Name
    1    29       TEMP 32767 C:\ORACLE\ORADATA\GALAXY\TEMP01.DBF
    This command shows all the physical database files that will be backed-up by the current RMAN job.
    List the online redolog files:
    SQL> select * from v$logfile;
    GROUP# STATUS  TYPE    MEMBER IS_
    3         ONLINE C:\ORACLE\ORADATA\GALAXY\REDO03A.LOG     NO
    3         ONLINE C:\ORACLE\ORADATA\GALAXY\REDO03B.LOG     NO
    2         ONLINE C:\ORACLE\ORADATA\GALAXY\REDO02A.LOG     NO
    2         ONLINE C:\ORACLE\ORADATA\GALAXY\REDO02B.LOG     NO
    1         ONLINE C:\ORACLE\ORADATA\GALAXY\REDO01A.LOG     NO
    1         ONLINE C:\ORACLE\ORADATA\GALAXY\REDO01B.LOG     NO
    6 rows selected.
    3. Since the target server has different structure, it is easier to use a pfile to startup the database rather than restoring the spfile from backup.
    C:\Users\Administrator>set ORACLE_SID=GALAXY
    C:\Users\Administrator>sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 1 06:56:14 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create pfile='C:\TEMP\initGALAXYrman.ora' from spfile;
    File created.
    4. Edit the pfile to have the following parameters:
    (These parameters has been edited to fit the target database requirements)
    galaxy entries has been changed to dbgrid. Directories has been corrected as well.
    dbgrid.__db_cache_size=192937984
    dbgrid.__java_pool_size=4194304
    dbgrid.__large_pool_size=4194304
    dbgrid.__oracle_base='D:\app\Administrator'#ORACLE_BASE set from environment
    dbgrid.__pga_aggregate_target=281018368
    dbgrid.__sga_target=524288000
    dbgrid.__shared_io_pool_size=0
    dbgrid.__shared_pool_size=301989888
    dbgrid.__streams_pool_size=4194304
    *.audit_file_dest='D:\app\Administrator\admin\DBGRID\adump'
    *.audit_trail='db'
    *.compatible='11.2.0.0.0'
    *.control_files='D:\oradata\DBGRID\control01.ctl','D:\oradata\DBGRID\control02.ctl'
    *.db_block_size=8192
    *.db_domain=''
    Leave as it is for now --> *.db_name='GALAXY'
    *.db_recovery_file_dest='D:\fra\backupsets\duplicate'
    *.DB_RECOVERY_FILE_DEST_SIZE=4G
    *.diagnostic_dest='D:\app\Administrator'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=DBGRIDXDB)'
    *.job_queue_processes=1000
    *.log_archive_dest_1='location=D:\fra\backupsets\archs'
    *.log_buffer=10485760
    *.memory_target=805306368
    *.open_cursors=300
    *.processes=800
    *.remote_login_passwordfile='EXCLUSIVE'
    *.session_cached_cursors=300
    *.sessions=885
    *.undo_tablespace='UNDOTBS1'
    Make sure that all the directory values in this edited pfile are existing in the target server.
    5. Copy all the RMAN backup pieces generated in the source database. Transfer the edited pfile as well. Make sure that all directories presented in the pfile exists in the target server.
    In this example, RMAN backupsets are located at:
    Backupsets:
    Level0 and Level1 = D:\fra\backupsets\duplicate\level0 , D:\fra\backupsets\duplicate\level1
    Controlfile and Spfile Autobackup = D:\fra\backupsets\duplicate\autobackup
    Edited pfile initGALAXYrman= C:\TEMP\initDBGRIDnew.ora
    FROM THE TARGET DATABASE (DBGRID)
    6. Connect to RMAN and perform database duplication using RMAN backup restoration
    C:\Users\Administrator>rman target /
    Recovery Manager: Release 11.2.0.1.0 - Production on Wed Aug 1 07:26:45 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database (not started)
    RMAN> set dbid = 3578870300; --> THIS IS THE DBID OF THE SOURCE DATABASE!
    executing command: SET DBID
    RMAN> startup nomount pfile='C:\TEMP\initDBGRIDnew.ora'; -->restore the edited pfile
    Oracle instance started
    Total System Global Area     535662592 bytes
    Fixed Size 1375792 bytes
    Variable Size 327156176 bytes
    Database Buffers 192937984 bytes
    Redo Buffers 14192640 bytes
    RMAN> restore controlfile from 'D:\fra\backupsets\duplicate\autobackup\SAMSUNG-CTL_C-3578870300-20120801-00'; -->restore the correct controlfile
    Starting restore at 01-AUG-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:07
    output file name=D:\ORADATA\DBGRID\CONTROL01.CTL
    output file name=D:\ORADATA\DBGRID\CONTROL02.CTL
    Finished restore at 01-AUG-12
    RMAN> alter database mount; -->mount the database
    database mounted
    released channel: ORA_DISK_1
    RMAN> catalog start with "D:\fra\backupsets\duplicate";
    --> catalog the location of the backup pieces to make it known to the control file
    Starting implicit crosscheck backup at 01-AUG-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    Crosschecked 3 objects
    Finished implicit crosscheck backup at 01-AUG-12
    Starting implicit crosscheck copy at 01-AUG-12
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 01-AUG-12
    searching for all files in the recovery area
    cataloging files...
    no files cataloged
    searching for all files that match the pattern D:\fra\backupsets\duplicate
    List of Files Unknown to the Database
    =====================================
    File Name: D:\FRA\BACKUPSETS\duplicate\autobackup\SAMSUNG-CTL_C-3578870300-20120801-00
    File Name: D:\FRA\BACKUPSETS\duplicate\level0\LEVEL0-GALAXY-20120801-01NHGTGV_1_1
    File Name: D:\FRA\BACKUPSETS\duplicate\level0\LEVEL0-GALAXY-20120801-02NHGTIA_1_1
    File Name: D:\FRA\BACKUPSETS\duplicate\level0\LEVEL0-GALAXY-20120801-03NHGTMT_1_1
    Do you really want to catalog the above files (enter YES or NO)? YES
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: D:\FRA\BACKUPSETS\duplicate\autobackup\SAMSUNG-CTL_C-3578870300-20120801-00
    File Name: D:\FRA\BACKUPSETS\duplicate\level0\LEVEL0-GALAXY-20120801-01NHGTGV_1_1
    File Name: D:\FRA\BACKUPSETS\duplicate\level0\LEVEL0-GALAXY-20120801-02NHGTIA_1_1
    File Name: D:\FRA\BACKUPSETS\duplicate\level0\LEVEL0-GALAXY-20120801-03NHGTMT_1_1
    RMAN> list backup summary; -->check your backup they are now known
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    1 B  A  A DISK 01-AUG-12       1       2 NO         TAG20120801T011054
    2 B  0  A DISK 01-AUG-12       1       2 NO         TAG20120801T011137
    3 B  A  A DISK 01-AUG-12       1       2 NO         TAG20120801T011405
    RMAN> list archivelog all; -->list you archivelog for point in time recovery
    List of Archived Log Copies for database with db_unique_name GALAXY
    =====================================================================
    Key Thrd Seq     S Low Time
    26 1    29      A 01-AUG-12
    Name: D:\FRA\BACKUPSETS\ARCHS\ARC0000000029_0785167457.0001
    Perform database restoration and recovery. The sequence number is Seq+1 for complete recovery, so that will be 29 + 1 = 30. You can also do recovery via SCN or time based recovery.
    Remember in the previous step: RMAN> REPORT SCHEMA;
    Each datafile has a corresponding datafile number.
    Follow the format to convert them into their respective new restoration directory in the target server.
    SET NEWNAME has the format:
    SET NEWNAME FOR DATAFILE [FILE NUMBER IN THE REPORT SCHEMA COMMAND] TO
    ‘[NEW LOCATION AND FILENAME OF THE DATAFILES]’;
    RMAN> run {
    2> SET UNTIL SEQUENCE 30 THREAD 1;
    3> set newname for datafile 1 to 'D:\oradbgrid\oradata\SYSTEM01.DBF';
    4> set newname for datafile 2 to 'D:\oradbgrid\oradata\SYSAUX01.DBF';
    5> set newname for datafile 3 to 'D:\oradbgrid\oradata\UNDOTBS01.DBF';
    6> set newname for datafile 4 to 'D:\oradbgrid\oradata\USERS01.DBF';
    7> set newname for datafile 5 to 'D:\oradbgrid\oradata\EXAMPLE01.DBF';
    8> set newname for datafile 6 to 'D:\oradbgrid\oradata\ALLINDEX01.DBF';
    9> restore database;
    10> switch datafile all;
    11> recover database;
    12> }
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 01-AUG-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to D:\oradbgrid\oradata\SYSTEM01.DBF
    channel ORA_DISK_1: restoring datafile 00002 to D:\oradbgrid\oradata\SYSAUX01.DBF
    channel ORA_DISK_1: restoring datafile 00003 to D:\oradbgrid\oradata\UNDOTBS01.DBF
    channel ORA_DISK_1: restoring datafile 00004 to D:\oradbgrid\oradata\USERS01.DBF
    channel ORA_DISK_1: restoring datafile 00005 to D:\oradbgrid\oradata\EXAMPLE01.DBF
    channel ORA_DISK_1: restoring datafile 00006 to D:\oradbgrid\oradata\ALLINDEX01.DBF
    channel ORA_DISK_1: reading from backup piece D:\FRA\BACKUPSETS\DUPLICATE\LEVEL0\LEVEL0-GALAXY-20120801-02NHGTIA_1_1
    channel ORA_DISK_1: piece handle=D:\FRA\BACKUPSETS\DUPLICATE\LEVEL0\LEVEL0-GALAXY-20120801-02NHGTIA_1_1 tag=TAG20120801T011137
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:02:06
    Finished restore at 01-AUG-12
    Starting recover at 01-AUG-12
    using channel ORA_DISK_1
    starting media recovery
    archived log for thread 1 with sequence 29 is already on disk as file D:\FRA\BACKUPSETS\ARCHS\ARC0000000029_0785167457.0001
    archived log file name=D:\FRA\BACKUPSETS\ARCHS\ARC0000000029_0785167457.0001 thread=1 sequence=29
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 01-AUG-12
    Log in to SQL*Plus to recreate the redolog files.
    Format:
    ALTER DATABASE RENAME FILE ‘[OLD REDOLOG LOCATION]’ TO ‘[NEW REDOLOG LOCATION]’;
    C:\Users\Administrator>sqlplus "/ as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 1 08:54:27 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select instance_name, status from v$instance;
    INSTANCE_NAME STATUS
    dbgrid MOUNTED
    SQL> ALTER DATABASE RENAME FILE 'C:\ORACLE\ORADATA\GALAXY\REDO03A.LOG' TO 'C:\oracle\oradata\dbgrid\REDO03A.LOG';
    Database altered.
    SQL> ALTER DATABASE RENAME FILE 'C:\ORACLE\ORADATA\GALAXY\REDO03B.LOG' TO 'C:\oracle\oradata\dbgrid\REDO03B.LOG';
    Database altered.
    SQL> ALTER DATABASE RENAME FILE 'C:\ORACLE\ORADATA\GALAXY\REDO02A.LOG' TO 'C:\oracle\oradata\dbgrid\REDO02A.LOG';
    Database altered.
    SQL> ALTER DATABASE RENAME FILE 'C:\ORACLE\ORADATA\GALAXY\REDO02B.LOG' TO 'C:\oracle\oradata\dbgrid\REDO02B.LOG';
    Database altered.
    SQL> ALTER DATABASE RENAME FILE 'C:\ORACLE\ORADATA\GALAXY\REDO01A.LOG' TO 'C:\oracle\oradata\dbgrid\REDO01A.LOG';
    Database altered.
    SQL> ALTER DATABASE RENAME FILE 'C:\ORACLE\ORADATA\GALAXY\REDO01B.LOG' TO 'C:\oracle\oradata\dbgrid\REDO01B.LOG';
    Database altered.
    Open the database in resetlogs option. Create spfile from the edited pfile then bounce the database.
    RMAN> alter database open resetlogs;
    database opened
    SQL> create spfile from pfile='C:\TEMP\initDBGRIDnew.ora';
    File created.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  535662592 bytes
    Fixed Size 1375792 bytes
    Variable Size 327156176 bytes
    Database Buffers 192937984 bytes
    Redo Buffers 14192640 bytes
    Database mounted.
    Database opened.
    SQL> select instance_name, status from v$instance;
    INSTANCE_NAME STATUS
    dbgrid OPEN
    Create a new TEMP tablespace, make this as the new default temporary tablespace. Drop the old TEMP tablespace. Restart the database.
    SQL> CREATE TEMPORARY TABLESPACE TEMP01 TEMPFILE 'D:\oradbgrid\oradata\TEMP0101.dbf' SIZE 200M;
    Tablespace created.
    SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP01;
    Database altered.
    SQL> drop tablespace TEMP including contents and datafiles;
    Tablespace dropped.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance sta

  • HT4859 How to restore iPhone from iCloud backup

    How can I restore iPhone from iCloud backup with out resetting my iPhone

    The only way to restore an iCloud backup is to start by erasing the phone.   Go to Settings>General>Reset, tap Erase All Conent and Settings, go through the setup screens on the phone and when given the option, choose Restore from iCloud Backup.

  • How to restore ipod from recent backup.

    I just wiped out some of my ipod content when syncing and would like to restore my ipod from a previous backup.  I am not sure how to do this.  I clicked on the restore button and it tells me it is going to reset my ipod to factory settings.  How do I tell it to restore to a previous backup?

    Where Backups are stored
    The folder where your backup data is stored changes depending on the computer's operating system. Since iTunes only keeps one backup per device, you should ensure the backup folder is included in your periodic data-backup routine.
    iTunes places the backup files in the following places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Windows Vista: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    For More info visit:http://www.ipadconverter-mac.com/restore-ipad-from-backup/

  • How to restore 16gb from 32gb backup

    how to restore 16gb from 32gb backup

    You can't.  You'll have to delete some data off the device you backed up and create a smaller backup.

  • How to restore a Time machine backup and get a recovery partition?

    Hi,
    I'm quite confused!
    I restored from a Time Machine backup and then setup boot camp (and removed that partition a while back) and now I don't have a recovery partition. (Can't enable File Vault and
    bash-3.2# diskutil list /Volumes/Macintosh\ HD
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *120.0 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            87.4 GB    disk0s2
    My new MacBook Pro didn't come with any CDs.
    Apparently I need the recovery partition to reinstall Lion from the internet.
    "Recovery HD offers on-disk recovery tools, allows you to restore from Time Machine backups, reinstall OS X Lion over the Internet..."
    The recommended solution from Apple seems to be reinstall with your OSX 10.6 CD (which I don't have) and then upgrade to Lion (which seems like a PITA).
    Info from : http://support.apple.com/kb/HT4649
    What process should I follow to restore my recovery partition and apply the current state of the machine from a backup?
    (the process should not involve anything I don't have, like USB memory sticks, Lion CDs, etc....)
    Supplementary questions which are only relevant if the answer is "you can't" (which would seem to be a major bug!) :
    Or is there a clever method to install a recovery partition onto an existing disk (which clearly has space for it)? I have searched for it but all the results I found have either not mentioned that it works without reinstalling but look like it's needed, or do say "reinstall".
    If I install Lion to an external disk, can I boot from that and use the recovery disk assistant tool to restore the partition to my internal disk? (Which I assume I'll need to do to get FileVault to work) ?
    Thanks,
    Max

    Maxs-MacBook-Pro:Applications max$ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *120.0 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            87.4 GB    disk0s2
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     Apple_partition_scheme                        *136.2 MB   disk2
       1:        Apple_partition_map                         30.7 KB    disk2s1
       2:         Apple_Driver_ATAPI                         2.0 KB     disk2s2
       3:                  Apple_HFS Recovery Disk Assistant 136.2 MB   disk2s3

  • How to restore Ipad from previous backup that is not the restore list?

    I did a firmware update for Ipad from 5.1.1 to 6.1
    I backup my Ipad before I did it at 4.46am
    Then I restore my Ipad so it will install IOS 6.1
    However I accidentally set it up as new device with a differrent name (default suggested by itune which is "AL's Ipad")
    Then I try to select my previous backup called "Ipad 3"
    But I cant see "Ipad 3" from my restore list.
    So can I restore my "Ipad 3" backup?

    If you went through the process of restoring your iCloud backup, then tapped Show Older Backups when asked which backup to restore to and the backup you're looking for isn't listed, there's no way to recover it.  You could check to see if you have an older backup on your computer that would have the data you're looking for by opening iTunes and going to Setting>Devices and checking the Backups list.

  • How to restore "notes" from icloud backup

    I was trying to clear data from my old computer (to give to my little sister), and I accidentally deleted all my "notes" from the "mail" program (not just from that computre, but even on the icloud apparently)!
    Is there anyway to restore the notes back to my phone & new computer from my last icloud back up?

    cal124 wrote:
    @pvonk, your advice was pretty worthless.
    for others with this problem, here is the easy solution ...
    http://support.apple.com/kb/TS4108?viewlocale=en_US&locale=en_US
    and the harder solution ...
    http://support.apple.com/kb/HT4946?viewlocale=en_US&locale=en_US
    the harder solution may require this to help you show the hidden files so to recover deleted notes on iPhone...
    If you synced your iPhone with itunes.
    to restore from a previous backup, be sure to go into iTunes before you
    connect your iPod Touch or iPhone and set iTunes > preferences > devices
    and check “prevent iPods and iPhones from syncing automatically.This ensures we don’t erase the previously stored backup.

  • Can I use Built-in SQL Server in Visual Studio 2010 ?

    Hi Friends, I am Atif.
    If I will upload my project to my Server Domain and I want to use Built-in Visual Studio 2010 Sql Server Expreess Database then it will work. If yes then Please suggest me How..??
    Actually I don't want to install SQL Server Database Seperately.
    Tell me How can i achieve this.
    Thanks and Regards.
    Atif.

    Hi Atif,
    Besides other post, to use SQL Server Express for development work, you just need to specify the data source (SQL server's name) and authentication details in a connection string. For more information about SQL Server Express connection string, you can review
    the examples in the following articles.
    Database Connectionstrings
    SQL Server Connection Strings for ASP.NET Web Applications
    Also please note that SQL Server Express edition has some limitations, for example: only one CPU can be used by the express edition, the maximum size of a database is 4 GB (10GB in SQL Server 2008 R2 Express and higher versions of SQL Server Express),
    it can only use up to 1GB of RAM.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

Maybe you are looking for

  • Messages.app no longer connects to Jabber after App Store auto-installed Remote Desktop Update 3.8.2

    Messages.app no longer connects to my company's Jabber server after App Store auto-installed Remote Desktop Update 3.8.2 (even though I never purchased that app). The Remote Desktop app can not be found anywhere on my machines. I suspect the Remote D

  • How to set a button to flatten & email PDF document

    Hi everyone, I am new enough to form creation and have a request for any help? I have a form I would like to give to someone. They should be able to fill it as they need to in reader etc. (with various basic fields and an incrementing number for each

  • DIRECT PATH LOAD의 개념 및 사용 방법

    제품 : ORACLE SERVER 작성날짜 : 1998-11-27 매우 많은 양의 데이타를 빠른 시간 내에 load하고자하는 경우 direct path load를 사용할 수 있다. 여기에서 이러한 direct path load의 자세한 개념 및 사용방법, 사용 시 고려해야 할 점 등을 설명한다. 1. conventional path load 일반적인 sql*loader를 이용한 방법은 존재하는 table에 datafile 내의 data를 SQL

  • Problems accepting software license agreement in Adobe Download Assistant

    I have tried everything suggested, but every time Adobe Download Assistant opens the only option I have is to read the terms of the software license agreement.  Every other option is voided(doesn't respond) I can not minimize, quit, accept, sign in,

  • Assigning the academic scale to the assessment

    Hallo everyone, I have assigned the academic scale to the assessment in the infotype 1767 that is different by module scale. Then I have created scheduled assessment for this assessment and the student is registered for this created scheduled assessm