隨筆-62  評論-29  文章-0  trackbacks-0
          goal:Remove the Oracle database form Linux platfrom completely
          steps:
          1.shutdown Oracle server and background processes.
          $env |grep ORA //查看環境變量
          $sqlplus /nolog
          sql>conn / as sysdba//登錄
          sql>select instance_name from v$instance;//查看實例名稱
          sql>!ps -ef | grep ora//查看后臺進程
          sql>shutdown immediate//停止實例
          sql>!ps -ef | grep ora//查看后臺進程
          sql>exit
           
          2.stop oracle lister
          $lsnrctl status//查看監聽服務狀態
           
          3.remove all the subdirectories and subfiles which in $ORACLE_HOME directory
          $startx//圖形界面刪除實例(可以在命令行直接刪除)
          $dbca
          $rm -rf /u01
           
          4.delete these three files: dbhome,oraenv,coraenv in the /usr/local/bin directory
          #cd /usr/local/bin
          #rm coraenv
          #rm oraenv
          #rm dbhome
           
          5.delete the two files: oratab and oralnst.loc in the /etc directory
          #cd /etc
          #rm oratab
          #rm oraInst.loc
           
          6.delete the directory: ORCLfmap and all its subfiles in the /opt directory
          #cd /opt
          #rm -rf ORCLlamp
           
          7.delete the oracle user and groups normally it would be oinstall and dba
          #cat /etc/passwd
          #cat /etc/group
          #userdel oracle
          #groupdel oinstall
          #groupdel dba
          #ps-ef |grep ORA
          #lsnrctl status


          posted on 2009-09-30 17:00 閱讀(272) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 改则县| 乌拉特中旗| 安多县| 安平县| 恩施市| 宁都县| 贡觉县| 丘北县| 温宿县| 苗栗县| 资源县| 弥勒县| 洛川县| 岚皋县| 西青区| 汨罗市| 高尔夫| 阿克苏市| 霍林郭勒市| 喀喇| 永昌县| 资阳市| 中宁县| 南溪县| 常熟市| 米泉市| 长葛市| 紫云| 安宁市| 上虞市| 莲花县| 大英县| 岱山县| 四川省| 江华| 屯留县| 武汉市| 台山市| 梁平县| 湄潭县| 甘泉县|