Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

Move Spfile to ASM

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 10 Sep, 2023
  • 0 Comments
  • 1 Min Read

Move Spfile to ASM

Move Spfile to ASM :
For ASM configured systems ( whether it is single database or RAC  ), it is a good idea to move the spfile to ASM. The PFILE under $ORACLE_HOME/dbs location actually points to the SPFILE on ASM disk. Follow the below steps to move spfile to ASM :
1. Create PFILE from SPFILE:
Check if your database is running with SPFILE, if yes then create pfile from spfile
1
2
3
4
show parameter spfile
NAME     TYPE VALUE
-------- ----------- ------------------------------
spfile string /oracle/app/oracle/product/dbs/spfilePRIM.ora
Create PFILE from the existing SPFILE
1
2
3
Create pfile from spfile;
 
File created.
2. Create Directory in ASM Diskgroup :
Connect to ASMCMD prompt (grid) and create directory to hold the SPFILE
1
ASMCMD> mkdir +DATA/PRIM/PARAM
3. Create SPFILE in ASM from PFILE :
Now that we have the PFILE, we can create SPFILE from PFILE directly inside ASM
1
2
3
4
5
6
7
SQL> create spfile='+DATA/PRIM/PARAM/spfilePRIM.ora' from pfile;
 
Rename the SPFILE under $ORACLE_HOME/dbs location
 
cd $ORACLE_HOME/dbs
 
mv spfilePRIM.ora spfilePRIM_old.ora
4. Point PFILE to SPFILE on ASM :
Edit the PFILE and just add one single line below to point SPFILE on ASM
1
2
3
vi initPRIM.ora
 
spfile='+DATA/PRIM/PARAM/spfilePRIM.ora'
Now Restart the database!
Hope it Helps!