码迷,mamicode.com
首页 > 数据库 > 详细

数据库启动步骤

时间:2017-08-06 17:06:58      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:leo   性能视图   param   down   database   employees   pfile   动态性   状态   

技术分享

启动实例:

$ ls $ORACLE_HOME/dbs/spfileorcl.ora

Strings  ORACLE_HOME/dbs/spfileorcl.ora

SQL> shutdown immediate

SQL> startup nomount

SQL> select status from v$instance;

SQL> select * from v$sgainfo;

SQL> select * from hr.employees;

SQL> conn hr/hr

 

SQL> startup mount或alter database mount;

SQL> show parameter control_files

SQL> select status from v$instance;检查实例状态

SQL> select * from v$controlfile;动态性能视图

SQL> select name from v$datafile;

SQL> select * from hr.employees;

SQL> conn hr/hr

 

SQL> startup或alter database open;

SQL> select status from v$instance;

SQL> select * from hr.employees;

SQL> conn hr/hr

数据库启动步骤

标签:leo   性能视图   param   down   database   employees   pfile   动态性   状态   

原文地址:http://www.cnblogs.com/shan2017/p/7295021.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!