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.
Similar Messages
-
Problem in using context param for storing database connection information
Hello Friends,
I am new to struts & jsp.I am developing a project in struts.I have 1 jsp page called editProfile.jsp.On submitting this page it will call 1 action class.The action class in turn will call the Plain old java class where I have written the logic for updating User Profile.
I have created context-param in web.xml for database connection information like dbURL , dbUserName , dbPassword , jdbcDriver.Now I want to use these connection information in my Business logic(Plain Old Java Class).As we can use context parameter only in jsp & servlets , I am setting the variables of my business logic class with these context param in jsp itself.
now when I am calling the updateProfile method of Business logic class from Action class it is giving error as all the connection variables which I set in jsp for my business logic class has become null again.
I am not getting.If once I have set those variables how come they are becoming null again???Please help me.Any Help will be highly appreciated.Thanx in advance.This is the code I have written
web.xml file
<context-param>
<param-name>jdbcDriver</param-name>
<param-value>oracle.jdbc.driver.OracleDriver</param-value>
</context-param>
<context-param>
<param-name>dbUrl</param-name>
<param-value>jdbc:oracle:thin:@localhost:1521:gd</param-value>
</context-param>
<context-param>
<param-name>dbUserName</param-name>
<param-value>system</param-value>
</context-param>
<context-param>
<param-name>dbPassword</param-name>
<param-value>password</param-value>
</context-param>
EditProfile.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>
<jsp:useBean id="EditProfile" scope="application"
class="com.myapp.struts.EditProfile"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Edit My Profile</title>
</head>
<body>
<form action="submitEditProfileForm.do" focus="txt_FirstName" method="post">
<%
EditProfile.setjdbcDriver(application.getInitParameter("jdbcDriver"));
EditProfile.setdbURL(application.getInitParameter("dbURL"));
EditProfile.setdbUserName(application.getInitParameter("dbUserName"));
EditProfile.setdbPassword(application.getInitParameter("dbPassword"));
-----------more code goes here------------
EditActionProfile.java
package com.myapp.struts;
import javax.servlet.jsp.jstl.core.Config;
import org.apache.struts.action.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
public class EditProfileAction extends Action {
public EditProfileAction()
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception
try
if (isCancelled(request))
return mapping.findForward("mainpage");
EditProfileForm epf = (EditProfileForm)form;
EditProfile ep = new EditProfile();
String temp = ep.updateProfile(epf.getTxt_FirstName(),epf.getTxt_MiddleName() , epf.getTxt_LastName() , epf.getTxt_Address() , epf.getTxt_Email() );
if(temp.equals("SUCCESS"))
return mapping.findForward("success");
else
return mapping.findForward("failure");
catch(SQLException e)
System.out.println("error" + e.getMessage());
return mapping.findForward("failure");
EditProfile.java class (My Business Logic Class)
package com.myapp.struts;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.*;
public class EditProfile {
private String dbURL;
private String dbUserName , jdbcDriver;
private String dbPassword;
private Connection con;
private Statement stmt;
public EditProfile()
public void setdbURL(String s )
this.dbURL = s;
public void setdbUserName(String s )
this.dbUserName = s;
public void setdbPassword(String s )
this.dbPassword = s;
public void setjdbcDriver(String s )
this.jdbcDriver = s;
public String updateProfile(String firstname , String middlename , String lastname , String address , String email)
throws SQLException, ClassNotFoundException , java.lang.InstantiationException , IllegalAccessException
try
String s1 = new String("update usr set first_name='" + firstname + "' , middle_name='" + middlename + "' , last_name='" + lastname +"' , address='" + address + "' , email_id='" + email + "' where usr_key=1" );
con = this.init();
System.out.println("after init");
stmt = con.createStatement();
int rslt = stmt.executeUpdate(s1);
System.out.println("after excute update");
stmt.close();
if(rslt>=1)
return "SUCCESS";
else
return "Failure";
finally
if (null != con)
con.close();
public Connection init() throws SQLException, ClassNotFoundException
Class.forName(jdbcDriver);
con = DriverManager.getConnection(dbURL, dbUserName, dbPassword);
return con;
public void close(Connection connection) throws SQLException
if (!connection.isClosed())
connection.close();
} -
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 -
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 ChapuisOne 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. -
Advantages of using higher version of catalog Database.
Hi Gurus,
Wanted to know what are the advantages of using higher version of catalog database.
for ex: my target database is 10.2.0.4 and catalog database is 11.2.0.1The very reason is that you would be able to use all the new features offered by the current release. Like, 11gr2 offers Virtual Private Catalog which you can only use in 11.2. So its better that you move your catalog too to the higher version when you upgrade your database.
HTH
Aman.... -
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
VeeraMy 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 -
ORA-04054 : using variable substitution for the database link name
Hi,
I need to use variable substitution for the database link name.
Here is my command :
declare
GET VARCHAR2(50);
begin
select OIA_GET_DESIGNATION into GET from INFODRI.OMA_IN_ARTICLES;
for rec in (select * from [email protected]_GET_DESIGNATION)
LOOP
dbms_output.put_line('TEN_CODE vaut : '||rec.ten_code);
END LOOP;
exception
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('ERREUR ORACLE DETECTEE : '||rec.OIR_CUR);
DBMS_OUTPUT.PUT_LINE('Message Erreur : '||SUBSTR(SQLERRM,1,245));
:crd := -1;
end;
When I run this programm, I receive the error :
ORA-04054: database link REC.OIA_GET_DESIGNATION does not exist
When I replace :
for rec in (select * from [email protected]_GET_DESIGNATION)
by :
for rec in (execute immediate 'select * from tensions@'||rec.OIA_GET_DESIGNATION)
I receive the error :
PLS-00103 : Encountered the symbol "IMMEDIATE" while parsing.
What can I do to resolv my problem ?
Regards,
RachelWhat is the name of the DB Link and the name of the object you are selecting
from?
I find it easier to create a view on the remote object then use that in selects.
e.g,
Link Name = MyLink
Object_name = Addr_Loc
create or replace VIEW Rem_Addr_Loc AS
select * from addr_loc@mylink;
In the code I then use the view
begin
for C_Rec in (select * from Rem_Addr_loc)
loop
dbms_output.put_line('Rec: '|| C_Rec.Col1);
end loop;
end; -
Advantages of using laster printers for SAP SCRIPTS
Dear Friends,
Here client is saying use scripts for Dotmatrix printer, for all graphics. can i know
<b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
Thanks & Regards
HussainDear Friends,
Here client is saying use scripts for Dotmatrix printer, for all graphics. can i know
<b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
Thanks & Regards
Hussain -
Advantages of using laser printers for SAP SCRIPTS compare to Dot matrix
Dear Friends
<b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
Thanks & Regards
HussainDear Friends
<b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
Thanks & Regards
Hussain -
Rename dafile while using RAW device.
HI,
How to rename a datafile in raw devices.
ThanksSince '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. -
Hello!
Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3). How user of Apple can see these attachments? Recommend please any apps for it.Hello!
Staff of E4 Group JSC use Apple devices for call, reading email and calendars. When the user open event in calendar of iPhone or iPad, he does not see attachments (picture №1, picture №2). But it is possible on Blackberry (picture №3). How user of Apple can see these attachments? Recommend please any apps for it. -
Raw device for oracle 8.1.7 on AIX 4.3.3
Hi there,
I am trying to use a raw device on AIX 4.3.3 for ORACLE 8.1.7.
I have created a raw device /dev/or_system
brw-rw---- 1 oracle dba 54, 1 Mar 04 10:44 or_system
but it is not possible to create a datafile on it :
SVRMGR> create database "GLM"
maxinstances 8
character set "WE8ISO8859P1"
datafile '/dev/or_system' size 150M REUSE
logfile
GROUP 1 ('/oracle/GLM/redo/log1.ora') size 100M,
GROUP 2 ('/oracle/GLM/redo/log2.ora') size 100M,
GROUP 3 ('/oracle/GLM/redo/log3.ora') size 100M,
GROUP 4 ('/oracle/GLM/redo/log4.ora') size 100M;
create database "GLM"
ORA-01501: CREATE DATABASE failed
ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 407
ORA-00604: error occurred at recursive SQL level 1
ORA-01119: error in creating database file '/dev/or_system'
ORA-27038: skgfrcre: file exists
SVRMGR>
The ORA-27028 in exact this situation was reported as a bug in prior ORACLE Versions 8.0.4/ 8.0.5 and had
the bug no. 690228.
But we use as mentioned 8.1.7.
What do I do wrong?
Any suggestions are welcome.
Thank you
GerhardEach raw device you create is used as a single data file.
Eg mklv -y 'myfile' <vgname> <number of logical partitians>
Will have two special files associated with them /dev/rmyfile and /dev/myfile. The number of logical partitians will be the size of your datafile subtract 1 meg for overhead.
So, if you were addding the above raw volume to a tablespace, and the lp size was 32 meg, you would
create tabelspace tsname datafile '/dev/rmyfile' size 31 m;
Note the use of rmyfile not myfile. -
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.
nullProve 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. -
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. -
Using udev devices for ASM disk on Linux
Hello all,
I need details related to using udev devices as ASM disk on Linux.
What I want to know is, once i get the list of ASM Disks that are used to create the DiskGroups, based on the path of the Disk (whether /dev/sdj or /dev/dm-3 or /dev/asm_udev_device, /dev/vx/<vxvm-volume>, /dev/<lvm-volume>) how do i get to know if the device type is a udev device?
I want to know an automated process, so that i can script it out to separate out each device easily.
Please let me know if anyone has expertise on using udev devices with Oracle ASM.
I have referred the link but no much details available http://www.oracle.com/technology/products/database/asm/pdf/device-mapper-udev-crs-asm%20rh4.pdf
Further, the behavior of udevinfo command is very different across version of Linux. From Suse 10 onwards, udevadm has to be used instead.
Its confusing to me.
Please help.
~Sumeet.My installation, ASM On SI
S.O HP-UIx
Disk internal, not SAN
Internal disk configuration for Oracle.
PV Name /dev/dsk/c11t0d0
PV Name /dev/dsk/c11t1d0
PV Name /dev/dsk/c11t2d0
PV Name /dev/dsk/c11t3d0
PV Name /dev/dsk/c11t4d0
PV Name /dev/dsk/c11t6d0
Vg:
/dev/vgora
Lv
/dev/vgora/lvu01 <-- Oracle Bin mounted /u00
/dev/vgora/lvu02 <-- External Archive /u02
In /dev/vgora
brw-r----- 1 root sys 64 0x010001 Mar 8 14:42 lvu01
brw-r----- 1 root sys 64 0x010002 Mar 8 16:15 lvu02
brwxrwxr-x 1 root sys 64 0x010003 Mar 19 14:19 lvasm01
brwxrwxr-x 1 root sys 64 0x010004 Mar 19 14:20 lvasm02
brwxrwxr-x 1 root sys 64 0x010005 Mar 19 14:20 lvasm03
brwxrwxr-x 1 root sys 64 0x010006 Mar 19 14:20 lvasm04
brwxrwxr-x 1 root sys 64 0x010007 Mar 19 14:20 lvasm05
brwxrwxr-x 1 root sys 64 0x010008 Mar 19 14:20 lvasm06
brwxrwxr-x 1 root sys 64 0x010009 Mar 19 14:20 lvasm07
brwxrwxr-x 1 root sys 64 0x01000a Mar 19 14:20 lvasm08
brwxrwxr-x 1 root sys 64 0x01000b Mar 19 14:20 lvasm09
brwxrwxr-x 1 root sys 64 0x01000c Mar 19 14:21 lvasm10
crw-r----- 1 root sys 64 0x010001 Mar 8 14:42 rlvu01
crw-r----- 1 root sys 64 0x010002 Mar 8 16:15 rlvu02
crw-r--r-- 1 root sys 64 0x010000 Mar 8 14:19 group
FOR ASM
crw-rw---- 1 oracle dba 64 0x010003 Mar 19 14:19 rlvasm01
crw-rw---- 1 oracle dba 64 0x010004 Mar 19 14:20 rlvasm02
crw-rw---- 1 oracle dba 64 0x010005 Mar 19 14:20 rlvasm03
crw-rw---- 1 oracle dba 64 0x010006 Mar 19 14:20 rlvasm04
crw-rw---- 1 oracle dba 64 0x010007 Mar 19 14:20 rlvasm05
crw-rw---- 1 oracle dba 64 0x010008 Mar 19 14:20 rlvasm06
crw-rw---- 1 oracle dba 64 0x010009 Mar 19 14:20 rlvasm07
crw-rw---- 1 oracle dba 64 0x01000a Mar 19 14:20 rlvasm08
crw-rw---- 1 oracle dba 64 0x01000b Mar 19 14:20 rlvasm09
crw-rw---- 1 oracle dba 64 0x01000c Mar 19 14:21 rlvasm10
And the problem is:
When i run dbca for create diskgroup, that not recognize the disk.
I will set asm_diskstring with the correctly path.
I try to create a diskgroup from command line, but i see this error.
SQL> create diskgroup DG_DATA_01 external redundancy DISK '/dev/vgora/rlvasm01' ;
create diskgroup DG_DATA_01 external redundancy DISK '/dev/vgora/rlvasm01'
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification '/dev/vgora/rlvasm01' matches no disks
ORA-15025: could not open disk '/dev/vgora/rlvasm01'
ORA-15059: invalid device type for ASM disk
Additional information: 255
Maybe you are looking for
-
What's the best way to set up my iPad and iPhone through I tunes
I have an iPad and now an iPhone what's the best way to sync these in iTunes I'm assuming I'll use the same account and as such the same music aps etcwill sync on both devices? Also it is best to back up to the cloud and would this allows instant tra
-
Two video and audio tracks, only need one audio
Question- I recorded an event- about two hours long. I used two cameras from two different angles. The main camera has the worst audio whereas camera two is best. I want to use the audio from the camera 2. I know how to do this by syncing them up, "t
-
Errors in a Russian translation
In advance I apologise for colloquial - technical English at me much better. And not to think out new rules of English language, has taken advantage of the machine translator. The Russian translation contains following errors: --------------- File iT
-
Missing LocTotal and SysTotal in JournalEntries
Hi, When I write a journalentry with setting autoVAT = No, the fields LocTotal and SysTotal are not filled in OJDT. When I do this with autoVAT = Yes, these fields are filled. Is there any other setting important for this or is this a bug? (I know th
-
Have set up a new mail box which was running through outlook express on my old windows machine. Although it is showing there and I am receiving some mail, not all of it is appearing in my inbox on my imac. I know this as, as a double check before I g