在Oracle 11GR2 RAC中修改DATABASE spfile檔案的位置不是原來的$ORACLE_HOME/dbs/init<ORACLE_SID>.ora檔案了,如果我們手動修改了這個檔案,當使用sqlplus手動啟動資料庫的時候仍會生效,但是如果我們使用srvctl或者是crsctl工具來啟動資料時,就不會生效了。因為spfile檔案的路徑已經與叢集結束在一起了。當$ORACLE_HOME/dbs/init<ORACLE_SID>.ora中的內容與我們srvctl看到的內容不一致的時候,使用srvctl工具啟動資料庫時,會自己修改$ORACLE_HOME/dbs/init<ORACLE_SID>.ora檔案中的內容與其一致的。在$ORACLE_HOME/dbs/init<ORACLE_SID>.ora檔案第一行後可以看到#add by agent
- [oracle@11rac1 ~]$ srvctl modify database -d power -p +DATA3/power/parameterfile/spfile.257.794161021
- [oracle@11rac1 ~]$ srvctl config database -d power
- Database unique name: power
- Database name: power
- Oracle home: /u01/app/oracle/product/11.2.0/db_1
- Oracle user: oracle
- Spfile: +DATA3/power/parameterfile/spfile.257.794161021
- Domain:
- Start options: open
- Stop options: immediate
- Database role: PRIMARY
- Management policy: AUTOMATIC
- Server pools: power
- Database instances: power1,power2
- Disk Groups: DATA,ARCH,DATA3,ARCH1
- Mount point paths:
- Services:
- Type: RAC
- Database is administrator managed