日期:2014-05-16  浏览次数:20492 次

ubuntu中启动oracle数据库
前期准备:
如果你还没有在ubuntu上安装oracle请先看我之前到日志
?http://blog.csdn.net/backtracker/article/details/6624718
1.
$su oracle
$ sqlplus /nolog

将出现如下连接数据库信息:
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jul 8 10:14:54 2011
Copyright (c) 1982, 2005, Oracle. ?All rights reserved.
SQL>?

2.
SQL> ?conn sys/超级管理员密码 as sysdba;
将出现下面信息,表示已经链接
Connected.

3.启动数据库
SQL> startup
将出现下面提示信息,表示数据库已经启动
ORACLE instance started.
Total System Global Area ?322961408 bytes
Variable Size         ??104859000 bytes
Database Buffers       ??213909504 bytes
Redo Buffers           ????2973696 bytes
Database mounted.
Database opened.

4.开启监听
$su oracle
$ lsnrctl
将出现下面信息
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-JUL-2011 10:03:52
Copyright (c) 1991, 2005, Oracle. ?All rights reserved.
Welcome to LSNRCTL, type "help" for information.
开启监听:
LSNRCTL> start
出现下面信息表示已经成功开启监听,启动监听完成后可以通过客户端连接到oracle数据库服务器
Starting /opt/ora10g/dbms/bin/tnslsnr: please wait...
System parameter file is /opt/ora10g/dbms/network/admin/listener.ora
Log messages written to /opt/ora10g/dbms/network/log/listener.log
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))