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;

猜你喜欢

转载自blog.csdn.net/luckgrilwyy/article/details/53333537