当前位置:  数据库>oracle

Redhat 5.5 Oracle 10g 文件系统单实例迁移至ASM实战

    来源: 互联网  发布时间:2017-05-14

    本文导语:  1.安装ASMlib RPM包:       rpm -ivhoracleasm-support-2.1.7-1.el5.i386.rpm       rpm -ivh oracleasm-2.6.18-194.el5-2.0.5-1.el5.i686.rpm       rpm -ivhoracleasmlib-2.0.4-1.el5.i386.rpm   2.建立分区: [root@source ~]# fdisk -l /dev/sdb   Disk /dev/sdb: 10.7 GB, 10737418240 bytes 255 ...

1.安装ASMlib RPM包:

      rpm -ivhoracleasm-support-2.1.7-1.el5.i386.rpm

      rpm -ivh oracleasm-2.6.18-194.el5-2.0.5-1.el5.i686.rpm

      rpm -ivhoracleasmlib-2.0.4-1.el5.i386.rpm

 

2.建立分区:

[root@source ~]# fdisk -l /dev/sdb

 

Disk /dev/sdb: 10.7 GB, 10737418240 bytes

255 heads, 63 sectors/track, 1305 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

  Device Boot      Start        End      Blocks  Id  System

/dev/sdb1              1        730    5863693+ 83  Linux

/dev/sdb2            731        1305    4618687+ 83  Linux

 

fdisk /dev/sdb(详细步骤省略,两个分区各5G)

partprobe /dev/sdb

 

[root@source ~]# fdisk -l

Disk /dev/sda: 16.1 GB, 16106127360 bytes

255 heads, 63 sectors/track, 1958 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

  Device Boot      Start        End      Blocks  Id  System

/dev/sda1  *          1          25      200781  83  Linux

/dev/sda2              26        1894  15012742+  83  Linux

/dev/sda3          1895        1958      514080  82  Linux swap / Solaris

 

Disk /dev/sdb: 10.7 GB, 10737418240 bytes

255 heads, 63 sectors/track, 1305 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

  Device Boot      Start        End      Blocks  Id  System

/dev/sdb1              1        730    5863693+ 83  Linux

/dev/sdb2            731        1305    4618687+ 83  Linux

 

3.配置ASM:

[root@source ~]#/etc/init.d/oracleasm configure

Configuring the Oracle ASMlibrary driver.

 

This will configure theon-boot properties of the Oracle ASM library

driver.  The following questions will determinewhether the driver is

loaded on boot and whatpermissions it will have.  The currentvalues

will be shown in brackets('[]').  Hitting withouttyping an

answer will keep that currentvalue.  Ctrl-C will abort.

 

Default user to own thedriver interface []: oracle

Default group to own thedriver interface []: oinstall

Start Oracle ASM library driveron boot (y/n) [y]: y

Scan for Oracle ASM disks onboot (y/n) [y]: y

Writing Oracle ASM librarydriver configuration: done

Initializing the OracleASMLib driver:                    [  OK  ]

Scanning the system forOracle ASMLib disks:              [  OK  ]

 

/etc/init.d/oracleasmconfigure

 /etc/init.d/oracleasm createdisk V0L1/dev/sdb1

 /etc/init.d/oracleasm createdisk V0L2/dev/sdb2

  [root@source ~]#/etc/init.d/oracleasm listdisks

V0L1

V0L2

 

4.配置css进程(配置好后,进程开机启动):

[root@source bin]# /u01/oracle/product/10.2.0/bin/localconfigadd

/etc/oracle does not exist. Creating it now.

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

Configuration for local CSS has been initialized

 

Adding to inittab

Startup will be queued to init within 90 seconds.

Checking the status of new Oracle init process...

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

        source

CSS is active on all nodes.

Oracle CSS service is installed and running underinit(1M)

 

[oracle@source ~]$ ps -ef|grep oracle

root    4751    1  0 10:18 ?        00:00:00 /bin/su -l oracle -c sh -c 'cd/u01/oracle/product/10.2.0/log/source/cssd; ulimit -c unlimited; exec /u01/oracle/product/10.2.0/bin/ocssd '

oracle  4843  4751  0 10:19 ?        00:00:00/u01/oracle/product/10.2.0/bin/ocssd.bin

 

5.配置ASM实例:

创建ASM实例参数文件,添加相关参数:

[oracle@source ~]$ cd /u01/oracle/product/10.2.0/dbs/

[oracle@source dbs]$ touch init+ASM.ora

[oracle@source dbs]$ vim init+ASM.ora

instance_type=asm

large_pool_size=12m

remote_login_passwordfile=exclusive

asm_diskstring=

background_dump_dest=/u01/oracle/admin/+ASM/bdump

core_dump_dest=/u01/oracle/admin/+ASM/cdump

user_dump_dest=/u01/oracle/admin/+ASM/udump

 

创建ASM密码文件:

orapwd file=orapw+ASM entries=5 password=oracle


    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • 征求RedHat7.2下Tomcat4.1.12与Apache整合实例
  • linux redhat5.6安装oracle11g在自动创建实例时停住不动,有图
  • redhat/centos 常用信息查看命令整理
  • 请问redhat6.2或redhat7.0有没有汉化版本或汉化包。only redhat serial?
  • Linux/centos/redhat下各种压缩解压缩方式详解
  • 我机器上装了win98SE,win2000 Server,和Mandrake linux,我想再装个RedHat,可是到后来我发现RedHat没有认出ManDrake,我装上RedHat后,Lilo
  • Linux_centos_redhat下tar命令解压tgz文件方法
  • 不是说Liunx是免费发布的嘛,请问哪里可以下载RedHat 7.3或更高版本的redhat的完全安装版,请提供地址,我想装个redhat学学
  • redhat linux/CentOS 6/7 关闭防火墙(iptables)命令,作用:CentOS 防火墙不关行不行?
  • 三个问题,关于RedHat7.2和RedHat7.3的........
  • 根据文件大小查找文件的find命令举例(Linux,centos,redhat)
  • REDHAT8 比 REDHAT7.x要好多少? 是不是对硬件要求比较高? 另外
  • 红帽redhat下通过脚本和yum安装docker容器引擎的详细步骤
  • redhat13.8与redhat9有什么驱别?
  • Redhat/Centos下rpmbuild命令从spec文件或者tar包建立rpm
  • 求救!!安装redhat后,提示重启,但是没有没有redhat的启动选项
  • REDHAT8.0还是REDHAT9.0?
  • 请问:redhat 的桌面是gnome吗,我的redhat 9是默认安装的。
  • 请问如何做到redhat fedora core2和redhat linux enterprise 3 AS共存,谢谢
  • redhat 12与redhat 5.5有什么区别?不用序列号能不能用?
  • [RedHat9]RedHat9无法进入图形模式,疑是声卡问题,请教如何解决?
  • 菜鸟刚学redhat,redhat eth0 网卡怎么激活,在线等
  • 求Redhat9.0下载地址,Redhat9.0现在仍否允许免费下载?


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,