zoukankan      html  css  js  c++  java
  • Oracle数据库使用pfile启动还是spfile启动---oracle

    查看数据库使用pfile启动还是spfile启动

    9i版本以后,一般是使用spfile启动,但前提是有这个spfile文件,如果同时存在spfile和pfile文件,会优先选择spfile模式启动数据库;如何判断使用哪种模式启动呢,可以使用下面的4种方法(推荐使用前面两种):
    1、show parameter pfile
    2、show parameter spfile
    注:用上面两种方法查看的时候,如果使用的是spfile模式启动会查看到spfiel路径;
    如果使用pfile文件启动,则都查不到路径的值(VALUE为空);


    3、使用v$spparameter视图查看---
    SQL> select decode(count(*),1,'spfile','pfile') from v$spparameter where rownum=1 and isspecified = 'TRUE';

    4、alert日志查看
    如果是pfile,会查看这个
    Using parameter settings in server-side pfile /u01/app/oracle/product/11.2.0/dbhome_1/dbs/initorcldg.ora
    如果是spfile,会查看这个
    Using parameter settings in server-side spfile /u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfileorcldg.ora



    注:
    pfile和spfile的默认位置:$ORACLE_HOME/network/admin            #使用oracle用户切换,如:$ cd $ORACLE_HOME/network/admin
    alert日志位置:/u01/app/oracle/diag/rdbms/orcl/orcl/trace/alert_orcl.log


  • 相关阅读:
    机器视觉行业分析
    lua sample code analysis
    My GPU info from "GPU Caps Viewer"
    网页hack程序编写
    debug redmine send email
    如何下载web资源
    看国内网络电视解决方案2
    看国内网络电视解决方案
    babel-polyfill使用与性能优化
    升级NGINX支持HTTP/2服务端推送
  • 原文地址:https://www.cnblogs.com/caodneg7/p/11215354.html
Copyright © 2011-2022 走看看