Cold back up

Hi experts,
When we take cold backup(i.e. tablespace is offline) or backup from a read only tablespace it's known as the back up with consistent data. But in these two situations we can drop an object from that particular table space.. so how could we say its consistent one..
Regards,
Sumit

When we take cold backup(i.e. tablespace is offline) or backup from a read only tablespace it's known as the back up with consistent data. But in these two situations we can drop an object from that particular table space.. so how could we say its consistent one..It's all about SCN consistency to the controlfile and data file header.
hare krishna
Alok

Similar Messages

  • Automatic Cloning through Cold back up

    There is a requirement from my client, that they need to perform automated cloning through cold backup everyday morning at 3.00 am.
    One of my senior said it can be done through shell scripts as a hint.
    I'm not having much knowledge in developing shell scripts for automated cloning.
    Please provide any idea for my situation.
    Thanks in advance
    Nirmal

    Hi,
    Please see
    automatic cloning method
    Want to create unix shell script for  Clone procedure in 11i and r12
    Thanks

  • How to restore cold backup + archived log files

    Hi,
    Suppose I take a cold backup on 18th. After that I have four days of archived log files. if the database crashes on 5th day, I have to restore the 18th cold back + 4 days of archived log files. How do I restore since it is a cold backup and I cant do incomplete recovery.
    can I use
    Recover database ( with 18th cold backup) in mount state and apply archived logs.
    Prabhath

    The details of how you perform forward recovery using a cold backup depends on
    1- rman or manual backup
    2- using current or backup control file
    3- if rman, recovery catalog or no recovery catalog
    4- if full database recovered or only a few files
    Each of these conditions will affect what is known to Oracle and what needs to be done. For example if you restored the entire cold backup including the control file then Oracle would see a consistent database and not need to perform recovery so you would need to startup mount and tell the database to perform recovery using a backup control file. If using rman and no recovery catalog you might need to catalog some of the archived redo logs, etc....
    It is advisable to consult the Backup and Recovery manuals before attempting recovery for any new scenario.
    HTH -- Mark D Powell --

  • Cold Backup and Redolog vs. Note1026631.6

    Dear Experts,
    I never include the online redolog files in my cold backup but at the end of the note it is said "However, other Oracle documentation states that cold (offline) backups should include backing up online redo log files (see page 8 of Oracle Backup and Recovery Handbook from Oracle Press)..."
    Let's imagine we take a coldbackup with online redolog:
    - The SCN was 100 at the time of this backup.
    - The DB crashes (lost datafiles). The SCN is 250.
    - We copy the datafiles and the redolog online.
    - The DB checks the Control file which has SCN=250, the Datafiles and the redolog have got 100. The DB doesn't know what to do isn't it ? I mean it can' recover.
    - If we copy only the Datafiles from the backup, the DB sees 250 in both Control and online redolog and sees 100 in datafiles and knows it has to perform a recovery from 100 to 250.
    To me copying the online redolog in a cold back up is more than useless , it can be quite dangerous.
    Am I totally wrong and do I miss something fundamental ?
    Thanks for your expertise.
    Regards,
    Guillaume

    i totally disagree with you, 393781.
    They are two reasons not to backup the redo logs.
    reason 1)
    it is consuming tapes and time...
    reason 2)
    if you restore it, you may overwrite existing redologs by mistake while running your os-restore, and the existing may be used (with little chance..) to recover the database, even if running in NOARCHIVELOG mode.
    They are also a lot of oracle customers which are backing up the redo logs. It is an "easier" approach. You backup everything (the whole filesystem or so), then restore everything, so you are sure you have everything and it is really straightforward.
    If you do not have your redologs, you must open your db with resetlogs, which seems to be the correct procedure (you have a new incarnation, have not you? ) but open resetlogs may be dangerous for a junior dba.
    HTH
    Laurent Schneider
    OCM DBA

  • Database cloning using cold backup

    Hello Guys,
    I am doing cloning of a database from cold backup for testing, actully one datafile has been croupted, so my issue is that, can i exclude tht datafile from controlfile when creating the controlfile and is that poosible that controlfile will created sucessfully and database will open sucessfully.
    Please reply.
    Thanks

    @asif, @ckpt
    With humble, how all you know that corrupted datafile is not belonging to system and undo tablespace? If this case, then do you think we can restore that corrupted cold-backup ? Sorry, but this is not the way to just start providing help without asking OP :
    1.Current Oracle Version ?
    2.Where he want to restore i.e. restoring platform info Oracle version OS ?
    3.After cold backup how he came to know that one datafile is corrupted ?
    4.When and how datafile became corrupted ?
    5.How he taken cold backup ? Was db running fine just before shut immediate for cold backing ?
    6.What he has done so far to restore the cold backup ?
    7.What error he is getting right now ?
    Here problem is corrupted datafile. So, first let come problem clear from OP, ask all missing question in one go, and then start helping is the right way... (my personal opinion, may be wrong!).
    Regards
    Girish Sharma

  • Steps for Refresh the Test Database with cold-backup

    Hello everybody !
    Can any body write me the steps to referesh the test db ( T1 -> already there) from the cold backup of production database ( P1 on another machine ) . all the datafiles are there available in the backup of production ..controlfile or redolog files are not available of production database. Both databases are 9.2.0.8 and are on different machines with same OS of AIX.
    Thanks in advance !

    Steps
    1.) Before Shutting down P1 DB for cold back execute
    alter database backup controlfile to trace;
    2.) copy the created the trace file from udump to test server
    3.) shutdown the P1DB and take cold backup containing all datafiles
    4.) Copy dbf to test servers
    5.) Edit trc file copied in step no 2
    6.) As you are changing the name of db use option SET ( in place of REUSE)
    7.)Also remove unwanted portion
    8.) Change the name of trc file to <somthing>.sql
    9.) Startup test db in nomount stage
    10.) run the above created sql
    11.) tHis will create controlfiles, place db in mount stage
    12.) issue alter database open reset logs
    13) add tempfiles to temp tbsp
    regards
    Pravin

  • Oracle RAC cold backup to a non-RAC DB ...

    We are running a Windows 2003 (SP2) box with Oracle 10g release 2 (10.2.0.3). This was originally configured to be a RAC server (having node1 and node2) but we lost node 2 some how.
    Now we want to create a fresh DB (no RAC just plain DB installation having the same OS and DB version as given above on the dead node 2) and copy the DB from node1 to node2 with cold backup method.
    My question: will the cold back work in this scenario or we will have to do a EXPDP/IMP thing. I am not too familiar with impdp/expdp so thats is why the plan is to copy the cold backup and bring up the instance.
    Is this possible?

    Thanks.
    So, doing the cold backup is:
    take CONTROL FILES, DATA FILES and REDO LOGFILES copy. Is that it.
    Would someone have a document which provides a script to know what files backup is to be taken and what is thier location in the file system. I know this is a basic question but i am just being careful here.
    thanks,

  • If we upgrade to R12 are we able to revert back to 11i?

    If we create a cold back up an 11i system, then upgrade to R12. Would we be able to trash the R12 system and clone back to 11i using the backup taken?

    Hi;
    Thank you for your reply. I didn't get the bit you said after 'If you upgrade r12 but still have valid r11 backup than........' Please could you again advise what I am able to do if I have a valid 11i backup? Its mean, if you have valid backup of R11 and wiht that backup is stay in /u01 and u copy it to /u02 and use this backup for r12 upgrade, end of the upgrade you will have R12 instance on your /u02 mount point. In that point you can not go back to R11 again.
    But you have still valid backup on your /u01, if you want you can close this r1(or you can keep working wiht it) and you can up your R11 from your valid backup which is exsist on your /u01 mount point
    Hope i am clear now ;)
    Regard
    Helios

  • Hot / Cold Backup

    hi.
    Plz tell me what is hot and cold back up. their difference and usage.
    thx

    A database backup when database is shutdown state is reffered to as cold back up,while a database backup when database is up and in operational state reffred to hot backup.
    cold backup also refer to offline/consistent backup while hot backup refer to online/inconsistent backup.Their usage as above statment showing that ,if yours database does not go for 24 x 7 then go with cold/offline/consistent backup strategy.Cold backups are a reliable piece of any backup strategy cause as i mentioned consistent (consistent=clean not fuzzy),whenever you go to take cold backup first you will have to shutdown the database immediate which cause termination of any active transaction and make them rollback,oracle flush all dirty block from buffers to data file after rolling back any incomplete transaction,a full checkpoint occurence which cause to synchronize alls the CKPT SCN among the database file header as well to control file.Everything is consistent at the time of clean shutdown.
    if you cant afford any break within yours business domain and you have to go with 24 x 7 then you will have to go with online backup , for online backup you will have to turn on the archive mode of yours database which take care of any fuzzy block to be consistent.With online i would recommend you take atleast one time cold backup within a week if possible to make yours life easier.
    Khurram

  • ORA-02068, ORA-03135 - Connection Lost to Database - cancel session?

    The situation:
    We have an Oracle instance that we have no control over (3rd party maintained) and is shutdown on a nightly basis to do a cold back up. I'll call DB-A (8.1.7.4).
    We have processes that run in Peoplesoft that selects from a view in database HR-B (10.2.0.3) that references tables in DB-A via a database link.
    Peoplesoft does it's own "thread-pooling" and Oracle sessions that are created remain in an inactive state and get re-used as SQL statements are issued.
    Problem:
    As selects are made to the view with links to DB-A a valid session is created and remains inactive once the SQL is complete. During the night DB-A is shutdown and then started back up after the cold backups. In the morning a select is issued against the view to DB-A and tries to reuse the same session that was previously used. But since the DB-A was bounced the SQL statement gets an ORA-2068 and 0RA-03135 communication error. A second attempt seems to reestablish communication and is successful (using the same session). Adding to this problem is that multiple sessions could have been created and get reused by other processes and get the same error... so just adding retry process to a few applications does not seem feasible nor does it mean success.
    Possible Solution and question:
    Once DB-A is shutdown I would like to cancel any sessions in HR-B that may either be in a "bad" state, i.e. result in a communication error because it had last accessed DB-A. This way a new session would be created the next time a call is made to access data from DB-A... I've proven this to be successful via SQLPlus. Does anyone know if there is a V$ view that would show a session in a "bad" state like this? Or I would like to find sessions that executed SQL that referenced DB-A from HR-B and cancel those sessions. Does anyone have a suggestion? Thanks in advance.

    I believe what you are looking for is: sqlnet.expire_time
    You can put this in your sqlnet.ora file and set it for a time you want it to check for 'sniped' sessions, (or sessions that have been disconnected externally for some reason).
    Reference a quote from D. Burleson's site:
    The sqlnet.expire_time parameter is used to set a time interval, in minutes, to determine how often a probe should be sent verifying that client/server connections are active.
    http://www.dba-oracle.com/t_connect_time_idle_expire_timeout.htm
    HTH,
    ji li

  • Locking out users with FND_USER

    At fiscal year-end here, we did a cold back-up and then only allowed core accounting users into eBiz the next day until they’d done all their roll-over stuff and made sure they hadn’t messed anything up in the process. Then we let everyone else back in.
    The way we did it was by end-dating accounts in FND_USER with SQL, but we ran into some problems with that.
    I coded up a PL/SQL procedure that would end-date everyone except for select people (i.e. critical IT and accounting folks) and used that to lock everyone out. Based on a switch, the same procedure re-enabled everyone that I'd locked previously out when we were ready.
    We had something weird happen though. The next day, some people couldn't get logged in. They'd enter their user name and password and then get an "unexpected error" directing them to the system administrator. This wasn't everyone, just some people. I figured out through trial and error that if I went into their user record through the application, end-dated them, saved, then un-end-dated them and saved again, that they were fine.
    Later I got a call from a user that was logged in but had no responsibilities. So I end-dated all his responsibilities through the application, saved, then un-end-dated them, and that fixed him. We had a couple more show up like that, but only a couple.
    Has anyone else experienced this problem?

    Hi,
    Please post the application release along with the database version and the OS.
    We had something weird happen though. The next day, some people couldn't get logged in. They'd enter their user name and password and then get an "unexpected error" directing them to the system administrator. This wasn't everyone, just some people. I figured out through trial and error that if I went into their user record through the application, end-dated them, saved, then un-end-dated them and saved again, that they were fine.Can you find any errors in Apache log files (error_log* and access_log*)?
    Later I got a call from a user that was logged in but had no responsibilities. So I end-dated all his responsibilities through the application, saved, then un-end-dated them, and that fixed him. We had a couple more show up like that, but only a couple.
    Has anyone else experienced this problem?There are couple of reported issues about this behavior and we have discussed in the forum many times before -- Please see old threads for details.
    Missing Responsibilities
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Missing+Responsibilities&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Db Growth - How to Indentify?

    Hi,
    I need to identify the db growth as it is improved 300% with in 4 days. The db is in no – archive mode and administrated on Windows 2003 – 32 bit versions Oracle 9i Rel 2. We do daily export of the database and every week we do cold back up. The only thing I got is export log files on that particular day when the db growth is identified and of course alert log files. Is there any specific procedure that we can identify the tables/schemas with the actually db growth? Because this makes us sure to keep a track on those schemas or on those paticular tables. Please suggest me with the ecessities to identify those tables/schemas.
    Is there any procedure to indentify the size of the schemas/tables. So that it helps me to indentify the growth of the particular schema!
    Thanks
    Ravi
    Message was edited by: Ravi
    ravi

    Hi
    On Oracle 9i rel 2 you need to collect the "history" of schema statistics yourself (i.e. 10g provides this automated functionality)
    1. put "monitoring" on tables (i.e. log on to your main application schema)
    spool a1
    select 'alter table ' || table_name || ' monitoring;' from user_tables
    spool off
    @a1.lst
    2. gather statistics on schema objects
    exec DBMS_STATS.gather_schema_stats(ownname => 'SCOTT', estimate_percent => 30,cascade => true, options => 'GATHER EMPTY')
    3. Take a look at the user tables, stats, sizes, etc
    SQL> l
    1 select table_name, num_rows, avg_row_len, num_rows*avg_row_len size_bytes
    2* from user_tables
    SQL> /
    TABLE_NAME NUM_ROWS AVG_ROW_LEN SIZE_BYTES
    BONUS 0 0 0
    DEPT 4 20 80
    EMP 14 37 518
    SALGRADE 5 10 50
    SQL> spool off
    4. run (3) above close of business each day, create a 'user_tables_history' table to record the history of each day's behavior
    5. chart your growth based on stats collected in (4)

  • How to apply archivelog with gap on standby database

    Hi All,
    Oracle Database version : 9.2.0.6
    Following is my sequence of commands on standby database.
    SQL>alter database mount standby database;
    SQL> RECOVER AUTOMATIC STANDBY DATABASE UNTIL CHANGE n;
    ORA-00279: change 809120216 generated at 07/24/2006 09:55:03 needed for thread
    1
    ORA-00289: suggestion : D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC
    ORA-00280: change 809120216 for thread 1 is in sequence #19921
    ORA-00278: log file 'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    I have check the last sequence# on standby database which is 19921. And I have archivelog starting from sequence# 20672 onwards. When I am trying to apply archive log starting from sequence# 20672 , it is searching for 'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC' file and cancel the recovery. Please note that I don't have those missing archive on Primary server as well. So How can I apply the remaining archive log which I do have from 20672 onwards.
    I hope I am not creating any confusion.
    Thx in advance.

    Hi Aijaz,
    Thx for your answer. But my scenario is bit complex. I have checked my standby database status which is not running in recovery mode. I have tried to find archive_gap which is 0 on standby server. I am copying all archived log from primary to standby thru the script every 2 hour and appying them on standby. After applying, the script is removing all applied log files from primary as well as standby. So it is something like I have archivelog from 1,2,3,7,8,9,10. So 4,5 and 6 archivelog are missing which is required when I am trying to recover standby database. Also note that I want to apply 7,8,9,10. I will loose some data from those missing archive but I have cold back any way. I don't have those missing archivelog files(4,5 and 6) anywhere at all. So how can I recover standby database. I am using standby just for the backup purpose.
    I hope my question is clear now.
    Thx in advance
    - Mehul

  • Recovery in archivelog mode

    hi experts around the world.
    i have oracle 9i release 2 on server 2003. we make partitions on windows
    like
    C (windows os)
    D (oracle)
    E (oracle physical datafiles)
    F (oracle physical datafiles)
    G (oracle physical datafiles)
    H (ARCHIVE logs)
    we have similar configuration standby server. we down this standby database every sunday and make cold backup of all the datafiles.
    one more thing that we take controlfile from production database which is running
    with the command
    ALTER DATABASE BACKUP CONTROLFILE TO 'C:\control001.ctl'
    like this.
    now i wantt to ask that i have cold back up of all the drives and all the archive logs after that sundays backup.
    i restore this cold backup on the new server .
    tell me
    1. thing that from D drive (here oracle software installed) which files and folders (bcz too many folders) i will restore on new server. i search this thing but not satisfactore results
    2.will i apply the archives with RECOVER DATABASE command or some other command
    3.which controlfile will be restored which we took from production database or some other one.
    bcz many critical problems with controlfile during recovery.
    plz reply these 3 questions seperately in detail.
    regards
    rehan
    fsd pakistan
    Edited by: user10204771 on Apr 3, 2009 4:26 AM

    as i told we have production and standby configuration.
    datablock got corrupted on primary and similarly this archivelog went on standby and applied there. i think this is the
    problem.
    No you didnt told me exactly the problem you are facing,you asked for moving OS cold backup from one node to another,i replied exactly.Now you are tellling the problem with yours block corruption then this method for coping from one node to another node will no longer be helpful,its block corruption which requires BMR (Block media recovery).
    You can achiev the same by restoring FULL backup which you might have taken before the block corruptiuon.If you dont have FULL backup then you can recover block using RMAN by identifing corrupted block.
    You can recover that corrupted block provided you should have redo for that block.
    RMAN>blockrecover datafile <datafilenumber> block <blocknumber>;This is what the beauty of RMAN which backup and recover at block level.
    now the problem is both primary and standby db not working.
    What do you mean by not working ,in what sense you say db does not work ,yours database should be available ,you have corrupted block not system datafile.
    i want to restore this cold backup on new server with the same relevant drives I WILL in C drive it will be new OS and recover by applying archive logs.
    This will not work the problem will also be shifted.
    how to proceed further
    Check yours alert logfile for datablock which you got corrupted ans paste it here.
    Khurram

  • 5983622 is the patch to be applied on Application server 10.1.2.0.2

    Hi All,
    5983622 is the patch to be applied on Application server 10.1.2.0.2
    1. I need all the steps to be followed
    2. Backup strategy so that if something wrong happens , I should be able to revert back to initial version of application server.
    Thank in advance.
    Regards,
    Lokanatrh Giri

    hi Loknath,
    Once you download the patch you will get the entire details and steps in patch itself(Readme.txt)
    but just in general it goes as follows
    1.     Apply the Oracle Database 10g Release 1 (10.1.0.5) patch set.
    2.     Apply the Software Update To Business Intelligence.
    3.     Apply the Software Update To Infrastructure.
    4.     Apply the Metadata Repository Update To Infrastructure.
    and for
    Backup strategy so that if something wrong happens ,
    Take a cold back up(stop the entire application server) of your entire ORACLE_HOME(ie both infra and BI)
    If you need any other help,do post back
    Regards
    Fabian

Maybe you are looking for