NAME PATH
-----------------------------------------------------
DATADG_0000 /dev/mapper/data3
DATADG_0011 /dev/mapper/data2
REDODG_0000 /dev/mapper/data1
SQL> alter diskgroup datadg add disk '/dev/mapper/data5' rebalance power 8;
Diskgroup altered.
添加成功后,可以通过查看是否成功
SQL> select name,total_mb,free_mb,USABLE_FILE_MB from v$asm_diskgroup;
NAME TOTAL_MB FREE_MB USABLE_FILE_MB
------------------------------ ---------- ---------- --------------
DATADG 4198790 230530 230530
OCRDG 15360 14434 4657
RECODG 512078 507865 507865
REDODG 204800 42117 42117
致此,添加磁盘到dg完成。
4、为表空间添加文件
进入需要添加文件的数据库
[oracle@testrac1 ~]$ export ORACLE_SID=testdb1
[oracle@testrac1 ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.2.0.4.0 Production on Wed Jan 11 17:55:28 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> alter tablespace testdb_blob add datafile '+datadg' size 30720M;
Tablespace altered.
在这里,千万要注意使用"+"号,否则就会变成本地文件,导致一个节点无法使用。