January 15, 2023

Best 15 Oracle ASM Interview Questions [2023]

15 Frequently asked Oracle ASM/DBA Interview Questions for freshers/experienced


1. What is the use of ASM (or) Why is ASM preferred over filesystem?
Answer:
ASM provides striping and mirroring.
a) Provides automatic load balancing over all the available disks, thus reducing hot spots in the file system.
b) Prevents fragmentation of disks, so you don’t need to manually relocate data to tune I/O performance.
c) Adding disks is straightforward – ASM automatically performs online disk reorganization when you add or remove storage.
d) Uses redundancy features available in intelligent storage arrays.
e)The storage system can store all types of database files.
f) Using disk groups makes configuration easier, as files are placed into disk groups.

2. What are the init parameters related to ASM?
Answer:
INSTANCE_TYPE = ASM
ASM_POWER_LIMIT = 11
ASM_DISKSTRING = '/dev/rdsk/*s2', '/dev/rdsk/c1*'
ASM_DISKGROUPS = DG_DATA, DG_FRA

3. What is rebalancing (or) what is the use of ASM_POWER_LIMIT?
Answer:
ASM_POWER_LIMIT is a dynamic parameter, which will be useful for rebalancing the data across disks.
Value can be 1(lowest) to 11 (highest).

4. What are the different types of redundancies in ASM & explain?
Answer:
  • Normal redundancy - for 2-way mirroring, requiring two failure groups, when ASM allocates an extent for a normal redundancy file, ASM allocates a primary copy and a secondary copy. ASM chooses the disk on which to store the secondary copy in a different failure group other than the primary copy.
  • High redundancy - for 3-way mirroring, requiring three failure groups, in this case, the extent is mirrored across 3 disks.
  • External redundancy - to not use ASM mirroring. This is used if you are using hardware mirroring or third-party redundancy mechanisms like RAID, Storage arrays.
5. When you will use external redundancy and what are the advantages of it?
Answer :

6. How to copy files to/from ASM from/to filesystem?
Answer :
By using ASMCMD cp command

7. How to find out the databases, which are using the ASM instance?
Answer :
ASMCMD> lsct
SQL> select DB_NAME from V$ASM_CLIENT;

8. What are the different types of stripings in ASM & their differences?
Answer:
Fine-grained striping
Coarse-grained striping

9. What happens if you miss "+" sign while adding datafile in ASM diskgroup ?
Answer :

10. What is the allocation unit and what is the default value of au_size and how to change it?
Answer:
Every ASM disk is divided into allocation units (AU). An AU is the fundamental unit of allocation within a disk group. A file extent consists of one or more AU. An ASM file consists of one or more file extents.
CREATE DISKGROUP disk_group_2 EXTERNAL REDUNDANCY DISK '/dev/sde1' ATRRIBUTE 'au_size' = '32M';
lsdg
select NAME,ALLOCATION_UNIT_SIZE from v$asm_diskgroup;

11. What are the background processes in ASM?
Answer:
  • ASMB - This ASMB process is used to provide information to and from cluster synchronization services used by ASM to manage the disk resources. It's also used to update statistics and provide a heartbeat mechanism.
  • RBAL, Re-Balance - RBAL is the ASM related process that performs rebalancing of disk resources controlled by ASM.
  • ARBx, Actual Rebalance - ARBx is configured by ASM_POWER_LIMIT, a slave for rebalancing operations.

12. What processes does the rebalancing?
Answer:
RBAL, ARBx

13. How to dismount the ASM disk group from a particular instance in RAC?
Answer :

14. How to add/remove disk to/from diskgroup?
Answer:
ALTER DISKGROUP data1 ADD DISK '/devices/diska5';
ALTER DISKGROUP disk_group_1 DROP DISK diska2;

15.
Answer:

4 comments:

  1. Hello There,


    In debt to you for making my learning on the Oracle ASM Interview Questions/FAQs area so hassle-free! I lay my faith on your writings.

    I am facing the below issue(Screen shot) with CREATE_JOB procedure. The issue is with CREDENTIAL_NAME attribute.

    More information on this:

    I tried to create the job for one of the predefined chain
    why I am using CREDENTIAL_NAME attribute is, in one of the chain step I am calling LINUX script.

    I read multiple articles and watched many videos about how to use this tool - and was still confused! Your instructions were easy to understand and made the process simple.


    Many Thanks,
    Uday

    ReplyDelete
  2. Very useful information,Thankyou so much for making this.

    ReplyDelete
  3. I loved your information..thank you so much..😍🥰😍😍💜❤

    ReplyDelete