隨筆-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)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 双鸭山市| 启东市| 金昌市| 兰西县| 抚松县| 图片| 长治县| 沐川县| 吉林市| 含山县| 安丘市| 应城市| 衡阳市| 永兴县| 上犹县| 凤阳县| 滦平县| 曲周县| 伊通| 邓州市| 商城县| 温州市| 都昌县| 锦州市| 阆中市| 鹤壁市| 闻喜县| 岫岩| 巢湖市| 汉源县| 长子县| 许昌县| 旬邑县| 石狮市| 呼图壁县| 深州市| 井冈山市| 盐亭县| 香河县| 方正县| 潢川县|