|
本帖最后由 botang 于 2017-5-5 09:05 编辑
上完1Z0-053闪回3
1Z0-052共19章(上完10章),1Z0-053共21章(上完5章)和1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的15章
上课时14号实验忘记收取结果,各个机器对应的表名,请自己核对下:
- select * from v$flashback_database_log;
- flashback database to timestamp
- to_timestamp('2017-05-02:20:11:00','YYYY-MM-DD:HH24:MI:SS');
- --
- select file_name , bytes from dba_data_files
- where tablespace_name='USERS';
-
- select sum(bytes)/1024/1024 from dba_free_space
- where tablespace_name='USERS';
-
- alter database datafile '+DATA/orcl/datafile/users.259.942957531'
- resize 5000000;
- select * from v$flashback_database_stat;
- select * from v$recovery_area_usage;
- select * from v$restore_point;
- create restore point rsp1 ;
- create restore point rsp2
- guarantee flashback database;
-
复制代码 磁带库配置:
- ### 3.10 Tape Begin
- ###
- yum -y install zlib-devel
- yum -y install mtx
- yum -y install mt-st
- yum -y install lsscsi
- yum -y install sg3_utils
- yum -y install ncompress
- wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/mhvtl.tgz
- wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/osb-10.3.0.3.0_linux32.zip
- wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/osb.txt
- wget -P /lib -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/ld-2.5.so
- wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/osb.sh
- wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/reuseosb.sh
- wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/lzo-2.02-2.el5.1.i386.rpm
- rpm -ivh /stage/lzo-2.02-2.el5.1.i386.rpm
- 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
- rpm -ivh /stage/lzo-devel-2.02-2.el5.1.i386.rpm
- wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/copytape-root.sh
- wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/revertape-root.sh
- cd /stage
- tar zxvf mhvtl.tgz
- rm -f /stage/mhvtl.tgz
- cd /stage
- unzip osb-10.3.0.3.0_linux32.zip
- rm -f /stage/osb-10.3.0.3.0_linux32.zip
- cd /stage/mhvtl-1.2
- useradd vtl
- echo oracle | passwd --stdin vtl
- mkdir /opt/mhvtl
- mkdir /etc/mhvtl
- chown -R vtl:vtl /opt/mhvtl
- chown -R vtl:vtl /etc/mhvtl
- make distclean
- cd /stage/mhvtl-1.2/kernel
- make
- make install
- cd /stage/mhvtl-1.2/
- make
- make install
- service mhvtl start
- perl -i -pe 's,CAPACITY=500,CAPACITY=8000,' /etc/mhvtl/mhvtl.conf
- chkconfig mhvtl on
- service mhvtl stop
- service mhvtl start
- mkdir -p /usr/local/oracle/backup
- sed -i.bak 's/192.168.0.254/127.0.0.1/g' /etc/resolv.conf
- ###
- ### 3.9 Tape End
复制代码
|
|