Table of Contents
- 1 How do I view ASM disk groups?
- 2 Which of the following dynamic view can be used to know the status of the disk groups managed by ASM?
- 3 How do I get ASM disk details?
- 4 How many disk groups are there in ASM?
- 5 How do I check ASM Diskgroup attributes?
- 6 How do I create a disk group in ASM?
- 7 How do I list files in ASM?
- 8 What is the use of the V$ASM_client view on an oracle ASM instance?
- 9 How many rows are there in the V$ view for ASM?
- 10 What are the Oracle ASM disk group information views?
How do I view ASM disk groups?
To see all disks, use V$ASM_DISKGROUP instead. Contains one row for every Oracle ASM file in every disk group mounted by the Oracle ASM instance. In an Oracle ASM instance, contains one row for every active Oracle ASM long running operation executing in the Oracle ASM instance.
Which of the following dynamic view can be used to know the status of the disk groups managed by ASM?
Redundancy
Template name | Striping | Mirroring when using a normal redundancy disk group |
---|---|---|
Controlfile | Fine | 3-Way Mirroring |
Datafile | Coarse | 2-Way Mirroring |
Onlinelog | Fine | 2-Way Mirroring |
Archivelog | Coarse | 2-Way Mirroring |
What is ASM disk group?
Automatic Storage Management (ASM) is an integrated, high-performance database file system and disk manager. ASM groups the disks in your storage system into one or more disk groups. You manage a small set of disk groups and ASM automates the placement of the database files within those disk groups.
How do I get ASM disk details?
select group_number, name, state, type from v$asm_diskgroup;
- To check the asm instance is connected and running:
- To check the asm disks and their status:
- MISSING – Automatic Storage Management metadata indicates that the disk is known to be part of the Automatic Storage Management disk group, but no disk in the storage.
How many disk groups are there in ASM?
In 12c, an ASM instance can have up to 511 disk groups, the other limits are not changed.
What ASM View can be used to determine the databases connected to an ASM instance?
v$asm_client: Identifies databases using disk groups managed by the ASM instance. Contains no rows. v$asm_disk: Contains one row for every disk discovered by the ASM instance, including disks that are not part of any disk group.
How do I check ASM Diskgroup attributes?
How to List ASM Diskgroup Attributes
- You can use asmcmd lsattr or v$asm_attribute view to display the ASM diskgroup attributes.
- Synopsis.
- -G diskgroup – Disk group name.
- ASMCMD> lsattr -l -G DG_TEST.
- ASMCMD> lsattr -l -G DG_TEST scrub*
- Synopsis.
- -G diskgroup – Disk group name.
- ASMCMD> lsattr -l -G DG_TEST_DATA compatible*
How do I create a disk group in ASM?
- Create ASM disk. Get the Lun name from storage team. Lun Name – /dev/sda1.
- Check the ASM Disks, Check the newly added disk, $sudo oracleasm listdisks.
- Create the ASM Diskgroup. $sqlplus / as sysasm.
- Check the newly added disk in ASM Diskgroup.
How do I bring up an ASM instance?
Startup and shutdown the Oracle ASM instance
- Set the default Oracle_home environment variable to grid home where ASM is installed. EXPORT ORACLE_HOME=/up1/grid/12.2.0/dbhome_1.
- Connect with sqlplus. SQLPLUS / as sysasm.
- Start up the Oracle ASM Instance. SQL> STARTUP.
- Check the spfile location or otherwise set it with.
How do I list files in ASM?
How To List Files and Sizes within an ASM Disk Group
- select f. group_number, f. file_number, bytes, space, space/(1024*1024) “InMB”, a. name “Name”
- from v$asm_file f, v$asm_alias a.
- where f. group_number=a. group_number and f. file_number=a. file_number.
- order by f. group_number, f. file_number;
What is the use of the V$ASM_client view on an oracle ASM instance?
An example of the use of the V$ASM_CLIENT and V$ASM_DISKGROUP views on an Oracle ASM instance is shown in this example, which displays disk groups with information about the connected database client instances.
What is the difference between V$ASM_file and V $ASM_disk?
v$asm_disk: Contains one row for every disk discovered by the ASM instance, including disks that are not part of any disk group. Contains rows only for disks in the disk groups in use by that DB instance. v$asm_file: Contains one row for every ASM file in every disk group mounted by the ASM instance.
How many rows are there in the V$ view for ASM?
Contains no rows. The v$ views for ASM are built upon several ASM fixed tables, called x$ tables. The x$ tables are not really tables, they are C language structures inside the SGA RAM heap: The landmark book “Advanced Oracle SQL Tuning The Definitive Reference” is filled with valuable information on Oracle SQL Tuning.
What are the Oracle ASM disk group information views?
Views Containing Oracle ASM Disk Group Information View Description V$ASM_ALIAS Contains one row for every alias present V$ASM_ATTRIBUTE Displays one row for each attribute defi V$ASM_CLIENT In an Oracle ASM instance, identifies da V$ASM_DISK Contains one row for every disk discover