1835135 Members
2899 Online
110077 Solutions
New Discussion

Oracle raw device

 
Kumaresh P N
Occasional Contributor

Oracle raw device

1)How to identify the disks used for oracle ( as raw device ) ?
2) whether it be displayed in bdf ?
4 REPLIES 4
Raj D.
Honored Contributor

Re: Oracle raw device

Hi Kumaresh ,

If you know the lvol name that is using by oracle certainly you can come to which one it is .

And hope you cannot see from bdf output and need to use sql commands.

for raw deice it will be using /dev/rdsk/ or /dev/vgname/rlvol ,

you can use like this , to get list :
SQL> select group_number, disk_number, mount_status, header_status, state, path, failgroup
2 from v$asm_disk;


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Indira Aramandla
Honored Contributor

Re: Oracle raw device

Hi Kumaresh,

You will require to query form the database dictionary using SQL to see the datafile name and from there you can see the volume group where the oracle data files are defined.

Data file names details can be fetched from the the views DBA_DATA_FILES, v$datafile as well.

Then you can use vgdisplay for that volume group to see the disks on which the voulme group was defined.

the raw devices would look like /dev/rdsk/....
or /dev/vg0?/rvol?... as Raj mentioned above.


Indira A
Never give up, Keep Trying
Doug O'Leary
Honored Contributor

Re: Oracle raw device

Hey;

As the others have told you, bdf won't tell you about Oracle raw devices because they're not filesystems. My normal way of identifying this information is as follows:

1. su - oracle
2. sqplus/nolog << eof
connect 1/2 as sysdba
column file_name format a45
column member format a45
spool /tmp/dba_files.txt
select file_name from dba_data files
order by file_name;
select member from v$logfile
eof

That will get you all of the potential raw devices that Oracle could be using. Please realize that there are other things that Oracle needs to run - binaries, control files, archive log filesystems if used, etc..

HTH;

Doug
order by member

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Yogeeraj_1
Honored Contributor

Re: Oracle raw device

hi,

you can also connect as sysdba and generate a trace file with all the required information.

alter database backup controlfile to trace;


hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)