Database Data files on RAW Devices
Hi,
I'm creating a database and wish to locate the tablespaces on a raw device.
How do I specify the datafiles for the tablespaces on the raw device.
> Any reason for moving to raw device?
I actually prefer raw devices and ASM over using cooked file systems.
By default RAW devices eliminate the "interference" of the kernel. It does not manage a file system on the device. There are no other foreign processes that can use that raw device (as is often the case with cooked devices). There is no o/s file system cache for that device. A physical I/O on the Oracle side means a dinkum physical I/O and not a maybe-logical-I/O-from-the-file-system-o/s-cache.
There is no need for me as DBA to manage that file system according to OFA standards (ASM does it for me). There is no need for me to go through the learning curve of using a 3rd party volume manager. I have features like automated load balancing while the instance is up and running.
Yes, there is an argument to be made for just how much of a performance improvement in I/O one can get from a raw device versus a cooked file system. But I/O performance is not the only consideration.
Similar Messages
-
Is database using File system, RAW devices or ASM?
Hi there
Is is possible to find out if the database is using File system, RAW devices or ASM for storage?
I think for ASM, we can tell by querying the V$DATAFILE view if it has ' DATA ' or something like that (a name that has ' ' prefixed to it). Is this the only way? How about other sotrage types (RAW and Filesystem)?
Thanks in advance!user12033597 wrote:
I think for ASM, we can tell by querying the V$DATAFILE view if it has ' DATA ' or something like that (a name that has ' ' prefixed to it). Is this the only way? How about other sotrage types (RAW and Filesystem)?V$DATAFILE or DBA_DATA_FILE
Raw depends on your OS - in *nix, likely something like /dev/sdc1
ASM depends on ASM and will include + and will follow an ASM pattern, such as described http://docs.oracle.com/cd/B19306_01/server.102/b14200/clauses004.htm
File depends on OS - in *nix, likely start with a '/' and NOT be in /dev or /proc. In Winders start with C:\ or some other disk path.
Nicely discussed in the docs in the Administrators Guide found at http://tahiti.oracle.com -
Why don't we keep Oracle Database ARCH logs in RAW devices
Hi All,
Why don't we keep Oracle Database ARCH logs in RAW devices?
How ARCH process is related to Block Device and Character Device ?
Thanks,
Tusar
Edited by: user11987718 on 26-Jun-2012 09:59Why don't we keep Oracle Database ARCH logs in RAW devices? 1.This is because raw devices do not enable sequential writing of consecutive archive log files.
http://docs.oracle.com/cd/E11882_01/rac.112/e16795/rman.htm#RACAD320
2.with raw you have to specify the exact size of the file at creation time, in contrast with file system, where you can create file without specifying its size, start writing to it, apending new blocks to it until you are done, and thus creating a file of whatever size it needs to be to hold all information.
http://www.dbasupport.com/forums/archive/index.php/t-16429.html
3.raw file systems are difficult to manage because you cannot run normal os commands on them.(as there is no file systems)
How ARCH process is related to Block Device and Character Device ?A block device would read/write bytes in fixed size blocks, as in disk sectors. Character devices read/write 0 or more bytes, in a stream, such as a TTY or a keyboard.
For more details about what is block and character device type :
http://en.wikipedia.org/wiki/Device_file
And now think, how arch process is related to block and character devices.
Regards
Girish Sharma -
Can not open database - data file missing
I connected to the database as sysdba and issued STARTUP OPEN command.
How can I restore the datafile?
ORA-01157: cannot identify/lock data file 32 - see DBWR trace file
ORA-01110: data file 32: 'F:\ORACLE\DATABASE\M23.DAT'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.Thank you for your advice.
To Issue ALTER TABLESPACE M23 OFFLINE IMMEDIATE, the database should be in OPEN mode.
I couldn't open the database.
What shall I do put it in OPEN MODE?
Thank you in advance.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Randall Roberts ([email protected]):
You have to STARTUP MOUNT and take the tablespace that M23.DAT belongs to offline... probably OFFLINE IMMEDIATE.
Once you do that you may ALTER DATABASE OPEN. Then you can replace your data file with a backup and use the recover command to recover the tablespace IF you are in archive log mode. If you are not in archive log mode, you'll have to drop the tablespace, recreate it and hopefully you have an export file of its contents you can import.
Best!
Randall<HR></BLOCKQUOTE>
null -
Database data file growing very fast
Hi
I have a database that runs on SQL server 2000.
A few months back, the database was shifted to new server because the old server was crash.
There was no issue in old server which was used more than 10 years.
I noticed that the data file was growing very fast since the database was shifted to new server.
When I run "sp_spaceused", a lot of space are unused. Below is the result:
database size = 50950.81 MB
unallocated space = 14.44 MB
reserved = 52048960 KB
data = 9502168 KB
index size = 85408 KB
unused = 42461384 KB
When I run "sp_spacedused" only for one big table, the result is:
reserved = 19115904 KB
data = 4241992 KB
index size = 104 KB
unused = 14873808 KB
I had shrink the database and the size didn't reduce.
May I know how to reduce the size? Thanks.Hallo Thu,
can you check whether you have active Jobs in Microsoft SQL Server Agent which may...
rebuild Indexes?
run maintenance Jobs of your application?
I'm quite confident that index maintenance will cause the "growth".
Shrinking the database is...
useless and
nonsence
if you have index maintenance Tasks. Shrinking the database means the move of data pages from the very end of the database to the first free part in the database file(s). This will cause index fragmentation.
If the nightly index maintenance Job will rebuild the Indexes it uses NEW space in the database for the allocation of space for the data pages!
Read the blog post from Paul Randal about it here:
http://www.sqlskills.com/blogs/paul/why-you-should-not-shrink-your-data-files/
MCM - SQL Server 2008
MCSE - SQL Server 2012
db Berater GmbH
SQL Server Blog (german only) -
How to converrt files on RAW devices in ASM to non ASM file system.
Hi all,
I have on problem .
Is that possible to migrate ASM raw files system to non ASM file .
If possible plzz describe them.
If not also please tell y not?
Thanks in addvance
Regards
KrishnaHi,
I totally agree with Mahir. And I just want to share one thing:
Use %U to generate guaranteed unique names :
For backupsets, %U means: %u_%p_%c
For an image copy of a datafile, %U means: data-D-%d_id-%I_TS-%N_FNO-%f_%u
For an image copy of an archived redolog, %U means: arch-D_%d-id-%I_S-%e_T-%h_A-%a_%u
For an image copy of a control file, %U means: cf-D_%d-id-%I_%u
Thank you -
RAW DEVICE와 FILE SYSTEM 간에 오라클 데이터화일 이동하기
제품 : ORACLE SERVER
작성날짜 : 1999-11-30
RAW DEVICE와 FILE SYSTEM 간에 오라클 데이터화일 이동하기
======================================================
유닉스 명령이 dd를 이용하여 오라클 데이터화일을 Unix File System과 Raw
Device 간에 이동할 수 있으나, 플랫폼 별 Raw Device의 특성으로 인하여 주의할
점이 있다. 만일 잘못된 이동으로 인하여 데이터베이스가 기동하지 못하면,
ORA-7366 (sfifi: invalid file, file does not have valid header block.)
에러가 발생할 수 있다.
예를 들어 Digital unix의 경우는 raw device에 64k OS 헤더가 필요하므로 dd
명령어 옵션 중 iseek와 oseek를 활용하여야 한다.
다음은 예제를 통하여 데이터화일을 Raw Device에서 Unix File System으로
이동하는 절차이다.
(운영 현황)
- 현재의 위치: /dev/rdsk/c0t15d0s7
- 이동할 위치: /oracle/file/system.dbf
- 화일의 크기: 488636416 bytes <--- V$DATAFILE.BYTES column 값!
- DB_BLOCK_SIZE: 2048 bytes
(준비 단계)
1. Oracle 블럭 수 계산:
BYTES / DB_BLOCK_SIZE = 488636416 / 2048 = 238592 (블럭)
2. O/S file header 블럭 추가:
238592 + 1 = 238593 (블럭)
: "ls -l /oracle/file/system.dbf" 명령으로 확인 가능하며, O/S file
header는 1블럭으로 항상 일정함.
3. Raw Device OS header 블럭 계산:
64K / DB_BLOCK_SIZE = 65536 / 2048 = 32 (블럭)
: 사용할 dd 명령어 중 블럭의 크기를 DB_BLOCK_SIZE(2048바이트)로 할
예정이므로 2048로 나누어야 함.
(명령어 형식)
$ dd if=<raw device> of=<UFS file> bs=<oracle blocksize>
iseek=<blocks to skip> count=<total count>
(명령어 수행 절차)
(1) SVRMGR> STARTUP MOUNT
(2) SVRMGR> !dd if=/dev/rdsk/c0t15d0s7 of=/oracle/file/system.dbf
bs=2048 iseek=32 count=238593
(3) SVRMGR> ALTER DATABASE RENAME FILE '/dev/rdsk/c0t15d0s7' TO
'/oracle/file/system.dbf';
(4) SVRMGR> ALTER DATABASE OPEN;
========================================================================
반대로 Unix File System에서 Raw Device로 이동하는 명령어 형식은 아래와 같다.
(명령어 형식)
$ dd if=<UFS file> of=<raw device> bs=<oracle blocksize> \
oseek=<blocks to skip> count=<total count>
유사한 방식으로 데이타 화일 뿐 아니라 리두 로그 화일도 이동할 수 있다.
[주의] Raw Device의 블럭 헤더의 크기는 OS마다 다를 수 있으므로 플랫폼
벤더사에 미리 확인한 후 작업하여야 한다. -
How to create DIR/File on a raw device in RAC environment.
Hi all,
I use a shell script to create DIR and File on a raw device also it creates schema and tablespaces.
I am facing problem in creating DIR and Files on raw device.
One more thing, can multiple tablespaces be created on a raw device.
Thanks & regards,
SanjeevThanks for the response. Please help me further.
About the Script - It asks for the path for creating DIR and uses shell command to create DIR. Later same path and DIR name is used to create Oracle DIR. Now in place of absolute path raw device name is passed. The same script is also used for creating tablespaces and schema.
There is second script that is .sql script that creates external table in the newly created schema. All this has been working fine on single instance Oracle server. we have tested many times but fails in RAC environment when we use raw device.
Question is - If I use filesystem will the external table's flat files and Directories be accessible to all the instances.
I have one application written in java that would be clustered and running on these oracle servers. This application would be accessing those external tables and their flat files. Will there be a problem accessing these flat files accross the instances.
Regards,
Sanjeev. -
Oracle 9.2 RAC installation error on raw devices
During Oracle 9.2 RAC installation on Linux Red Hat 7.3 on raw devices
Database Configuration Assistant
returned the error message:
"Raw device validation check for Data File
"/dev/raw/clustdb_raw_cwmlite_100m" failed, No such file or directory".
Really this file exists, this is a link to a raw device.
How does Oracle validate the raw file?
What does this error mean?
Igor.During Oracle 9.2 RAC installation on Linux Red Hat 7.3 on raw devices
Database Configuration Assistant
returned the error message:
"Raw device validation check for Data File
"/dev/raw/clustdb_raw_cwmlite_100m" failed, No such file or directory".
Really this file exists, this is a link to a raw device.OK, so you are saying that /dev/raw/clustdb_raw_cwmlite_100m is link to /dev/raw/raw<x> (x some number)??
If not - there is your error.
How does Oracle validate the raw file?File MUST exists (or link) AND it must be a RAW device.
You can check it by raw -qa (it should display all raw devices, with theirs major-minor pairs)
What does this error mean?
Igor. Hrvoje -
Hello,
After one installation of cluster software (with problem) I try to install one more time, but the last installation of cluster software leaves some data on my raw devices (for OCR and Voting Disk I use direct raw devices without OCFS, for data files ASM on raw devices).
How can I really delete the content of raw devices? When I delete partitions and create new, it does not delete the content.
Thanx,
JacekI don't know your OS, this is for Linux:
dd if=/dev/zero of=<raw_device>
This command writes binary 0's to the destination.
Be careful when specifying the 'of' argument, this command is used also to clean a whole harddisk (when you plan to sell it).
Werner -
Create tablespace using RAW device
Hi,
When you create the tablespace using RAW device, you no need to specify the size parameter in the sql. It works in Solaris but not in Linux.
I dont know why, can anyone experience this issue before? please let me know
Thanks
VeeraMy advice for you would be to always include SIZE parameter when you create tablespace, redo log file on raw device.
Best Regards
Krystian Zieja / mob -
Cannot connect to database (10.2 XE) with old data files
Hi,
I was running my database for a while but a couple weeks back it started failing - as in I can no longer connect to it. I tried moving the datafiles (all files under \oraclexe\oradata\XE ) and reinstalling and that makes everything run again with the default database files but when stop the database and copy my old files back in and restart - presto I can no longer connect either by jdbc or by apex ( 127.0.0.1:8080/apex ). My css log file has this in it after I resttart the database and try to connect to apex:
[ OCRUTL][3280]u_set_comp_error: Parameter was NULL
[ OCRUTL][3280]u_set_ocr_error: Parameter was NULL
2011-12-28 17:07:20.084: [ OCROSD][3280]utgdv:1:could not open registry key SOFTWARE\Oracle\ocr os error The system could not find the environment option that was entered.
[ OCRUTL][3280]u_set_gbl_comp_error: Parameter was NULL
[ OCRUTL][3280]u_set_gbl_comp_error: Parameter was NULL
2011-12-28 17:07:20.084: [ OCRRAW][3280]proprinit: Could not open raw device
2011-12-28 17:07:20.084: [ default][3280]a_init:7!: Backend init unsuccessful : [33]
[ OCRUTL][3280]u_set_ocr_error: Parameter was NULL
2011-12-28 17:07:20.084: [ CSSCLNT][3280]clsssinit: error(33 ) in OCR initialization
So, how can I rescue my data or fix what I assume is a corrupted datafile? I had a backup on dvd but now I can't find the dvd so I'm stuck.
Edited by: user4272861 on Dec 28, 2011 2:09 PMHi,
Thanks for the replys,
My instance is running in the exact place as before.
When I try to run the commands in the trc file I get up to a point but then get errors.
The following commands seem to work:
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "XE" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 'E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_4WK0TDM0_.LOG' SIZE 50M,
GROUP 2 'E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_4WK0TL5T_.LOG' SIZE 50M
-- STANDBY LOGFILE
DATAFILE
'E:\ORACLEXE\ORADATA\XE\SYSTEM.DBF',
'E:\ORACLEXE\ORADATA\XE\UNDO.DBF',
'E:\ORACLEXE\ORADATA\XE\SYSAUX.DBF',
'E:\ORACLEXE\ORADATA\XE\USERS.DBF'
CHARACTER SET AL32UTF8
-- Configure RMAN configuration record 1
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('RETENTION POLICY','TO REDUNDANCY 2');
-- Configure RMAN configuration record 2
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CONTROLFILE AUTOBACKUP','OFF');
work but I can't get past it...
-- Commands to re-create incarnation table
-- Below log names MUST be changed to existing filenames on
-- disk. Any one log file from each branch can be used to
-- re-create incarnation records.
-- ALTER DATABASE REGISTER LOGFILE 'E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_12_29\O1_MF_1_1_start.ARC';
-- ALTER DATABASE REGISTER LOGFILE 'E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_12_29\O1_MF_1_1_%U_.ARC';
-- ALTER DATABASE REGISTER LOGFILE 'E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_12_29\O1_MF_1_1_%U_.ARC';
-- Recovery is required if any of the datafiles are restored backups,
-- or if the last shutdown was not normal or immediate.
eg the command : RECOVER DATABASE USING BACKUP CONTROLFILE
produces this:
SQL> RECOVER DATABASE USING BACKUP CONTROLFILE ;
ORA-00279: change 38947104 generated at 12/26/2011 01:56:02 needed for thread 1
ORA-00289: suggestion :
E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_12_29\O1_MF_1_765_
%U_.ARC
ORA-00280: change 38947104 for thread 1 is in sequence #765
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
SQL> RECOVER DATABASE USING BACKUP CONTROLFILE ;
ORA-00279: change 38947104 generated at 12/26/2011 01:56:02 needed for thread 1
ORA-00289: suggestion :
E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_12_29\O1_MF_1_765_
%U_.ARC
ORA-00280: change 38947104 for thread 1 is in sequence #765
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log
'E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_12_29\O1_MF_1_765
_%U_.ARC'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
and the command ALTER DATABASE REGISTER LOGFILE 'E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_12_29\O1_MF_1_1_start.ARC';
produces this:
SQL> ALTER DATABASE REGISTER LOGFILE 'E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA
\XE\ARCHIVELOG\2011_12_29\O1_MF_1_1_start.ARC';
ALTER DATABASE REGISTER LOGFILE 'E:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\A
RCHIVELOG\2011_12_29\O1_MF_1_1_start.ARC'
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level
What is the trick to getting it to open an archived log? -
Hello,
I am getting the following error when I try to complete approval process.
ORA-20001: Unable to create tablespace. ORA-01
119: error in creating database file '//./FLOW_1.dbf' ORA-27040: skgfrcre: creat
e error, unable to create file OSD-04002: unable to open file O/S-Error: (OS 2)
The system cannot find the file specified.
I checked the alert log for error here is the error in the alert log file.
ORA-1119 signalled during: CREATE TABLESPACE FLOW_1 DATAFILE '//./FLOW_1.dbf'..
and i found the syntax for create tablespace was wrong.
To create a tablespace in RAC with RAW device environment under windows.
it should have forward black slash instead of backward slash "/" without .dbf extension.
so, I changed the syntax i was able to create tablespace through sqlplus.
When APEX tool try to create this tablespace it throws this error..
Old: CREATE TABLESPACE FLOW_1 DATAFILE
'\\.\FLOW_1.dbf' SIZE 10304 K REUSE AUTOEXTEND OFF
EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO
error : ORA-01119: error in creating database file '\\.\FLOW_1.dbf'
New:
CREATE TABLESPACE FLOW_1 DATAFILE
'\\.\FLOW_1' SIZE 10304 K REUSE AUTOEXTEND OFF
EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO
Tablespace created.
Is it a bug in APEX 3.0.1.??
Is anyone installed APEX in RAC ??
JamesHi,
One observation, Apex is switching the Session ID after one got killed ? I was working on Apex page with browse Item to test open cursor count,
after killing the SID (227) on which the open cursor count was getting increase, it APEX automatically switches to new SID(149) for that session.
Now the problem is even if I have two SID's and one hits the maximum open cursor count, It is not switching to other SID instead the whole application becomes unavailable.
STATNAME SID VALUE USER
opened cursors current 20 14 APEX_PUBLIC_USER
opened cursors current 149 74 APEX_PUBLIC_USER
opened cursors current 194 71 APEX_PUBLIC_USER
opened cursors current 211 5 APEX_PUBLIC_USER
opened cursors current 227 325 APEX_PUBLIC_USER Killed
opened cursors current 244 15 APEX_PUBLIC_USER
opened cursors current 20 14 APEX_PUBLIC_USER
opened cursors current 149 76 APEX_PUBLIC_USER
opened cursors current 194 71 APEX_PUBLIC_USER
opened cursors current 211 5 APEX_PUBLIC_USER
opened cursors current 244 15 APEX_PUBLIC_USER
Please kindly help in this.
Thanks in Advance
Thanks & Regards
Sanjay
Edited by: user11204334 on Dec 8, 2010 1:02 AM -
Database in Raw device recover in time tablespace
How recover database in raw device using clone database
(Recovery Manager) ?
The problem is follow:
When RMAN begin then recover proces he need create the clone
database. @ How create this database ? @ In file system or raw
device ? if he create it in raw device @ Then device necessary
must be created before ?
@ How many devices ? @ What is your size ?
Thanks ...
nullWith raw devices alternative cost of performance is typical management difficulties like this, but after 10g ASM is a big shift - http://www.dbazine.com/olc/olc-articles/still5
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/storeman.htm#i1021337
Best regards. -
After renaming data file it failes during database open
Hi,
I took RMAN full back.
Then i renamed datafile then restored and recovered. It goes fine.
But during the daabase open it fails with
ORA-01113: file 6 needs media recovery
ORA-01110: data file 6: '+OBTDG1/qa112asm/datafile/users02.dbf'
Any specific reason for that?
=======================================================
Recovery Manager: Release 11.2.0.1.0 - Production on Thu Jul 22 01:19:30 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN> backup database;
connected to target database: QA112ASM (DBID=3746246770)
RMAN>
Starting backup at 22-JUL-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=145 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=+OBTDG1/qa112asm/datafile/system01.dbf
input datafile file number=00003 name=+OBTDG1/qa112asm/datafile/rbs01.dbf
input datafile file number=00002 name=+OBTDG1/qa112asm/datafile/sysaux01.dbf
input datafile file number=00004 name=+OBTDG1/qa112asm/datafile/temp01.dbf
input datafile file number=00005 name=+OBTDG1/qa112asm/datafile/tools01.dbf
input datafile file number=00006 name=+OBTDG1/qa112asm/datafile/users01.dbf
input datafile file number=00007 name=+OBTDG1/qa112asm/datafile/vindx.dbf
channel ORA_DISK_1: starting piece 1 at 22-JUL-10
channel ORA_DISK_1: finished piece 1 at 22-JUL-10
piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljcr97_1_1 tag=TAG20100722T011934 co
mment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 22-JUL-10
channel ORA_DISK_1: finished piece 1 at 22-JUL-10
piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back09ljcra0_1_1 tag=TAG20100722T011934 co
mment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 22-JUL-10
RMAN> shutdown immediate
Oracle instance shut down
RMAN> startup mount
connected to target database (not started)
Oracle instance started
database mounted
Total System Global Area 275615744 bytes
Fixed Size 2168944 bytes
Variable Size 184551312 bytes
Database Buffers 83886080 bytes
Redo Buffers 5009408 bytes
RMAN>run(
*run {*
set newname for datafile '+OBTDG1/QA112ASM/users01.dbf' to '+OBTDG1/QA112ASM/users02.dbf' ;
restore datafile '+OBTDG1/QA112ASM/users01.dbf';
recover datafile '+OBTDG1/QA112ASM/users01.dbf' noredo;
switch datafile '+OBTDG1/QA112ASM/users02.dbf' ;
RMAN>
2> 3> 4> 5> 6>
executing command: SET NEWNAME
Starting restore at 22-JUL-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=137 device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00006 to +OBTDG1/QA112ASM/datafile/users02.dbf
channel ORA_DISK_1: reading from backup piece /qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljc
r97_1_1
channel ORA_DISK_1: piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljcr97_1_1 tag=T
AG20100722T011934
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 22-JUL-10
Starting recover at 22-JUL-10
using channel ORA_DISK_1
Finished recover at 22-JUL-10
datafile 6 switched to datafile copy
input datafile copy RECID=2 STAMP=724987222 file name=+OBTDG1/qa112asm/datafile/users02.dbf
RMAN> alter database open;
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 07/22/2010 01:20:23
ORA-01113: file 6 needs media recovery
ORA-01110: data file 6: '+OBTDG1/qa112asm/datafile/users02.dbf'
=======================================================
Edited by: user13310502 on Jul 23, 2010 4:49 AMas you can see..
RMAN> sql "alter tablespace andreas offline";
sql statement: alter tablespace andreas offline
RMAN> run
2> {
3> set newname for datafile 8 to '+FRA';
4> restore datafile 8;
5> recover datafile 8;
6> switch datafile 8;
7> }
executing command: SET NEWNAME
Starting restore at 23-JUL-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00008 to +FRA
channel ORA_DISK_1: reading from backup piece +FRA/remtest/backupset/2010_07_23/nnndf0_tag20100723t135242_0.3112.725118763
channel ORA_DISK_1: restored backup piece 1
piece handle=+FRA/remtest/backupset/2010_07_23/nnndf0_tag20100723t135242_0.3112.725118763 tag=TAG20100723T135242
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 23-JUL-10
Starting recover at 23-JUL-10
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:00
Finished recover at 23-JUL-10
datafile 8 switched to datafile copy
input datafile copy recid=7 stamp=725118807 filename=+FRA/remtest/datafile/andreas.3113.725118805
RMAN> sql "alter tablespace andreas online";
sql statement: alter tablespace andreas online
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 07/23/2010 13:53:33
RMAN-11003: failure during parse/execution of SQL statement: alter tablespace andreas online
ORA-01113: file 8 needs media recovery
ORA-01110: data file 8: '+FRA/remtest/datafile/andreas.3113.725118805'
RMAN> run
2> {
3> set newname for datafile 8 to '+FRA';
4> restore datafile 8;
5> switch datafile 8;
6> recover datafile 8;
7> }
executing command: SET NEWNAME
Starting restore at 23-JUL-10
using channel ORA_DISK_1
channel ORA_DISK_1: restoring datafile 00008
input datafile copy recid=8 stamp=725118807 filename=+DATA/remtest/datafile/andreas.349.725036143
destination for restore of datafile 00008: +FRA
channel ORA_DISK_1: copied datafile copy of datafile 00008
output filename=+FRA/remtest/datafile/andreas.3114.725118849 recid=9 stamp=725118849
Finished restore at 23-JUL-10
datafile 8 switched to datafile copy
input datafile copy recid=10 stamp=725118850 filename=+FRA/remtest/datafile/andreas.3114.725118849
Starting recover at 23-JUL-10
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:01
Finished recover at 23-JUL-10
RMAN> sql "alter tablespace andreas online";
sql statement: alter tablespace andreas online
Maybe you are looking for
-
Oracle 8i on redhat 7.1 doesnt come through at all
hi, i have gone thru all ur posts and tried to exactly as posted. got linux81701.tar and also jdk118v3 from blackdown and then first set all the required variables and then installed jdk118 onto /usr/local/java and then untarred the or8i distribution
-
import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class ClickMe extends Applet implements MouseListener { private Spot spot = null; private static final int RADIUS = 7; public void init() { addMouseListener(this); pub
-
Hello! I have an iPhone 4s IOS 5.0.1 /32gb with 17.3 available-per settings. Its neen jailbroken. For the past few days I have been having a problem with the phone crashing. I go into an app and within 2 minutes it kicks me back to the home screen. I
-
Using BAPI_EQUIPMENT_SAVEREPLICA
Hello Experts, I am currently working on the program that calculates the Renewal Price of an Equipments based on CPI and Acquisition value. I have used ALV grid display to calculate and display the table. Further i want have added CUSTOM button to to
-
Problem after update 11.3.0.54 installed
Using Windows 8.1, I downloaded an itunes update on July 12th 2014. Version 11.3.0.54 It was taking sometime to install and then it must have hung. I clicked on the update bar and then it showed it to be not responding. At the same time the itunes d