11g asm pfile & spfile
发表于:2024-10-17 作者:千家信息网编辑
千家信息网最后更新 2024年10月17日,默认数据库安装完成,在ORACLE_HOME/dbs目录下并未发现ASM的pfile和spfile,手动创建pfile和pfile如下:$ exit# su - grid$ srvctl config
千家信息网最后更新 2024年10月17日11g asm pfile & spfile
默认数据库安装完成,在ORACLE_HOME/dbs目录下并未发现ASM的pfile和spfile,手动创建pfile和pfile如下:
$ exit# su - grid$ srvctl config asmASM home: /oracle/app/product/11.2.0ASM listener: LISTENERSpfile: +DATADG/asm/asmparameterfile/registry.253.970045839 ##此文件并不存在ASM diskgroup discovery string: $ $ cd $ORACLE_HOME/dbs##目录下并没有ASM的pfile和spfile$ lsab_+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 asmASM home: /oracle/app/product/11.2.0ASM listener: LISTENERSpfile: /oracle/app/product/11.2.0/dbs/spfile+ASM.oraASM diskgroup discovery string: $ sqlplus / as sysasmSQL*Plus: Release 11.2.0.4.0 Production on Fri Mar 16 08:50:26 2018Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith the Automatic Storage Management option##创建spfileSQL> create spfile from memory;File created.SQL> ##查看spfile 是否生成SQL> !ls -ltotal 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 hasCRS-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' succeededCRS-2673: Attempting to stop 'ora.DATA.dg' on 'mng'CRS-2677: Stop of 'ora.DATA.dg' on 'mng' succeededCRS-2673: Attempting to stop 'ora.asm' on 'mng'CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'mng' succeededCRS-2677: Stop of 'ora.asm' on 'mng' succeededCRS-2673: Attempting to stop 'ora.cssd' on 'mng'CRS-2677: Stop of 'ora.cssd' on 'mng' succeededCRS-2673: Attempting to stop 'ora.evmd' on 'mng'CRS-2677: Stop of 'ora.evmd' on 'mng' succeededCRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'mng' has completedCRS-4133: Oracle High Availability Services has been stopped.# /oracle/app/product/11.2.0/bin/crsctl start hasCRS-4123: Oracle High Availability Services has been started.# su - grid$ srsqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Fri Mar 16 08:54:14 2018Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith the Automatic Storage Management option##发现已经可以检测到spfileSQL> show parameter spfile;NAME TYPE VALUE------------------------------------ ----------- ------------------------------spfile string /oracle/app/product/11.2.0/dbs /spfile+ASM.oraSQL> ##创建pfileSQL> create pfile from spfile;File created.SQL> exitDisconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith 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...略..........................
手动
数据
数据库
文件
目录
生成
路径
检测
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
安徽云采诚网络技术有限公司
深圳直销软件开发定制
搜狗快排软件开发聚顶科技
传奇4有多少个服务器
splite数据库的特点
新吴区运营软件开发预算
mysql数据库返回数据乱码
数据库表中插入多条数据
怎么测量服务器网络延迟
数据库改造支持ipv6
泉州市网络安全科技是干嘛的
趋势科技网络安全专家价格
服务器硬盘扩容
ns2k22服务器
电脑无法解析服务器dsn
网络安全靠人手抄报文字
芜湖蓝孵互联网科技有限公司招聘
重庆华为服务器虚拟化定制云主机
数据库什么是实体集及书写
陕西新才网络技术有限公司
刀箱服务器配置
EBSCO数据库推荐使用
2003年热血传奇有多少服务器
运满满软件开发
西工大计算机网络安全
怎样替换数据后的数据库
网络安全文明上网的4不
乡村振兴软件开发项目
网络安全中学生教育案例视频
数据库的登入