linux刪除ORACLE【weber出品必屬精品】

來源:互聯網
上載者:User

標籤:style   blog   color   使用   io   檔案   資料   for   

  1. 關閉資料庫
    sqlplus / as sysdbashutdown abort
  2.  清除oracle軟體
    su - oraclecd $ORACLE_BASErm -rf *
  3.  
    rm -rf /etc/ora*
  4.  
    刪除之前的設定的設定檔的內容如果之前改過版本,編輯檔案 /etc/redhat-release 把Red Hat Enterprise Linux Server release 4 (Tikanga) 改成版本5
  5.  
     vi /etc/pam.d/login 行末刪除以下內容session required pam_limits.so
  6.  
    vi /etc/security/limits.conf 行末刪除以下內容#use for oracle* soft nproc 2047* hard nproc 16384* soft nofile 1024* hard nofile 65536
  7.  
    修改核心參數刪除下面的內容到檔案 /etc/sysctl.conf 中:
  8.  
    kernel.shmall = 2097152--系統可以使用的記憶體頁的最大數量kernel.shmmax = 2147483648--單個共用記憶體段的最大大小,單位是位元組kernel.shmmni = 4096--記憶體頁的大小# semaphores: semmsl, semmns, semopm, semmnikernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=262144net.core.rmem_max=262144net.core.wmem_default=262144net.core.wmem_max=262144
  9. 基本上這些安裝時的設定檔給刪除後,oracle也就差不多從linux上移除了。只是還有些專為oracle建立的使用者和組沒有刪除,這些都不影響後續使用。一般oracle安裝好了以後很少會做大的升級或者刪除。切記:在rm的時候要萬分謹慎,要明白你刪的是什麼,不要做冤大頭。

     

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.