linux oracle启动

本文介绍了在Linux环境下启动和重启Oracle数据库的具体步骤,包括使用lsnrctl命令启动监听器及通过sqlplus连接数据库进行操作的过程。此外还提供了重新启动监听器和服务的方法。

交谈中请勿轻信汇款、中奖信息、陌生电话,勿使用外挂软件。

董乾林  11:45:01

[oracle@DBserver01 ~]$ lsnrctl 

a.txt                   ccntbpm_2013_02_05.dmp  daochu.dmp              hz/                     response/               test_old_temp.dbf

.bash_history           ccntBpm.dbf             d:a.txt                 hz6sp1.dmp              rzsz-3.48.tar.gz        .vim/

.bash_logout            ccntBpm_temp.dbf        db_bak/                 inventory/              src/                    .viminfo

.bash_profile           ccnt.dmp                dmp/                    .kshrc                  .ssh/                   

.bashrc                 ccnt_final.dbf          exit                    .mozilla/               startup                 

b.txt                   ccnt_final_temp.dbf     expdat.dmp              oa.dbf                  test2012_10_29.dmp      

ccnt11g_2013_01_23.dmp  c.txt                   .gnome2/                oloa.dbf                test_old.dbf            

[oracle@DBserver01 ~]$ lsnrctl 

a.txt                   ccntbpm_2013_02_05.dmp  daochu.dmp              hz/                     response/               test_old_temp.dbf

.bash_history           ccntBpm.dbf             d:a.txt                 hz6sp1.dmp              rzsz-3.48.tar.gz        .vim/

.bash_logout            ccntBpm_temp.dbf        db_bak/                 inventory/              src/                    .viminfo

.bash_profile           ccnt.dmp                dmp/                    .kshrc                  .ssh/                   

.bashrc                 ccnt_final.dbf          exit                    .mozilla/               startup                 

b.txt                   ccnt_final_temp.dbf     expdat.dmp              oa.dbf                  test2012_10_29.dmp      

ccnt11g_2013_01_23.dmp  c.txt                   .gnome2/                oloa.dbf                test_old.dbf            

[oracle@DBserver01 ~]$ lsnrctl start

 

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-FEB-2013 11:42:32

 

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

 

Starting /opt/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...

 

TNSLSNR for Linux: Version 11.2.0.1.0 - Production

System parameter file is /opt/oracle/product/11.2.0/db_1/network/admin/listener.ora

Log messages written to /opt/oracle/diag/tnslsnr/DBserver01/listener/alert/log.xml

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))

 

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Start Date                21-FEB-2013 11:42:34

Uptime                    0 days 0 hr. 0 min. 0 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /opt/oracle/product/11.2.0/db_1/network/admin/listener.ora

Listener Log File         /opt/oracle/diag/tnslsnr/DBserver01/listener/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))

The listener supports no services

The command completed successfully

[oracle@DBserver01 ~]$ sqlplus / as sysdba

 

SQL*Plus: Release 11.2.0.1.0 Production on Thu Feb 21 11:42:53 2013

 

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

 

 

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

 

SQL> startup;       

ORA-01081: cannot start already-running ORACLE - shut it down first

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup;

ORACLE instance started.

 

Total System Global Area  534462464 bytes

Fixed Size                  2215064 bytes

Variable Size             398459752 bytes

Database Buffers          125829120 bytes

Redo Buffers                7958528 bytes

Database mounted.

Database opened.

SQL> 

 

 

 

 

 

 

 

 

 

方法二:

重新启动监听

lsnrctl  reload

 

重新启动服务

dbstart

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值