日期:2014-05-16 浏览次数:20492 次
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.
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
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)))