日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

linux中asm数据库卸载教程,删除Linux非rac环境下的ASM实例

發(fā)布時(shí)間:2023/12/19 linux 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux中asm数据库卸载教程,删除Linux非rac环境下的ASM实例 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

轉(zhuǎn)自:http://18904.com/archives/917.html

環(huán)境說(shuō)明:

操作系統(tǒng):CentOS 5 x86

數(shù)據(jù)庫(kù):Oracle 10.2.0.1 非RAC環(huán)境

ASM實(shí)例名:+ASM

參考:metalink node:311350.1

1、檢查ASM實(shí)例進(jìn)程

www.18904.com@oracle[/home/oracle]> ps -ef|grep asm|grep -v grep

oracle 4263 1 0 Jan20 ? 00:00:02 asm_pmon_+ASM

oracle 4265 1 0 Jan20 ? 00:00:00 asm_psp0_+ASM

oracle 4267 1 0 Jan20 ? 00:00:00 asm_mman_+ASM

oracle 4269 1 0 Jan20 ? 00:00:00 asm_dbw0_+ASM

oracle 4271 1 0 Jan20 ? 00:00:00 asm_lgwr_+ASM

oracle 4273 1 0 Jan20 ? 00:00:00 asm_ckpt_+ASM

oracle 4275 1 0 Jan20 ? 00:00:00 asm_smon_+ASM

oracle 4277 1 0 Jan20 ? 00:00:00 asm_rbal_+ASM

oracle 4279 1 0 Jan20 ? 00:00:06 asm_gmon_+ASM

2、設(shè)置ASM實(shí)例名

www.18904.com@oracle[/home/oracle]> export ORACLE_SID=+ASM

3、檢查是否有實(shí)例在使用ASM

www.18904.com@oracle[/home/oracle]> sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 – Production on Thu Jan 21 08:44:03 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

idle> select instance_name from v$asm_client;

no rows selected

如果有實(shí)例在使用ASM,需要首先停止這些相關(guān)的實(shí)例,并備份相關(guān)的datafile、controlfile等

4、檢查ASM實(shí)例上的diskgroup

idle> select name from v$asm_diskgroup;

NAME

——————————

DATA

5、刪除檢查到ASM實(shí)例上的diskgroup

idle> drop diskgroup data including contents;

Diskgroup dropped.

6、關(guān)閉ASM實(shí)例

idle> shutdown

ORA-15100: invalid or missing diskgroup name

ASM instance shutdown

idle> exit

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – Production

With the Partitioning, OLAP and Data Mining options

7、從css中刪除ASM實(shí)例信息

www.18904.com@oracle[/home/oracle]> oradism -delete -asmsid +ASM

8、刪除ASM實(shí)例相關(guān)的spfile、pfile等文件

www.18904.com@oracle[/home/oracle]> cd $ORACLE_HOME/dbs

www.18904.com@oracle[/oracle/app/10.1/dbs]> rm -f *+ASM*

www.18904.com@oracle[/oracle/app/10.1/dbs]> cd $ORACLE_BASE/admin

www.18904.com@oracle[/oracle/admin]> rm -rf +ASM

9、刪除/etc/oratab文件中的ASM實(shí)例相關(guān)行

刪除/etc/oratab文件中的如下行

其實(shí)刪除oracle 實(shí)例同樣要查出該文件的內(nèi)容

+ASM:/oracle/app/10.1:Y

10、用root用戶刪除cssd服務(wù)

www.18904.com@root[/oracle/app/10.1/bin]> ./localconfig delete

Stopping CSSD.

Shutting down CSS daemon.

Shutdown request successfully issued.

Shutdown has begun. The daemons should exit soon.

11、清除ASM使用的設(shè)備的文件頭信息

www.18904.com@oracle[/home/oracle]> cd /dev/raw/

www.18904.com@oracle[/dev/raw]> ls -l *

crw——- 1 oracle oinstall 162, 1 Jan 21 08:45 raw1

crw——- 1 oracle oinstall 162, 2 Jan 21 08:45 raw2

crw——- 1 oracle oinstall 162, 3 Jan 21 08:45 raw3

www.18904.com@oracle[/dev/raw]> dd if=/dev/zero of=/dev/raw/raw1 bs=1024 count=10

10+0 records in

10+0 records out

10240 bytes (10 kB) copied, 0.00396028 seconds, 2.6 MB/s

www.18904.com@oracle[/dev/raw]> dd if=/dev/zero of=/dev/raw/raw2 bs=1024 count=10

10+0 records in

10+0 records out

10240 bytes (10 kB) copied, 0.00485093 seconds, 2.1 MB/s

www.18904.com@oracle[/dev/raw]> dd if=/dev/zero of=/dev/raw/raw3 bs=1024 count=10

10+0 records in

10+0 records out

10240 bytes (10 kB) copied, 0.00532261 seconds, 1.9 MB/s

–end–

總結(jié)

以上是生活随笔為你收集整理的linux中asm数据库卸载教程,删除Linux非rac环境下的ASM实例的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。