Professional Documents
Culture Documents
DIRECTORIES
----------------------------------------------------------------------------------
------------------
this following is optional that is it automatically creates the details but i did
long procedure by creating it manually
mkdir %ORACLE_BASE%\admin\+ASM\bdump
mkdir %ORACLE_BASE%\admin\+ASM\cdump
mkdir %ORACLE_BASE%\admin\+ASM\hdump
mkdir %ORACLE_BASE%\admin\+ASM\pfile
mkdir %ORACLE_BASE%\admin\+ASM\udump
----------------------------------------------------------------------------------
------------------
THAN GO TO D:\ DRIVE CREATE DIRECTORY FOR MAKING THE DISKS
D:\>mkdir asmdisks
D:\>cd asmdisks
AFTER THAT CREATE A PFILE NAME init+ASM.ora AND INCLUDE FOLLOWING DETAILS
INSTANCE_TYPE=ASM
DB_UNIQUE_NAME=+ASM
LARGE_POOL_SIZE=8M
ASM_DISKSTRING='d:\asmdisks\*'
_ASM_ALLOW_ONLY_RAW_DISKS=FALSE
THEN:-
D:\>SET ORACLE_SID=+ASM
D:\>set ORACLE_HOME=d:\oracle\product\10.2.0\db_1
D:\>set oracle_sid=+ASM
File created.
SO NOW WE CAN SEE THREE DISK FILES SO NOW WE CAN CREATE GROUPS
Diskgroup created.
AFTER THAT CREATE PFILE FROM SPFILE SO CHANGES ARE DONE IN PFILE ACCORDINGLY TO
SPFILE
File created.
SQL> alter system set asm_diskgroups= data scope=spfile;
System altered.
Now you can go ahead and use your DBCA and create a database and on step 6 of 13,
you can use Automatic Storage management as your Filesystem.
File Type
1)Control files (CONTROLFILE)
2)Datafiles (DATAFILE)
==================================================================================
==================
Rename a directory.
Rename an alias.
Delete an alias.
Modify template.
Drop template.
Rename an alias.
Delete an alias.
ASM Views
The ASM configuration can be viewed using the V$ASM_% views, which often contain
different information depending on whether they are queried from the ASM instance,
or a dependant database instance.
----------------------------------------------------------------------------------
------------------
VIEW ASM Instance DB Instance
----------------------------------------------------------------------------------
------------------
2)V$ASM_CLIENT Displays a row for each database Displays a row for the
ASM instance if the database
has open ASM files.
instance using a disk group managed
by the ASM instance.
----------------------------------------------------------------------------------
------------------
3)V$ASM_DISK Displays a row for each disk Displays a row for each
disk in disk groups use by the
database instance
discovered by the ASM instance,
including disks which are not
part of any disk group.
----------------------------------------------------------------------------------
------------------
4)V$ASM_DISKGROUP Displays a row for each disk Displays a row for each disk
group mounted by the local ASM
instance.
group discovered by the ASM instance.
----------------------------------------------------------------------------------
------------------
5)V$ASM_FILE Displays a row for each file for each Displays no rows.
disk group mounted by the ASM instance.
----------------------------------------------------------------------------------
------------------
6)V$ASM_OPERATION Displays a row for each file for each Displays no rows.
long running operation executing in
the ASM instance.
----------------------------------------------------------------------------------
------------------
7)V$ASM_TEMPLATE Displays a row for each template Displays a row for each
template Present in each disk
group mountedby the ASM instance with
which the database instance
communicates.
present in each disk group mounted
by the ASM instance.
==================================================================================
==================
ASM Filenames
There are several ways to reference ASM file. Some forms are used during creation
and some for referencing ASM files. The forms for file creation are incomplete,
relying on ASM to create the fully qualified name, which can be retrieved from the
supporting views. The forms of the ASM filenames are summarised below.
----------------------------------------------------------------------------------
------------------
Filename Type Format
----------------------------------------------------------------------------------
------------------
Fully Qualified ASM Filename
+dgroup/dbname/file_type/file_type_tag.file.incarnation
Numeric ASM Filename +dgroup.file.incarnation
Alias ASM Filenames +dgroup/directory/filename
Alias ASM Filename with Template +dgroup(template)/alias
Incomplete ASM Filename +dgroup
Incomplete ASM Filename with Template +dgroup(template)
==================================================================================
==================