查询当前实例的状态,v$instance是个视图
STATUS VARCHAR2(12) Status of the instance:
?STARTED – After STARTUP NOMOUNT
?MOUNTED – After STARTUP MOUNT or ALTER DATABASE CLOSE
?OPEN – After STARTUP or ALTER DATABASE OPEN
?OPEN MIGRATE – After ALTER DATABASE OPEN { UPGRADE | DOWNGRADE }