首页 技术 正文
技术 2022年11月21日
0 收藏 312 点赞 3,864 浏览 1313 个字

数据库使用一个月了,突然挂掉:错误代码17002 io异常:read timeout

解决:

1.登陆sql命令窗口

[oracle@hostname ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 28 10:58:59 2015

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

2.以管理员身份连接到数据库

SQL> connect sys/oracle as sysdba
Connected.

3.关闭数据库实例
SQL> shutdown abort        
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options

4.查看监听并关闭
[oracle@hostname~]$ lsnrctl status

[oracle@hostname~]$ lsnrctl stop

LSNRCTL for Linux: Version 11.2.0.1.0 – Production on 28-AUG-2015 11:15:32

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=iZ11gqfg6h1Z)(PORT=1521)))
The command completed successfully

5.重启监听
[oracle@hostname~]$ lsnrctl start

6.重启数据库

[oracle@hostname~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 28 11:30:25 2015

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

SQL> connect / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.

Total System Global Area 1486495744 bytes
Fixed Size            2213496 bytes
Variable Size         1124075912 bytes
Database Buffers      352321536 bytes
Redo Buffers            7884800 bytes
Database mounted.
Database opened.

特别需要注意的是,一定要先启动监听服务,再启动数据库,否则还是连不上的。

查看oracle 数据库服务:lsnrctl status

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,903
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,429
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,245
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,057
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,689
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,726