Hi,
there is no conversion from raw to jfs2 because jfs2 is basically a rawdevice with a filesystem in it - you have data in your rawdevices - and there's no space for both
Oracle recommends following way using rman:
Use RMAN to move datafiles from raw devices to file system.
1. Connect to the database:
Code:
$ sqlplus system/manager@orcl
2. Put the tablespace with the datafile, which should be converted, offline:
Code:
SQL> alter tablespace test_ts offline;
3. Start rman and connect it to the database:
Code:
$ rman nocatalog target rman/rman@orcl
4. Move the datafile to file system:
Code:
RMAN> run {
2> allocate channel c1 type disk;
3> copy datafile '/dev/raw1' to '/u01/oradata/orcl/test_ts.dbf';
4> }
5. Rename the moved datafile:
Code:
SQL> alter database rename file '/dev/raw1' to '/u01/oradata/orcl/test_ts.
dbf';
6. Put the tablespace back online:
Code:
SQL> alter tablespace test_ts online;
But be careful ...
If you are using RMAN as the backup tool then a backup after the performed
steps is recommended, because otherwise RMAN treats the copied file as a
backup.
Usually Oracle datafiles are moved from filesystem to raw devices using
the dd command. Using dd is the fastest method to accomplish it. However, it is
necessary to know how many blocks to skip in the raw device, so that the information necessary for the Operating System is not overwritten. The information on how many blocks to skip is different on the different platforms. Using RMAN there's no necessity
to know such platform specific information.
Kind regards
zxmaus
|