Database frozen in time

Oracle 10.2.4
Solaris 10.5 SPARC 64bits
I have a database that I want frozen in time and looking for the best way to accomplish it. It is a very smal database use by software testers in one of our centers.
Here is what I am thinking thus far: I will like to tar up the directory with the database and move it to a third party drive or maybe to the NAS for safe keeping. And maybe if I need it in the future, we could just untar directory and ready to use it. Is this feasible?

Dude wrote:
Flashback database is just a fast and simple way of "rolling" back a database, but it has its limits and can be quite space consuming depending on your flashback retention policy. If you are thinking about long term flashback look into flashback data archive and enable it on appropriate tables. However, I think there is nothing better or superior to a regular RMAN backup strategy and running the database in archivelog mode.I interpreted his request not as a long term flashback, but rather being able to repeatedly roll a non-production db to a particular point. I totally agree with you for production databases, but not so much for testing, those situations have different requirements. Running a test db in archivelog may or may not be desirable, depending on exactly what you are testing and what hardware resources you have available.
For example, I sometimes have to test mass loads of data that isn't as clean as a database needs, so I have to run it maybe ten times. 0 of those times will require being able to recover an interrupted load transactionally, but all of them will require starting from the same place. Why load down everything with archiving or flashback? Sometimes a database update will be so massive it makes sense to take production out of archivelog, do the update, put it back in archivelog, then backup - especially if you have a remote standby, for example, you don't want to flood a shared network for days if you don't have to, must less load to ship a compressed backup.
It's possible his request may have been to test the data as it was at various times in the past, or a long term flashback - that can be quite a project, with tables and apps being modified, not to mention upgrading. There are many situations where a regular RMAN strategy just doesn't make it, it all boils down to proper requirements definition. If RMAN fits, all the better, it does what it does very well nowadays.

