oracle数据库启动的三个阶段

oracle数据库启动的三个阶段:nomount,mount,open

          nomount的启动:需要参数文件

          mount的启动:需要控制文件

          open的启动:需要所有的数据文件和日志文件,并且保证所有的数据文件和日志文件与控制文件中记录的名称和位置一致。

一般启动顺序为:nomount->mount->open

    

查看当前数据库的状态:select status from V$instance;

查看参数文件的位置:show parameter spfile;

查看控制文件的位置:show parameter control;

查看数据文件的位置:select file_name from dba_data_files;

启动数据库到nomount状态:SQL>startup nomount;

启动数据库到mount状态:SQL>startup mount;
启动数据库到opent状态:SQL>startup;


改变数据库状态到mount: SQL>alter database mount;

改变数据库状态到open: SQL>alter database open;
————————————————
版权声明:本文为CSDN博主「luckgrilwyy」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/luckgrilwyy/article/details/53333537

posted @ 2023-05-25 10:19  寻梦99  阅读(399)  评论(0)    收藏  举报