科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网服务器频道虚拟化/云计算通过VMWARE虚拟机搭建Oracle 10g R2 R

通过VMWARE虚拟机搭建Oracle 10g R2 R

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

本文讲解了通过VMWARE虚拟机搭建Oracle 10g R2 R的过程。

来源:IT认证考试 2010年9月24日

关键字:

  • 评论
  • 分享微博
  • 分享邮件

在本页阅读全文(共9页)

  File Size(MB) Tablespace Maxsize(MB) Tempfile Name

  —- ——– ——————– ———– ——————–

  1 29 TEMP 32767 +DATADG/pcard/tempfile/temp.262.663797505

  Uninstall RAC

  shutdown DB instance, ASM, OCR

  /etc/init.d/init.crs disable

  /etc/init.d/init.crs stop

  Edit /etc/inittab, remove CRSD,EVMD, CSSD entries

  reboot

  rm -fr All directories and files about oracle under /etc (oracle, oraInst.loc, oratab)

  rm -fr /etc/init.d/init.crs, init.crsd, init.evmd, init.cssd, /etc/rc0.d/K96init.crs, /etc/rc1.d/K96init.crs, /etc/rc2.d/K96init.crs, /etc/rc3.d/S96init.crs, /etc/rc4.d/K96init.crs, /etc/rc5.d/S96init.crs, /etc/rc6.d/K96init.crs

  cd /oracle

  rm -fr *

  # OCR and Vote Disk

  dd if=/dev/zero of=/dev/raw/raw1 bs=4096 count=128

  dd if=/dev/zero of=/dev/raw/raw2 bs=4096 count=128

  dd if=/dev/zero of=/dev/raw/raw3 bs=4096 count=128

  dd if=/dev/zero of=/dev/raw/raw4 bs=4096 count=128

  dd if=/dev/zero of=/dev/raw/raw5 bs=4096 count=128

  # ASM disks

  dd if=/dev/zero of=/dev/raw/raw6 bs=8192 count=128

  dd if=/dev/zero of=/dev/raw/raw7 bs=8192 count=128

  dd if=/dev/zero of=/dev/raw/raw8 bs=8192 count=128

  dd if=/dev/zero of=/dev/raw/raw9 bs=8192 count=128

  dd if=/dev/zero of=/dev/raw/raw10 bs=8192 count=128

  dd if=/dev/zero of=/dev/raw/raw11 bs=8192 count=128

  Create Physical Standby Database and Switchover

  RAC01 side:

  rman target sys/nhy67ujm@pcard1 catalog=RMANUSR/rman@RMANUAT

  mkdir -p /oracle /backup/hotbackup

  RMAN》 run{

  allocate channel d1 type disk;

  backup format ‘/oracle/backup/hotbackup/df_t%t_s%s_p%p’ database;

  backup current controlfile for standby format

  ‘/oracle/backup/hotbackup/sb_t%t_s%s_p%p’;

  sql ‘alter system archive log current’;

  backup format ‘/oracle/backup/hotbackup/al_t%t_s%s_p%p’ archivelog all;

  release channel d1;

  }

  Standby side:

  mkdir -p /oracle/backup/hotbackup

  cd /oracle/backup/hotbackup

  sftp oracle@rac01:/oracle/backup/hotbackup/

  Use “get” command to copy all backup files in this directory.

  Create standby db directory

  mkdir -p /oracle/admin/pcard/adump

  mkdir -p /oracle/admin/pcard/bdump

  mkdir -p /oracle/admin/pcard/cdump

  mkdir -p /oracle/admin/pcard/udump

  mkdir -p /oracle/oradata/pcard/arch/

  mkdir -p /oracle/oradata/pcard/datafile

  mkdir -p /oracle/oradata/pcard/onlinelog

  Standby Side: Edit listener.ora and tnsname.ora

  listener.ora:

  SID_LIST_LISTENER =

  (SID_LIST =

  (SID_DESC =

  (SID_NAME = PLSExtProc)

  (ORACLE_HOME = /oracle/product/10.2.0/db)

  (PROGRAM = extproc)

  )

  (SID_DESC =

  (GLOBAL_DBNAME = standby)

  (ORACLE_HOME = /oracle/product/10.2.0/db)

  (SID_NAME = pcarddg)

  )

  )

  LISTENER_STANDBY =

  (DESCRIPTION_LIST =

  (DESCRIPTION =

  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.201)(PORT = 1521))

  )

  )

  tnsname.ora (Copy from RAC01, and add the following contents):

  #####STANDBY SETTINGS##############

  LISTENERS_STANDBY =

  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.201)(PORT = 1521))

  PCARDDG =

  (DESCRIPTION =

  (ADDRESS_LIST =

  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.201)(PORT = 1521))

  )

  (CONNECT_DATA =

  (SERVER = DEDICATED)

  (SERVICE_NAME = PCARDDG)(UR=A)

  (INSTANCE_NAME = PCARDDG)

  )

  )

  RAC01 Side: Create pfile from spfile and edit

  SQL》 create pfile from spfile;

  SQL》 host vi /oracle/product/10.2.0/db_1/dbs/initpcard1.ora

  

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章