Oracle中的pfile和spfile
Oracle資料中spfile跟pfile各有許多不同的優缺點,pfile中的引數可以利用vi或者編輯器進行修改,但是spfile是二進位制格式,修改起來就不那麼容易了,那麼如何修改spfile中的引數呢?下面就具體介紹一下方法講解如何把spfile轉成pfile,並修改,然後結合一個例子進行實踐。
步驟:
1. create pfile from spfile.
2. update the pfile accordingly
3. shutdown the database
4. startup the database with pfile
5. create spfile from pfile and write down the spfile directory
6. shutdown the database
7. replace the pfile with the spfile directory like ’spfile=xxxxx’
8. startup with pfile
下面是一個具體的操作步驟:
SQL> show parameter spfile;
NAME TYPE VALUE
———————————— ———– ——————————
spfile string +DG_DB/orcldb/spfileorcldb.ora
SQL> show parameter process
NAME TYPE VALUE
———————————— ———– ——————————
aq_tm_processes integer 0
db_writer_processes integer 1
gcs_server_processes integer 2
global_txn_processes integer 1
job_queue_processes integer 1000
log_archive_max_processes integer 4
processes integer 150
SQL>
SQL> create pfile=’c:pfile.ora’ from spfile;
File created.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup pfile=’c:pfile.ora’
ORACLE instance started.
Total System Global Area 857903104 bytes
Fixed Size 1336380 bytes
Variable Size 457182148 bytes
Database Buffers 394264576 bytes
Redo Buffers 5120000 bytes
Database mounted.
Database opened.
SQL> show parameter process
NAME TYPE VALUE
———————————— ———– ——————————
aq_tm_processes integer 0
db_writer_processes integer 1
gcs_server_processes integer 2
global_txn_processes integer 1
job_queue_processes integer 1000
log_archive_max_processes integer 4
processes integer 500
SQL> create spfile=’+DG_DB/orcldb/spfile.ora’ from pfile=’c:pfile.ora’;
File created.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup pfile=’c:pfile.ora’
ORACLE instance started.
Total System Global Area 857903104 bytes
Fixed Size 1336380 bytes
Variable Size 457182148 bytes
Database Buffers 394264576 bytes
Redo Buffers 5120000 bytes
Database mounted.
Database opened.
SQL> show parameter process
NAME TYPE VALUE
———————————— ———– ——————————
aq_tm_processes integer 0
db_writer_processes integer 1
gcs_server_processes integer 2
global_txn_processes integer 1
job_queue_processes integer 1000
log_archive_max_processes integer 4
processes integer 500
SQL> show parameter spfile;
NAME TYPE VALUE———————————— ———– ——————————
spfile string +DG_DB/orcldb/spfile.ora[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8119050/viewspace-1007154/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle啟動找不到spfile或者pfile提示ORA-01078,利用init.ora手工建立Oracle
- 一次Oracle診斷案例-Spfile案例Oracle
- 不能建立pfile的問題
- 2.7.3 spfile的預設名稱和路徑
- 驗證一個和 initialization parameters pfile有關的052考試題
- oracle中的CURRVAL和NEXTVAL用法Oracle
- ORACLE中%TYPE和%ROWTYPE的使用Oracle
- Oracle中的for update 和 for update nowaitOracleAI
- RAC環境修改spfile的位置
- [重慶思莊每日技術分享]-如何檢視ORACLE SPFILE中已經修改,但還沒有生效的引數Oracle
- Oracle中Date和Timestamp的區別Oracle
- oracle中distinct和group by的區別Oracle
- Oracle中exists和in的效能差異Oracle
- ASM下遷移spfileASM
- 2.4.8 Step 7: 建立spfile
- 非空校驗在oracle和mysql中的用法OracleMySql
- Oracle中rownum和row_number()Oracle
- 2.7.5 SPFILE初始化引數
- [20201221]spfile設定問題.txt
- 2.7.4 建立伺服器引數(SPFILE)伺服器
- Oracle 12c和18c中的MGMTDB(下)Oracle
- Oracle監聽器中的XDB、XPT和PLSExtProc服務Oracle
- Oracle中單引號和雙引號的區別Oracle
- oracle的redo和undoOracle
- Oracle中 Update和insert結合語法Oracle
- 2.7 使用spfile管理伺服器引數伺服器
- oracle 中的事務Oracle
- Oracle 中的exception——(Raise)OracleExceptionAI
- Oracle中的sql hintOracleSQL
- MySQL和Oracle的區別MySqlOracle
- Oracle和MySQL的區別OracleMySql
- oracle中listagg()和wmsys.wm_concat()基本用法Oracle
- Oracle中獲取主機名和IP地址Oracle
- Oracle 12C 中CDB和PDB的引數檔案管理Oracle
- Oracle中的B樹索引Oracle索引
- oracle樹中prior的用法Oracle
- 11、Oracle中的檢視Oracle
- 關於oracle中的undoOracle
- Oracle 中varchar2 和nvarchar2區別Oracle