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.

How Srvctl Modify Database SPFILE

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 26 Oct, 2023
  • 0 Comments
  • 1 Min Read

How Srvctl Modify Database SPFILE

In this post, we didn’t move the actual SPFILE, we just make a link to redirect it to the actual location. Follow the below steps :
    1. 1.   Make File Alias for Spfile.

1
2
3
4
5
6
7
8
9
10
ASMCMD> cd +DATA/PRIM/PARAMETERFILE
ASMCMD> ls -l
Type           Redund  Striped  Time             Sys  Name
PARAMETERFILE  UNPROT  COARSE   OCT 30 14:00:00  Y    spfile.271.1055166363
ASMCMD> cd ..
ASMCMD> mkalias PARAMETERFILE/spfile.271.1055166363 spfile
ASMCMD> ls -l spfile
Type           Redund  Striped  Time             Sys  Name
PARAMETERFILE  UNPROT  COARSE   OCT 30 14:00:00  N    spfile => +DATA/PRIM/PARAMETERFILE/spfile.271.1055166363
ASMCMD> exit

Modify SFILE Location for Database :

1
[oracle@node1 ~]$ srvctl modify database -d PRIM -spfile +DATA/PRIM/spfile

Let’s check the result.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[oracle@node1 ~]$ srvctl config database -d PRIM
Database unique name: PRIM
Database name: PRIM
Oracle home: /u01/app/oracle/product/19c/db_1
Oracle user: oracle
Spfile: +DATA/PRIM/spfile
Password file: +DATA/PRIM/pwfile
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools:
Disk Groups: DATA
Mount point paths:
Services:
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group: oper
Database instances: PRIM1
Configured nodes: node1
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed

Let’s restart the database to verify the new file.

1
2
3
4
5
6
7
8
9
[oracle@node1 ~]$ srvctl stop database -d PRIM
[oracle@node1 ~]$ srvctl start database -d PRIM
[oracle@node1 ~]$ sqlplus / as sysdba
...
SQL> show parameter spfile;
 
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
spfile                               string      +DATA/PRIM/spfile

Please Note :

 if you want to remove the alias files, don’t use rm, use rmalias command in ASMCMD to remove the links instead.

Hope it Helps!