Similar Messages

  • Doubt about database point in time recovery using rman

    Hi Everyone,
    I have been practising various rman restore and recovery scenarios . I have a doubt regarding database point in time recovery using rman. Imagine i have a full database backup including controlfile scheduled to run at 10 PM everyday. today is 20th dec 2013. imagine i want to restore the database to a prior point in time ( say 18th dec till 8 AM). so i would restore all the datafiles  from 17th night's backup and apply archives till 8 AM of 18th dec . in this scenario should i restore the controlfile too from 17th dec bkp ( i am assuming yes we should ) or can we use the current controlfile ( assuming it is intact). i found the below from oracle docs.
    Performing Point-in-Time Recovery with a Current Control File
    The database must be closed to perform database point-in-time recovery. If you are recovering to a time, then you should set the time format environment variables before invoking RMAN. The following are sample Globalization Support settings:
    NLS_LANG = american_america.us7ascii
    NLS_DATE_FORMAT="Mon DD YYYY HH24:MI:SS"
    To recover the database until a specified time, SCN, or log sequence number:
    After connecting to the target database and, optionally, the recovery catalog database, ensure that the database is mounted. If the database is open, shut it down and then mount it:
    2.  SHUTDOWN IMMEDIATE;
    3.  STARTUP MOUNT;
    4. 
    Determine the time, SCN, or log sequence that should end recovery. For example, if you discover that a user accidentally dropped a tablespace at 9:02 a.m., then you can recover to 9 a.m.--just before the drop occurred. You will lose all changes to the database made after that time.
    You can also examine the alert.log to find the SCN of an event and recover to a prior SCN. Alternatively, you can determine the log sequence number that contains the recovery termination SCN, and then recover through that log. For example, query V$LOG_HISTORY to view the logs that you have archived. 
    RECID      STAMP      THREAD#    SEQUENCE#  FIRST_CHAN FIRST_TIM NEXT_CHANG
             1  344890611          1          1      20037 24-SEP-02      20043
             2  344890615          1          2      20043 24-SEP-02      20045
             3  344890618          1          3      20045 24-SEP-02      20046
    Perform the following operations within a RUN command:
    Set the end recovery time, SCN, or log sequence. If specifying a time, then use the date format specified in the NLS_LANG and NLS_DATE_FORMAT environment variables.
    If automatic channels are not configured, then manually allocate one or more channels.
    Restore and recover the database.
      The following example performs an incomplete recovery until November 15 at 9 a.m. 
    RUN
      SET UNTIL TIME 'Nov 15 2002 09:00:00';
      # SET UNTIL SCN 1000;       # alternatively, specify SCN
      # SET UNTIL SEQUENCE 9923;  # alternatively, specify log sequence number
      RESTORE DATABASE;
      RECOVER DATABASE;
    If recovery was successful, then open the database and reset the online logs:
    5.  ALTER DATABASE OPEN RESETLOGS;
    I did not quiet understand why the above scenario is using current controlfile as the checkpoint scn in the current controlfile and the checkpoint scn in the datafile headers do not match after the restore and recovery. Thanks in Advance for your help.
    Thanks
    satya

    Thanks for the reply ... but what about the checkpoint scn in the controlfile . my understanding is that unless the checkpoint scn in the controlfile and datafiles do not match the database will not open. so assuming the checkpoint scn in my current controlfile is 1500 and i want to recover my database till scn 1200. so the scn in the datafiles (which is 1200) is not not matching with the scn in the controlfile(1500). so will the database open in such cases.
    Thanks
    Satya

  • How to install database in run time

    hi all
    i want to ask if i can install database as run time only and in this case how i can logon the sql ?,i want to install it as run tim such as developer 6 run tim
    is this possible?
    thanx

    first thank you for helping me
    and i will try to explain what i want to do in more details
    i'm using oracle database9i with developer 6i and i want to deliver an application was mad by this tools i know that i should setup the database and forms runtim only in at the customer computer the application -at the first- will work at only on one computer ,this computer will run as the client\server
    my question is
    if i can setup the database as run time only or i must setup complete at the customer computer?
    i tried to do that by choosing this option when installing database
    1-Oracle9i Client 9.2.0.1.0
    2-Run tim
    but after making this i can't connect with database
    i hope that if i can explain what i want to do

  • Recovering iTunes library database .itl via time machine

    In short, when I go back beyond a week in time machine I cannot find any .itl or even any of the .itdb or .xml files on my mac that I can restore with time machine.  The only version that is there is for the current library which is missing 99.9% of the content.
    The context:
    1. I had itunes folder on my hard drive and an external with all of the content. Over the years the external must have been disconnected or what not as a sizeable media folder had also developed on the hard drive.
    2. In order to free up space on the hard drive I consolidated the media and moved the library to a second external that had much more free space.
    3. I ended up deleting the iTunes library on the hard disc on or around 6 april 2015. I believe I deleted the whole folder.
    no dramas - everything worked for weeks
    4. Today I noticed that the iTunes library was pretty much empty but for purchased music. All the podcasts, playlists and basically anything not purchased was gone.
    5. I look into the iTunes folder on the hard disc and I noticed that there is a music folder with two songs that my kid likes to play. It leo has all of the usual library xml files and the .itdb / .itl files (which to be honest I have never noticed before, I had only remembered ever seeing the .XML files).
    6. The "new" .itl file was created on Sunday 26 april at 5.30 pm.  The whole iTunes folder it sat in on my hard drive also did not exist before this time.
    7. If I use time machine and scroll back further in time than sunday there is no iTunes folder on my hard drive.
    8. I thought I would just need to find the .itl file that predated this new library that was created on Sunday. Trouble is I can't find one. On any disc, hard disc, the first external or the second external.  The only iTunes folder I can find with any of the database files needed is the one created on Sunday that is empty.
    9. I have all of the media organised on the second hard disc however I don't want to reimport and lose all the metadata that I have built up since 2001 at least.
    THE QUESTIONS
    A - where should I be looking for the old iTunes database files using time machine if I used the advanced features of iTunes to move the database to the new disc
    B - Can I perform some sort of system wide restore that would take me back in time to a point before last Sunday to get my old iTunes database back?
    Any ideas?
    Thanks in advance
    Len

    Eeeek!
    Thank you for your reply.
    I did a bit more digging back through time machine and I found an iTunes library with the required files from as far back as 10 April.
    If I did delete the iTunes folder on 10 April - I really wonder how it continued to work for 16 days straight without a hitch (whilst I was rebooting throughout). Very odd.
    OK so if I have to use the old one from 10 April the only problem I can think of is that the database will probably be looking for the media on the old location (mainly external no 1 and a bit on the internal hard disc) as opposed to external no 2 where they all sit consolidated.
    That might not be a huge problem as the media still sits on external no 1 (too scared to delete it!).
    Couple of questions:
    1. If I restore the 10 April library  and the database was pointing to the old location on External no 1 plus a few pointers to now-non existant files on the hard drive - is there a way of redirecting the library to External no 2 where ALL the files would currently be?
    2. If I trashed the iTunes folder on 10 April - might it still be somewhere in the backup?
    Cheers
    Len

  • Opening a database file several times.

    Is it possible to open a db file again and again to write and add values to it.Or can we keep it open and add records to it.Any pointer to reference or any suggestions please.
    Thanks.

    I have read the article peges. My question is like, i have to calculate a structure value and then store it in the Database.so every time i update my values i will be calling the c program file which contains the file operations. So is there any penality associated with frequent opening and closing of files whenever new data has to be written in to it.

  • C6-00 3 days old and has frozen 4 times.

    On Thurs my mother received a C6 I ordered  for her.
    Since receiving the phone on Thurs it  has frozen 4 times, twice on Thursday, once Friday and once today being Saturday, each time needing the battery removed to reboot the phone.
    The last time today required her to re-enter the phone date and time.
    She lives 1400klms from Nokia Care Centre and does not have a PC.
    It has Telstra(carrier) brand firmware v 10.2.22 and says no updates available.
    There are 4 updates released since then but none for that carrier. 
    What to do Nokia ?
    Nokia 808
    Nokia CK-200

    updates vary by region and product code
    you can check for update OTA by typing in *#0000#
    other than that you will have to send it to a nokia care point.
    generally if your phone is locked you will be waiting longer
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How to make more than one person can access the database at one time

    how to make  more than one person can access the database at one time 

    Please post further f'up's in the Access forum.
    In short: for different reasons it is best practice that each user gets its own local copy of the database. This means that you need to split it into a front-end which only consists of the forms, queries, reports etc. Everything which doesn't need to be
    shared. And a back-end, which only stores the data.
    Take also a look at Allen Browne's article:
    Split your Access database into data and application.
    When you've splitted your database, you may often consider to use SQL Server as back-end. Here you may read Armen Stein's
    The Best of Both Worlds: Access-SQL Server Optimization.

  • Does commit work (commiting the changess to database take same time for ..

    Does commit work (commiting the changess to database )take same time for one record and 1000 records

    Hi ,
    There is some micro seconds differences in updating the recors . If you have huge records ,split the data into parts and insert it .
    To avoid errors  or warnings ,you can use 'WAIT UPTO 5 SECONDS ' .
    Thanks
    Jagadeesh.G

  • Ever since I downloaded Mountain Lion my computer has slowed down and frozen at times. Is there anything I can do to speed it up?

    Ever since I downloaded Mountain Lion my computer has slowed down and frozen at times. Is there anything I can do to speed it up?

    How much memory is installed?
    Here is a large list of articles related to performance issues:
    https://discussions.apple.com/docs/DOC-3521
    http://www.reedcorner.net/mpg/
    http://support.apple.com/kb/PH10798
    http://osxdaily.com/2012/10/11/mac-running-slow-reasons/
    https://discussions.apple.com/thread/4542409?start=0
    https://discussions.apple.com/thread/4122175?start=0
    http://www.speedtest.net/index.php
    https://discussions.apple.com/thread/3289614?start=0
    https://discussions.apple.com/thread/3928756?start=0
    http://www.whyismymacsoslow.net
    http://www.slowmac.net
    http://www.all-about-apple.com/slow-mac-performance-learn-how-to-solve-it/
    http://www.chriswrites.com/2009/04/17-reasons-why-your-mac-is-so-unbelievably-sl ow/
                                                                        http://www.macworld.com/article/1159699/troubleshooting_speed_passwords.html

  • Database Point-in-time recovery

    Hi,
    When I apply a database point-in-time recovery, I open resetlogs the database so is that means I cannot use any previous backup or archive log beyond the time I have restored the database to?

    Not necessarily - it depends on your database version
    http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmrvcon.htm#BRADV89712
    HTH
    Srini

  • I got my new Zen 4gb: Had frozen 2 times in 48 hours

    Hi!
    I just got my new zen. I'm a bit worried about those white screens of death. So far, it works well. It came with the last firmware installed, i think that this Zen is one of the latest batch.
    Here my question... The fact that this Zen is one of the latest batch make it less propense to white screens of death? Did creative solve the problem of the white screens?
    Also, in tho days it had frozen 2 times. I had to restart it with a paper clip. Is that normal?
    Thanks!

    The "White Sreen of Death" is really caused by a hardware problem. You see, the internal MPU 3700 MP3 processor has to write to the LCD. If this operation is prevented by internal electronic opens or shorts, bad 3700, bad LCD or any other electronic component failure then the CPU might/will halt and refuse to write to the LCD which will be reflected in a "white screen of death" I cannot cover all the causes of the "white screen of death" but rest assured Creative should pick these problems up in their quality control manufacturing process with a 99% success rate. Problems do show up after the manufacturing process but Creative has warranty protection for this other % fault rate. (Which is normal in electronics manufacturing)
    Quote: Also, in two days it had frozen 2 times. I had to restart it with a paper clip. Is that normal?
    Answer: No - Try the "recovery mode" and do a clean-up and reboot.

  • Connecting to the database taking long time to connect database server

    Hi
    When I execute procedure i am getting the below message at bottom of the Oracle SQL Developer
    "Connecting to the database"
    it is taking more than 10 min plz guide

    Hi
    have you installed a normal Oracle Client also on your Host? normal Oracle Client
    Did you connect with host:port:sid or with a Oracle Naming Service? through TNS Service
    Can you test tnsping <alias> yes, It is working fine
    Did other user have the same problem? yes
    Did you connect through WAN or LAN connection? LAN (Intranet)
    Can you tell more about you client/database setup?
    Database setup:
    OS: Window 2008 server
    version: 11.1.0
    Client: 11.1.0
    OS: Window 2008 server
    Now I am not able to execute single select query which table contains 6 records and 15 columns it is taking long time I have waited 30 min still no resutls
    only one table is behaving like this remaining is working fine
    Edited by: user9235224 on Oct 6, 2012 7:06 PM

  • Importing a single dumpfile in multiple databases at a time

    Hi Folks,
    I got request from my client side like follows,
    They have a dump file of one schema called belin(schema name).
    With that dump file i need to import to three databases called
    1. gelixu1
    2. gelixu2
    3. gelixu3
    in parallel manner (it means at a time.).. All my three databases are running in same server.
    Mostly for single database it will take 1.5 Hours. but this time client had given only 2 hours for all the three databases.
    Kindly let me know the possible ways.
    way 1:
    i thought of importing in three data bases in three session with a single dump file. What my doubt is, when importing in single database will it make any lock on a dump file, So other two databases cant use in parallel manner.
    or
    any other commands like
    impdp username/passwd@ gelixu1,gelixu2,gelixu3
    are there?

    Hi,
    I have One option. As you stated your import will take 1.5 hr and client provided the 2 hrs time. Perhaps Our DB Server in One and with 3 different instance.
    If you are sure enough that it will take 1.5 hour. then I say try to import into One database and try to opt for parallel and direct load. Once import is done in one database then parallel you carry out the TTS (transportable tablespace) which might more flexible enough - perhaps you must check whether the required tablespaces and characters are fine with existing databases.
    Note: just an alernative - since it's a plugin copy of fiile on same server
    - Pavan Kumar N

  • Creating sequences for all tables in the database at a time

    Hi ,
    I need to create sequences for all the tables in my database.
    i can create individually ,using toad and sqlplus.
    Can any one give me a code for creating the sequences dynamically at a time for all the tables.
    it is urgent ..
    Regards.

    I need to create sequences for majority of the tables that are having ID column
    which is sequences."The majority" is not the same as all. So you probably want to drive your generation script off the ALL_TAB_COLUMNS view...
    where column_name = 'ID'You need to think about this carefully. You might want different CACHE sizes or different INCREMENT BY clauses for certain tables. You might even (whisper it) want a sequence to be shared by more than one table.
    Code generation is a useful technique, but it is a rare application where one case fits all.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • [Forum FAQ] How to convert data of date time's type stored in database to display Time Zone based on different territories?

    Introduction:
    There is a date’s type field in the database. When using the field in the report, clients want to convert the field’s values based on own Time Zone to show the date field.
    Workaround:
    Currently, Reporting Services doesn’t provide the function that can get the Time Zone of a client machine. To work around the issue, you need to add a custom code in the report to convert Time Zone and create a parameter through which the client users can
    select his/her Time Zone, and then pass the parameter value to the custom function. Please see the details as follows:
    1. Click the Report, select Report Properties and add the custom code as the screenshot shown:
    Custom code:
    Shared Function FromUTC (ByVal d As Date, ByVal tz As String) As Date
    Return (TimeZoneInfo.ConvertTimeBySystemTimeZoneId(d, TimeZoneInfo.Utc.Id, tz))
    End Function
    2. Create a parameter named TimeZone (you can name the parameter according to your requirement), select Available value and click Specify values.
    Label                                                               
    Value
    China Standard Time                                        
    China Standard Time
    Central European Time Zone                              Central European Time Zone
    India Time Zone                                               
    India Time Zone
    United States of America Time zones                   United States of America Time zones
    3. Call the custom code and type the expression to convert the Time Zone as follows:
    =Code.FromUTC(Fields!UTCDateFromDatabase.Value,Parameters!TimeZone.Value)
    Note: If you use the expression “=Code.FromUTC(Fields!UTCDateFromDatabase.Value,TimeZone.CurrentTimeZone.StandardName)”, it cannot achieve the goal because TimeZone.CurrentTimeZone.StandardName gets the TimeZone of Report Server side rather than Client side.
    More information:
    TimeZone Class
    http://msdn.microsoft.com/en-us/library/system.timezone(v=vs.110).aspx
    Applies to
    Microsoft SQL Server 2005
    Microsoft SQL Server 2008
    Microsoft SQL Server 2008 R2
    Microsoft SQL Server 2012

    Hello,
    Please read the answer provided by Kalman on the following thread:
    http://social.technet.microsoft.com/Forums/es-ES/446df85a-7ad8-4891-8748-478a26350c5c/how-to-compare-tables-in-two-different-servers-while-one-of-the-server-name-has-a-?forum=transactsql
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • Photoshop/illustrator transfer issues and error

    I've transferred my photoshop and illustrator from my old mac to another by using time machine, and I deregistered my old accounts on my old laptop to use it on my new set-up, but unfortunately I keep receiving 150:30 errors. I've tried scouring the

  • Hooking up an iphone to my TV

    Hello I'm trying to hook up my iphone to my 3d tv useing the USB port and no luck what else can i do?

  • User Authentication in ADF BC

    Hi, I am trying to understand "how to authenticate the database(or application) user and retain the connection for later pages in ADF BC application". I downloaded the famous SRDEMO from oracle and now working on it. As I understand : It runs the ind

  • Mapping DEPB in SAP

    Hi, We need to map DEPB in SAP. We need to record various info like expiry date, Purchase Value, Actual Value, Port. Also wee need to pay off the custom duty using the DEPB. Any pointers would be appreciated. Regards, Indraveer Singh

  • Disabling interface animations and eye-candy

    Is there any way to disable the interface animations and eye-candy in Aperture. I particularly want to disable the animations that play on stacks. Opening, closing, and sorting of stacks. They are sooooo slow with stacks of 30+ images. Especially whe