How to clone database from backup without access to original DB
I want to create a new database from existing backup files and rolling forward some of the archivelogs (preferably with a new name and with different directory layout).
How can I achieve the task on a separate test server (without access to the original database)? I found a lot of sources ( e.g. http://www.oracle-base.com/articles/11g/DuplicateDatabaseUsingRMAN_11gR2.php ) but all with connection to original DB (e.g. entries in tnsanmes.ora)
Backup runs a simple
BACKUP DATABASE PLUS ARCHIVELOG;
DB Version is 11.2.0.2 on Linux.
Many thanks to your help. Finally I was able to restore the DB. The steps I used (similiarly also mentioned in some of the links above).
1.) Copy backup (backupset, autobackup, archivelog) to the new server into directories
/export/restore/autobackup/2012_03_01
/export/restore/autobackup/2012_03_02
/export/restore/archivelog/2012_03_01
/export/restore/backupset/2012_03_01
2.) create pfile initDBREST.ora
DB_NAME=DBREST
3.) Mount DB
ORACLE_SID=DBREST; export ORACLE_SID
sqlplus / as sysdba
STARTUP NOMOUNT;
4.) Connect to auxiliary DB
ORACLE_SID=DBREST; export ORACLE_SID
rman AUXILIARY /
5.) Create directories for new DB for datafiles in e.g. /export/oradata/DBREST/
6.) Duplicate DB and reset parameter if necessary (e.g. memory_max as test server is lower on RAM)
DUPLICATE DATABASE TO DBREST
until time "to_date('02.03.2012 15:00:00','DD.MM.YYYY hh24:mi:ss')"
DB_FILE_NAME_CONVERT '/export/fs1/oradata/oldDB/','/export/oradata/DBREST/', '/export/fs2/oradata/oldDB/','/export/oradata/DBREST/'
SPFILE
SET MEMORY_TARGET '2G'
SET MEMORY_MAX_TARGET '2G'
SET db_recovery_file_dest '/export/oradata/'
SET db_recovery_file_dest_size '100G'
BACKUP LOCATION '/export/restore'
NOFILENAMECHECK;
7.) create temporary tablespace
Similar Messages
-
How can i restore old backup without deleting my existing data
how can i restore old backup without deleting my existing data. unfortunately i have deleted few of my old photos and restored them from my old backup. i got the deleted photos but lost my recent data and photos. how can i get those too.
You cannot. However, if your back up is through iTunes on your computer and you do an internet search for something like "iPhone BackUpExtractor", I believe there is software that will help you access the SQL database that is your back up. You may be able to pull out what you need.
Once you restore from a back up, any data that was on the phone is gone. -
How i can make a backup without separate hdd?
How i can make a backup without seperate hdd?
how i can partition the hd? please step by step...
today it's my first apple-day ... i was 18 years windows user
While I agree with everyone else, get a second disk and backup to that disk, I will point you in the directory of partitioning.
Applications -> Utilities -> Disk Utility
Disk Utility may or may not be able to carve a new partition out of your existing partition, depending on whether the end of the current partition is unused so the current partition can be reduced in size and a new partition added.
It may be necessary to use an external disk, clone your internal disk using SuperDuper or Carbon Copy Cloner (both free to use when creating a full clone), then partition your internal disk, and finally restore the external clone to the internal disk again using SuperDuper or Carbon Copy Cloner.
If you do not want to get a 2nd disk, then consider using an on-line service such as CrashPlan, Carbonite, Mozy, etc... for the files you absolutely cannot aford to loose. -
How to extract controlfile from backup set?
Hi
If I use this "INCLUDE CURRENT CONTROLFILE" in backup command direct to tape and no catalog, How to extract controlfile from backup set from tape?
Thanks,
Taohiko
Edited by: taohiko on Sep 17, 2009 7:54 AMyes
list backup of controlfile
will show you where controlfile backup piece reside with backup piece name
after then
restore controlfile from 'backup_piece_naem_with_its_full_path_from_above_command_result';Khurram -
How to create database from .sql file
how to create database from .sql file..?? i put the sintax query in a sql file.. and i want to call it in java code..
ho to do it..??why do you want to do this from java?
i just don't see the point.
find your dba and have him/her run it for you -
How To Migrate Databases From Windows 2003 32 bit to windows 2003 64 bit?
Hi,
How To Migrate Databases From Windows 2003 32 bit to windows 2003 64 bit?
Db Version: 10.2.0.2
Thanks,
YusufAlso see MOS Doc 403522.1 (How to Migrate Oracle 10.2 32bit to 10.2 64bit on Microsoft Windows)
HTH
Srini -
changed the password on my 4s and now i'm locked out, how can i change my password without accessing my phone?
just so you all don't think i can't read i tried restoring my phone but it is telling me that it can't restore the phone because it is locked. i'm not entirely sure how i entered a password in twice incorrectly, but go figure. does anyone have anyother ideas other than restoring it?
-
Help, How to encrypt database exp backup files?
Hi all,
Now, My customer want to encrypt the database backup file. We use exp command backup database, and the backup files can be restored on other servers.
So, How to encrypt database exp backup files?
Thanks.
Eric David.Hi;
In addition to Aman post, please mention your db and OS version,so we can help you more specificly.
I also suggest please see below googling which mention and explain rman+encrypted backup
http://www.google.com.tr/#hl=tr&sa=X&ei=dCAtTpuwHMjOswa1gOH3Dw&ved=0CBUQBSgA&q=RMAN%2Bencrypted+backup&spell=1&fp=503f556dbe78c402&biw=1280&bih=797
Regard
Helios -
How to migrate database from oracle10g to mysql
how to migrate database from oracle10g to mysql
Assuming you're actually using any of the features of Oracle at present, this will be an impossible task, since MySql has such narrower set of supported SQL.
-
How to download apps from AppStore without credit card information in I pad
How to download apps from AppStore without credit card information in I pad
How to Get Apps From the App Store Without a Credit Card
http://ipadhelp.com/ipad-help/how-to-get-free-apps-from-the-app-store-without-a- credit-card/
Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
http://support.apple.com/kb/ht2534
iTunes Store: Changing Account Information
http://support.apple.com/kb/HT1918
Cheers, Tom -
How to sign out from icloud without losing my photos ??
how to sign out from icloud without losing my photos ??
Welcome to the Apple Community.
You can sign into more than one account at once, providing you only need one primary account, what exactly are you trying to do. -
I've forgotten my administrator password and can't download software. can anyone advise how to reset a new password without having the original?
Forgot Your Account Password
For Snow Leopard and earlier
Mac OS X 10.6- If you forget your administrator password
For Lion/Mountain Lion
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
When the menubar appears select Terminal from the Utilities menu.
Enter resetpassword at the prompt and press RETURN. Follow
instructions in the dialog window that will appear.
Or see Reset a Mac OS X 10.7 Lion Password and
OS X Lion- Apple ID can be used to reset your user account password.
If you are unable to boot from an installer DVD:
(these will only work on Leopard or earlier)
1. Boot to Safe Mode by restarting and after the chime press and hold down
the COMMAND-S keys until a black screen with white type appears.
2. At the prompt, type the following commands pressing return after each
command line:
/sbin/fsck -yf
If you do not receive a "Filesystem OK" message then repeat this command
until you do. If after seven tries you still do not receive a "Filesystem OK"
message, then the system is corrupted and needs to be reinstalled.
mount -uw /
cd /private/var/db/netinfo
mv local.nidb local.old
rm ../.AppleSetupDone
shutdown -r now
The second-to-last command above will cause OS X to think that the operating system is newly installed, and when the new owner starts up the computer it will send him/her to the startup wizard where he/she can start a new user without reinstalling.
This last method does not actually change a password. It simply removes the user accounts and lets you create an initial admin account as if the computer were new out of the box.
Reset Admin Password Using The Terminal
You can reset the password by printing out (or writing down) and carefully following these steps.
First, find the short name of the admin user on the machine. The easiest way of doing this is by looking at what the directory is called in the Users folder.
Now, start in Single-user Mode. It should boot into a command line.
Enter these exact lines. Press RETURN after each.
mount -uw /
ifconfig lo0 up
cd /var/db/netinfo
netinfod -s local
Now you'll need that short name. Enter "passwd", a space, and the short name of the admin. For example, if the admin was rather prosaically called "imadmin", you would enter "passwd imadmin".
The computer will now prompt you to change the password for "lmadmin" (or whatever the short name was). Go ahead and enter a new password.
Now, enter:
sync
reboot
and the machine will reboot. The admin password should now be changed. -
How to create new database from backup.
Hi !
i have backup of a database, i do not want to restore, i want to create new database from the backup.
i am using oracle 11g xe.
yours sincerelyIf the Location of the datafiles is similar to that of source database then you can consider below steps
Create Oracle Service using oradim
set ORACLE_SID=NEWDB
oradim -new -sid NEWDB -intpwd passwordofthesys -startmode M
Connect to the RMAN
rman>rman target /
restore spfile/pfile and control file from backup
rman>restore spfile to pfile '_localtion of the initNEWDB.ora_' from '_location of the SPFILE Backuppiece_';
rman>startup nomount pfile='localtion of the initNEWDB.ora';
rman>restore controlfile from 'file location of the controlfile Backuppiece';
rman>alter database mount;
Catalog the RMAN backuppiece of source database
rman>catalog backuppiece '_location of the rman backuppiece of source database_ ';
resotore & recover database
rman>restore database;
rman>recover database;
open the database with reset logs
rman>alter database open resetlogs;
rman>create spfile from pfile;
rman>shutdown immediate;
rman>startup;
==================
If you have access to source database then you can clone using below rman command:
+rman target _<source database>_ auxiliary _<new database>_+
rman>duplication target database to _<your new database name>_;
==========
If the location of the datafiles and logfiles are different from source database then you need to add db_file_name_convert and log_file_name_convert to the pfile before starting the recovery process. -
How do I restore my iPhone 3G, ios 3.1.3, from a backup without updating. I need to restore my ical entries and they are wiped out on both my main and backup drive and mobile me. My phone is also wiped out and I think my back up may be my only hope of getting that info back. Every time I try to restore using itunes 5.1 itunes only shows me th option to restore and update. Not just restore. Will the option to just restore from the last backup present itself in the process or do I need to shift click or something? Thanks for your help...
Can't I fake it out so it just leaves my ios as it is but restores files and settings? ios 4 doesn't really work well with the 3G models. They get slow and buggy. Isn't there some way to just put the ipsw file somewhere and point to it? Or, is there a way to just rip the ical info outof the backup files. That would work to.
-
How to Recover database from old backup and full archive log file
Hi Oracle expert!
I met problem when restore my oracle database.
In my case:
- My database version: 10.2.0.2
- I have a database full backup (01-Nov)
- I have all Archived log file from (01-Nov -> 05-Nov)
- My database drop in 05-Nov with disk error (no datafile, no redo..).
- I have no any RMAN backup from (01-Nov -> 05-Nov)
How can i restore my database to 05-Nov?
Thanksuser10280724 wrote:
Hi Chinar.
When i used RMAN flow as your step, but i met the problem!
- After recover database i select sequence#, applied from v$archived_log;
--> it apply newest archived log that i had.
- but when I select Data from table created between 01-Nov to 05-Nov, it not found!
Not the same way the step:
SQL> RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL?
It apply newest the same archived log i had table created between 01-Nov to 05-Nov.
How can i do with RMAN to recover my table?That is not possible,if your all available archive logs applied using rman or through sqlplus(recover database using backup controlfile until cancel) and one of these logs contain your table then there are not any problems.So there are not any difference between recovery using rman and user managed(using sqlplus),but there main matter is applying all archive logs.So first check through rman list copy of archivelog all or list backup of archivelog all and identify there in rman repository is any information or not about these logs.
Maybe you are looking for
-
I have deleted all my videos songs and photos from my iphone 4 but when i connect to itunes it still shows 17gb free. how can I solve this issue without restore. Total storage of my iphone is 32 gb.
-
Is it possible to configure Mail in a 'push' configuration?
'push' as I understand it, means the client is always in connection with the mail server- so when new mail comes in, it doesn't sit on the server until the client's schedule tell it to check for new mail (this applies to both POP and IMAP). Does anyo
-
Loading of presummarized data into Analytic Workspace
Hi, The structure of my AW is as follows: DIM_A: a1 ________ |___ a2 |___ a3 TOP_LEVEL LEAVES_LEVEL DI_B: b1 ________ |___ b2 |___ b3 TOP_LEVEL LEAVES_LEVEL There is a cube named CUBE_1 based on the two dimensions and a measure MEASURE_1 defined in i
-
Relation between Shop id and Internet User in CRM
Hi Guru's, We are using SAP CRM 4.0. Can you please let me know in SAP CRM backend how can i find the shop id from the Internet User. We have created a BSP application and hosted in Portal. In the BSP application we want to determine the sales area f
-
Raising Customer Messages with SAP OSS on BCS issues
Hi guys, I'd be keen to know everyone's opinion on raising customer messages with SAP OSS, in particular on BCS. Often I find that my colleagues are hesitant to raise a note with SAP because they think it either takes too long or they don't get a sat