Oracle11gR2在Oracle linux6.3上使用裸设备
来源:互联网 发布:js的封装继承多态 编辑:程序博客网 时间:2024/05/17 04:52
增加了1块1G的盘
[root@OEL63 u01]# fdisk -l
Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280bytes
Sector size (logical/physical): 512 bytes /512 bytes
I/O size (minimum/optimal): 512 bytes / 512bytes
Disk identifier: 0x00000000
分区
[root@OEL63 u01]# fdisk /dev/sdb
Device contains neither a valid DOSpartition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with diskidentifier 0x3d49ddef.
Changes will remain in memory only, untilyou decide to write them.
After that, of course, the previous contentwon't be recoverable.
Warning: invalid flag 0x0000 of partitiontable 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated.It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-130, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G}(1-130, default 130):
Using default value 130
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@OEL63 u01]#
配置裸设备
Linux5之后管理裸设备的方法有变化。
[root@OEL63 rules.d]# vi/etc/udev/rules.d/60-raw.rules
ACTION=="add",KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"
KERNEL=="raw*",OWNER="oracle", GROUP="oinstall", MODE="740"
然后重启机器
使用裸设备
[oracle@OEL63 qing]$ ls /dev/raw/raw*
/dev/raw/raw1 /dev/raw/rawctl
[oracle@OEL63 qing]$ ln -s /dev/raw/raw1redo04.raw
[oracle@OEL63 qing]$ pwd
/u01/oracle/oradata/qing
[oracle@OEL63 qing]$ ls -l/u01/oracle/oradata/qing/redo04.raw
lrwxrwxrwx 1 oracle oinstall 13 Sep 1604:49 /u01/oracle/oradata/qing/redo04.raw -> /dev/raw/raw1
SQL> alter database add logfile group 4('/u01/oracle/oradata/qing/redo04.raw') size 50m;
Database altered.
切换试试:
SQL> alter system switch logfile;
- Oracle11gR2在Oracle linux6.3上使用裸设备
- 使用oracle-rdbms-server-11gR2-preinstall在Oracle Linux 6上简化安装Oracle11gR2
- 使用oracle-rdbms-server-11gR2-preinstall在Oracle Linux 6上简化安装Oracle11gR2
- Oracle11gR2 RAC实时应用集群在Redhat Enterprise Linux6.3 x86_64下的集群(ASM篇)
- 使用 VMware Server2 在 Oracle Enterprise Linux 上安装 Oracle11gR2 RAC
- Oracle11gR2 RAC实时应用集群(3)在Redhat Enterprise Linux6.3 x86_64下的集群(ASM篇)
- Oracle在裸设备上安装
- AIX上使用裸设备安装oracle
- 在虚拟机上基于Redhat Linux6.5的oracle 12c安装过程
- 解决在redhat Linux6.3上安装oracle 11g RAC执行runcluvfy安装前检查是报DNS的PRVF-5637
- ORACLE LINUX6.1 使用CENTOS 163源
- ORACLE11GR2在RHEL5 上的安装指南
- 在Redhat5.5上安装oracle11gR2
- 在redhat企业版6.5上安装oracle11gr2
- Linux6.5+asm+oracle11gR2安装参考
- 在AIX 6.1 上安装 oracle 10g 裸设备
- Oracle 11.2 在裸设备上创建数据库
- 在Linux6.3上安装oracle11未填写hosts导置错误
- C++开源库
- 构造函数和实例化
- MFC ListControl用法总结
- 基于TCP协议的网络程序(基础学习)
- 网络连接服务故障排查技巧
- Oracle11gR2在Oracle linux6.3上使用裸设备
- c++类库
- 揭开 iOS 7 之 Multipath TCP 的面纱
- C#中抽象类和接口的区别
- SELECT的学习以及在socket中的应用
- C语言gd库画图
- 玩转Eclipse — 自动生成setter和getter方法
- eclipse下的web开发问题总结[struts2文件上传]
- Selenium+Eclipse+Python测试环境搭建。