DOUBT IN CRETAING DATAFILES
Hello,
i have one doubt in creating datafile if suppose i have created a TABLESPACE T1.
with DATAFILE X.
CREATE TABLESPACE T1 DATAFILE 'D:\ORACLE\ORADATA\ORCL\X1.DBF' SIZE 1024M
Now if suppose that i wan't to increase the tablespace size fot that i have two options
1.resize the existing datafile
or
2.Adding another datafile
my doubt is which is the best option in the above two
regards,
lakshmi
In your case, it doesn't matter you add a new datafile or increase the size to an existing datafile.
However, if the size of an existing datafile is notable high, it is better to add a new datafile.
As it will prevent single point failure and also increases your backup and recovery timing.
Jaffar
Similar Messages
-
Doubt about transfering datafiles
sir/madam,
as a DBA, i had a requirement for converting a datafile from one> tablespace to another. but for my surprise, i couldn't do it. from user or DBA point of view, i appreciate all the new features and capabilities of Oracle. but this one was quite amazing that how
could such a feature be overlooked. That is, its possible to move
objects between tablespaces(here i mean, alter table ...move...).
but i couldn't move datafile between tablespaces. recently i had
a requirement, something like this.
Database is in noarchivelog mode. i have users tablespace with one
datafile u1.dbf. i created one other datafile u2.dbf for some temporary
reasons.after my work i offline dropped the datafile(u2.dbf) with alter
database..command(assume that the tablespace is offline). but now the
datafile(u2.dbf) is still in recover status from v$datafile(because database
is in noarchivelog mode). when i try to online the tablespace, its saying
that datafile is not able to be locked/found as error and action says to
drop the tablespace itself. but here u1.dbf datafile is having all the users
information in which case, i cannot drop the tablespace. here, my
requirement is to move the datafile from users to some other tablespace to
drop it. but i'm not able to drop it.
i'm really confused on what to do with this. please recommend necessary
suggestions so that i can overcome this problem. as a DBA i think this one
is quite a good question. i request you to please suggest me a solution as
soon as possible.
thank you
sivamurugesh arumugam(DBA)Donald has your solution. As far as the "feature" of moving a datafile from one tablespace to another, this makes no sense. Datafiles are the physical (operating system level) implementation of tablespaces. The fact that you can have multiple datafiles per tablespace was originally intended to overcome file size limites due to the size of hard disks (before we could span volumes with RAID 5). Now this construct allows us to have tablespaces (and therefore tables) which are larger than the file size limit of the operating system. Never treat a datafile as a independent entity. It is part of a tablespace. It may contain any part of any table within the tablespace. Always treat all datafiles of one tablespace as a logical unit and you won't break anything.
-
Committed trans in datafiles in oracle 10g
Hi DBA gurus,
I have a small doubt : If the datafiles contains both committed and uncommitted data then howcome there is only committed trans and uncommitted transx. will be rollbacked.
I know that while instance recovery SMON automatically does that but is there any other activity that triggers only committed data in datafiles or what initiates Instance recovery.
Thanks in advance.
Regards,
Shikha RaniIf the database is running normally, then yes, the blocks of data on disk will contain committed and uncommitted transactions. (I think I confirmed that in my first sentence of my earlier reply).
DBWR flushes buffers to disk on its own schedule, paying no regard to whether their contents are committed or uncommitted.
But DBWR cannot write a block to disk until the redo which is associated with dirtying it has been written.
That redo will be written whether or not there has been a commit.
Once you have a dirty block on disk, and the redo needed to un-dirty it by transaction recovery, everything is safe and recoverable.
I thought I should add to my answer:
Suppose you have a transaction that starts at time A and runs until time K.
At time D, there is a log switch, which causes a checkpoint, and therefore at time D, blocks dirtied at time A, B, C and D are now all written to disk, including undo generated by dirtying the blocks
At time E, that transaction continues and dirties more blocks.
At time F, there is another log switch, so blocks at time D, E and F are now all on disk (plus their corresponding undo)
At time H, there is yet another log switch, so blocks at time G and H are now written to disk (along with the undo)
This database is not in archivelog mode, and you've just switched all the way around the redo logs, and the transaction still hasn't finished or committed yet.
So now you are still dirtying blocks at time I and J, and the redo from that is being written into the current redo log, over the top of the redo that was generated at times A->D. Redo from time A-D is no longer available. But that's OK, because the dirty blocks from that time ARE safe on disk, and the undo needed to clean them up is also safe on disk.
Now at time K, you have an instance crash.
SMON won't start the transaction from scratch. It doesn't need to. It simply starts re-dirtying blocks from time I and J.
When it's reached time J, it now sees there's no commit, and therefore knows to roll back the entire transaction. It can roll back the blocks from time I and J using undo re-created the redo from the current log was being re-played. It can roll back the blocks from time A ->H because the undo for them is already available from the data files themselves, saved at the time of the various checkpoints. -
Need to test if a column have unique values or not
Hi all,
in ETL process I need to check if some cols have unique values or not using sql or plsql.
Suppose we need to load a big file data with external table initially and then test if values
on one or more columns have unique values in order to proceed with ETL process.
What is the faster test I can execute to verify that a column have unique values or not?
It's better for the ETL performance, use:
a. techniques regard constraints like described on Ask tom forum
"ENABLE NOVALIDATE validating existing data"
(Ask Tom "ENABLE NOVALIDATE validating existing da...")
b. "simply" query on the data?
like this:
select count(count(*)) distinct_count,
sum(count(*)) total_count,
sum(case when count(*) = 1 then 1 else null end) non_distinct_groups,
sum(case when count(*) > 1 then 1 else null end) distinct_groups
from hr.employees a
group by A.JOB_ID
c. use analytics function?
d. use some feature directly on external table?
Bye in advanceHere is the example to handling the errrs using LOG_ERRORS into concept. You will check this and let me know if any doubt you have
DATAFILE:-
1000,ANN,ZZ105
1001,KARTHI,ZZ106
1002,PRAVEEN,ZZ109
1002,PARTHA,ZZ107
1003,SATHYA,ZZ108
1000,ANN,ZZ105
----- Original Table With unique constraints
SQL> CREATE TABLE tab_uniqtest(student_id NUMBER(10) UNIQUE,
student_name VARCHAR2(15),
course_name VARCHAR2(15)
2 3 4
Table created.
----- External table
SQL> CREATE TABLE tab_extuniqtest(student_id NUMBER(10),
2 student_name VARCHAR2(15),
3 course_name VARCHAR2(15)
4 )
5 ORGANIZATION EXTERNAL
6 (
7 DEFAULT DIRECTORY ann_dir
8 ACCESS PARAMETERS
9 (
10 RECORDS DELIMITED BY NEWLINE
11 BADFILE 'tabextuniqtest_badfile.txt'
12 LOGFILE 'tabextuniqtest_logfile.txt'
13 FIELDS TERMINATED BY ','
14 MISSING FIELD VALUES ARE NULL
15 REJECT ROWS WITH ALL NULL FIELDS
16 (student_id,student_name,course_name)
17 )
18 LOCATION ('unique_check.csv')
19 )
20 REJECT LIMIT UNLIMITED;
Table created.
---- Error logging table to log the errors
SQL> CREATE TABLE dmlerrlog_uniqtest(ORA_ERR_NUMBER$ NUMBER ,
2 ORA_ERR_MESG$ VARCHAR2(2000),
3 ORA_ERR_ROWID$ ROWID,
4 ORA_ERR_OPTYP$ VARCHAR2(2),
5 ORA_ERR_TAG$ VARCHAR2(4000),
6 inserted_dt VARCHAR2(50) DEFAULT TO_CHAR(SYSDATE,'YYYY-MM-DD'),
7 student_id VARCHAR2(10)
8 );
Table created.
---- Procedure to insert from external table
SQL> CREATE OR REPLACE PROCEDURE proc_uniqtest
2 AS
3 v_errcnt NUMBER;
4 BEGIN
5 INSERT INTO tab_uniqtest
6 SELECT * FROM tab_extuniqtest
7 LOG ERRORS INTO dmlerrlog_uniqtest('PROC_UNIQTEST@TAB_UNIQTEST') REJECT LIMIT UNLIMITED;
8 SELECT COUNT(1) into v_errcnt
9 FROM dmlerrlog_uniqtest
10 WHERE ORA_ERR_TAG$ = 'PROC_UNIQTEST@TAB_UNIQTEST';
11 IF(v_errcnt > 0) THEN
12 ROLLBACK;
13 ELSE
14 COMMIT;
15 END IF;
16 DBMS_OUTPUT.PUT_LINE ( 'Procedure PROC_UNIQTEST is completed with ' || v_errcnt || ' errors') ;
17 EXCEPTION
18 WHEN OTHERS THEN
19 RAISE;
20 END proc_uniqtest;
21 /
Procedure created.
SQL> SET SERVEROUTPUT ON
SQL> EXEC proc_uniqtest;
Procedure PROC_UNIQTEST is completed with 2 errors
PL/SQL procedure successfully completed.
SQL> SELECT STUDENT_ID,ORA_ERR_MESG$ FROM dmlerrlog_uniqtest;
STUDENT_ID ORA_ERR_MESG$
1002 ORA-00001: unique constraint (
SCOTT.SYS_C0037530) violated
1000 ORA-00001: unique constraint (
SCOTT.SYS_C0037530) violated -
Reg: AUTO Exend for tablespaces
Hi,
I want to have a discussion with the AUTO EXTEND option for Tablespaces in oracle 9.2.0.4.0.
Actually i am having one INDEX or USERS tablespace and for eg if index is having 15 datafiles till now and 15th datafile in that INDEX is running with AUTO EXTEND option.
I created with a SIZE of 3000mb and next extent as 500 mb.When the space is filled with 3000 mb, i believe it will be using the NEXT EXTENT 500 mb.
So here what i want if that NEXT Extentis also filled and upto how much space and to how much extend this AUTO EXTEND OPTION will be useful.
What is the MAX size for this AUTO EXTEND and where it will grow if those spaces are filled ?
When can I add another datafile for that without causing any problem ?
I am having another doubt on these datafiles already filled i.e 14 datafiles which
are stored in database ? How long those datafiles in tha INDEX tablespace will be useful for future ...as we are going on adding the datafiles at some extent space problem will come .So how to analyse that and what are the precautions we have to take?
Sorry if am asking any basic or silly question over here....
Please Clarify my above confusion....
Thanks in Advance...
suresh.Suresh
Extend will allocate max space of your hard disk -
After did a switchover(DataGuard), on my current primary database I did a level 0 backup RMAN and it did not end due to an error with an datafile that needs recover, specifically the datafile 2 (sysaux tablespace). The last level 0 backup I have is 9 days ago. The first thing I do was restore the datafile and try to recover it.
RMAN> run{sql 'alter database datafile 2 offline'; restore datafile 2; recover datafile 2;}
The second step (recover) show me the following error:
unable to find archived log
archived log thread=1 sequence=1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/17/2010 12:19:01
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 1757
I appreciate any help, thank you.Dear user12100209,
Please see the error message;
RMAN-06054: media recovery requesting unknown archived log for thread string with sequence string and starting SCN of string
Cause: Media recovery is requesting a log whose existence is not recorded in the recovery catalog or target database control file.
Action: If a copy of the log is available, then add it to the recovery catalog and/or control file via a CATALOG command and then retry the RECOVER command.
If not, then a point-in-time recovery up to the missing log is the only alternative and database can be opened using ALTER DATABASE OPEN RESETLOGS command.So what i am thinking is that is happening because of a missing archivelog metadata(information) in the standby controlfile.
Below link may give you a general information;
http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmadvre.htm#BRADV89834
Hope That Helps.
Ogan -
ASM Disk preparation for Datafiles and FRA in Oracle 10g RAC Inst
Dear Friends,
Please clarify wheteher the below method is correct to confiure ASM disks for Datafiles and FRA
Partitions provided by IT team for OCR and Voting Disk
/dev/sda1 - 150 GB (For +DATA)
/dev/sda2 - 100 GB (For +FRA)
OS : RHEL 5.6 (64 Bit)
kernel version = 2.6.18-238.el5
Steps:(Node1)
1) Install the RPM's for ASM
rpm -Uvh oracleasm-support-2.1.7-1.el5.x86_64.rpm
rpm -Uvh oracleasm-2.6.18-238.el5-2.0.5-1.el5.x86_64.rpm
rpm -Uvh oracleasmlib-2.0.4-1.el5.x86_64.rpm
2) Configure ASM
/etc/init.d/oracleasm configure
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
3) Cretae ASM Disk
/etc/init.d/oracleasm createdisk DISK1 /dev/sda1
/etc/init.d/oracleasm createdisk DISK2 /dev/sda2
4)/etc/init.d/oracleasm status
5)/etc/init.d/oracleasm scandisks
6)/etc/init.d/oracleasm listdisks
7) Nothing to perform on Node2
8) In dbca choose ASM and map the DISK1 for datafiles and DISK2 for FRA
Please confirm the above steps are right?if not please clarify
If DBCA ->ASM doesn't discover my disk then what should be the Discovery path i have to give?
Please refer any document / Metalink ID for the above complete process
Can i have ASM and oracle DB binary in the same home
Regards,
DBuser564706 wrote:
If DBCA ->ASM doesn't discover my disk then what should be the Discovery path i have to give?for asm disk created with oracleasm discovery path variable is ORCL:*
Please refer any document / Metalink ID for the above complete processhttp://docs.oracle.com/cd/B19306_01/install.102/b14203/storage.htm#BABIFHAB
Can i have ASM and oracle DB binary in the same homeyes. unless you want job role seperation or plan to run multiple versions of oracle homes
>
Regards,
DB -
No backup or copy of datafile 4 found to restore Error ??
Hi,
I have a 2 Virtual machine with Oracle 10g on OEL.
Let's say machine 1 is called : OEL-SOURCE MACHINE
Let's say machine 1 is called : DR-TARGET MACHINE
When i am trying to restore rman backup on 2 machine 'DR', it comes with the message "RMAN-06023: no backup or copy of datafile 4 found to restore"
Here are the steps that i followed on Machine 1 i.e. OEL-SOURCE MACHINE :
RMAN>
Oracle instance started
database mounted
database opened
Total System Global Area 285212672 bytes
Fixed Size 1218992 bytes
Variable Size 83887696 bytes
Database Buffers 197132288 bytes
Redo Buffers 2973696 bytes
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/va00/oracle/product/10.2.0/db_1/dbs/snapcf_mytest.f'; # default
RMAN> backup database plus archivelog;
Starting backup at 26-OCT-10
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=14 recid=12 stamp=733426429
input archive log thread=1 sequence=15 recid=13 stamp=733426789
input archive log thread=1 sequence=16 recid=14 stamp=733426795
input archive log thread=1 sequence=17 recid=15 stamp=733426801
input archive log thread=1 sequence=18 recid=16 stamp=733426801
input archive log thread=1 sequence=19 recid=17 stamp=733426855
input archive log thread=1 sequence=20 recid=18 stamp=733426856
input archive log thread=1 sequence=21 recid=19 stamp=733426861
input archive log thread=1 sequence=22 recid=20 stamp=733426862
input archive log thread=1 sequence=23 recid=21 stamp=733436688
input archive log thread=1 sequence=24 recid=22 stamp=733437082
channel ORA_DISK_1: starting piece 1 at 26-OCT-10
channel ORA_DISK_1: finished piece 1 at 26-OCT-10
piece handle=/va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/backupset/2010_10_26/o1_mf_annnn_TAG20101026T203122_6dh07d2o_.bkp tag=TAG20101026T203122 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 26-OCT-10
Starting backup at 26-OCT-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_system_6dcg5mfo_.dbf
input datafile fno=00005 name=/va02/oracle/oradata/mytest/company_tab_01.dbf
input datafile fno=00006 name=/va03/oracle/oradata/mytest/company_idx_01.dbf
input datafile fno=00003 name=/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_sysaux_6dcg5mgg_.dbf
input datafile fno=00002 name=/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_undotbs1_6dcg5mnx_.dbf
input datafile fno=00004 name=/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_users_6dcg5moq_.dbf
channel ORA_DISK_1: starting piece 1 at 26-OCT-10
channel ORA_DISK_1: finished piece 1 at 26-OCT-10
piece handle=/va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/backupset/2010_10_26/o1_mf_nnndf_TAG20101026T203125_6dh07g07_.bkp tag=TAG20101026T203125 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:05
Finished backup at 26-OCT-10
Starting backup at 26-OCT-10
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=25 recid=23 stamp=733437151
channel ORA_DISK_1: starting piece 1 at 26-OCT-10
channel ORA_DISK_1: finished piece 1 at 26-OCT-10
piece handle=/va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/backupset/2010_10_26/o1_mf_annnn_TAG20101026T203231_6dh09jj6_.bkp tag=TAG20101026T203231 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 26-OCT-10
Starting Control File and SPFILE Autobackup at 26-OCT-10
piece handle=/va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/autobackup/2010_10_26/o1_mf_s_733437154_6dh09lhr_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 26-OCT-10This completed the RMAN
Now i listed the backup with RMAN
RMAN> list backup
2> ;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
9 1.99M DISK 00:00:02 26-OCT-10
BP Key: 9 Status: AVAILABLE Compressed: NO Tag: TAG20101026T203122
Piece Name: /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/backupset/2010_10_26/o1_mf_annnn_TAG20101026T203122_6dh07d2o_.bkp
List of Archived Logs in backup set 9
Thrd Seq Low SCN Low Time Next SCN Next Time
1 14 545557 26-OCT-10 545610 26-OCT-10
1 15 545610 26-OCT-10 546080 26-OCT-10
1 16 546080 26-OCT-10 546083 26-OCT-10
1 17 546083 26-OCT-10 546086 26-OCT-10
1 18 546086 26-OCT-10 546088 26-OCT-10
1 19 546088 26-OCT-10 546114 26-OCT-10
1 20 546114 26-OCT-10 546116 26-OCT-10
1 21 546116 26-OCT-10 546119 26-OCT-10
1 22 546119 26-OCT-10 546121 26-OCT-10
1 23 546121 26-OCT-10 567862 26-OCT-10
1 24 567862 26-OCT-10 568231 26-OCT-10
BS Key Type LV Size Device Type Elapsed Time Completion Time
10 Full 515.82M DISK 00:01:04 26-OCT-10
BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20101026T203125
Piece Name: /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/backupset/2010_10_26/o1_mf_nnndf_TAG20101026T203125_6dh07g07_.bkp
List of Datafiles in backup set 10
File LV Type Ckp SCN Ckp Time Name
1 Full 568235 26-OCT-10 /va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_system_6dcg5mfo_.dbf
2 Full 568235 26-OCT-10 /va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_undotbs1_6dcg5mnx_.dbf
3 Full 568235 26-OCT-10 /va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_sysaux_6dcg5mgg_.dbf
4 Full 568235 26-OCT-10 /va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_users_6dcg5moq_.dbf
5 Full 568235 26-OCT-10 /va02/oracle/oradata/mytest/company_tab_01.dbf
6 Full 568235 26-OCT-10 /va03/oracle/oradata/mytest/company_idx_01.dbf
BS Key Size Device Type Elapsed Time Completion Time
11 17.50K DISK 00:00:01 26-OCT-10
BP Key: 11 Status: AVAILABLE Compressed: NO Tag: TAG20101026T203231
Piece Name: /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/backupset/2010_10_26/o1_mf_annnn_TAG20101026T203231_6dh09jj6_.bkp
List of Archived Logs in backup set 11
Thrd Seq Low SCN Low Time Next SCN Next Time
1 25 568231 26-OCT-10 568267 26-OCT-10
BS Key Type LV Size Device Type Elapsed Time Completion Time
12 Full 6.80M DISK 00:00:00 26-OCT-10
BP Key: 12 Status: AVAILABLE Compressed: NO Tag: TAG20101026T203234
Piece Name: /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/autobackup/2010_10_26/o1_mf_s_733437154_6dh09lhr_.bkp
Control File Included: Ckp SCN: 568273 Ckp time: 26-OCT-10
SPFILE Included: Modification time: 26-OCT-10
RMAN> Then i reported obsolete, and as we can see my datafile is not listed here which is good.
RMAN> report obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
Report of obsolete backups and copies
Type Key Completion Time Filename/Handle
Archive Log 12 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_14_6dgotdvb_.arc
Archive Log 13 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_15_6dgp5nyg_.arc
Archive Log 14 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_16_6dgp5tz4_.arc
Archive Log 15 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_17_6dgp610j_.arc
Archive Log 16 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_18_6dgp612w_.arc
Archive Log 17 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_19_6dgp7q9b_.arc
Archive Log 18 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_20_6dgp7rrq_.arc
Archive Log 19 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_21_6dgp7x5d_.arc
Archive Log 20 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_22_6dgp7yln_.arc
Archive Log 21 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_23_6dgztytj_.arc
Archive Log 22 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/archivelog/2010_10_26/o1_mf_1_24_6dh07bff_.arc
Backup Set 9 26-OCT-10
Backup Piece 9 26-OCT-10 /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/backupset/2010_10_26/o1_mf_annnn_TAG20101026T203122_6dh07d2o_.bkpI transferred complete RMAN folder to 2nd machine & switched to second Machine i..e DR-TARGET MACHINE
[oracle@localhost ~]$ export ORACLE_SID=mytest
[oracle@localhost ~]$ rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Oct 26 20:48:49 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database (not started)
RMAN> set dbid=2432458060;
executing command: SET DBID
RMAN> startup nomount;
startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/va00/oracle/product/10.2.0/db_1/dbs/initmytest.ora'
starting Oracle instance without parameter file for retrival of spfile
Oracle instance started
Total System Global Area 159383552 bytes
Fixed Size 1218268 bytes
Variable Size 54528292 bytes
Database Buffers 100663296 bytes
Redo Buffers 2973696 bytes
RMAN> restore spfile from '/tmp/rman_backups_third_set/autobackup/2010_10_26/o1_mf_s_733437154_6dh09lhr_.bkp';
Starting restore at 26-OCT-10
using channel ORA_DISK_1
channel ORA_DISK_1: autobackup found: /tmp/rman_backups_third_set/autobackup/2010_10_26/o1_mf_s_733437154_6dh09lhr_.bkp
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 26-OCT-10
RMAN> shutdown immediate
Oracle instance shut down
RMAN> startup nomount;
connected to target database (not started)
Oracle instance started
Total System Global Area 285212672 bytes
Fixed Size 1218992 bytes
Variable Size 83887696 bytes
Database Buffers 197132288 bytes
Redo Buffers 2973696 bytes
RMAN> restore controlfile from '/tmp/rman_backups_third_set/autobackup/2010_10_26/o1_mf_s_733437154_6dh09lhr_.bkp';
Starting restore at 26-OCT-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
output filename=/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/controlfile/o1_mf_6dh1d2o5_.ctl
output filename=/va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/controlfile/o1_mf_6dh1d31n_.ctl
Finished restore at 26-OCT-10
RMAN> shutdown immediate
Oracle instance shut down
RMAN> startup force mount;
Oracle instance started
database mounted
Total System Global Area 285212672 bytes
Fixed Size 1218992 bytes
Variable Size 83887696 bytes
Database Buffers 197132288 bytes
Redo Buffers 2973696 bytes
RMAN> catalog start with '/tmp/rman_backups_third_set/';
searching for all files that match the pattern /tmp/rman_backups_third_set/
List of Files Unknown to the Database
=====================================
File Name: /tmp/rman_backups_third_set/autobackup/2010_10_26/o1_mf_s_733437154_6dh09lhr_.bkp
File Name: /tmp/rman_backups_third_set/backupset/2010_10_26/o1_mf_annnn_TAG20101026T203231_6dh09jj6_.bkp
File Name: /tmp/rman_backups_third_set/backupset/2010_10_26/o1_mf_nnndf_TAG20101026T203125_6dh07g07_.bkp
File Name: /tmp/rman_backups_third_set/backupset/2010_10_26/o1_mf_annnn_TAG20101026T203122_6dh07d2o_.bkp
File Name: /tmp/rman_backups_third_set/onlinelog/o1_mf_1_6dcg8yw6_.log
File Name: /tmp/rman_backups_third_set/onlinelog/o1_mf_3_6dcg92d5_.log
File Name: /tmp/rman_backups_third_set/onlinelog/o1_mf_2_6dcg90tg_.log
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_18_6dgp612w_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_24_6dh07bff_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_21_6dgp7x5d_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_28_6dh0dpsb_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_14_6dgotdvb_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_22_6dgp7yln_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_29_6dh0dqoy_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_26_6dh0df44_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_16_6dgp5tz4_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_23_6dgztytj_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_19_6dgp7q9b_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_17_6dgp610j_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_20_6dgp7rrq_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_15_6dgp5nyg_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_27_6dh0djqt_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_25_6dh09h1c_.arc
Do you really want to catalog the above files (enter YES or NO)? YES
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /tmp/rman_backups_third_set/autobackup/2010_10_26/o1_mf_s_733437154_6dh09lhr_.bkp
File Name: /tmp/rman_backups_third_set/backupset/2010_10_26/o1_mf_annnn_TAG20101026T203231_6dh09jj6_.bkp
File Name: /tmp/rman_backups_third_set/backupset/2010_10_26/o1_mf_nnndf_TAG20101026T203125_6dh07g07_.bkp
File Name: /tmp/rman_backups_third_set/backupset/2010_10_26/o1_mf_annnn_TAG20101026T203122_6dh07d2o_.bkp
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_18_6dgp612w_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_24_6dh07bff_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_21_6dgp7x5d_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_28_6dh0dpsb_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_14_6dgotdvb_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_22_6dgp7yln_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_29_6dh0dqoy_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_26_6dh0df44_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_16_6dgp5tz4_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_23_6dgztytj_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_19_6dgp7q9b_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_17_6dgp610j_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_20_6dgp7rrq_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_15_6dgp5nyg_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_27_6dh0djqt_.arc
File Name: /tmp/rman_backups_third_set/archivelog/2010_10_26/o1_mf_1_25_6dh09h1c_.arc
List of Files Which Where Not Cataloged
=======================================
File Name: /tmp/rman_backups_third_set/onlinelog/o1_mf_1_6dcg8yw6_.log
RMAN-07529: Reason: catalog is not supported for this file type
File Name: /tmp/rman_backups_third_set/onlinelog/o1_mf_3_6dcg92d5_.log
RMAN-07529: Reason: catalog is not supported for this file type
File Name: /tmp/rman_backups_third_set/onlinelog/o1_mf_2_6dcg90tg_.log
RMAN-07529: Reason: catalog is not supported for this file type
Here comes the issue ...when i try to restore the db
RMAN> restore database;
Starting restore at 26-OCT-10
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 10/26/2010 20:53:13
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restoreSO MY QUESTION OR DOUBT IS WHY AT THE END IT FAILS THAT THERE IS NO BACKUP FOR DATAFILE 1,2,3,4 ??? AS WE CAN SEE ABOVE IT IS PRESENT IN MY BACKUPSET ??
ANY IDEA /HINTS/TIPS ?
I searched on google and somebody mentioned to a similar case that it could be a problem with 'CONFIGURE CONTROLFILE AUTOBACKUP OFF' where as in my case i have set it to 'CONFIGURE CONTROLFILE AUTOBACKUP ON'
Somehow looks like that the control file is not having latest backup info ... :-( I already took a fresh backup 2 times and landed up in same issue.. not sure where i am doing a mistake.
Regards
LearnerNo replies ... :-(
Meanwhile i also looked in the trace file folder to see if there are any clues. here goes the content of alert_log.file
Tue Oct 26 23:28:59 2010
Shutting down instance: further logons disabled
Tue Oct 26 23:28:59 2010
Stopping background process CJQ0
Tue Oct 26 23:28:59 2010
Stopping background process MMNL
Tue Oct 26 23:28:59 2010
Stopping background process MMON
Tue Oct 26 23:28:59 2010
Shutting down instance (immediate)
License high water mark = 5
Tue Oct 26 23:29:00 2010
Stopping Job queue slave processes
Tue Oct 26 23:29:00 2010
Job queue slave processes stopped
Waiting for dispatcher 'D000' to shutdown
All dispatchers and shared servers shutdown
Tue Oct 26 23:29:05 2010
PMON failed to acquire latch, see PMON dump
PMON failed to acquire latch, see PMON dump
PMON failed to acquire latch, see PMON dump
PMON failed to acquire latch, see PMON dump
Tue Oct 26 23:29:16 2010
alter database close
Tue Oct 26 23:29:16 2010
ORA-1109 signalled during: alter database close...
Tue Oct 26 23:29:16 2010
alter database dismount
Completed: alter database dismount
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Tue Oct 26 23:29:36 2010
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =18
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
processes = 150
__shared_pool_size = 75497472
__large_pool_size = 4194304
__java_pool_size = 4194304
__streams_pool_size = 0
sga_target = 285212672
control_files = /va00/oracle/product/10.2.0/db_1/oradata/MYTEST/controlfile/o1_mf_6dh49dgy_.ctl, /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/controlfile/o1_mf_6dh49dkr_.ctl
db_block_size = 8192
__db_cache_size = 197132288
compatible = 10.2.0.1.0
db_file_multiblock_read_count= 16
db_create_file_dest = /va00/oracle/product/10.2.0/db_1/oradata
db_recovery_file_dest = /va00/oracle/product/10.2.0/db_1/flash_recovery_area
db_recovery_file_dest_size= 1572864000
undo_management = AUTO
undo_tablespace = UNDOTBS1
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=mytestXDB)
job_queue_processes = 10
background_dump_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump
user_dump_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/udump
core_dump_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/cdump
audit_file_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/adump
db_name = mytest
open_cursors = 300
pga_aggregate_target = 94371840
PMON started with pid=2, OS id=4483
PSP0 started with pid=3, OS id=4485
MMAN started with pid=4, OS id=4487
DBW0 started with pid=5, OS id=4489
LGWR started with pid=6, OS id=4491
CKPT started with pid=7, OS id=4493
SMON started with pid=8, OS id=4495
RECO started with pid=9, OS id=4497
CJQ0 started with pid=10, OS id=4499
MMON started with pid=11, OS id=4501
Tue Oct 26 23:29:38 2010
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
MMNL started with pid=12, OS id=4503
Tue Oct 26 23:29:38 2010
starting up 1 shared server(s) ...
Tue Oct 26 23:29:39 2010
alter database mount
Tue Oct 26 23:29:43 2010
Setting recovery target incarnation to 3
Tue Oct 26 23:29:43 2010
Successful mount of redo thread 1, with mount id 2432571107
Tue Oct 26 23:29:43 2010
Database mounted in Exclusive Mode
Completed: alter database mount
Tue Oct 26 23:30:00 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4489.trc:
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_system_6dcg5mfo_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:30:00 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4489.trc:
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_undotbs1_6dcg5mnx_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:30:00 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4489.trc:
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_sysaux_6dcg5mgg_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:30:00 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4489.trc:
ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
ORA-01110: data file 4: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_users_6dcg5moq_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:30:00 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4489.trc:
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/va02/oracle/oradata/mytest/company_tab_01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:30:00 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4489.trc:
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: '/va03/oracle/oradata/mytest/company_idx_01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:32:16 2010
Shutting down instance: further logons disabled
Tue Oct 26 23:32:16 2010
Stopping background process MMNL
Tue Oct 26 23:32:16 2010
Stopping background process CJQ0
Tue Oct 26 23:32:17 2010
Stopping background process MMON
Tue Oct 26 23:32:17 2010
Shutting down instance (immediate)
License high water mark = 5
Tue Oct 26 23:32:17 2010
Stopping Job queue slave processes
Tue Oct 26 23:32:17 2010
Job queue slave processes stopped
Waiting for dispatcher 'D000' to shutdown
All dispatchers and shared servers shutdown
Tue Oct 26 23:32:23 2010
PMON failed to acquire latch, see PMON dump
PMON failed to acquire latch, see PMON dump
PMON failed to acquire latch, see PMON dump
PMON failed to acquire latch, see PMON dump
Tue Oct 26 23:32:33 2010
PMON failed to acquire latch, see PMON dump
PMON failed to acquire latch, see PMON dump
Tue Oct 26 23:32:38 2010
Process OS id : 4514 alive after kill
Errors in file
Tue Oct 26 23:32:39 2010
PMON failed to acquire latch, see PMON dump
Tue Oct 26 23:32:40 2010
alter database close
Tue Oct 26 23:32:40 2010
ORA-1109 signalled during: alter database close...
Tue Oct 26 23:32:40 2010
alter database dismount
Completed: alter database dismount
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Tue Oct 26 23:36:35 2010
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =18
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
processes = 150
__shared_pool_size = 75497472
__large_pool_size = 4194304
__java_pool_size = 4194304
__streams_pool_size = 0
sga_target = 285212672
control_files = /va00/oracle/product/10.2.0/db_1/oradata/MYTEST/controlfile/o1_mf_6dcg8wco_.ctl, /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/controlfile/o1_mf_6dcg8wps_.ctl
db_block_size = 8192
__db_cache_size = 197132288
compatible = 10.2.0.1.0
db_file_multiblock_read_count= 16
db_create_file_dest = /va00/oracle/product/10.2.0/db_1/oradata
db_recovery_file_dest = /va00/oracle/product/10.2.0/db_1/flash_recovery_area
db_recovery_file_dest_size= 1572864000
undo_management = AUTO
undo_tablespace = UNDOTBS1
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=mytestXDB)
job_queue_processes = 10
background_dump_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump
user_dump_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/udump
core_dump_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/cdump
audit_file_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/adump
db_name = mytest
open_cursors = 300
pga_aggregate_target = 94371840
PMON started with pid=2, OS id=4622
PSP0 started with pid=3, OS id=4624
MMAN started with pid=4, OS id=4626
DBW0 started with pid=5, OS id=4628
LGWR started with pid=6, OS id=4630
CKPT started with pid=7, OS id=4632
SMON started with pid=8, OS id=4634
RECO started with pid=9, OS id=4636
CJQ0 started with pid=10, OS id=4638
MMON started with pid=11, OS id=4640
MMNL started with pid=12, OS id=4642
Tue Oct 26 23:36:36 2010
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
starting up 1 shared server(s) ...
Tue Oct 26 23:36:47 2010
Deleted Oracle managed file /va00/oracle/product/10.2.0/db_1/oradata/MYTEST/controlfile/o1_mf_6dcg8wco_.ctl
Deleted Oracle managed file /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/controlfile/o1_mf_6dcg8wps_.ctl
Tue Oct 26 23:36:58 2010
Shutting down instance: further logons disabled
Tue Oct 26 23:36:58 2010
Stopping background process CJQ0
Tue Oct 26 23:36:58 2010
Stopping background process MMNL
Tue Oct 26 23:36:58 2010
Stopping background process MMON
Tue Oct 26 23:36:58 2010
Shutting down instance (immediate)
License high water mark = 3
Tue Oct 26 23:36:58 2010
Stopping Job queue slave processes
Tue Oct 26 23:36:58 2010
Job queue slave processes stopped
Waiting for dispatcher 'D000' to shutdown
All dispatchers and shared servers shutdown
Tue Oct 26 23:37:00 2010
alter database close
ORA-1507 signalled during: alter database close...
Tue Oct 26 23:37:00 2010
alter database dismount
ORA-1507 signalled during: alter database dismount...
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Tue Oct 26 23:37:10 2010
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =18
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.1.0.
System parameters with non-default values:
processes = 150
__shared_pool_size = 75497472
__large_pool_size = 4194304
__java_pool_size = 4194304
__streams_pool_size = 0
sga_target = 285212672
control_files = /va00/oracle/product/10.2.0/db_1/oradata/MYTEST/controlfile/o1_mf_6dhc2ymb_.ctl, /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/controlfile/o1_mf_6dhc2yp5_.ctl
db_block_size = 8192
__db_cache_size = 197132288
compatible = 10.2.0.1.0
db_file_multiblock_read_count= 16
db_create_file_dest = /va00/oracle/product/10.2.0/db_1/oradata
db_recovery_file_dest = /va00/oracle/product/10.2.0/db_1/flash_recovery_area
db_recovery_file_dest_size= 1572864000
undo_management = AUTO
undo_tablespace = UNDOTBS1
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=mytestXDB)
job_queue_processes = 10
background_dump_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump
user_dump_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/udump
core_dump_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/cdump
audit_file_dest = /va00/oracle/product/10.2.0/db_1/admin/mytest/adump
db_name = mytest
open_cursors = 300
pga_aggregate_target = 94371840
PMON started with pid=2, OS id=4654
PSP0 started with pid=3, OS id=4656
MMAN started with pid=4, OS id=4658
DBW0 started with pid=5, OS id=4660
LGWR started with pid=6, OS id=4662
CKPT started with pid=7, OS id=4664
SMON started with pid=8, OS id=4666
RECO started with pid=9, OS id=4668
CJQ0 started with pid=10, OS id=4670
MMON started with pid=11, OS id=4672
Tue Oct 26 23:37:11 2010
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
MMNL started with pid=12, OS id=4674
Tue Oct 26 23:37:11 2010
starting up 1 shared server(s) ...
Tue Oct 26 23:37:11 2010
alter database mount
Tue Oct 26 23:37:15 2010
Setting recovery target incarnation to 2
Tue Oct 26 23:37:15 2010
Successful mount of redo thread 1, with mount id 2432596903
Tue Oct 26 23:37:15 2010
Database mounted in Exclusive Mode
Completed: alter database mount
New incarnation branch detected in Backup, filename /va00/oracle/product/10.2.0/db_1/flash_recovery_area/MYTEST/autobackup/2010_10_26/some_o1_mf_s_733420244_6dghs7pn_.bkp
Inspection of file changed rdi from 2 to 3
Setting recovery target incarnation to 3
Tue Oct 26 23:37:23 2010
Setting recovery target incarnation to 3
Tue Oct 26 23:37:23 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_system_6dcg5mfo_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:23 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_undotbs1_6dcg5mnx_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:23 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_sysaux_6dcg5mgg_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:23 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
ORA-01110: data file 4: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_users_6dcg5moq_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:23 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/va02/oracle/oradata/mytest/company_tab_01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:23 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: '/va03/oracle/oradata/mytest/company_idx_01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:31 2010
WARNING: catalog online log file /tmp/rman_backups_third_set/onlinelog/o1_mf_1_6dcg8yw6_.log is not supported
WARNING: catalog online log file /tmp/rman_backups_third_set/onlinelog/o1_mf_3_6dcg92d5_.log is not supported
WARNING: catalog online log file /tmp/rman_backups_third_set/onlinelog/o1_mf_2_6dcg90tg_.log is not supported
Expanded controlfile section 11 from 28 to 144 records
Requested to grow by 116 records; added 5 blocks of records
Tue Oct 26 23:37:46 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_system_6dcg5mfo_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:46 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_undotbs1_6dcg5mnx_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:46 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_sysaux_6dcg5mgg_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:46 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
ORA-01110: data file 4: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_users_6dcg5moq_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:46 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/va02/oracle/oradata/mytest/company_tab_01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Tue Oct 26 23:37:46 2010
Errors in file /va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc:
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: '/va03/oracle/oradata/mytest/company_idx_01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3Not sure why does it says that it was unable to obtain file status .. is it because the dbf files could not be restored that's why ??
Also here goes the content of DBW trace file
[oracle@localhost bdump]$ cat mytest_dbw0_4660.trc
/va00/oracle/product/10.2.0/db_1/admin/mytest/bdump/mytest_dbw0_4660.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /va00/oracle/product/10.2.0/db_1
System name: Linux
Node name: localhost.localdomain
Release: 2.6.18-194.el5
Version: #1 SMP Mon Mar 29 20:06:41 EDT 2010
Machine: i686
Instance name: mytest
Redo thread mounted by this instance: 1
Oracle process number: 5
Unix process pid: 4660, image: [email protected] (DBW0)
*** 2010-10-26 23:37:23.741
*** SERVICE NAME:() 2010-10-26 23:37:23.740
*** SESSION ID:(167.1) 2010-10-26 23:37:23.740
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_system_6dcg5mfo_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_undotbs1_6dcg5mnx_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_sysaux_6dcg5mgg_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
ORA-01110: data file 4: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_users_6dcg5moq_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/va02/oracle/oradata/mytest/company_tab_01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: '/va03/oracle/oradata/mytest/company_idx_01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_system_6dcg5mfo_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
ORA-01110: data file 2: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_undotbs1_6dcg5mnx_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
ORA-01110: data file 3: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_sysaux_6dcg5mgg_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
ORA-01110: data file 4: '/va00/oracle/product/10.2.0/db_1/oradata/MYTEST/datafile/o1_mf_users_6dcg5moq_.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
*** 2010-10-26 23:37:46.274
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/va02/oracle/oradata/mytest/company_tab_01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01110: data file 6: '/va03/oracle/oradata/mytest/company_idx_01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3 -
I have a doubt on retention policy. Can someone advise me the difference between
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; AND
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 5 DAYS;
Say if I do a cold backup everyday and I want RMAN to keep backups only for last one day so I can recover till yesterday, what retention settings will I configure.Hi Daljit,
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 3 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 1 G;
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oraprd/product/10.2.0/db_1/dbs/snapcf_jerry1.f'; # default
and the script is
run {
crosscheck backup;
crosscheck archivelog all;
delete noprompt expired backup;
delete noprompt obsolete;
delete noprompt expired archivelog all;
shutdown immediate;
startup mount;
backup database plus archivelog;
alter database open;
exit; -
Datafiles Mismatch in production & disaster recovery server
Datafiles Mismatch in production & disaster recovery server though everything in sync
We performed all the necessary prerequisites & processes related to DRS switchover successfully also our DRS server is constantly updated through logs application in mount state whan we opened DRS database in mount state it opened successfully however when we issued command
Recover database
It dumped with foll errors:
ora-01122 database file 162 failed verification check
ora-01110 data file 162 </oracle/R3P/sapdata7/r3p*****.data>
ora-01251 unknown file header version read for file 162
as I do not remember the exact name now
However upon comparing the same file at production(which was now in shutdown state) the file sizes were mismatching so we went ahead to copy the datafile from production to DRS in database shutdown state at DRS through RCP utitlity of AIX 5.3 since our Operating system is AIX 5.3
Though this remote copy was success
we again started database in mount state & issued command
Recover database
But still it dump the same error but now for another datafile in DRS
I mean I would appreciate if somebody could point out that despite our DRS was constantly being updated through our Production in terms of continuous log application before this activity logs were sync in both the systems also origlos,mirrorlogs & controlfiles were pulled from production system as it is infact the whole structure was as replica of production system , then why did datafile sizes mismatch??
Details
SAP version :- 4.7
WAS :- 620
Database :- Oracle 9.2
Operating system :- AIX 5.3I am in a process of DR Planning.
My present setup :
O/S : HP-UX 11.31
SAP ECC 6
Oracle 10g Database.
I know about dataguard and i have implemnted same on our other application but not for SAP.
I have ame doubts and I request you to please guide me for the same.
1. SAP License key -- it required hardware key. So will i have to generate license key another hardware key i.e. for machine where standby database.
2. Database on standby site will be in manage recovery mode. Will I have to make any changes or any other file realted to SAP on standby host ? (some i know such as I upgrade SAP kernal, same i have to upgrade at standby host)
Will you give me some link related to document for DR -
Datafiles in FRA... :)
Hi All,
I would like to share my doubts about ASM and FRA(Is this section the right one to put this doubt?)...
*I know about the retention policy in FRA and that files will be deleted automatically and that production datafiles should NEVER be moved to the FRA area.
But,
Using ASM I have two diskgroups, for data and FRA. FRA area is oversized (5G normally used of 300G total,backups are not placed here...) can this area(FRA) be used temporarily to guard some datafiles(data diskgroup running low...)?Which is the risk?Or Is it better to just put the datafiles outside the diskgroups?
Can you share histories (crash?,data deletion?duh..)
Using a test environment(no-ASM,no-RAC) I put a datafile in the FRA area but the view V$FLASH_RECOVERY_AREA_USAGE did not update...Is it normal?No?How refresh it?I already use crosscheck's rman..
Which is the best way to resize the FRA diskgroup and remanage the space to the data diskgroup?(external redundacy, FRA diskgroup is listed to have 1T by Enterprise Manager, db_recovery_file_dest_size=300G...)
Oracle DB version 11.2.0.3.0(RAC)
Linux version: 2.6.32.el6
Using Oracle ASMUsing ASM I have two diskgroups, for data and FRA. FRA area is oversized (5G normally used of 300G total,backups are not placed here...) can this area(FRA) be used temporarily to guard some datafiles(data diskgroup running low...)?Which is the risk?Or Is it better to just put the datafiles outside the diskgroups?
Using a test environment(no-ASM,no-RAC) I put a datafile in the FRA area but the view V$FLASH_RECOVERY_AREA_USAGE did not update...Is it normal?No?How refresh it?I already use crosscheck's rman..
Regular datafiles are not taken into account in V$RECOVERY_AREA_USAGE. Even if you use rman "catalog recovery area", rman will skip them. Therefore database will not remove them.
Which is the best way to resize the FRA diskgroup and remanage the space to the data diskgroup?(external redundacy, FRA diskgroup is listed to have 1T by Enterprise Manager, db_recovery_file_dest_size=300G...)
You can move disks between diskgroups. Or you can temporary disable db_recovery_file_dest (putting logs and other files to new destination), remove diskgroup, resize LUN and create new diskgroup. -
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
satyaThanks 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 -
Dear all,
Please help me regarding this i am very much confused.....
I had couple of doubts in dataguard concepts.
1)When archive log is transferred from primary to standby ,
a.Whether DBWR will be in active state or not in standby server.To write the contents in the archived redo log files which came from the primary to the datafiles of the standby server.
b.I am using online redo logs in the standby server not standby redo logs , whether online redologs in the standby server will have any effect in shipping of redologs from the primary database,
c. In my standby database online redo logs state is changing between CLEARING AND CLEARING CURRENT.How standby server redologs will change it state,
Regards,
Vamsi.Hi again,
They are not used in a physical standby database. They exist in order to be used in a case of opening the standby database read-write (failover/snapshot standby). Here what documentation says:
Online redo logs
Every instance of an Oracle primary database and logical standby database has an associated online redo log to protect the database in case of an instance failure. Physical standby databases do not have an associated online redo log, because physical standby databases are never opened for read/write I/O; changes are not made to the database and redo data is not generated.
Create an Online Redo Log on the Standby Database
Although this step is optional, Oracle recommends that an online redo log be created when a standby database is created. By following this best practice, a standby database will be ready to quickly transition to the primary database role.
... -
How to recover database SYSTEM datafile get corrupt ?
Database is in ARCHIVELOG mode, and the datafile belonging to SYSTEM tablespace gets corrupted. Up to what point can I recover the database ?
A. Until last commit.
B. Until the time you perform recovery.
C. Until the time the datafile got corrupted.
D. You cannot recover the SYSTEM tablespace and you must be re-create the database.
and 1 more doubt :
If redologfiles are not multiplexed and redolog blocks get corrupt in group 2, and archiving stops. All redolog files are filled and database activity is halted.
DBWR has written everything to disk. What command can be used to proceed further ?
A. recover logfile block group 2;
B. alter database drop logfile group 2;
C. alter database clear logfile group 2;
D. alter database recover logfile group 2;
E. alter database clear unarchived lofile group 2;
Edited by: user642367 on Sep 18, 2008 8:45 PM1. A. Since the DB is in archivelog mode, so you can always restore and recover the whole DB including system tablespace datafile till last SCN generated provided the redo record is available in archive/online logfiles.
2. E. Since only redolog is corrupted so archiver won't proceed and hence a db hang is obvious, So, in order to proceed further you need to clear online (un archived log file) and then db will work as usual. Care should be taken that you must take a full backkup of DB(cold backup wherever feasible) as soon as possible after issuing this command. As now you don't have redo info in archivelog files to recover the db in case of a crash.
Please go through Oracle 10g DB Administrators guide (available on OTN) for more details.
Thanks -
Instance terminated because of one datafile...
Hi All,
I am using oracle database 10.2.0.4 on windows server 2003(32bit), now there are 4 instance running. Problem with one instance "orcl" and the problem is every weekend this database is terminated. and I found the below error in alert.log file:
Sun Aug 23 01:38:29 2009
Current log# 3 seq# 7231 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG
file=19 D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST_DATA.DBF
error=27072 txt: 'OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.'
Sun Aug 23 01:38:29 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_dbw0_5172.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
ORA-01114: IO error writing block to file 19 (block # 32552)
ORA-01110: data file 19: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST_DATA.DBF'
ORA-27072: File I/O error
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
Sun Aug 23 01:38:29 2009
DBW0: terminating instance due to error 1242
Sun Aug 23 01:38:29 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_j003_4940.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:29 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_pmon_5136.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:29 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_lgwr_5184.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:30 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_psp0_5152.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:30 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_mman_5164.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:30 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_j000_4924.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:31 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_j001_4932.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:31 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_ckpt_5192.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:31 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_j002_4936.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:32 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_q001_5124.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:33 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_reco_5212.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Sun Aug 23 01:38:33 2009
Errors in file d:\oracle\product\10.2.0\admin\orcl\bdump\orcl_smon_5204.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
Instance terminated by DBW0, pid = 5172
I try to findout this tablespace and datafile status:
SQL> select file_name,tablespace_name,file_id,status,online_status from dba_data_files where tablespace_name='TEST_DATA';
FILE_NAME TABLESPACE_NAME FILE_ID STATUS ONLINE_
======================================== ============= ===== =============
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST_DATA.DBF TEST_DATA 19 AVAILABLE ONLINE
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST_DATA3.DBF TEST_DATA 31 AVAILABLE ONLINE
D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEST_DATA2.DBF TEST_DATA 45 AVAILABLE ONLINE
and the size of the tablespace's datafile are;
TEST_DATA=31.9G
TEST_DATA2=26.8G
TEST_DATA3=4.8G
Can any one suggest me what would be the cause behind the instance termination?
Thanks,
Jigisha...Hi Hemant,
there is nothing running at OS level as I make confirmed with OS Admin.
or that is accpetable if any thing run at os/db level and lock a file but its actually terminate the instance...if you see above my paste content.
only one doubt which I have and that is this user "TEST_DATA" having default tablespace is "TEST_DATA". This tablespace having 3 datafiles. when I import this user during import operation it gives error for full this test_data.dbf , so I resize test_data.dbf to 34G and resume import activity.
when again import gives error I added one another datafile i.e. test_data2.dbf which is also in size of 26.8G.
but when I found my Instance in Down mode I added 3rd file TEST_DATA3.dbf(with the consideration that might be some max limit of 8192 blocks on 32bit windows like 32G/34G dbf file size limit) and its size is 4.8G currently.
so as I already added other datafiles to this tablespace then why it refers to 1st datafile only during some activity and terminate the instance?
suggest me if you have some thing...
--Jigisha...
Maybe you are looking for
-
Scheduling Agreement Creation(urgent)
Hi, user is creating a S.Agreement,we are getting an error by stating that.. Define QM procurement key (material ).... i did double click..but there is no more information for this error.... where do we maintain this????? Is it in Material Master??
-
When trying to back up my MacBook Pro to my TC I get the following message "the backup was not performed because an error occurred while copying files to the backup disk. The problem may be temporary, try again later to back up. If the problem persis
-
I made a apple ID but I can't log into iMessage
I made a a apple ID but I can't Log into IMessage ..
-
The hard drive in my Pavillion dv6 had to be reformatted. I do not have a recovery disc nor a Windows 7 disc. I do have a product key on the back of the computer for Windows 7 Home Premium. How do I determine if I should install the 64 bit or the
-
Transfer line to another account
I currently have two lines of service, both with almost a year left on the contracts. My wife and I are currently separated and she would like to transfer her service to her family's Verizon account. My question is if I can transfer her line, inclu