Oracle - Incomplete recovery

Dear,

Database running in a - mode Archive

I have a table that contains 2 million records at the time (07:00) and the inserted rows of 1 million Swiss francs to (07:02) and committed my only.
Now, I took a backup hot all the time base (07:02).
and by 07:05 I have deleted 1 record million and pledged my transaction.

Now I need my all 3 million rear lines, then thought to perform a
time based incomplete recovery.

Here are the steps I've done...

(1) I stop the database.
(2) copied all the hot of all data files backup and restored to its original location.
(3) has started the instance and mounted.
3) issued the command of recovery
> recover database until time '2010-08-27 07:02.

Now I get the below error.

ORA-01547: WARNING: RECOVER succeeded but OPEN RESETLOGS would get below error
ORA-01195: online backup of file 1 needs a recovery more match
ORA-01110: data file 1: ' D:\ORACLE\PRODUCT\10.2.0\ORADATA\FIRSTDB\SYSTEM01. DBF'

What is the missing step here / what am doing wrong here?

is not that if data that are needed to make the comparable database is in the log file during recovery and not not been archived?

Yes. When you are prompted for the ArchiveLog, provide the name of the Redo Log file.

Note that an incomplete recovery requires an OPEN RESETLOGS and your online redo logs will be overwritten. So, once you issue an OPEN RESETLOGS, you you not a second chance to RECOVER the database. So, I recommend that you stop the instance and take cold backups online Redo Logs.

Hemant K Collette

Published by: Hemant K grapple on August 27, 2010 11:45

Tags: Database

