CREATE DIRECTORY
UNDER ASM
DISKGROUP
In this activity, you will understand how to create directories
inside disk groups to place data. Unlike OS level commands,
Adding directories to ASM disk groups is little different.
There are two ways to do this:
Using ASMCMD utility
Using SQLPLUS (for ASM)
CREATE DIRECOTRY USING ASMCMD UTILITY
Type asmcmd at command prompt.
Under asmcmd, you can use many OS level commands like
ls – to list contents,
pwd – check present working directory,
mkdir – create new directory,.
rm – remove directory or file,
cp – copy file or directory
Let us create directory under RMANVOL diskgroup:
You can create multiple directories in one single command too
CREATE DIRECTORY USING SQLPLUS (FOR ASM)
Connect to Oracle (or grid) user and export Oracle home and
SID variables to point Grid home and ASM instance
Issue below SQL queries to create directories:
Courses | Projects | Bootcamps

Create Directory Under ASM Diskgroup

  • 1.
  • 2.
    In this activity,you will understand how to create directories inside disk groups to place data. Unlike OS level commands, Adding directories to ASM disk groups is little different. There are two ways to do this: Using ASMCMD utility Using SQLPLUS (for ASM)
  • 3.
    CREATE DIRECOTRY USINGASMCMD UTILITY Type asmcmd at command prompt. Under asmcmd, you can use many OS level commands like ls – to list contents, pwd – check present working directory, mkdir – create new directory,. rm – remove directory or file, cp – copy file or directory
  • 5.
    Let us createdirectory under RMANVOL diskgroup:
  • 6.
    You can createmultiple directories in one single command too CREATE DIRECTORY USING SQLPLUS (FOR ASM) Connect to Oracle (or grid) user and export Oracle home and SID variables to point Grid home and ASM instance
  • 7.
    Issue below SQLqueries to create directories:
  • 8.
    Courses | Projects| Bootcamps