默認(rèn)數(shù)據(jù)庫安裝完成,在ORACLE_HOME/dbs目錄下并未發(fā)現(xiàn)ASM的pfile和spfile,手動創(chuàng)建pfile和pfile如下:
元氏ssl適用于網(wǎng)站、小程序/APP、API接口等需要進行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)公司的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:18982081108(備注:SSL證書合作)期待與您的合作!
$ exit
# su - grid
$ srvctl config asm
ASM home: /oracle/app/product/11.2.0
ASM listener: LISTENER
Spfile: +DATADG/asm/asmparameterfile/registry.253.970045839 ##此文件并不存在
ASM diskgroup discovery string:
$
$ cd $ORACLE_HOME/dbs
##目錄下并沒有ASM的pfile和spfile
$ ls
ab_+ASM.dat hc_+ASM.dat init.ora orapw+ASM
$
##手動指定spfile 的路徑
$srvctl modify asm -p /oracle/app/product/11.2.0/dbs/spfile+ASM.ora
$ srvctl config asm
ASM home: /oracle/app/product/11.2.0
ASM listener: LISTENER
Spfile: /oracle/app/product/11.2.0/dbs/spfile+ASM.ora
ASM diskgroup discovery string:
$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Fri Mar 16 08:50:26 2018
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Automatic Storage Management option
##創(chuàng)建spfile
SQL> create spfile from memory;
File created.
SQL>
##查看spfile 是否生成
SQL> !ls -l
total 56
-rw-rw---- 1 grid oinstall 1676 Mar 07 10:02 ab_+ASM.dat
-rw-rw---- 1 grid oinstall 1544 Mar 16 08:44 hc_+ASM.dat
-rw-r--r-- 1 grid oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 grid oinstall 1536 Mar 06 09:10 orapw+ASM
-rw-r----- 1 grid oinstall 11776 Mar 16 08:50 spfile+ASM.ora ##文件已生成
SQL>
$ which crsctl
/oracle/app/product/11.2.0/bin/crsctl
$ exit
##重啟數(shù)據(jù)庫
# /oracle/app/product/11.2.0/bin/crsctl stop has
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'mng'
CRS-2673: Attempting to stop 'ora.mngdb.db' on 'mng'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'mng'
CRS-2677: Stop of 'ora.mngdb.db' on 'mng' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'mng'
CRS-2677: Stop of 'ora.DATA.dg' on 'mng' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'mng'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'mng' succeeded
CRS-2677: Stop of 'ora.asm' on 'mng' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'mng'
CRS-2677: Stop of 'ora.cssd' on 'mng' succeeded
CRS-2673: Attempting to stop 'ora.evmd' on 'mng'
CRS-2677: Stop of 'ora.evmd' on 'mng' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'mng' has completed
CRS-4133: Oracle High Availability Services has been stopped.
# /oracle/app/product/11.2.0/bin/crsctl start has
CRS-4123: Oracle High Availability Services has been started.
# su - grid
$ srsqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Fri Mar 16 08:54:14 2018
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Automatic Storage Management option
##發(fā)現(xiàn)已經(jīng)可以檢測到spfile
SQL> show parameter spfile;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /oracle/app/product/11.2.0/dbs
/spfile+ASM.ora
SQL>
##創(chuàng)建pfile
SQL> create pfile from spfile;
File created.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Automatic Storage Management option
$ cd $ORACLE_HOME/dbs
$ ls -l
##pfile已經(jīng)發(fā)現(xiàn)
total 72
-rw-rw---- 1 grid oinstall 1676 Mar 16 08:53 ab_+ASM.dat
-rw-rw---- 1 grid oinstall 1544 Mar 16 08:53 hc_+ASM.dat
-rw-r--r-- 1 grid oinstall 5242 Mar 16 08:54 init+ASM.ora
-rw-r--r-- 1 grid oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 grid oinstall 1536 Mar 06 09:10 orapw+ASM
-rw-r----- 1 grid oinstall 11776 Mar 16 08:50 spfile+ASM.ora
$ more init+ASM.ora ##pfile讀寫
*._aggregation_optimization_settings=0
*._always_anti_join='CHOOSE'
*._always_semi_join='CHOOSE'
*._and_pruning_enabled=TRUE
...略..........................
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
網(wǎng)站標(biāo)題:11gasmpfile&spfile-創(chuàng)新互聯(lián)
鏈接分享:http://aaarwkj.com/article20/ddooco.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供手機網(wǎng)站建設(shè)、動態(tài)網(wǎng)站、小程序開發(fā)、面包屑導(dǎo)航、ChatGPT、關(guān)鍵詞優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容