aix_11.2.0.4_quick_delete_rac_scripts

aix下快速删除11.2.0.4 Rac脚本

rm /etc/rc.d/rc2.d/K19ohasd
rm /etc/rc.d/rc2.d/S96ohasd
rm -f /etc/init.tfa
rm -f /etc/inittab.tfa
rm -f /etc/init.ohasd
cp /etc/inittab.no_tfa /etc/inittab
rm -rf /etc/inittab.crs
rm -rf /etc/inittab.no_crs
rm -rf /etc/inittab.no_tfa
rm -rf /etc/inittab.nocrs10205
rm -rf /etc/inittab.orig
rm -rf /etc/inittab.pre10205
rm -rf /etc/inittab.tfa
 
rm -rf /etc/oratab
rm -rf /etc/oraIn*
rm -rf /etc/oracle*
rm -rf /etc/ora*
rm -rf /tmp/.oracle
rm -rf /tmp/ora*
rm -rf /var/tmp/.oracle
rm -rf /tmp/CVU*
rm -rf /tmp/Ora*
rm -rf /home/grid/.oracle
rm -rf /usr/local/bin/dbhome
rm -rf /usr/local/bin/oraenv
rm -rf /usr/local/bin/coraenv
cd /u01
rm -rf app
mkdir -p /u01/app/11.2.0/grid
mkdir -p /u01/app/grid
mkdir -p /u01/app/oracle
mkdir -p /u01/app/oraInventory
chown -R grid:oinstall /u01/app
chmod -R 775 /u01/app
chown oracle:oinstall /u01/app/oracle
 
rm -rf /bill/ocrvote01/bill*
rm -rf /bill/ocrvote02/bill*
rm -rf /bill/ocrvote03/bill*
chown -R grid:oinstall /bill
chmod -R 775 /bill
此条目发表在 AIX, Oracle 分类目录。将固定链接加入收藏夹。

评论功能已关闭。