Bo's Oracle Station

查看: 2163|回复: 0

课程第22/23次(2017-05-02星期二,2017-05-04星期四)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-5-3 09:49:29 | 显示全部楼层 |阅读模式
本帖最后由 botang 于 2017-5-5 09:05 编辑

上完1Z0-053闪回3
1Z0-0
52共19章(上完10章),1Z0-053共21章(上完5章)和1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的15章

上课时14号实验忘记收取结果,各个机器对应的表名,请自己核对下:

192.168.0.2
select  * from hr.t18857;
192.168.0.3
select  * from hr.t32439;
192.168.0.4
select  * from hr.t27669;
192.168.0.10
select  * from hr.t10776;
192.168.0.11
select  * from hr.t11427;
192.168.0.13
select  * from hr.t3621;
192.168.0.14
select  * from hr.t23289;
192.168.0.15
select  * from hr.t13986;
192.168.0.16
select  * from hr.t19619;
192.168.0.18
select  * from hr.t8201;
192.168.0.26
select  * from hr.t352;
192.168.0.37
select  * from hr.t22672;
192.168.0.39
select  * from hr.t26138;
192.168.0.61
select  * from hr.t4017;
192.168.0.76
select  * from hr.t18767;
192.168.0.90
select  * from hr.t32361;

  1. select  * from v$flashback_database_log;

  2. flashback database to timestamp
  3. to_timestamp('2017-05-02:20:11:00','YYYY-MM-DD:HH24:MI:SS');
  4. --
  5. select  file_name ,  bytes  from dba_data_files
  6.    where tablespace_name='USERS';
  7.    
  8.    select  sum(bytes)/1024/1024  from dba_free_space  
  9.      where  tablespace_name='USERS';

  10. alter database datafile '+DATA/orcl/datafile/users.259.942957531'
  11.   resize 5000000;

  12. select  * from v$flashback_database_stat;

  13. select  * from v$recovery_area_usage;

  14. select  * from v$restore_point;

  15. create restore point rsp1  ;

  16. create restore point rsp2
  17. guarantee flashback database;
复制代码
磁带库配置:
  1. ###   3.10 Tape Begin
  2. ###

  3. yum -y install zlib-devel
  4. yum -y install mtx
  5. yum -y install mt-st
  6. yum -y install lsscsi
  7. yum -y install sg3_utils
  8. yum -y install ncompress

  9. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/mhvtl.tgz
  10. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/osb-10.3.0.3.0_linux32.zip
  11. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/osb.txt
  12. wget -P /lib -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/ld-2.5.so
  13. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/osb.sh
  14. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/reuseosb.sh
  15. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/lzo-2.02-2.el5.1.i386.rpm
  16. rpm -ivh /stage/lzo-2.02-2.el5.1.i386.rpm
  17. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/lzo-devel-2.02-2.el5.1.i386.rpm
  18. rpm -ivh /stage/lzo-devel-2.02-2.el5.1.i386.rpm
  19. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/copytape-root.sh
  20. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/revertape-root.sh
  21. cd /stage
  22. tar zxvf mhvtl.tgz
  23. rm -f /stage/mhvtl.tgz
  24. cd /stage
  25. unzip osb-10.3.0.3.0_linux32.zip
  26. rm -f /stage/osb-10.3.0.3.0_linux32.zip
  27. cd /stage/mhvtl-1.2
  28. useradd vtl
  29. echo oracle | passwd --stdin vtl
  30. mkdir /opt/mhvtl
  31. mkdir /etc/mhvtl
  32. chown -R vtl:vtl /opt/mhvtl
  33. chown -R vtl:vtl /etc/mhvtl
  34. make distclean
  35. cd /stage/mhvtl-1.2/kernel
  36. make
  37. make install
  38. cd /stage/mhvtl-1.2/
  39. make
  40. make install
  41. service mhvtl start
  42. perl -i -pe 's,CAPACITY=500,CAPACITY=8000,' /etc/mhvtl/mhvtl.conf
  43. chkconfig mhvtl on
  44. service mhvtl stop
  45. service mhvtl start
  46. mkdir -p /usr/local/oracle/backup
  47. sed -i.bak 's/192.168.0.254/127.0.0.1/g' /etc/resolv.conf

  48. ###
  49. ###   3.9 Tape End
复制代码


回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-20 12:43 , Processed in 0.072047 second(s), 24 queries .

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