linux如何卸载oracle数据库实例,linux下删除oracle数据库实例
1、停止服務
首先用命令?lsnrctl stop
然后運行
sqlplus /nolog
sql> ??conn / as sysdba
sql> ??shutdown
2、查看實例進程并刪除
find $ORACLE_BASE/ -name $ORACLE_SID
/mnt/installer/oracle/flash_recovery_area/orcl
/mnt/installer/oracle/oradata/orcl
/mnt/installer/oracle/diag/rdbms/orcl
/mnt/installer/oracle/diag/rdbms/orcl/orcl
/mnt/installer/oracle/admin/orcl
/mnt/installer/oracle/cfgtoollogs/dbca/orcl
[oracle@rt1d20 /]$ rm -rf /mnt/installer/oracle/flash_recovery_area/orcl/
[oracle@rt1d20 /]$ rm -rf /mnt/installer/oracle/oradata/orcl/
[oracle@rt1d20 /]$ rm -rf /mnt/installer/oracle/diag/rdbms/orcl/
[oracle@rt1d20 /]$ rm -rf /mnt/installer/oracle/admin/orcl/
[oracle@rt1d20 /]$ rm -rf /mnt/installer/oracle/cfgtoollogs/dbca/orcl/
find $ORACLE_BASE/* -name '*[Bb][Tt][Ss][Dd][Bb]2*' | grep -v admin| grep -v ?oradata
如果沒有則跳過
$ cd mnt/installer/oracle/
$ ll
drwxr-x--- 2 oracle oinstall 4096 Jan ?8 16:50 admin
drwxr-xr-x 4 oracle oinstall 4096 Jan ?7 23:12 cfgtoollogs
drwxr-xr-x 2 oracle oinstall 4096 Jan ?7 23:15 checkpoints
drwxrwxr-x 4 oracle oinstall 4096 Jan ?7 23:12 diag
drwxr-x--- 3 oracle oinstall 4096 Jan ?8 16:49 flash_recovery_area
drwxr-x--- 2 oracle oinstall 4096 Jan ?8 16:49 oradata
drwxrwx--- 5 oracle oinstall 4096 Jan ?7 21:06 oraInventory
drwxr-xr-x 3 oracle oinstall 4096 Jan ?7 21:03 product
[oracle@rt1d20 oracle]$ rm -rf admin/
[oracle@rt1d20 oracle]$ rm -rf flash_recovery_area/
[oracle@rt1d20 oracle]$ rm -rf oradata/
3、刪除舊的實例配置項
vi etc/oratab
刪除最后一行:orcl:/mnt/installer/oracle/product/11.2.0/db_1:N
最后再重新靜默安裝數據庫實例
總結
以上是生活随笔為你收集整理的linux如何卸载oracle数据库实例,linux下删除oracle数据库实例的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 1038 打印图案
- 下一篇: vue项目静态图片不显示