为何不用spfile也能启动实例?

hayseed 2003-02-10 11:30:58
版本9.2.0.1.0
我用oradim新建了一个实例,并设定了-pfile参数
然后将数据库文件考到相应位置,
然后我在net configuration assistant用本地网络服务名配置新建了一个主机字符串,
然后用sql*plus连接到数据库,并启动实例,可以启动。
9i中的启动不是要依靠spfile吗?可是连spfile没有,这个实例为何可启动?

...全文
38 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
eygle 2003-02-10
  • 打赏
  • 举报
回复
In Oracle9i,startup command will searches for the following files in this order:

1) Search for the spfile$ORACLE_SID.ora file in the default location,
2) If it does not exist, it looks for the spfile.ora; and
3) If this file is not found either, then it searches for the pfile by name init$ORACLE_SID.ora.

If you have no spfile,it will certainly use pfile to start the database.

eygle 2003-02-10
  • 打赏
  • 举报
回复
如果你没有设置使用spfile,那么数据库缺省地使用pfile启动
目录 一基本概念 1 1.Primary数据库 1 2.Standby数据库 1 逻辑standby 1 物理standby 1 二、物理datagurad创建步骤 2 1、 2 2、 2 三、主数据上的准备工作 2 1、设置主数据库为Force logging 2 2、建立password file 2 3、配置standby redo log 2 4、设置主数据库为 archiving 模式 3 5、设置初始化参数 3 6、通过pfile创建spfile并用新的spfile重起数据库,datagurard必须使用spfile 5 四、从数据库上的准备工作 6 1、在从数据库端创建主数据的datafiles的拷贝 6 2、为从数据库创建控制文件 6 3、拷贝刚才的主数据库pfile到从数据库服务器,重命名为pfilemystan.ora,并编辑如下 6 4、在从服务器段,创建dump和archived log所以需要的目录 7 5、从主服务器拷贝刚才创建的STAN.ctl到从服务器对应目录 8 6、拷贝主服务器的password文件到从服务器对应目录,改名为pwdstan.ora 8 7、创建数据库服务 8 8、配置主从数据库的监听(OracleNet) 8 9、在从服务器,设置环境变量 8 10、启动从数据库到nomount,并生成spfile 8 11、Start Redo apply 9 12.验证从数据库是否正常: 9 五、角色转换 9 1、角色转换介绍 9 Switchover 9 Failover 9 2、Switchovers 步骤 10 1) 验证是否能够完成switchover 10 2)在主数据库发起切换 10 3)关闭和重新启动实例 10 4)验证switchover状态 11 5)切换物理从数据库为主库 11 6)关闭并重新启动备用数据库 11 7)如果需要的话,重新启动日志应用服务 11 8)开始传送日志数据 11

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