`
cyz22219
  • 浏览: 9790 次
  • 性别: Icon_minigender_1
  • 来自: 济南
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

启动数据库方法

阅读更多
数据库启动:
1、使用Oracle用户(ni) 登陆服务器
如果以root登陆系统,需要切换到ni 用户:
linux:~ # su - ni

2、启动dbconsole
查看console的运行状态
ni@linux:~> emctl status dbconsole

启动dbconsole
ni@linux:~> emctl start dbconsole
3、检查环境变量的设置ORACLE_SID
ni@linux:~> echo $ORACLE_SID
nidb
4、启动监听
ni@linux:~> lsnrctl start
5、登陆sqlplus,启动数据库实例
ni@linux:~> sqlplus '/as sysdba'
SQL> startup
ORACLE instance started.

Total System Global Area 1603411968 bytes
Fixed Size                  2213776 bytes
Variable Size             402655344 bytes
Database Buffers         1191182336 bytes
Redo Buffers                7360512 bytes
Database mounted.
Database opened.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics