Rename dafile while using RAW device.

HI,
How to rename a datafile in raw devices.
Thanks

Since 'data file = raw device' when using raw devices, it begs the question ... what are you trying to accomplish?
There may be OS, OS Version and DB Version dependencies to think about. Please provide that info as well.

Similar Messages

  • Using raw device

    Good morning,
    I would like to make some i/o test with a database version 10g, actually I have the redo log on standard zfs filesystem (cooked), I would like to
    migrate this redo log on raw device without recreating the database, is this possible ?
    Thanks for your help
    Fabrice Chapuis

    One more question, in case of node failure , redo on raw device are more critical for a recover than if they were on a filesystem ?More critical? Or more difficult?
    Redo is critical, period. Does not matter whether you use a cooked file system or a raw device.
    As for difficulty - that depends on what you are attempting to do. If you want to treat the raw device as a file system, that will be difficult as it it not a file system. (which kind of begs the question as to treat it like a file system when it is not?)
    From a RMAN perspective - a device is a device. RMAN does not care.
    From a DB perspective - that is why ASM exist. To remove the complexities of using raw devices, and eliminate the requirement of needing to use an external Volume Manager. And provide the DBA with a familiar SQL*Plus interface and SQL commands to administer ASM.
    It may seem difficult at first - but anything that needs a learning curve to go through, tends to seem difficult in the beginning. All you need to do is learn the basics and grasp the concepts.. and that +"difficulty"+ disappears.

  • Advantage of using RAW devices for storing database

    Hi,
    Marry Christmas to all.
    Oracle 10g version 10.2.0.1.0 (rac)
    OS : HP-UX 11i
    I am new to this enviornment. We are using raw devices for storig the database.
    Please tell what are the advantages for using raw devices for storing the database?
    Thanks.

    http://www.fors.com/orasupp/unix/37914_1.HTM
    The above link explains the raw devices and advantages.

  • 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
    Veera

    My 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

  • How can i use raw device in oracle 9.2.0.4

    can i use "create tablespace XXX datafile '/dev/raw1' ..." to use raw device for tablespace? Or i should use "ln -s /dev/raw1 /oradata/xxx.dbf"?
    does raw device as same as "xxx.dbf" is limited 4GB ?
    pool english.

    hi,
    as far as windows NT OS is concerned,,there's a utility (OCOPY) to store ur datafiles on to raw devices,,,but u cant directly access that datafiles for runtime databases,,its just for backup purposes..
    umar

  • Tablespace creation problem in RAC using raw device.

    Hi ,
    If i created a tablespace with the .dbf extension i am able to create the tablespace. on other hand if i use .dbf extension it;s failing..
    can anyone help me out why it is happening??
    here is the code...
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    SYS at terac >
    SYS at terac >CREATE TABLESPACE FLOW_1 DATAFILE
    2 '\\.\FLOW_1' SIZE 10304 K REUSE AUTOEXTEND OFF
    3 EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO
    4
    SYS at terac >/
    Tablespace created.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    CREATE TABLESPACE TEST2 DATAFILE '\\.\FLOW_1.DBF' SIZE 10304 K
    REUSE AUTOEXTEND OFF EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT
    SPACE MANAGEMENT AUTO
    SYS at TERAC >/
    CREATE TABLESPACE TEST2 DATAFILE '\\.\FLOW_1.DBF' SIZE 10304 K
    ERROR at line 1:
    ORA-01119: error in creating database file '\\.\FLOW_1.DBF'
    ORA-27040: skgfrcre: create error, unable to create file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    thanks
    james.

    I'm by no means a windows expert so I might be totally wrong here, but here goes.
    You have to refer to the raw device by its name in the datafile clause. If you use a different name then the o/s can't find the device. Simple as that.

  • How use raw device in linux?

    Hi all.
    scene:
    oracle 8.1.6.1
    Linux red hat 6.1
    I'm trying to create a database with raw device.
    In HPux the raw device is /dev/rdsk but I found no documentation for linux raw device.
    thanks for any help.
    null

    Prove it: try to create file large than 2Gb on 8.1.6 under Linux (under NT it works) and try to use raw partitions. About Pmon ORA-601 simply check Metalink.
    I know Oracle, it is my work. I like Oracle database. I think, Linux is the best OS. But i want Oracle to solve current bugs more quickly, for a customers could not say "Oracle on Linux - it ***** ". Because, customers must to know about problems to avoid it. It is a more biger problem, when database is crashed.

  • Configuring Storage for Clusterware on Raw devices

    My proposed system is:
    - Sun Solaris 10
    - Oracle 10G RAC
    - Oracle Clusterware
    - Raw devices for Clusterware files
    - ASM for database flies
    Assume I have appropriately sized LUNs assigned on my SAN for OCR and voting disks. My question is, how do I configure the raw devices required for these Clusterware files?
    I have read the Oracle RAC/Clusterware installation guide (Sun Solaris, SPARC), which goes as far as identifying the requirements but does not give the procedure. If I wish to use raw devices for ASM, it gives a procedure for creating partitions on the LUNs. Is anything like this required for the Clusterware files (OCR and voting disks)?

    As far as I know, Solaris follows the traditional raw device definition, which basically says that a raw device is a disk or a partition on a disk that does not contain a file system (yet). Given your question, this would mean that any device that you can find that does not contain a file system would be a raw device.
    Message edited here:
    However, you need to find the right link to this device in order to use it as a raw or character device. Otherwise, the device would be used as a block device, which means it will be buffered.
    On Solaris, those character devices should be listed under /dev/rdsk, while the block device would be listed under /dev/dsk. (Please, refer to: http://www.idevelopment.info/data/Unix/Solaris/SOLARIS_UnderstandingDiskDeviceFiles.shtml)
    End of update.
    Therefore, you have 2 options in your case. You can create LUNs in your storage that would be just suitable to host your Voting Disks and OCRs OR you can create a bigger LUN and put an OCR and a Voting Disk on this one, AFTER you have sliced the disk (LUN) using the format command.
    There is only one thing to remember: If you follow Oracle's recommendation to use multiple Votings and mirrored OCRs, it would obviously be better that those devices do not all share the same LUN (for availability reasons).
    Last but not least, you may want to have a look at the following forum for a similar discussion on using RAW devices under Solaris: http://forum.java.sun.com/thread.jspa?threadID=5073358&messageID=9267900
    Hope that helps. Thanks.
    Message was edited by:
    MarkusM

  • Raw devices versus Cluster File Systems in RAC 10gR2

    Hi,
    Does anyone using cluster file systems in a RAC 10gR2 installation, specifically IBM’s GPFS?
    I’ve visited a company that is running RAC 10gR2 in AIX over raw devices. Why someone would choose to use raw devices , with all the problems to administer , when all the modern file systems are so powerful? Is there any issues when using cluster file systems + RAC? Is there considerable performance benefits when using raw devices with RAC ?
    I´ve always used Oracle stand alone instances over file systems (since version 7) , and performance was always very good. I´ve tested raw devices almost 10 years ago , and even in that time (the hardware today is much better - SAN , 15K rpm disks , huge caches - and the file systems software today is much better) the cost to administer it does not compensate the benefits (only 5% more faster than file systems in Oracle 7).
    So , besides any limitations imposed by RAC , why use raw devices nowadays ?
    Regards,
    Antonio Belloni

    Hi,
    spontaneously, my question would be: How did you eliminate the influence of the Linux File System Cache on ext3? OCFS2 is accessed with the o_direct flag - there will be no caching. The same holds true for RAW devices. This could have an influence on your test and I did not see a configuration step to avoid it.
    What I saw, though, is "counter test": "I have tried comparing simple file copies from an OS level and the speed differences are not apparent - so the issue only manifests itself when the data is read via an oracle db." and I have no good answer to that one.
    Maybe this paper has: http://www.oracle.com/technology/tech/linux/pdf/Linux-FS-Performance-Comparison.pdf - it's a bit older, but explains some of the interdependencies.
    Last question: While you spent a lot of effort on proving that this one query is slower on OCFS2 or RAW than on ext3 for the initial read (that's why you flushed the buffer cache before each run), how realistic is this scenario when this system goes into production? I mean, how many times will this query be read completely from disk as opposed to use some block from the buffer? If you consider that, what impact does the "IO read time from disk" have on the overall performance of the system? If you do not isolate the test to just a read, how do writes compare?
    Just some questions. Thanks.

  • Raw devices remapping

    We've just set up RAC on a 4-node linux cluster using RedHat AS 2.1
    We're using raw-devices on a DELL|EMC SAN.
    After reading some documents, we've realised that the sd devices can change if we add or remove some LUNz on the SAN.
    Is there anyone with some experience on this issue?
    Are there any way to avoid this situation?

    Hi,
    A raw device can be bound to an existing block device (e.g. a disk) and be used to perform "raw" IO with that existing block device. Such "raw" IO bypasses the caching that is normally associated with block devices. Hence a raw device offers a more "direct" route to the physical device and allows an application more control over the timing of IO to that physical device. This makes raw devices suitable for complex applications like Database Management Systems that typically do their own caching.
    Raw devices are character devices (major number 162). The first minor number (i.e. 0) is reserved as a control interface and is usually found at /dev/rawctl. A utility called raw (see man raw) can be used to bind a raw device to an existing block device. These "existing block devices" may be disks or cdroms/dvds whose underlying interface can be anything supported by Linux (e.g. IDE/ATA or SCSI).
    Try this command on linux and see
    ls -lR /dev/raw*
    Unix utilities such as recent versions of dd and lmdd (from the lmbench suite of programs) can be used to move data to and from "raw" devices as they meet the above-mentioned block alignment requirements. Recent versions of the sg_dd command in the sg_utils package can access both raw and sg devices.
    Also note that if the physical device has an odd number of sectors the last sector will not be accessible using raw IO.
    Main Advantages for Raw devices is that (Abstract View), When ORACLE writes to data on O.S, it takes time to do perform the task, since the Operating Systems is a layer between the Disk and the RDMS, where the Accessing is done. When compare to the Raw Device, where there is not O.S comes in to picture.. while performing the task of disk Reads and writes...since the Performance is High when compared to Normal Disk.. !!
    - Pavan Kumar N

  • CRS on Raw Device

    Hi,
    I am trying to install RAC on RHEL3.0 using Raw device. I followed the "Pre-installation" instruction and started CRS installation. I entered "/dev/raw/raw6" when asked to enter "OCR" location. I got an error "An error has occurred while trying to execute the query"
    Anybody can help please?

    I found the following error in /tmp/crsctl.xxxxx:
    Failure in CSS initialization opening OCR.
    It is running the command "crsctl check boot". Anyone help? thanks!

  • How to migrate raw device to OCFS in the share disk?

    I have a 10gr2 RAC env on two nodes and use raw device, I want to migrate the raw device to OCFS but I can't find the doc to help me? anyone can give me a hand? thankx~~

    Hi terbas
    Not sure that this is the correct section to ask that question, but anyway herewith the way to do it:
    Creating raw devices is the same process as creating a Logica Volume in AIX using smitty. You have to define Volume Groups an hdisk devices. The difference is in ths type of LV used, whe creating JFS FS you used to select jfs/jfs2 types, while whe creating raw devices you can assign a label as "raw" and the use the raw device. Sample of creating a Raw Device:
    mklv -t raw VGName <Size in LP Units>
    When creating raw devices is good to have some consideration about placement of the logical volume in order to achieve som extra performance, remember that data placed near to center i better accessed than data placed on the edge of the disk.
    From a guide i used to configure AIX systems for Oracl installations:
    "RAW Device Interface
    The RAW device interface allows for the least amount of overhea you can achieve with UNIX I/Os. When using the RAW devic interface, UNIX simply assigns a section of the disk to each RA device. This portion of the disk is contiguous; accesses to i bypass all disk caching and file-system overhead.

  • 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,
    Sanjeev

    Thanks 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.

  • Content Server 6.40 on Raw Devices

    Hi Folks!
    We'd like to install a Content Server 6.40 using raw devices (on Linux Suse SLES9).
    Do we need to install the MaxDB, if we use raw devices? At this point the InstGuide does not give a clear description of what to do. It looks we can use the raw devices directly without having a database instance. Is this right?
    Is there any disadvantage compared to using the access via file system and DB?
    Any hint is appreciated...
    Best regards
    Torsten

    Hi Torsten,
    As far as i know SAP Content Server use MaxDB or a File System, I have use it with MaxDB with good results, anyhow.... read the following for details,
    http://help.sap.com/saphelp_nw04s/helpdata/en/40/32104211625933e10000000a155106/content.htm
    Regards
    Juan
    Please reward with points if helpdul

  • Raw Device Validation Check for Name Failed..

    Hi all,
    I have installed Oracle Clusterware 10.2.0.4 and Oracle database software 10.2.0.4 on Solaris SPARC 10 and i using a NAS storage for the same
    And when i try to create a database using DBCA i got the following error.
    Raw Device Validation Check for Name /u03/oradata/spfile/spfile{SID}.ora failed. The specified file /u01/oradata/spfile/spfile{SID}.ora doesnot exit.Please a existing file.
    Note: i am not using ASM., i am using RAW device for Database
    Any help highly thankful
    -Arun

    Hi
    this is how i have mounted the NAS...
    10.0.0.0:/vol/prodt3_vol16/ora_dbfr_inn1s - /u07/DBFR/INS nfs - yes rw,bg,hard,nointr,rsize=32768,wsize=32768,proto=tcp,noac,forcedirectio,vers=3,suid
    how do i ensure that it is not being used....we should not use ASM its an client requinment ...
    Thanks

Maybe you are looking for