Similar Questions

  • ORA-01830 during an attempt of incomplete recovery

    Hi guys,.

    I practice the incomplete recovery but my RMAN script fails with the following error:
    ORA-01830: date format picture ends before converting all of the input string

    Here's the RMAN script

    RUN
    {
    May 7, 2010 until 05:00 ";
    restore the database;
    recover the database;
    ALTER database open resetlogs;
    }

    My NLS_DATE_FORMAT has the value
    * # env | grep-i nls *.
    * # NLS_DATE_FORMAT = HH24:MI:SS * MON-DD-YYYY

    Linux x 86, Oracle 10.2.0.4

    In your case, case issues (my output is in windows, but should be the same on linux)

    SQL> alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';  -- sqlplus can handle uppercase
    
    Session altered.
    
    SQL> select sysdate from dual;
    
    SYSDATE
    --------------------
    07-MAY-2010 22:27:14
    
    ### but your environment is less forgiving  ###
    
    C:\Documents and Settings\User>set nls_date_format=DD-MON-YYYY HH24:MI:SS
    
    C:\Documents and Settings\User>rman target /
    
    Recovery Manager: Release 10.2.0.1.0 - Production on Fri May 7 22:24:47 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    connected to target database: PTS (DBID=774850390)
    
    RMAN> RUN
    2> {
    3> set until time '07-MAY-2010 05:00:00';
    4> }
    
    executing command: SET until clause
    using target database control file instead of recovery catalog
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 05/07/2010 22:25:09
    ORA-01830: date format picture ends before converting entire input string
    

    Now let's see what happens when I put the NLS_DATE_FORMAT correctly:

    C:\Documents and Settings\User>set nls_date_format=DD-MON-YYYY hh24:mi:ss
    
    C:\Documents and Settings\User>rman target /
    
    Recovery Manager: Release 10.2.0.1.0 - Production on Fri May 7 22:25:36 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    connected to target database: PTS (DBID=774850390)
    
    RMAN> RUN
    2> {
    3> set until time '07-MAY-2010 05:00:00';
    4> }
    
    executing command: SET until clause
    using target database control file instead of recovery catalog
    

    Now, usually when I write RMAN scripts I'll put the nls_date_format there it will always be good for the rman session:

    run {
    set until time "to_date('07-MAY-2010 05:00:00','dd-mm-yyyy hh24:mi:ss')";
    }
    
  • difference between complete and incomplete recovery

    someone can explain the difference between incomplete recovery and full

    Hello

    I think everyone had given enough information the subject.
    Always add some info might be useful: -.

    Complete the recovery: -.

    Basically completely recovered, as the word says full, why must the files (I mean that Backup should persist)
    Backups of data files, logs needed archiving, online redo logs and the controlfile are available.
    The DB can undergo or experience of damage with losing them any information. This case led to a complete recovery.

    The usual process of recovery will be (user managed)

    Make files of data performed in offline mode
    Restore data files
    Recover data files
    Make data files online

    Complete healing is possible, while the database is OPEN and until or unless that important storage spaces get made that SYSTEM or UNDO tablespaces.

    Incomplete recovery: -.

    That the specified name to lose data on purpose, it is said when a complete recovery is impossible or you want to lose some information which has been recorded by mistake or due to corruption of the files. This leads to the incomplete recovery
    Some time its effects in reason lost some files as file control and current control file does not know the current state of the DB. These cases causes too incomplete recovery.

    Incomplete recovery steps:

    Mound the DB
    Restore files
    Recover the database (up to time, cancel or change the number or number of SNA)
    Finally open the DB with newspapers to reset

    Please keep in mind that RESETLOGS Initializes the redo online files, and this is a new incarnation of the database.

    You can also use the RMAN to achieve things.
    For more information, go through the links:

    http://www.Oracle.com/technology/deploy/availability/htdocs/BR_Overview.htm
    http://www.Stanford.edu/dept/ITSS/docs/Oracle/10G/server.101/b10743/backrec.htm

    -Pavan Kumar N

  • incomplete recovery of a data file.

    I'm performing incomplete recovery of a data file that uses the following scenario.
    SQL > select * v log$;
    shows current journal seq is 10;

    I perform dml as follows:
    SQL > update hr.emp set salary = 1000;
    SQL > commit;

    Now, I've deleted log archiving with sequence # 9 alongwith users.dbf datafile.
    Now to perform an incomplete recovery of the datafile, users.dbf. I followed the following steps.
    RMAN > the judgment;
    RMAN > bootable media.
    RMAN > run
    {
    until the sequence 9;
    restore data file 4;
    recover datafile 4;
    }
    RMAN > alter database open;
    Now, when I ask about hr. EMP, it shows the updated lines, i.e., salary column has been updated with 1000;
    I want to know that after the incomplete rcovrry until the seq, what other newspapers is applied. My example shows that this newspaper seq 10 has also been applied. Pls help me to improve my understanding.
    I can't understand the reason to get updated when the incomplete recovery lines.

    Hello.

    You cannot perform incomplete recovery of a single data file. After recovery, before opening the database, all SNA must be synchronized between controlfiles, redo logs and data files. A single data file must be restored and recovered to the last SCN for the database to open. If you want / need to do incomplete recovery, always restore ALL data files, recover their until the desired point in time and then open the database with resetlogs synchronize all data with controlfiles and redo logs files.

    In your case, you have made a complete recovery of the data file. Very probably data repeat still available in the online redo logs were used to recover the data at the last CSS file (since you said that you have removed the archiving log - which, incidentally, makes your online backup no need for a full recovery, after the redo logs switch line and crushes with sequence #9 redo log and beyond).

    When experimented with incomplete recovery, until the RCS or at least up to the time, it allows you to specify the point in time recovery with much more accurately and without guessing, what happened in whatever sequence of journal. You must manually remove the files of data or archivelog files before playing with incomplete/complete recovery. In fact, it is a good practice not to delete the database of linked files: o)

    Kind regards
    Martin

  • incomplete recovery until error

    I want to perform incomplete recovery with RMAN using up to that time, I performed the following tasks

    stop immediately;
    bootable media;
    ALTER session set nls_date_format ='YYYY-MM - DD:HH24:MI:SS';

    RMAN target sys/sys@alvis

    Run {}
    until the time ='2011 - 02 - 10:15:25:00';
    restore the database;
    recover the database;
    ALTER database open resetlogs;
    }


    but it shows the following error

    RMAN-03002: failure of the command set to 10/02/2011 16:41:31
    ORA-01861: literal does not match the format string


    Wat could be the problem?


    Thanks in advance

    You set your NLS_DATE_FORMAT in a database session, however, your RMAN connection is for another session.

    Try setting NLS_DATE_FORMAT as an environment variable in your OS BEFORE connecting to RMAN command-line.

    Something like:

    C:\>SET NLS_DATE_FORMAT=YYYY-MM-DD:HH24:MI:SS
    C:\>RMAN sys/sys@alvis
    

    or

    $ NLS_DATE_FORMAT=YYYY-MM-DD:HH24:MI:SS
    $ export NLS_DATE_FORMAT
    $ RMAN sys/sys@alvis
    
  • RMAN incomplete recovery

    Jin
    I use oracle10g (10.2.0.4.0) in windows service pack 2 32-bit. with RMAN, I took a backup of a tablespace. Then, I created a table and the database is closed. Off, I deleted the file data in this table. Now I started the database in the editing phase, started the RMAN. I restored the tablespace by RMAN and then I got to a point where I did not create the table. But the RMAN performs a complete recovery. When I check the table there is always. How is it possible? can someone help me please... I am totally confused.

    Here are the commands I used in the above scenario

    RMAN > BACKUP TABLESPACE USERS (BACKUP 13:00 HRS)


    SQL > CREATE TABLE TEST AS SELECT * FROM EMPLOYEES; (CREATED AT 17:00 HRS)
    SQL > IMMEDIATE SHU

    physically remove the data from the users table space file.

    SQL > STARTUP MOUNT

    RMAN > CONNECT TARGET SYS/password

    RMAN > RESTORE TABLESPACE USERS

    RMAN >RECOVER DATAFILE 4 until time ' to_date ('2010-11-23 16:00 ',' ' YYYY-MM-DD HH24:MI:SS) "

    SQL > ALTER DATABASE OPEN RESETLOGS (DISPLAYS AN ERROR THAT RESETLOG CAN SE DO AFTER INCOMPLETE RECOVERY)

    SQL > ALTER DATABASE OPEN

    SQL > SELECT * FROM TEST (THE TABLE EXISTS)


    Please tell me what is wrong in the above scenario? I use wrong queries?


    Thanks in advance

    You cannot recover a Tablespace (or Datafile) to a point in time that is not consistent with the rest of the database, unless you use an auxiliary Instance. TSPITR (TablespacePointInTimeRecovery) uses an Auxiilary Instance where SYSTEM, UNDO and the required storage space are recovered to the point passed in time without affecting the current instance of the current database. The tablespace can then transported the auxiliary to the active database instance - you can have RMAN automatically do this but, personally, I would manually.

    Hemant K Collette

  • Performing an incomplete recovery

    Hello
    on 10 g R2 on WIN 2003 server, I test suite Performing incomplete recovery metalink notes 114199.1 .

    On 23 January, I renamed a table (ancienne_table to NewTable).
    I shutdowned DB started editing and applied:
    SQL> select first_time, first_change#-1, sequence#, name from v$archived_log ;
    
    FIRST_TIM FIRST_CHANGE#-1  SEQUENCE# NAME
    --------- --------------- ---------- ---------------------------------
    14-JAN-09          276181          1 E:\BASE\DB\ARCH\ARC_DB_00
                                         001_0676107201.001
    
    14-JAN-09          277132          2 E:\BASE\DB\ARCH\ARC_DB_00
                                         002_0676107201.001
    
    14-JAN-09          277524          3 E:\BASE\DB\ARCH\ARC_DB_00
                                         003_0676107201.001
    
    22-JAN-09          280215          4 E:\BASE\DB\ARCH\ARC_DB_00
                                         004_0676107201.001
    
    
    23-JAN-09          281305          1 E:\BASE\DB\ARCH\ARC_DB_00
                                         001_0676862242.001
    
    SQL> recover automatic database until change 276181;
    Media recovery complete.
    SQL> alter database open resetlogs;
    
    Database altered.
    
    SQL> select table_name, owner from all_tables where table_name like '%TABLE%';
    
    TABLE_NAME                     OWNER
    ------------------------------ ------------------------------
    NEWTABLE                      SYS
    Why recovery is not returned to Jan 14 and does not have to ANCIENNE_TABLE instead of NEWTABLE?

    Thanks for your help/explanation.

    Please report all the steps that followed you. Do you have a full backup before January 14?

    Kind regards
    Navneet

  • Incomplete recovery of 17 HP envy touchsmart

    I have a laptop HP Envy Touchsmart product model E1P14AV 17 t-j100 number 17.

    I'm trying to restore to the factory via a USB port, but get incomplete restoration. I tried all the methods of the HP recovery method and all three gave the same answer. It runs through everything and reload the software but gives this answer. If I click on try again it tells me to insert the recovery media.

    Try changing the date in the BIOS to 01/01/2012. Save & Exit. Boot from recovery and to run the process-, but on the first reboot, it initiates enter the BIOS to ensure the update is still. If so let recovery resume - if not change again, then restart.

  • want to dv6: incomplete recovery

    Hello world!
    I did a factory reset. is not incomplete and send a file "ctoerror.flg" when trying to install windows. When I restart, I loose the connection of windows and now have access to it. two time reinstall Now.
    Mr tanks for recommendation!

    Hi @leverceau ,

    Please contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click on the link for the number of support in your region. They will be happy to help you immediately.

    Thank you.

  • Incomplete recovery, cannot get further than to insert media

    I tried to perorm a cooling system on my windows 8 hp portable m7-j020dx. a full backup of the system was executed just before the update just in case.  After the update the laptop rebooted one last time and a screen popped up indicating implete restoration.

    The list of errors are as follows

    [6:58:36.74] ChkErrBB.CMD: detect an error in the PININST_BBV.

    [6:58:36.74] ChkErrBB.CMD: check c:\system.sav\Logs\BurnBootWarn.log

    [6:58:36.76] ChkErrBB.CMD: or, visit c:\system.sav\Logs\BurnBootMerge.log

    [6:58:36.77] --------------------------------------------------

    [6:58:36.77] critical error condition has been detected to BBV1...

    First of all I do not have to do a system restore just a system refresh.  Second on the pop-up screen, he says the restoration has not ended.  Please select one of the following buttons:

    Save the details of the journal try again

    I saved the newspaper, I looked at the details, but, when I click on start a new screen appears that says insert media recovery. Unfortunately, I can't get past this point. I can hear the CD drive spin upward and try to read CD inside, but nothing else.

    I didn't remove the disc 6 but, it is not reading. I opened the CD player and I tried the 1st disk, still nothing happens. I then tried the rest of the 2nd, 3rd, 4th, 5th, 6th CD. Then, I tried to boot up the laptop hard and again the same screen came, and the same problem occurs.

    I also went into the bios and went through every possible system check and they all came back past. (notice, the only thing I did the laptop hardware wise was having a 840 840 samsung series series 250GB SSD professionally installed and had information on the original HDD migrated on the SSD using the supplied migration of samsung software.) Any help would be greatly appreciated.

    I tried to insert the old hard drive. Goes on for some strange reason (and that includes most of the computers laptops hp not only the m7-j020dx) in order to solve the problem. You must restart the computer quickly press ESC to enter the bios. Once in the bios, press f5 to reset to the factory settings. Press f10 to save and exit. After that, the recovery of HARD drive works perfectly.

  • Impdp problem with disconnection of Oracle (without recovery)

    Hi all

    I am trying to import a data dump generated from an Oracle Enterprise Manager 10.2.0.4.0 on a server unix with the following command:
    expdp mc/XXX DIRECTORY = DUMPFILE EXPORT_DIR = SLTN-MCEXPORT-2010-07 - 22.dmp PATTERNS = MC LOGFILE = SLTN-MCEXPORT-2010-07 - 22.log

    I want to import into oracle XE 10 g (10.2.0.1.0) on a windows server. That's why I do the following:

    Impdp mc/xxx DIRECTORY = DUMPFILE EXPORT_DIR = SLTN-MCEXPORT-2010-07 - 22.dmp PATTERNS = MC LOGFILE = SLTN-MCIMPORT-2010-07 - 22.log

    I had to manually create TABLESPACE MC_DATA: 'MC_DATA' of CREATE TABLESPACE DATAFILE 'D:\OracleHisRuns\Dumps\SLTN-MCEXPORT-2010-07-22.dmp ';

    Then a table fails MC. CURVEPOINTS

    And finally we are disconnected from Oracle

    The determined type SCHEMA_EXPORT/TABLE/INDEX/INDEX processing
    UDI-00008 operation error 3113 and 3114 error.

    and I can't get back. I again install Oracle XE.

    Anyone know why this is happening? Is it a memory problem? Or is there a problem when the user, the tablespace is created next to me?
    Maybe the export and import between these two Oracle database versions are not compatible?

    Any help would be greatly appreciated.

    Many thanks in advance,
    Thomas

    Please find the journal that I have:

    D:\COSMOS_BATCH_RUNNER\Automation_oracle\Scripts\IMPORT DMP > impdp mc/mc DIRECTOR
    Y = DUMPFILE EXPORT_DIR = SLTN-MCEXPORT-2010-07 - 22.dmp PATTERNS = MC LOGFILE = SLTN-MCEXP
    ORT-2010-07 - 22.log

    Import: Release 10.2.0.1.0 - Production on Thursday, July 22, 2010 17:35:36

    Copyright (c) 2003, 2005, Oracle. All rights reserved.

    ConnectΘ α: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

    Master table 'MC '. "' SYS_IMPORT_SCHEMA_01 ' chargΘe/dΘchargΘe with succΦs
    DΘmarrage of 'MC '. "" SYS_IMPORT_SCHEMA_01 ": mc / * DIRECTORY = DUMP EXPORT_DIR
    FILE = SLTN-MCEXPORT-2010-07 - 22.dmp PATTERNS = MC LOGFILE = SLTN-MCEXPORT-2010-07 - 22.lo
    g
    Treatment of the determined type SCHEMA_EXPORT/USER
    ORA-31684: the USER object type: 'MC' is dΘjα
    The determined type SCHEMA_EXPORT/SYSTEM_GRANT processing
    The determined type SCHEMA_EXPORT/ROLE_GRANT processing
    The determined type SCHEMA_EXPORT/DEFAULT_ROLE processing
    The determined type SCHEMA_EXPORT/TABLESPACE_QUOTA processing
    Treatment of the determined type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Treatment of the determined type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    The determined type SCHEMA_EXPORT/TABLE/TABLE processing
    Treatment of the determined type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-31693: failed loading/dΘchargement of the donnΘes of table object 'MC '.
    'CURVE_POINTS '; the object is ignorΘ due to the error:
    ORA-02354: error during export/import of donnΘes
    ORA-02368: the file is not valid for this load operation
    . . import: "MC". "' BLOCKORDER_INTERVAL_RESULTS ' 46,54 MB 2280571 lines

    . . import: "MC". "' BLOCKORDER_INTERVALS ' 19.54 MB 1359850 lines

    . . import: "MC". "' BLOCKORDER_HEADERS ' 6,162 MB 149683 lines

    . . import: "MC". "' BLOCKORDER_RESULTS ' 246805 lines 6,205 MB

    . . import: "MC". "' PRELIMINARY_RESULTS ' lines 4,247 58248 MB

    . . import: "MC". "' ALGORITHM_EVENT_LOG ' lines 1,689 MB 20388

    . . import: "MC". "' CURVE_HEADERS ' 1,816 MB 73568 lines

    . . import: "MC". "' LINE_RESULTS ' lines 1,937 58248 MB

    . . import: "MC". "' OS_HISTORYSTEP ' lines 2,155 MB 21460

    . . import: "MC". "' SESSION_ALGORITHMPARAMETERS ' 1,741 MB 57656 lines

    . . import: "MC". "' LINE_CAPACITIES ' lines 1,311 46883 MB

    . . import: "MC". "' MSG_TRANSMISSION_LOGS ' 6464 lines 1,143 MB

    . . import: "MC". "' FINAL_PRICE_POSITIONS ' lines 396,4 16428 KB

    . . import: "MC". "' OS_CURRENTSTEP ' 7456 lines 348,4 KB

    . . import: "MC". "" REPORTATCVALUES "254,5 Ko 12000 lines

    . . import: "MC". "' BUSINESS_STEP_SESSION_REPORTS ' 220,7 lines 2852 KB

    . . import: "MC". "' PTDF_MATRIX_FACTORS ' lines of 239,6 12612 KB

    . . import: "MC". "' SESSION_BIDDINGAREAS ' 207 KB 2648 lines

    . . import: "MC". "' ALGORITHM_DETAILED_LOG ' 526 lines 52,85 KB

    . . import: "MC". "' ALGORITHM_SOLUTION_LOG ' 607 lines 55,23 KB

    . . import: "MC". "' AUDIT_LOGS ' 69,25 lines 1516 KB

    . . import: "MC". "' BUSINESS_STEP_REPORT_COMMENTS ' 62,46 lines 2821 KB

    . . import: "MC". "' OS_WFENTRY ' 45,38 lines 1020 KB

    . . import: "MC". "' PTDF_MATRIX_CONSTRAINTS ' 3153 lines 59.75 KB

    . . import: "MC". "' SESSIONS ' 679 KB 61,64 lines

    . . import: "MC". "' SESSION_LINES ' 77,58 lines 2648 KB

    . . import: "MC". "' ALGORITHM_PARAMETERS ' lines 7,937 84 KB

    . . import: "MC". "" ALGORITHM_SESSION_LOG "317 lines 19.20 KB

    . . import: "MC". "' BALANCING_AREAS ' 6,320 KB 1 lines

    . . import: "MC". "' BIDDING_AREAS ' 10.03 KB 4 lines

    . . import: "MC". "' The LINES ' 7,140 KB 4 lines

    . . import: "MC". "' LINE_CAPACITIES_STATIC ' lines 7,601 96 KB

    . . import: "MC". "" MAPPING_CONSTRAINTID_ROWID "171 lines 11,17 KB

    . . import: "MC". "' OUTPUTCHECKS ' 419 lines 37.96 KB

    . . import: "MC". "' PART ' 6,257 KB 9 lines

    . . import: "MC". "' PERIPHERAL_SYSTEMS ' 8,851 KB 9 lines

    . . import: "MC". "' PTDF_MATRIX_HEADERS ' lines 7,195 72 KB

    . . import: "MC". "' SESSION_BALANCINGAREAS ' 662 lines 32,71 KB

    . . import: "MC". "" SESSION_REPORTS "135 lines 29,89 KB

    . . import: "MC". "' SESSION_REPORT_COMMENTS ' 128 lines 7,007 KB

    . . import: "MC". "' SYSTEM_PARAMETERS ' 27 lines 6.5 KB

    . . import: "MC". "" USERS "33 lines 11,71 KB

    . . import: "MC". "" USER_SCRATCH_CARD_DETAILS "11 lines 11.51 KB

    . . import: "MC". "" BLOCKORDER_EXCLUSIVEGROUPS "0 KB 0 rows

    . . import: "MC". "" BLOCKORDER_LINKS "0 KB 0 rows

    . . import: "MC". "" MATRIXROWRESULTS "0 KB 0 rows

    . . import: "MC". "" MSG_TRANSMISSION_ERROR_LOGS "0 KB 0 rows

    The determined type SCHEMA_EXPORT/TABLE/INDEX/INDEX processing

    UDI-00008: the opΘration a gΘnΘrΘ the ORACLE 3113 error
    ORA-03113: end of file on channel communication


    UDI-00008: the opΘration a gΘnΘrΘ error ORACLE 3114
    ORA-03114: not connectΘ α ORACLE

    DMP D:\COSMOS_BATCH_RUNNER\Automation_oracle\Scripts\IMPORT >

    Hello
    I think you're confusing the creation of storage with the expdp dumpfile. You tried to add the dumpfile to the database as a data file, and then it was corrupted.

    What you need to do is add a new space of tables with a brand new file - nothing to do with the dumpfile.

    And then perform the import with the dumpfile - you will probably need to this regenerate your source system.

    See you soon,.
    Harry

  • RMAN backup - incomplete recovery

    Hi guys,.

    just a test scenario.

    For example, I have a daily rman full backup at 20:00 yesterday. the database is in archiveloj... However we do not backup the archivelogs.

    This morning at 10:00, all databases, controlfile, redologs, archivelogs files are deleted from the system accidentally.


    the database can still be restore?

    1. create the controlfile to trace
    2. restoring the database
    3. restore database until cancel (it will be prompt will be the next newspaper which is not available)
    4. alter database open resetlogs

    open resetlogs will work without even a log available to apply to the rman backup archiving?

    Thank you

    The question is: "what is the definition of a FULL BACKUP?"

    What you have is a database backup that did not include the ArchiveLogs.
    You cannot recover the database with only a database backup unless the database backup was in State of MOUNT-no is not OPEN.

    A "backup of the closed base" is a FULL database backup.
    A "hot Database backup' is not COMPLETE unless ArchiveLogs are included.
    The command 'BACKUP of DATA PLUS ARCHIVELOG' RMAN; could meet the requirement of a full backup (although it does not include the ORACLE_HOME, EM/GridConsole tnsnames.ora, listener.ora files, etc).

    Hemant K Collette

  • oracle data recovery problem

    Helloo,
    I have a problem in the query of tables. The structure of the tables are:

    Effortentry (effort_id, effort_date)

    Activity_details (act_det_id, effort_id, activity_id, hours)

    Activity (activity_id, activity_name)


    now, I want to go search for hours for the activity for each day and view in frontend per week IE 7 days together as follows:
    I'll spend the day 1 and day 7 of the same week.

    activity_name day 1 day 2 day 3 day 4 day5 day6 day7

    5 6 6 6 6 1 1 acitivity1

    0 0 2 1 4 1 acitivity2 0

    acitivity3 0 6 1 2 0 0 1

    acitivity4 0 4 2 3 0 6 0

    5 2 1 6 7 0 1 acitivity5


    Day 1, day 2, day 3... consist of hours for the respective activity.


    Please guide me how to go about... I tried to create views. What will be the best way to do it.

    Published by: user9243989 on March 2, 2010 01:23
    select activity_name,
           sum(decode(effort_date,:day1,hours,0)) day1,
           sum(decode(effort_date,:day1+1,hours,0)) day2,
           sum(decode(effort_date,:day1+2,hours,0)) day3,
           sum(decode(effort_date,:day1+3,hours,0)) day4,
           sum(decode(effort_date,:day1+4,hours,0)) day5,
           sum(decode(effort_date,:day1+5,hours,0)) day6,
           sum(decode(effort_date,:day1+6,hours,0)) day7
    from Activity a, Activity_details d, Effortentry e
    where a.activity_id=d.activity_id
    and d.effort_id = e.effort_id
    and effort_date >= :day1
    and effort_date < :day1+7
    group by activity_name
    

    As you can see you need to pass only a single parameter: day1.

    Max
    http://oracleitalia.WordPress.com

  • Incomplete data file recovery

    Hello

    I use oracle database 10g (10.2.0.10) in RHEL5. I want to make a point in time recovery a backup data file. Through RMAN, I published the following command

    RMAN > run {}
    2 > sql ' alter session set nls_date_format = "dd-mon-yyyy hh24:mi:ss";
    3 > set until that time August 21, 2011 13:04 ';
    4 > restore datafile 4;
    5 > recover datafile 4;
    6 > alter database open resetlogs ;}

    But RMAN made a full recovery. Yet once again, I deleted the data file and restore the backup data file. Now, I wrote the following at the SQL prompt

    SQL > alter session set nls_date_format = 'dd-mon-yyyy hh24:mi:ss ";
    Modified session.
    SQL > recover datafile ' / u01/app/oracle/oradata/ORATESTDB/datafile/o1_mf_users_751h7fmh_.dbf' until August 21, 2011 13:04 ';
    ORA-00274: illegal until recovery option

    It displays the above error. But I am able to perform incomplete recovery of the complete database using RMAN same as above.

    Done datafile point-in-time recovery is not possible? or is there something wrong in my approach?

    Kind regards

    007

    A data file can be recovered to a point in time which is incosistent with the rest of the database.
    (why? Data integrity! A table with several extensions that can cover several data files. You can't have some scopes with data from 12:05 and other extensions into another file of data retrieved using data from 10:05! Even if it's a single datafile tablespace, you will violate referential integrity (whether or not they are applied) If, say, the SALES table has entries until 12:05, but the SALES_LINES table has entries until 10:05!)

    You can make a Tablespace recovery time by using an auxiliary Instance and then copy the tablespace back. You must maintain integrity.

    Hemant K Collette

  • Recovery in Oracle 10g XE problem

    Hello

    I made a backup of database earlier. I dropped a table after that and tried to recover the database.
    It gives the following errors:
    SQL > recover database until cancel using backup controlfile;
    ORA-00283: cool cancelled due to errors
    ORA-01110: data file 6: ' / usr/lib/oracle/xe/oradata/XE/andromeda1.dbf'
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: ' / usr/lib/oracle/xe/oradata/XE/andromeda1.dbf'

    SQL > alter database open resetlogs;
    ALTER database open resetlogs
    *
    ERROR on line 1:
    ORA-01248: 6 file has been created in the future of incomplete recovery
    ORA-01110: data file 6: ' / usr/lib/oracle/xe/oradata/XE/andromeda1.dbf'


    I deleted the andromeda1.dbf Advisor manually.please.

    Thank you

    Sorry for the delay in replying I was kinda busy :)
    You should try to identify what tablespace file belongs, for example using the script below:

      1  select tablespace_name, file_name
      2* from dba_data_files
    SQL> /
    
    TABLESPACE_NAME                          FILE_NAME
    ---------------------------------------- ---------------------------------------
    SYSTEM                                   C:\APP\MOB\ORADATA\ORCL\SYSTEM01.DBF
    SYSAUX                                   C:\APP\MOB\ORADATA\ORCL\SYSAUX01.DBF
    UNDOTBS1                                 C:\APP\MOB\ORADATA\ORCL\UNDOTBS01.DBF
    USERS                                    C:\APP\MOB\ORADATA\ORCL\USERS01.DBF
    

    You should file a tablespace to which this file belongs

    drop tablesapce tablespaceName including contents;
    

    The last thing to do is to remove the file from the file system

    rm -f /path_to_your_file
    

    If you have the answer to your question please mark question as answered and if someone helped you mark his / her answer as Correct or useful.

    With greetings
    Krystian Zieja

Maybe you are looking for