I am having problem creating tablespace on the 1 logical RAW partion.
Whereas on 2nd partion, it works. I guess the first one is Extended and second is Linux. What is the reason ?
My layout is as follows:
# fdisk -l /dev/sdc
Disk /dev/sdc: 106 MB, 106954752 bytes
64 heads, 32 sectors/track, 102 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 30 30704 5 Extended
/dev/sdc2 31 41 11264 83 Linux
[root@localhost dev]#
SQL> create tablespace Dat01 datafile '/dev/sdc1';
create tablespace Dat01 datafile '/dev/sdc1'
*
ERROR at line 1:
ORA-01119: error in creating database file '/dev/sdc1'
ORA-27044: unable to write the header block of file
Additional information: 7
------------------------------------------------------------------------ The most enjoyable things in the world are either Immoral or too Expensive or otherwise Inaccessible anyway
1) You should not (cannot) mix different disk format(s) for database files.
2) You cannot directly create a tablespace on a raw disk, you need to use ASM or some kind of "DirectIO" option.
3) Again: DO NOT mix filesystem formats (types) for database files.
"The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb
What i am doing is, i have added few disks to my enterprise linux 4 box viz., sda,sdb,sdc etc.
After this i am using fdisk to create partition on these disks.
fdisk /dev/sda..... etc.....
Now i am creating tablespaces on these raw devices.
Is this not recommended ? Is this not correct ?
Of course, I know that future release will not support raw, etc.....
I am doing this for some benchmarking. I am using Oracle 10.2
------------------------------------------------------------------------ The most enjoyable things in the world are either Immoral or too Expensive or otherwise Inaccessible anyway
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Bookmarks