Undo tablespace/redo logs/ DML /DDL/ truncate/ delete

1st scenario:Delete
10 rows in a table
Delete 5 rows
5 rows in the table
savepoint sp1
Delete 3 rows
2 rows in the table
rollback to savepoint sp1
5 rows in the table
So all DML affected values are noted in the undotablespace and present in the undotablespace until a commit is issued.And also redo logs make note of DML statements.AM I RIGHT??????
2nd scenario-truncate
10 rows in table
savepoint sp1
truncate
0 rows in table
rollback to savepoint sp1 gives this error
ORA-01086: savepoint 'SP2' never established
So is truncate [are all DDL statements] noted in the undo tablespace and are they noted in the redologs????????
I KNOW THAT A DML IS NOT AUTOCOMMIT AND A DDL IS AN AUTOCOMMIT

When you issue a delete is the data really deleted ?WHen you issue a delete, there is a before image of the data recorded to the undo area. (And that undo information itself is forwarded to the redo.) Then the data is actually deleted from the 'current' block as represented in memory.
Therefore, the data is actually deleted, but can be recovered by rolling back until a commit occurs.
It can also be recovered using flashback techniques which simply rebuild from the undo.
When you issue a truncate is the data really deleted
or is the high water mark pointer for a datablock lost?The data is not deleted. Therefore there is no undo record of the data 'removal' to be rolled back.
The high water mark pointer is reset. It's old value is in the undo, but the truncate is a DDL command, and it is preceded and followed by an implicit commit, voiding any potential rollback request.
I mean you can always rollback a delete and not
rollback a truncate?Correct - using standard techniques, deletes can be rolled back and truncates can not.

