oracle命令行查看实例名实例状态

查看实例名:

select name from v$database;

select instance_name from v$instance;

查看实例状态:

SQL> select status from v$instance;
 
STATUS
------------------------
STARTED
 
SQL> alter database mount;
 
数据库已更改。
 
SQL> select status from v$instance;
 
STATUS
------------
MOUNTED
 
SQL> alter database open;
 
数据库已更改。
 
SQL> select status from v$instance;
 
STATUS
------------
OPEN
 
SQL>

 

    原文作者:最强玩者
    原文地址: https://blog.csdn.net/weixin_42451919/article/details/90813864
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