|
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备用
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破坏实验:
- [oracle@station36 ~]$ ocrconfig -local -export logical.dmp
复制代码- [oracle@station36 localhost]$ pwd
- /u01/app/oracle/product/11.2.0/grid/cdata/localhost
- [oracle@station36 localhost]$ ls
- local.ocr station36.olr
- [oracle@station36 localhost]$ rm -f station36.olr
复制代码- [oracle@station36 localhost]$ touch station36.olr
复制代码
- /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:
- /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查到:
- [root@station36 ~]# /usr/sbin/showmount -e 192.168.0.90
- Export list for 192.168.0.90:
- /nfs_server 192.168.0.36
复制代码 编辑/etc/fstab:
- /dev/NEW11grhel5/root / ext3 defaults 1 1
- /dev/NEW11grhel5/u01 /u01 ext3 defaults 1 2
- LABEL=/boot1 /boot ext3 defaults 1 2
- tmpfs /dev/shm tmpfs defaults 0 0
- devpts /dev/pts devpts gid=5,mode=620 0 0
- sysfs /sys sysfs defaults 0 0
- proc /proc proc defaults 0 0
- LABEL=SWAP-vda7 swap swap defaults 0 0
- 192.168.0.90:/nfs_server /nfs_client nfs defaults 0 0
-
复制代码 station36上的/etc/oranfstab:
- server: station90
- path: 192.168.0.90
- local: 192.168.0.36
- export: /nfs_server mount:/nfs_clinet
复制代码
建表空间:
- select * from dba_data_files;
- create tablespace testnfs
- datafile '/nfs_client/testnfs.dbf' size 20M autoextend on ;
复制代码
|
|