Similar Messages

  • How Do I Restore Deleted Redo Logs

    I currently have alter database archivelog set and am backing up my archive log redo file. However, I am trying to test a scenario where all of my redo log files have been deleted, and thus need to be restored. I have backups of my archivelog files. I'm trying to recover my redo log files by executing the following:
    RMAN> restore archivelog all;
    Starting restore at 14-AUG-02
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=9 devtype=DISK
    archive log thread 1 sequence 102 is already on disk as file C:\ORACLE\ORA90\RDBMS\ARC00102.001
    archive log thread 1 sequence 103 is already on disk as file C:\ORACLE\ORA90\RDBMS\ARC00103.001
    archive log thread 1 sequence 104 is already on disk as file C:\ORACLE\ORA90\RDBMS\ARC00104.001
    restore not done; all files readonly, offline, or already restored
    Finished restore at 14-AUG-02
    Since this doesn't work I'm assuming I'm doing something wrong. Therefore, what are the necessary steps for recovering my redo log files after they have been deleted? Thanks to all for your help.

    Since my test assumes that the Control files, redo logs and all tablespaces and data files have been deleted. These are the steps I'm using to attempt a full backup & recovery.
    3.     Login to SQLPLUS sys/jalisco@bas as sysdba
    4.     SQL> startup mount bas <enter>
    5.     SQL> alter database archivelog; <enter>
    6.     Stop the Listener and Instance through Services or Net Stop as before.
    7.     From a command enter C:\Oracle\startoracle jalisco bas.
    8.     Login to RMAN: rman target sys/jalisco@bas <enter>
    9.     RMAN> configure controlfile autobackup on; <enter>
    10.     RMAN> backup database format
    a.     2> /oraclebackup/rman_%d_%t.bas plus archivelog; <enter>
    At this point Oracle is configured so that both the archivelog and control files get backed up to oracle\ora90\database. The archivelogs get stored in oracle\ora90\rdbms.
    1.     Restore the control files.
    2.     Restore the archivelogs.
    3.     Restore the tablespaces and data files.
    4.     Create new reset logs.
    1.     Confirm that the Listener and BAS service have been started through the Contol Panel, or by using Net Start.
    2.     Login to RMAN: rman target sys/jalisco@bas as sysdba
    3.     RMAN> startup nomount
    4.     RMAN> restore controlfile from /oracle/ora90/database/C-493922189-2002MMYYYY-00;
    5.     RMAN> startup mount
    6.     RMAN> run {
    a.     2> restore archivelog all; }
    7.     RMAN> restore database;
    8.     Exit RMAN and Login to SQLPLUS sys/jalisco@bas as sysdba
    9.     SQL> alter database open resetlogs;
    At this point I get the error which is listed in the above thread.
    At this point a complete recovery should have taken place. It is extremely important to create a new backup now before proceeding.

  • I do not want to generate redo log, how ?

    Hi All,
    This is on Oracle 8.1.7.
    I have a daily process, which truncates and populates some tables daily. These are reporting tables and daily get around 4 million records.
    I do not want to generate any redo log for these tables.
    I populate these tables with normal insert commands/updates. So, evenif I make that table NOLOGGING, still redo log is generated.
    Any ideas??
    Regards

    There is generally no need to supress redo logging. The truncate command eliminates the logging of the row deletes so you only have to worry about the repopulation of the report tables.
    You might be able to use direct path loads (insert append) or bulk loading to help speed this process.
    Usually when developers have compained that the database logging was the problem we have been able to find either better approaches to generating the data or to tune the queries used in generating the data.
    HTH -- Mark D Powell --

  • 질문-Redo LOG 와 RollBack Segment 와의 상관관계에 대해서

    Redo LOG 와 RollBack Segment 와의 상관관계 및 기능에 대해서 정확하게 알고 싶은데여?

    저도 이부분에 대해서 한참 고민을 해봤고..
    작년인가에.. 미국 오라클 본사에 있는 아는 분하고..
    한국 오라클에서 십여년간 일하신 분에게도 여쭈어 보았는데..;;;
    오라클은 SCN기반이고, redo log 와 rollback segment가 모두
    scn기반으로 움직인다는 것의 상관관계를 빼고는 전혀 두개는
    서로 연관성이 없다고 합니다.
    redo log는 DB가 비정상종료되었을 경우에, commit을 했으나
    데이터파일에 적용하지 못한 데이터에 대해서 rollforward를 수행하고,
    또한 DB에 대한 변경사항대해서 저장만 하는 기능을 할 뿐 redo를
    가지고 rollback을 하지는 않습니다. 즉 redo는 말 그대로 REDO
    다시쓰기(재실행) 이지요. commit했으나 데이터파일에 쓰지 않은 데이터를
    다시쓰기(재실행)하는 기능입니다.
    그렇다면.. rollback segment는 commit하지 않은 데이터에 대해서
    rollback을 하는 기능을 가집니다. rollforward와는 전혀 관계가
    없겠죠..
    이 두가지 작용을 통해서 DB에서 트랜잭션의 rollforward, rollback을
    수행하나 그것은 SCN을 기반으로 작동 될 뿐 서로 어떤 연관성은
    가지고 있지 않다고 합니다.
    글 수정:
    민천사 (민연홍)
    그렇다면 대량 트랜잭션이 일어나고 redo log에 write하는 데이터와
    undo에 쓰는 데이터는 관련성이 없을까요? 이 때 redo log는 트랜잭션에
    대한 복구를 위한 로그를 남기는 역할 일 뿐이지 undo와 관련성을
    가지지 않습니다. 관련성을 따지자면 "redo는 undo로 복제되는 실 데이터(변경전 데이터)에
    대해서 복구로그를 쌓는다"는 것이됩니다. 차후에 트랜잭션 rollback
    은 redo를 참조하는 것이 아니라 undo만을 참조하고, rollback하는
    과정의 로그를 redo에 기록하는 것일 뿐입니다.

  • Recovery lost  undo tablespace and Redo log

    Recovery undo tablespace
    [email protected]> shutdown
    Database closed.
    Database dismounted.
    ORACLE instance shut down.e
    [email protected]> exit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    [ora920@tkyte-pc-isdn ora920]$ ls
    control01.ctl cwmlite01.dbf indx01.dbf redo02.log redo0B.log temp01.dbf
    users01.dbf
    control02.ctl drsys01.dbf odm01.dbf redo03.log redo0C.log tools01.dbf
    xdb01.dbf
    control03.ctl example01.dbf redo01.log redo0A.log system01.dbf undotbs01.dbf
    [ora920@tkyte-pc-isdn ora920]$ mv undotbs01.dbf undotbs01.dbf.xxx
    [ora920@tkyte-pc-isdn ora920]$ sqlplus /nolog
    SQL*Plus: Release 9.2.0.1.0 - Production on Sat Sep 28 08:33:29 2002
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    idle> connect / as sysdba
    Connected to an idle instance.
    idle> startup
    ORACLE instance started.
    Total System Global Area 143725064 bytes
    Fixed Size 451080 bytes
    Variable Size 109051904 bytes
    Database Buffers 33554432 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
    ORA-01110: data file 2: '/usr/oracle/ora920/OraHome1/oradata/ora920/undotbs01.dbf'
    idle> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 10800
    undo_suppress_errors boolean FALSE
    undo_tablespace string UNDOTBS1
    idle> alter system set undo_management = manual scope=spfile;
    System altered.
    Note: disabling the undo tablespace here, this'll let us go back to "rollback segments"
    and we'll use the system RBS to get back on our feet
    idle> shutdown
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    idle> exit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    [ora920@tkyte-pc-isdn ora920]$ !sql
    sqlplus /nolog
    SQL*Plus: Release 9.2.0.1.0 - Production on Sat Sep 28 08:35:34 2002
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    idle> connect / as sysdba;
    Connected to an idle instance.
    idle> startup
    ORACLE instance started.
    Total System Global Area 143725064 bytes
    Fixed Size 451080 bytes
    Variable Size 109051904 bytes
    Database Buffers 33554432 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
    ORA-01110: data file 2: '/usr/oracle/ora920/OraHome1/oradata/ora920/undotbs01.dbf'
    Note: we still have to get rid of that thing..
    idle> alter database datafile '/usr/oracle/ora920/OraHome1/oradata/ora920/undotbs01.dbf'
    2 offline drop;
    Database altered.
    idle> alter database open;
    Database altered.
    idle> drop tablespace undotbs1;
    Tablespace dropped.
    idle> create UNDO tablespace undotbs1
    2 datafile '/usr/oracle/ora920/OraHome1/oradata/ora920/undotbs01.dbf' size 25m
    3 autoextend on next 1m maxsize 1024m;
    Tablespace created.
    idle> alter system set undo_management = auto scope=spfile;
    System altered.
    Now, we've put the undo tablespace "back" by creating a new one. Just bounce...
    idle> shutdown
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    idle> exit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    [ora920@tkyte-pc-isdn ora920]$ !sql
    sqlplus /nolog
    SQL*Plus: Release 9.2.0.1.0 - Production on Sat Sep 28 08:40:51 2002
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    idle> connect / as sysdba;
    Connected to an idle instance.
    idle> startup
    ORACLE instance started.
    Total System Global Area 143725064 bytes
    Fixed Size 451080 bytes
    Variable Size 109051904 bytes
    Database Buffers 33554432 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    Database opened.
    idle> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 10800
    undo_suppress_errors boolean FALSE
    undo_tablespace string UNDOTBS1
    idle>
    and we are right back where we started from
    RECOVERY REDO TABLESPACE
    STARTUP MOUNT;
    RESTORE DATABASE;
    RECOVER DATABASE UNTIL SEQUENCE $v_seq THREAD 1;
    ALTER DATABASE OPEN RESETLOGS;

    [email protected] wrote:
    just ignore first one like title
    Alter database open resetlog is not necessary to open database ?
    Regards
    kmphttp://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007426
    About Opening with the RESETLOGS Option
    The RESETLOGS option is always required after incomplete media recovery or recovery using a backup control file.
    You did not do an incomplete media recovery nor a recovery using a backup control file.

  • Chmod 640 (Datafile,UNDO,TEMP Tablespace, Controlfile, Redo Log Files, Arch

    If i change the permssion of these file to 640, will this break any thing?
    what are the suggested permission of Oracle files and directories?

    here i am doing to secure my DBs Just doing research that it dont break any thing
    These are the permission i am going to change in my DBs , any suggestion?
    chmod 750 /u02/oradata/sid_name
    Chmod 640 (Datafile,UNDO,TEMP Tablespace, Controlfile, Redo Log Files, Archivelogs)
    chmod 644 (alert Logs, init.ora files, config.ora files)
    Chmod 640 $ORACLE_HOME/rdbms/admin/utlpwdmg.sql
    Verify umask = 022 - type "umask" - should return 022; if not, modify in .profile
    Verify all files are readable--run the following:
    select file_name, status from dba_data_files where status != 'AVAILABLE'--should return 0 rows
    SUN - ls -al /var/opt/oracle/oratab = should be owner=oracle group=dba
    IF NOT, OPEN SR TO UNIX TEAM TO CHANGE
    Verify oraInst.loc - look at /u01/app/oracle/security/*.info - setting A271-
    /var/opt/oracle/oraInst.loc - owned by oracle:dba
    *IF NOT, OPEN SR TO UNIX TEAM TO CHANGE
    Verify ownership of $ORACLE_HOME/network/admin/listener.ora,$ORACLE_HOME/network/admin/tnsnames.ora
    = oracle:dba
    *IF NOT, OPEN SR TO UNIX TEAM TO CHANGE
    Verification:
    1. run gsd331 scan and verify fixed--
    execute /u01/app/oracle/security/orashc -m -a *output will go to [email protected]
    BACKOUT:
    Change permission back to 755

  • What is the difference between undo tablespace and online redo log files.

    what is the difference between undo tablespace and online redo log files. I am confused
    as per my knowledge undo tablespace is used to store the undo information when a table is being updated so that, just incase we need to rollback a transaction we know what was present in the table earlier.
    when a transaction fails the SMON performs the rollback of the data.
    This undo data is stored in the undo tablespace and read consistency if any is enforced.
    is my understanding till here correct?
    Now, can this undo data/before image not be stored in the redo log buffer and online redolog files?
    can redo-log files not store this information?
    in fact, is it that when undo tablespaces exist in a database, the undo data/before image is stored in both the undo tablespace and also the redo log files?
    kindly clarify my doubt.
    thank you.

    This question has been asked many times before. The answer is always the same.
    Yes, redo contains the before image of data (and the after-image). Therefore, it **COULD** be used to roll back a transaction.
    BUT... Redo is written sequentially. Using it to rollback your transaction would involve reading through all the redo written by maybe thousands of other people. It would be painfully slow.
    Your transaction is, however, directly linked to just the UNDO that it generates (which is JUST the before image of the data). So, your undo is your undo and doesn't share space with anyone else's undo. Therefore, using it to roll back YOUR transaction is fast.
    The fact that undo is only the before image of the data also makes it faster than wading through a sea of before and AFTER images as you'd find in redo. About twice as fast, in fact, since there's half the data. Roughly.
    Redo also gets written and flushed to disk whenever there's a commit, 3 seconds are up or too much (1MB, actually) redo gets generated between flushes caused by other factors. Your redo gets flushed when those things happen, even if you haven't actually committed your transaction. And redo logs recycle themselves, meaning that your redo -even if your transaction hasn't been committed yet- can be over-written by later transactions. Try rolling back when that's happened, if redo was the source of your rollback data!
    Undo, however, cannot be over-written if the transaction has not been committed. Ever. If you don't commit for three years, there will be three years' undo stored in your database (assuming you had the space, of course!).
    I could go on, but that will do. Redo is there fore RECOVERY, after catastrophe. Undo is there for read-consistency (and the occasional change of mind). Two different functions. Two different mechanisms. Each one highly tuned to doing what it does, why it does it, most efficiently and effectively.

  • Difference Between Redo logfiles,Undo Tablespace,Archive logfiles, Datafile

    Can some please highlight difference between Redo and Undo logs
    Also why do we need seperate archive logs when the data from redo logs can be directly written to Datafiles..
    You help will be highly appreciated...

    Also why do we need seperate archive logs when the data from redo logs can be directly written to Datafiles..
    Redo logs are the transaction logs of yours database , it is exactly a recorder of yours database activity ,by using redo logs i can take my database to a particular state, for further detail lets take an example.
    Suppose i have three disk (disk1,disk2 and disk3),i have one datafile in my database which is f1.dbf on my disk1,i have 2 redo log file i.e r1.log and r2.log which are on disk2.At disk3 i copy my database file f1.dbf from disk1 daily at 12:00 PM. On Monday i have successfully copied the f1.dbf file from disk1 to disk3 at 12:00 PM , at 1 PM on monday i insert some record in a table "test".
    Insert into test values (1)
    It means on monday at 1:00 PM within my datafile f1.dbf i have modified a block and this block contain the record of table test (1 values) , at 1:00 PM if you compare datafile f1.dbf at disk1 from disk3 , you will find only that f1.dbf will contain a new record of test table with values 1 but this will not be within backed up datafile f1.dbf at disk3 . At disk2 r1.log contain those record which i inserted on monday at 1:00 PM, it means i have redo (transactions log) of this datafile f1.dbf within r1.log, i can redo (again inserting) that record from redo log r1.log which i have done at 1:00 PM.
    Suppose at 2 PM on monday my disk1 smoked out , if disk1 smoked out f1.dbf has been also smoked out , then what will i do , i will put a new hard disk disk4 and will copy the database file f1.dbf from backup disk3 , this f1.dbf would not have record of "Insert into test values (1)" which occured after backup at 1:00 PM.After coping f1.dbf to new hard disk disk4 i will start reading and applying my redo log file r1.log after 12:00 PM which contain the (redo entry i.e redo vectors) "insert into test values (1)" to my new restored file f1.dbf at new disk4 , in short it is going to replay from recorder of my transactions log (r1.log) and after applying the redo from r1.log i will have exact data before crashing the hard disk1 at 2:00 PM.The only purpose of redo log file in this scenario is to recover the database in case of media failure , if i do not have r1.log then i can only recover my database till 12:00 PM which was copied from disk1 to disk3 but this recovered backup file does not have entry of "insert into test values (1)", i can only bring back my database to before failure current backup at 12:00 PM not just exact before the failure.
    You may think why the wastage of three disk for one information , one is at disk1 (f1.dbf),another one is at disk2 (r1.log) and last one is at disk3 for coping f1.dbf from disk1.You may think that it is ok with two disk (disk1 and disk3) why do we need another storage area for r1.log , basically r1.log is the transactions log until between yours current backup to the next backup.It does not contain the whole redo (transaction logs) of yours database but have information (transaction log) till yours next backup which is going to be start on next day tuesday at 12:00 PM ,when it gets filled it is switched to another redo log r2.log, when r2.log is filled then it switched back to r1.log , it overwrites whatever written at 12:00 PM "insert into test values (1)" with new database transactions , for the safety of this overcome this redo is archived and keep save till yours next backup.Redo log switching depneds on yours database transaction pace and its size, the more database activity the quickest redo filling and in turn redo log switching.
    Thats all why we need redo and archived log files, as far as the data from redo logs can be directly written to Datafiles is wrong , whenever you do any activity i.e DML , this DML modify the two block one is in within DB buffer cache another one in redo buffer cache , at every 3 seconds or 1/3 filing of redo buffer or commit occurs whichever occur first LGWR write transactions log from redo buffer to online redo log file.
    DBWR writes data (dirty buffer) from database buffer cache when checkpoint occurs (checkpointing a process which updates alls datafile headers with the SCN) before Oracle 8.0 it was LGWR which does the job of CKPT to update alls datafile header with SCN , but after Oracle 8.0 CKPT is now responsible to do this activity cause LGWR already keep involved in writing redo buffer data to redo log file.

  • Is There a Way to Run a Redo log for a Single Tablespace?

    I'm still fairly new to Oracle. I've been reading up on the architecture and I am getting the hang of it. Actually, I have 2 questions.
    1) My first question is..."Is there a way to run the redo log file...but to specify something so that it only applies to a single tablespace and it's related files?"
    So, in a situation where, for some reason, only a single dbf file has become corrupted, I only have to worry about replaying the log for those transactions that affect the tablespace associated with that file.
    2) Also, I would like to know if there is a query I can run from iSQLPlus that would allow me to view the datafiles that are associated with a tablespace.
    Thanks

    1) My first question is..."Is there a way to run the
    redo log file...but to specify something so that it
    only applies to a single tablespace and it's related
    files?"
    No You can't specify a redolog file to record the transaction entries for a particular tablespace.
    In cas if a file gets corrupted.you need to apply all the archivelogs since the last backup plus the redologs to bring back the DB to consistent state.
    >
    2) Also, I would like to know if there is a query I
    can run from iSQLPlus that would allow me to view the
    datafiles that are associated with a tablespace.Select file_name,tablespace_name from dba_data_files will give you the
    The above will give you the number of datafiles that a tablespace is made of.
    In your case you have created the tablespace iwth one datafile.
    Message was edited by:
    Maran.E

  • Delete standby redo log from primary database

    Hi all,
    I'm trying to drop standby logfiles on primary database (other database that I'm configuring the DG).
    The members of the standby log groups don't exists on file system.
    Somebody have deleted these files. Its old configuration where the files were in file system. Now they are in ASM.
    When I try to drop the standby logfiles I got the following error:
    SQL> alter database clear logfile group 7;
    alter database clear logfile group 7
    ERROR at line 1:
    ORA-19528: redo logs being cleared may need access to files
    SQL> select * from v$logfile order by 1;
        GROUP# STATUS  TYPE    MEMBER                                                                           IS_
             1         ONLINE  +REDO1/proj/onlinelog/group_1.256.340558657                                     NO
             1         ONLINE  +REDO2/proj/onlinelog/group_1.256.340558659                                     NO
             2         ONLINE  +REDO1/proj/onlinelog/group_2.257.340558879                                     NO
             2         ONLINE  +REDO2/proj/onlinelog/group_2.259.340558879                                     NO
             3         ONLINE  +REDO1/proj/onlinelog/group_3.258.340558707                                     NO
             3         ONLINE  +REDO2/proj/onlinelog/group_3.257.340558709                                     NO
             4         ONLINE  +REDO2/proj/onlinelog/group_4.258.340558713                                     NO
             4         ONLINE  +REDO1/proj/onlinelog/group_4.259.340558711                                     NO
             5         ONLINE  +REDO2/proj/onlinelog/group_5.260.340558965                                     NO
             5         ONLINE  +REDO1/proj/onlinelog/group_5.260.340558963                                     NO
             6         ONLINE  +REDO1/proj/onlinelog/group_6.261.340558967                                     NO
             6         ONLINE  +REDO2/proj/onlinelog/group_6.261.340558967                                     NO
             7         STANDBY /oracle/proj/onlinelog2/redo_702.log                                            NO
             7         STANDBY /oracle/proj/onlinelog1/redo_701.log                                            NO
             8         STANDBY /oracle/proj/onlinelog2/redo_802.log                                            NO
             8         STANDBY /oracle/proj/onlinelog1/redo_801.log                                            NO
             9         STANDBY /oracle/proj/onlinelog2/redo_902.log                                            NO
             9         STANDBY /oracle/proj/onlinelog1/redo_901.log                                            NO
            10         STANDBY /oracle/proj/onlinelog1/redo_1001.log                                           NO
            10         STANDBY /oracle/proj/onlinelog2/redo_1002.log                                           NO
    20 rows selected.
    SQL> select * from v$standby_log order by 1;
        GROUP# DBID            THREAD#  SEQUENCE#      BYTES       USED ARC STATUS     FIRST_CHANGE# FIRST_TIM LAST_CHANGE# LAST_TIME
             7 UNASSIGNED            0          0  104854601        512 YES UNASSIGNED             0                      0
             8 UNASSIGNED            0          0  104854601        512 YES UNASSIGNED             0                      0
             9 UNASSIGNED            0          0  104854601        512 YES UNASSIGNED             0                      0
            10 UNASSIGNED            0          0  104854601        512 YES UNASSIGNED             0                      0What can I do to drop these reference?
    Any other solution instead of edit the controlfile and stop/start tghe database?
    thank you!!!!

    Hello;
    Well Oracle thinks the files are there, but I remember a bug on metalink where the controlfile still had them, but they were not on the file system. Can you confirm they exist?
    Meanwhile I check my notes for the Oracle doc nunber.
    Bug 6128242: TRYING TO DROP STANDBY LOG FAILS WITH ORA-19528
    So if you are Oracle 10 this might be the issue.
    workaround is to re-create the controlfile without the incorrect logfile. ( Yuk!! )
    ORA-01156 When Adding Or Dropping Redo Logs [ID 452152.1]
    Best Regards
    mseberg
    Edited by: mseberg on Oct 31, 2011 5:09 PM

  • Delete old and unused Archived Redo Log Files

    Hello forum!
    My db was in ARCHIVELOG mode and It created 9GB of archived redo log files.
    Now I put the db in NOARCHIVELOG mode, can I delete all the ARLF? am I sure that the DB never need those files in the future?
    If yes, how can I delete them? I will use 'del' operative system command?
    In addition, I found this command:
    SQL>alter database open resetlogs;
    is it useful for my purpose?
    thank you!

    You are safe to remove those archivelog files if you altered your database to no archive log mode. Just remove them from OS level
    Please bear in mind that database in no archivelog mode will lost data in the event of disaster.
    SQL>alter database open resetlogs;Doesn't help in your situation, it's use to bring up database after incomplete recovery.

  • What will heppen if redo logs at os level get deleted

    Friends,
    need 1 answer about the query: what will heppen if redo logs at os level get deleted.

    how can i find where are my multiplexed redo logs, so that i can copy it from there
    SQL> shutdown abort                       
    ORACLE instance shut down.                
    SQL> startup mount                        
    ORACLE instance started.                  
    Total System Global Area  534462464 bytes 
    Fixed Size                  2256912 bytes 
    Variable Size             398462960 bytes 
    Database Buffers          125829120 bytes 
    Redo Buffers                7913472 bytes 
    Database mounted.                         
    SQL> select * from v$logfile              
      2  ;                                    
        GROUP# STATUS  TYPE                   
    MEMBER                                    
    IS_                                       
             3         ONLINE                 
    C:\O\ORADATA\XE\REDO03.LOG                
    NO                                        
             2         ONLINE                 
    C:\O\ORADATA\XE\REDO02.LOG                
    NO                                        
        GROUP# STATUS  TYPE                   
    MEMBER                                    
    IS_                                       
             1         ONLINE                 
    C:\O\ORADATA\XE\REDO01.LOG                
    NO                                         However, Oracle knows about the multiplexing, so if your logs were multiplexed properly (using redo log members), Oracle would already have known about them and identified that there was one available.
    Just goes to show you (if this is, in fact what you did), don't just go blindly deleting files that have a ".LOG" extension.

  • Accidently Deleted Online Redo Log Files

    Dear friends
    Just to give a try, I deleted online redo log files from the disk after clearn shutdown (In Test Environment Not A Production Database), then i started the dabase, I know we need atleast two online redo files for database to work properly. now my point of question is how can i create new online redo files ?
    I have 2 redo logfile groups each with one member. In group 2 i have added new member for the deleted one using add logfile member ....... to group 2. but when i try todo the same to add logfile member to group1 I am not abale to do so. because its saying that this is the current logfile member. then I tried manual log switching to use next logfile member but database is not allowing as the database is just mounted not opened. plsease if any body helps me out to sort out this problem it will be a great help.
    Anandkumar S.M
    Oracle DBA
    rC6Exv3

    hello ur instruction u have is some what bit rite. but i was not able to solve the problem
    finally i solved the problem with these commands after database is mounted
    recover database until cancel Enter
    then I select the cancel option when it provide the user with the options
    after cancelling the recover i issued the following command
    alter database open resetlogs;
    this method sorted out my problem
    anyway very very thanks for ur root hints from where i got the Idea to recover online redo logfiles
    Thank u very much

  • Delete all redo log groups

    Friends,
    Suddenly I have to delete all of my redo log groups (REDO01.LOG,REDO02.LOG,REDO03.LOG) from my database . Now I cannot open my database . I am using Oracle 10g database . I have no cold backup of my database but have a RMAN backup . Now How can I restore my redo log groups .
    Can anybody plz help me .. ...

    if you are working in archive mode
    SQL> startup
    ORACLE instance started.
    Total System Global Area 272629760 bytes
    Fixed Size 1290136 bytes
    Variable Size 213909608 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 7098368 bytes
    Database mounted.
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1:
    'D:\ORACLE\PRODUCT\10.2.0\ORADATA\PEEGT\REDO01.LOG'
    SQL> recover database until cancel;
    Media recovery complete.
    SQL> alter database open resetlogs;
    Database altered.
    Backup your database...

  • Redo log files deleted

    Hello,
    One of my friend deleted redo log and control files of one machine in cluster environment. Oracle parallel server(8.1.7) is installed on this cluster.
    Redo log and control files of the second disk is still there.
    Can i copy the control files and redo log files of the second disk to the first one...??? Will it work ???
    Please let me know how should I go by it...??
    Thanking in anticipation.
    Regards,
    Rajeev

    Hello,
    I don't have any experiences with cluster/parallel server. But in general:
    1. Controlfile: shutdown database and cp exisiting controlfile to "old" destination. Filename must be similar to deleted controlfile.
    2. Redo Logs: Drop and recreate groups step by step (no user activity recommended). Database won't crash, because members are still "alive" on second disk.
    HTH,
    juergen_klinsmann

Maybe you are looking for

  • How to create a view on SQLServer 2008 as an OPENQuery select to a MYSQL linked server

    I am trying to create a view on SQLServer through Management Studio based on data on a MYSql server. I have created the Linked server and I am able to query all data. Using the syntax select * from OPENQUERY (linkedServer, 'select * from MYSQL-table'

  • Video size problem

    Just started using Premiere pro cs4 and when ever I import a video it is very small (http://tinypic.com/r/2s6q88o/4). I've been using a older version for a while. If it matters I am filming with a Canon Gl1. Thanks

  • Errors while Updating .MDF

    Following errors occurred while updating an .mdf file when I changed the Column Names of each table. How can I solve this Problem?. Update cannot proceed due to validation errors.  Please correct the following errors and try again. SQL72015 :: The ta

  • Problems with the downloaded programs from sites on Internet

    Hi, I just recently got interested in downloading a program from the site myspace.com, but I have been interested in other programs earlier in my time as a MacBook user. Unfortunately, I have not discovered how to open them properly. What is the best

  • Safari - cannot change home page

    I've been struggling to change the home page but cannot seem to get rid of the default Mac page. I have changed home page in preferences, and the required page is showing clearly. However, the Apple page still loads every time I start Safari or open