單例項刪除ASM例項
需要刪除一個asm例項,發現網上有一篇轉載過,本人已測試
[oracle@ligle-db ~]$ ps -ef | grep asm
oracle 4138 1 0 03:45 ? 00:00:00 asm_pmon_+ASM
oracle 4140 1 0 03:45 ? 00:00:00 asm_psp0_+ASM
oracle 4142 1 0 03:45 ? 00:00:00 asm_mman_+ASM
oracle 4144 1 0 03:45 ? 00:00:00 asm_dbw0_+ASM
oracle 4146 1 0 03:45 ? 00:00:00 asm_lgwr_+ASM
oracle 4148 1 0 03:45 ? 00:00:00 asm_ckpt_+ASM
oracle 4150 1 0 03:45 ? 00:00:00 asm_smon_+ASM
oracle 4152 1 0 03:45 ? 00:00:00 asm_rbal_+ASM
oracle 4154 1 0 03:45 ? 00:00:01 asm_gmon_+ASM
oracle 5309 4028 0 04:09 pts/0 00:00:00 grep asm
設定ORACLE_SID為ASM例項名,且進入ASM例項
[oracle@ligle-db ~]$ export ORACLE_SID=+ASM
[oracle@ligle-db ~]$ sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 29 04:10:17 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
檢查ASM例項上的磁碟組(DISKGROUP)
SQL> select name from v$asm_diskgroup;
NAME
------------------------------
LIGLE_ARCH1
SQL> drop diskgroup ligle_arch1 including contents; -->刪除磁碟組
Diskgroup dropped.
SQL> shutdown -->關閉ASM例項
ASM diskgroups dismounted
ASM instance shutdown
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
從CSS中刪除ASM例項資訊
[oracle@ligle-db ~]$ oradism -delete -asmsid +ASM
刪除ASM相關的引數檔案(pfile/spfile)
[oracle@ligle-db ~]$ cd $ORACLE_HOME/dbs
[oracle@ligle-db dbs]$ ls
ab_+ASM.dat hc_+ASM.dat initdw.ora init.ora lk+ASM orapw+ASM spfile+ASM.ora
[oracle@ligle-db dbs]$ rm -rf *+ASM*
[oracle@ligle-db dbs]$ cd $ORACLE_BASE/admin
[oracle@ligle-db admin]$ ls
+ASM
[oracle@ligle-db admin]$ rm -rf *
刪除/etc/oratab中關於ASM自動啟動的資訊
[oracle@ligle-db admin]$ vi /etc/oratab
#
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form.:
# $ORACLE_SID:$ORACLE_HOME:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
+ASM:/u01/app/oracle/product/10.2.0/db_1:N
轉載於:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15747463/viewspace-750217/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RAC+DG(asm單例項)ASM單例
- DophinScheduler 如何定期刪除日誌例項?
- JavaScript刪除元素節點程式碼例項JavaScript
- 【Oracle】ASM例項安裝入門OracleASM
- 刪除所有正在執行和退出的docker例項Docker
- 刪除字串中的html標籤程式碼例項字串HTML
- k8s透過api介面刪除例項K8SAPI
- 簡單介紹Python drop方法刪除列之inplace引數例項Python
- 呀!ASM例項起不來可咋整ASM
- 11.2.0.4單例項ASM安裝報錯ohasd failed to ... line 73.單例ASMAI
- ASM單例項安裝後,需要手動設定ASM的引數檔案ASM單例
- PHP 完整表單例項PHP單例
- Redis單例項安裝Redis單例
- 【ASK_ORACLE】Relink ASM單例項資料庫詳細步驟OracleASM單例資料庫
- php例項化物件的例項方法PHP物件
- YOLO例項分割預測後刪除視訊記憶體YOLO記憶體
- rac恢復到單例項單例
- 單例項mysql.yaml kubernetes單例MySqlYAML
- opengl簡單入門例項
- Spark 簡單例項(基本操作)Spark單例
- Oracle 11gR2 ASM例項記憶體管理OracleASM記憶體
- [20191128]11GR2 asm例項audit檔案.txtASM
- OkHttpClient例項HTTPclient
- unittest例項
- jQuery 例項jQuery
- canal同步mysql,監聽單例項,多例項配置MySql單例
- 例項QT程式 —— Qt單例不規則介面程式QT單例
- 【ASM】Oracle asm刪除磁碟組注意事項ASMOracle
- 利用白名單繞過360例項
- EventBus詳解及簡單例項單例
- Activiti的流程例項【ProcessInstance】與執行例項【Execution】
- 例項化list
- msfvenom使用例項
- 雙層 for 例項
- python socket例項Python
- pinctrl使用例項
- Draggable 拖拽例項
- python例項1Python
- 策略模式例項模式