科技行者

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

知识库

知识库 安全导航

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

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

  • 扫一扫
    分享文章到微信

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

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

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

关键字:

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

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

 /etc/udev/permissions.d/50-udev.permissions

  # raw devices

  ram*:root:disk:0660

  #raw/*:root:disk:0660

  raw/*:oracle:dba:0660

  (the rule is: ocr 660 root

  vote 644 oracle

  asm 660 oracle)

  Configure SSH for user equivalence

  login as “oracle” user:

  [root@rac01 ~]# su – oracle

  [oracle@rac01 ~]$ mkdir ~/.ssh

  [oracle@rac01 ~]$ chmod 700 ~/.ssh

  [oracle@rac01 ~]$ ssh-keygen -t rsa

  Generating public/private rsa key pair.

  Enter file in which to save the key (/home/oracle/.ssh/id_rsa):

  Enter passphrase (empty for no passphrase):

  Enter same passphrase again:

  Your identification has been saved in /home/oracle/.ssh/id_rsa.

  Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.

  The key fingerprint is:

  79:3d:2b:99:c4:19:36:fd:ef:82:21:14:04:3a:a2:86 oracle@rac01

  [oracle@rac01 ~]$ ssh-keygen -t dsa

  Generating public/private dsa key pair.

  Enter file in which to save the key (/home/oracle/.ssh/id_dsa):

  Enter passphrase (empty for no passphrase):

  Enter same passphrase again:

  Your identification has been saved in /home/oracle/.ssh/id_dsa.

  Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.

  The key fingerprint is:

  33:d9:2a:e2:63:8c:95:f1:e9:78:da:31:e0:e2:79:a4 oracle@rac01

  [oracle@rac01 ~]$ cat ~/.ssh/id_rsa.pub 》》 ~/.ssh/authorized_keys

  [oracle@rac01 ~]$ cat ~/.ssh/id_dsa.pub 》》 ~/.ssh/authorized_keys

  If there is another node, we should copy the keys to the other node so that we can ssh to the remote node without being prompted for a password. That means we should the same steps (generate keys and copy to another node) at the node2.

  ssh rac02 cat ~/.ssh/id_rsa.pub 》》 ~/.ssh/authorized_keys

  ssh rac02 cat ~/.ssh/id_dsa.pub 》》 ~/.ssh/authorized_keys

  scp ~/.ssh/authorized_keys rac02:~/.ssh/authorized_keys

  [oracle@rac01 ~]$ ssh rac01 date

  [oracle@rac01 ~]$ ssh rac02 date

  [oracle@rac01 ~]$ ssh rac01-priv date

  [oracle@rac01 ~]$ ssh rac02-priv date

  切换至 rac02 执行

  [oracle@rac02 ~]$ ssh rac01 date

  [oracle@rac02 ~]$ ssh rac02 date

  [oracle@rac02 ~]$ ssh rac01-priv date

  [oracle@rac02 ~]$ ssh rac02-priv date

  ################## BEGIN ##################

  本次实验中ASMLib没有配置成功,最终还是asm直接使用raw disk,故这里只是做个记录,回头再研究原因

  [root@rac01 network-scripts]# /etc/init.d/oracleasm configure

  Configuring the Oracle ASM library driver.

  Default user to own the driver interface []: oracle

  Default group to own the driver interface []: dba

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

  Fix permissions of Oracle ASM disks on boot (y/n) [y]: y

  Writing Oracle ASM library driver configuration: [ OK ]

  Loading module “oracleasm”: [ OK ]

  Mounting ASMlib driver filesystem: [ OK ]

  Scanning system for ASM disks: [ OK ]

  /etc/init.d/oracleasm createdisk VOL1 /dev/sdg1

  /etc/init.d/oracleasm createdisk VOL2 /dev/sdh1

  /etc/init.d/oracleasm createdisk VOL3 /dev/sdi1

  /etc/init.d/oracleasm listdisks

  ################## END ##################

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

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

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