快速业务通道

Linux AS4U5 lvm raw oracle10

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-02
备绑定生效: /sbin/service rawdevices restart 查看裸设备 [root@oraDBServer ~]# raw -qa
/dev/raw/raw1: bound to major 253, minor 0
/dev/raw/raw2: bound to major 253, minor 1
/dev/raw/raw3: bound to major 253, minor 2
/dev/raw/raw4: bound to major 253, minor 3
/dev/raw/raw5: bound to major 253, minor 4
/dev/raw/raw6: bound to major 253, minor 5
/dev/raw/raw7: bound to major 253, minor 6
/dev/raw/raw8: bound to major 253, minor 7
/dev/raw/raw9: bound to major 253, minor 8
/dev/raw/raw10: bound to major 253, minor 9
/dev/raw/raw11: bound to major 253, minor 10
[root@oraDBServer ~]# 7.修改raw文件属性:

# /sbin/service rawdevices restart
# chown oracle:dba /dev/raw/raw[1-9]
Empire CMS,phome.net

# chmod 0660 /dev/raw/raw[1-9] ls -al /dev/raw/*
crw-rw---- 1 oracle dba 162, 1 Jul 22 08:25 /dev/raw/raw1
crw-rw---- 1 oracle dba 162, 10 Jul 22 08:25 /dev/raw/raw10
crw-rw---- 1 oracle dba 162, 11 Jul 22 08:25 /dev/raw/raw11
crw-rw---- 1 oracle dba 162, 2 Jul 22 08:25 /dev/raw/raw2
crw-rw---- 1 oracle dba 162, 3 Jul 22 08:25 /dev/raw/raw3
crw-rw---- 1 oracle dba 162, 4 Jul 22 08:25 /dev/raw/raw4
crw-rw---- 1 oracle dba 162, 5 Jul 22 08:25 /dev/raw/raw5
crw-rw---- 1 oracle dba 162, 6 Jul 22 08:31 /dev/raw/raw6
crw-rw---- 1 oracle dba 162, 7 Jul 22 08:25 /dev/raw/raw7
crw-rw---- 1 oracle dba 162, 8 Jul 22 08:25 /dev/raw/raw8
crw-rw---- 1 oracle dba 162, 9 Jul 22 08:25 /dev/raw/raw9

[root@localhost /]# vi /etc/udev/permissions.d/50-udev.permissions
# raw devices
ram*:root:disk:0660
raw/*:oracle:dba:0660 #113 line 查看相前raw的信息
[root@localhost /]# raw -qa
/dev/raw/raw1: bound to major 253, minor 0
/dev/raw/raw2: bound to major 253, minor 1
/dev/raw/raw3: bound to major 253, minor 2
/dev/raw/raw4: bound to major 253, minor 3
/dev/raw/raw5: bound to major 253, minor 4
/dev/raw/raw6: bound to major 253, minor 5
/dev/raw/raw7: bound to major 253, minor 6
/dev/raw/raw8: bound to major 253, minor 7
/dev/raw/raw9: bound to major 253, minor 8
/dev/raw/raw10: bound to major 253, minor 9
/dev/raw/raw11: bound to major 253, minor 11
10.使用oracle用户创建链接文件: (/oradata目录下在创建连接前内容为空)
[root@localhost /]#mkdir /oradata
[root@localhost /]# chown -R oracle.dba oradata/
[root@localhost /]# chmod 775 /oradata/
[root@localhost /]# ll
total 166
...............
drwxr-xr-x 5 oracle oinstall 4096 Jul 20 13:45 opt
drwxrwxr-x 2 oracle dba 4096 Jul 22 08:32 oradata
.........................
Empire CMS,phome.net
[root@localhost /]# su - oracle
[oracle@localhost ~]$ cd /oradata/
[oracle@localhost oradata]$ ln -s /dev/raw/raw1 /oradata/system01.dbf
[oracle@localhost oradata]$ ln -s /dev/raw/raw2 /oradata/sysaux01.dbf [oracle@localhost oradata]$ ln -s /dev/raw/raw3 /oradata/undotbs01.dbf
[oracle@localhost oradata]$ ln -s /dev/raw/raw4 /oradata/redo01.dbf
[oracle@localhost oradata]$ ln -s /dev/raw/raw5 /oradata/redo02.dbf
[oracle@localhost oradata]$ ln -s /dev/raw/raw6 /oradata/control01.ctl
[oracle@localhost oradata]$ ln -s /dev/raw/raw7 /orad

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多
上一篇: linux ftp下一篇: linux的运行级别

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号