Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem meeted when copy a datafile to a raw device

Status
Not open for further replies.

signalsys

Technical User
Sep 5, 2005
44
CN

Oracle 9201+AIX52
db_block_size=8k
I have a datafile /chhora/chh1.dbf and its size is:
ls -rlt /chhora/chh1.dbf
-rw-rw---- 1 oracle dba 10493952 Apr 28 10:30 /chhora/chh1.dbf

Here is the calculation of the file's size: 10Mx1024x1024+8Kx1024=10493952
Now i want to copy it to a raw device, First i created a LV whose size is 256m, Then I use:
dd if=/chhora/chh1.dbf of=/dev/rchhlv1 skip=1 bs=8192 seek=1;
1280+0 records in.
1280+0 records out.

When the database is in mount mode,I replace the datafile with the new one:
SQL> alter database rename file '/chhora/chh1.dbf' to '/dev/rchhlv1' ;

Database altered.

But when I open the database the following errors appeared:
ORA-01122: database file 12 failed verification check
ORA-01110: data file 12: '/dev/rchhlv1'
ORA-01251: Unknown File Header Version read for file number 12

As you see I have already reserve the first block on the raw device for the Operating system.
What could cause this error?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top