网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

11gasmpfile&spfile-创新互联

默认数据库安装完成,在ORACLE_HOME/dbs目录下并未发现ASM的pfile和spfile,手动创建pfile和pfile如下:

元氏ssl适用于网站、小程序/APP、API接口等需要进行数据传输应用场景,ssl证书未来市场广阔!成为创新互联公司的ssl证书销售渠道,可以享受市场价格4-6折优惠!如果有意向欢迎电话联系或者加微信: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
##创建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
##重启数据库
# /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

##发现已经可以检测到spfile
SQL> show parameter spfile;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
spfile                               string      /oracle/app/product/11.2.0/dbs
                                                 /spfile+ASM.ora
SQL> 
##创建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已经发现
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
...略..........................

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


当前名称:11gasmpfile&spfile-创新互联
本文网址:http://bjjierui.cn/article/ddooco.html

其他资讯