Bo's Oracle Station

查看: 2841|回复: 0

课程第3/4次(2018-06-24星期日上下午)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2018-6-25 10:21:42 | 显示全部楼层 |阅读模式
1. 对第1/2次课程的注意事项总结:
   http://124.16.180.178:8080/mysoftware_sec_bcsuite_OCM10g_OCM11g链接里的PXE服务器,安装时要运行3个脚本: studentlinux_stage2.sh/studentlinux_stage3.sh/studentlinux_stage4.sh   
   第1次U盘启动,
在[Continue] [Read-Only] [Skip]急救模式菜单,要选择[Skip]然后运行studentlinux_stage2.sh
  之后不会重启,自动进入
studentlinux_stage3.sh运行环境,已经chroot,所以hdx,y怎么填写这个问题,须要按照没有U盘时的盘符情况填写。  
  然后要重启1次,在[Continue] [Read-Only] [Skip]急救模式菜单,要选择[Continue]然后运行studentlinux_stage4.sh。结束

2. 《Oracle Database 11g: New Features for Administrators》vol3中的练习P1-P45是之后要用到的环境,一定要根据其中:
  Practices for Lesson 1 ......................................................................................................... 4
  Practice 1-1: Installing Oracle Grid Infrastructure for a Stand-Alone Server ............... 5
  Practice 1-2: Configuring ASM Cluster File System ................................................... 11
  Practices for Lesson 2 ....................................................................................................... 16
  Practice 2-1: Installing Oracle Database 11g Software ................................................ 17
  Practice 2-2: Creating a New Database ........................................................................ 19
  Practice 2-3: Using ASM Cluster File System Snapshots ............................................ 21
  去认真完成。对于ASM盘符在PXE出来的NEWFEATURE环境中的对应关系如下:
  +DATA:/dev/loop0  /dev/loop1  /dev/loop2  /dev/loop3
  +FRA:/dev/loop4  /dev/loop5  /dev/loop6  /dev/loop7
  +ACFS:/dev/vda3  /dev/vda5  /dev/vda6
  留下/dev/loop8  /dev/loop9备用

acfs.png

3. 装好以上这45页后,建议备份虚拟机,建议用以下命令(还是建议使用真机!!!,真机备份就是在rescue模式下,把整个操作系统tar出来):
  先关虚拟机,之后执行dd if=/dev/vol0/newfeature bs=4M | gzip >
newfeature.gz

4. 还原虚拟机:  

先关虚拟机,之后执行gunzip -c newfeature.gz | dd of=/dev/vol0/newfeature bs=4M

5. olr破坏实验:

  1. [oracle@station36 ~]$ ocrconfig  -local -export  logical.dmp
复制代码
  1. [oracle@station36 localhost]$ pwd
  2. /u01/app/oracle/product/11.2.0/grid/cdata/localhost
  3. [oracle@station36 localhost]$ ls
  4. local.ocr  station36.olr
  5. [oracle@station36 localhost]$ rm -f station36.olr
复制代码
  1. [oracle@station36 localhost]$ touch station36.olr
复制代码

  1. /u01/app/oracle/product/11.2.0/grid/bin/ocrconfig  -local -import  /home/oracle/logical.dmp
复制代码

6. Direct NFS的实验:
  在station90上启动rpcbind和nfs以及nfslock:
  编辑/etc/exports:

  1. /nfs_server    192.168.0.36(rw,sync)
复制代码
并chmod 602:602 /nfs_server(其中602:602是station36上的oracle和oinstall的uid和gid)

  在station36上启动portmap,并用sudo /usr/sbin/showmount -e 192.168.0.90查到:
  1. [root@station36 ~]# /usr/sbin/showmount -e 192.168.0.90
  2. Export list for 192.168.0.90:
  3. /nfs_server  192.168.0.36
复制代码
编辑/etc/fstab:
  1. /dev/NEW11grhel5/root   /                       ext3    defaults        1 1
  2. /dev/NEW11grhel5/u01    /u01                    ext3    defaults        1 2
  3. LABEL=/boot1            /boot                   ext3    defaults        1 2
  4. tmpfs                   /dev/shm                tmpfs   defaults        0 0
  5. devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
  6. sysfs                   /sys                    sysfs   defaults        0 0
  7. proc                    /proc                   proc    defaults        0 0
  8. LABEL=SWAP-vda7         swap                    swap    defaults        0 0
  9. 192.168.0.90:/nfs_server   /nfs_client          nfs     defaults       0 0  
  10.                                                                                           
复制代码
  1. mount -a
复制代码
station36上的/etc/oranfstab:
  1. server: station90
  2. path: 192.168.0.90
  3. local: 192.168.0.36
  4. export: /nfs_server  mount:/nfs_clinet
复制代码

建表空间:
  1. select  *  from dba_data_files;

  2. create tablespace testnfs
  3. datafile '/nfs_client/testnfs.dbf' size 20M autoextend on ;
复制代码
a.png







  

  





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-3-29 06:53 , Processed in 0.106778 second(s), 27 queries .

快速回复 返回顶部 返回列表