数据库启动:
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.
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.