Restoring the database backup daily after performing some changes on d'base
Hi all,
Im a JUNIOR DBA... please help me..
I have an Oracle 10g database and i have taken a cold backup for the same.(Say i have 10 users)
MONDAY - Now, suppose out of the existing 10 users, i updated 6 tables in each user, so the total updated tables are 60 tables, these tables are only for TESTING purpose.
TUESDAY - Now, suppose out of the existing 10 users, i updated 4 tables in each user, so the total updated tables are 40 tables, these tables are only for TESTING purpose.
Now the question is -
Daily i need to restore the original database backup atleast once, where in i dont want the updated tables of say MONDAY..
Please, let me know how to proceed
Regards,
- Sri
Start with the backup and recovery guide. It will tell you how to work this scenario. Basically, you will restore Sunday backup and apply archived redo logs until you reach the point in time immediately before the changes you do not want.
Similar Messages
-
Restoring the Differential backup file after the full back up restore
Hi All,
This is my full back up restore script
RESTORE DATABASE VSO
FROM DISK = 'C:\DBbackup\\\VSO.bak' WITH
MOVE N'VSO' TO N'C:\PrestageRestoreTest\DATA_LOG\\VSO_Primary.mdf',
MOVE N'VSO_log' TO N'C:\PrestageRestoreTest\DATA_LOG\\VSO_Primary.ldf',
NOUNLOAD, REPLACE, STATS = 10;
After that i want restore Differential back up file on top of that , what is the script?
ThiruSo below will workout, Am I correct?
RESTORE DATABASE VSO
FROM DISK = 'C:\DBbackup\\\VSO.bak' WITH
MOVE N'VSO' TO N'C:\PrestageRestoreTest\DATA_LOG\\VSO_Primary.mdf',
MOVE N'VSO_log' TO N'C:\PrestageRestoreTest\DATA_LOG\\VSO_Primary.ldf',
REPLACE, STATS = 10,NORECOVERY;
RESTORE DATABASE VSO
FROM DISK = 'C:\DBbackup\\\VSO_Diff.bak' WITH
MOVE N'VSO' TO N'C:\PrestageRestoreTest\DATA_LOG\\VSO_Primary.mdf',
MOVE N'VSO_log' TO N'C:\PrestageRestoreTest\DATA_LOG\\VSO_Primary.ldf',
REPLACE, STATS = 10,RECOVERY;
Thiru -
Cannot Restore the The database backup in 2012
Restore of database 'LIBRARY' failed . (miscrosoft.sqlserver.management.relationalenginetasks)
additional information :-
the database was backedup on a server running version 8.00.0194. that version is incompatible with this server , which is running version 11.00.2100 ..
Please crack me out ..Hello,
You're attempting to restore a database that was backed up on SQL Server 2000, directly to a SQL Server 2012 instance. This is not supported.
You'll first need to restore the database backup to a 2005/2008/2008R2 instance, take a new backup, and restore that new backup to 2012. SQL Server 2000 is too old to do a direct migration to 2012.
-Sean
The views, opinions, and posts do not reflect those of my company and are solely my own. No warranty, service, or results are expressed or implied. -
RESTORING THE DATABASE AFTER BEING EDITED OR DELETED
How to restore the database after being edited? I m using sql server 2008 R2, I've done backup with some foolish knowledge and many tables have disappeared from the database. I want to get them back. Please help me.
Do you have backup which includes data which has been edited/removed by you .If so below query might help.
use master
go
alter database db_name set single_user with rollback immediate
go
restore database db_name from disk='locaion of backup'
with replace,recovery
If you have transaction lgo backups as well please dont use above method.In such case you will need to first restore full backup with no recovery like below and then apply all transaction logs with no recovery
but the last transaction log with recovery( last trn log just before you edited)
use master
go
alter database db_name set single_user with rollback immediate
go
restore database db_name from disk='locaion of backup'
with replace,norecovery
Hope this helps
More details in below link
http://www.karaszi.com/SQLServer/info_minimizing_data_loss.asp
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one it made AFTER the lost data. How can I access an older backup from the cloud?
Why don't you talk to apple and find out if backup exists? That conversation with apple will stop your guessing.
-
Restore the database or tablespace from a old backup piece
Hi All,
We have the senerio like this.
Day 1 : Took the complete database backup in RMAN
Few changes done in database
Day 2 : Took the complete database backup in RMAN
Few changes done in database
At day 3 if we wanto restore the database to Day 2 backup we can simply use restore database and recover database.
Supose if we wan to restore the day 1 backup, please let me know if this will work.
run
set until time "to_date('10-06-2009 08:00:00','DD-MM-YYYY HH24:MI:SS')";
restore database;
recover database;
Or is there any other way to do that.
Please advice,
Thanks & Regards,
RakeshIt will work if you are running in archive mode and you have day 1 backup files available for RMAN.
I recommend saving the current control file and restoring the original day 1 control file before you issue the resote / recover command.
Oded
[www.dbsnaps.com]
[www.orbiumsoftware.com] -
Does restoring the full backup required pc to disjoin and rejoin to domain
we have a full backup of one client, and we want to restore that full backup. After restoring it, does it required to dis-join and rejoin to domain controller ?
some info on computer object password expiration:
https://blogs.technet.com/b/askds/archive/2009/02/15/test2.aspx
so if the backup is older, and the pc was used in the meantime, chances are it changed the password so that you would have to disjoin and rejoin the restored computer, as the restored password wouldn't match the one stored in ad -
How to restore a database backup taken from a SQL Server 2012 instance to SQL Server 2014
I am trying to restore a database backup taken from a SQL Server 2012 instance to my new SQL Server 2014 instance. When I add the .bak through the Mgmt studio UI, it does not seem to find a backup set in the file so I cannot proceed (does not give
me any errors though either. I tried restoring through TSQL command but only got a database restore terminating abnormally error with no other details. How can I restore this database to SQL 2014?Hello,
Please examine SQL Server Error Log and share with us any error you can find. The following article may locate the log:
http://msdn.microsoft.com/en-us/library/ms187109.aspx
Regards,
Alberto Morillo
SQLCoffee.com -
How to automate the /content backup daily
HI Jorg,
We are planning to take the /content backup daily from QA servers. Manualy we are doing by entering into package manger ---> create package---> provideing the path as "/content"
Building the package and moving to backup location daily.
Can you please help me out with CURL or WGET command to implement this as a scheduled job to run on cron.
Thanks in advance.HI Yogesh,
I found from mentioned URL as
To create a package, use the following command in your terminal:
curl -u <uid>:<pwd> -X POST http://localhost:7402/crx/packmgr/service/.json/etc/packages/mycontent.zip?cmd=create -d packageName=<name> -d groupName=<name>
But here in my case i need the current content from /content location and save in some other location. Just a content backup. Where we need to add this path in script. -
Problem in Restoring the database
Hi,
I want to restore the database
RMAN> startup force mount;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 07/20/2009 17:06:56
RMAN-04014: startup failed: ORA-12514: TNS:listener does not currently know of s
ervice requested in connect descriptor
can anybody help on this.Hi,
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
Action:
- Wait a moment and try to connect a second time.
- Check which services are currently known by the listener by executing: lsnrctl services <listener name>
- Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
- If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
- Check for an event in the listener.log file.
Regards,
Tom -
How to restore the Password backup in sql server 2005
How to restore the Password backup in sql server 2005
Hello,
THANKS............ BUT
I executed this query
RESTORE DATABASE new_data1
FROM DISK = 'd:\UK_DETAILS.bak'
with password ='selfinity123'
WITH MOVE 'UK_DETAILS.bak' TO 'D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\new_data1.mdf',
MOVE 'UK_DETAILS.bak' TO 'D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\new_data1.ldf'
I got the error
Msg 319, Level 15, State 1, Line 4
Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon. -
Restoring the database from Coldbackup
Hi Gurus,
I have a cold back up files belongs to oracle 9i on Solaris 5.10. I wanted to restore the database and need to upgrade the Oracle 10g (10.2.0.3.0) on linux.
All these process need to handle with out RMAN. What are the prerequisite information need to collect on source and target systems.
Please guide me.
Thanks,
TippuAzar wrote:
Better install Oracle 10g on the new server and after import oracle 9i database into new server database.I would say that this depends on database size and database downtime that can be accepted: for small database and no short downtime constraint, I agree but for large database and limited downtime constraint this may not be a good choice. -
When iam restoring the database getting error
hi ,
when iam restoring the database getting following error :
SELECT schemaname FROM syscat.schemata WHERE schemaname='SAPTOOLS'
SQL1328N An implicit connection attempt failed. The database alias name or database name "TPD" was not found in the local database directory.
SQLSTATE=42705Hi,
What is your ABAP connect user. its should be same as source.
and
SQL1024N
A database connection does not exist.
Explanation
There is no connection to a database. Other SQL statements cannot be processed unless an SQL CONNECT was previously executed.
The command cannot be processed.
User response
If the error occurred when disconnecting from the database, continue processing. If the error occurred on another SQL statement, issue an SQL CONNECT statement and resubmit the command or statement.
IN addition
db2 connect to SID
It will show you the default database schema connection
After that,execute db2 ger db cfg for SID
It will show you the DB2 parameter values for your schema
There`s a concept of DBM or database manager, the configuration of which you can check with:
db2 get dbm cfg
DBM is the super-set and DB Schema is the subset
Thanks
Sadiq
Edited by: sadiq iqbal on Jan 12, 2012 5:57 PM -
How to reduce the size of file after delete some datas?
The size of the database file isn't smaller than ago after delete some data from database.
How to reduce the size of file after delete some datas?Hi,
What BDB release are you using? If it's one of the latest releases, then what you are looking for is the DB->compact() method:
http://download.oracle.com/docs/cd/E17076_01/html/api_reference/C/dbcompact.html
The DB->compact() method compacts Btree, Hash, and Recno access method databases, and optionally returns unused Btree, Hash or Recno database pages to the underlying filesystem. Please let me know if it helps.
Bogdan Coman -
ITunes won't recognize my password to restore my iPhone backup file after upgrading to ios5
iTunes won't recognize my password to restore my iPhone backup file after upgrading to ios5.
Tried every password I've ever used and tried resetting my password. Nothing works!
Any advice?Nope. You obviously didn't read (or didn't remember) the User Guide. I will include a link for you. If you use the iPhone as Apple recommends (so that you do NOT experience data loss), frequent backups are advised, as are synching contacts/calendars with an appropriate cloud service or computer-based contact manager like Outlook.
http://manuals.info.apple.com/en_US/iphone_user_guide.pdf
Maybe you are looking for
-
Timeline won't back up (not enough space)
Timeline won't back up because it says there is not enough space on my external drive. This never happened before. I have 10.6.8. I just restored my new hard drive from Timeline. It was an easy restoration. The first time I backed up on Timeline,
-
Premiere Elements 9 - editing in low-res then rendering in HD
Hi all, Just started using Adobe Premiere Elements 9, editing together a 3 minute music video (so not an epic!). Half way throughand having all sorts of problems as the footage is running slowly or not running at all. Just bought a brand new laptop w
-
when I click and drag itunes to an external harddrive all I get is a shortcut an icon to itunes not the files the music to itunes I am running windows xp home edition
-
Dazzle or something similar for mac?
I need a device that will allow me to connect a VCR to my mac for Final Cut to do capture. Will Dazzle work? Is there a mac solution?
-
Error message - Production order
Hello, I have a problem with Production Order. I have created a Planned Order. While I type a Planned Order number and Order Type, SAP shows an error: "Text ... ID PLPO language not found". Is this a problem of language settings in material or someth