oracle数据库中坏块概念和检查脚本
oracle 数据库中坏块概念和检查脚本
$ more /temp/dbvrman.sh
#!/bin/ksh
#set env
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/10.2.0/db_1
export ORACLE_SID=orcl
export NLS_LANG="AMERICAN_AMERICA.zhs16gbk"
export PATH=$PATH:$ORACLE_HOME/bin
echo "-----------------------------start-----------------------------";date
#RMAN to verify datafile
$ORACLE_HOME/bin/rman target /<