问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

oracle停启数据库的步骤是什么啊?UNIX

发布网友 发布时间:2022-04-08 23:04

我来回答

3个回答

懂视网 时间:2022-04-09 03:25

在重启数据库的时候,忘记把一个应用关停了,想起来的时候,就ctrl+c,把数据库shutdown immediate 给强制停下了,把该应用再停止,然后shutdown immdiate,这时候数据报错了。

oracle@NMSSERVER1:~> sqlplus ‘/as sysdba‘

SQL*Plus: Release 11.2.0.3.0 Production on Tue May 3 18:07:35 2016

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> shutdown immediate;
^C^C^C^C^C

^C^C^C^C


ORA-12152: TNS:unable to send break message

 

SQL> SQL> SQL> SQL>
SQL> shutdown immediate;
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn‘t exist
SQL>
SQL>
SQL>
SQL> shutdown immediate;
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn‘t exist
SQL>
SQL>
SQL> startup force;
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn‘t exist
SQL> shutdown immediate;
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn‘t exist
SQL>

 

 

 

此时alert日志的情况如下:

Additional information: 1
Additional information: 32823
Tue May 03 18:05:16 2016
Errors in file /opt/oracle/app/oracle/diag/rdbms/pm4h/pm4h/trace/pm4h_m000_21073.trc:
ORA-51106: check failed to complete due to an error. See error below
ORA-48101: error encountered when attempting to read a file [block] [/opt/oracle/app/oracle/diag/rdbms/pm4h/pm4h/metadata/HM_FINDING.ams] [0]
ORA-48102: encountered the end-of-file when reading the file
Additional information: 64840
Additional information: 1
Additional information: 32823
Tue May 03 18:06:45 2016
Errors in file /opt/oracle/app/oracle/diag/rdbms/pm4h/pm4h/trace/pm4h_m000_25185.trc:
ORA-51106: check failed to complete due to an error. See error below
ORA-48101: error encountered when attempting to read a file [block] [/opt/oracle/app/oracle/diag/rdbms/pm4h/pm4h/metadata/HM_FINDING.ams] [0]
ORA-48102: encountered the end-of-file when reading the file
Additional information: 64840
Additional information: 1
Additional information: 32823
Tue May 03 18:07:25 2016
opidcl aborting process unknown ospid (58374) as a result of ORA-2396
Tue May 03 18:07:26 2016


***********************************************************************

Fatal NI connect error 12547, connecting to:
(LOCAL=NO)

VERSION INFORMATION:
TNS for Linux: Version 11.2.0.3.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
Time: 03-MAY-2016 18:07:26
Tracing not turned on.
Tns error struct:
ns main err code: 12547

TNS-12547: TNS:lost contact
ns secondary err code: 12560
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
opiodr aborting process unknown ospid (29320) as a result of ORA-609
Tue May 03 18:07:29 2016
opidcl aborting process unknown ospid (58149) as a result of ORA-2396
Tue May 03 18:07:44 2016
Errors in file /opt/oracle/app/oracle/diag/rdbms/pm4h/pm4h/trace/pm4h_m000_29720.trc:
ORA-51106: check failed to complete due to an error. See error below
ORA-48101: error encountered when attempting to read a file [block] [/opt/oracle/app/oracle/diag/rdbms/pm4h/pm4h/metadata/HM_FINDING.ams] [0]
ORA-48102: encountered the end-of-file when reading the file
Additional information: 64840
Additional information: 1
Additional information: 32823
Tue May 03 18:08:50 2016
Errors in file /opt/oracle/app/oracle/diag/rdbms/pm4h/pm4h/trace/pm4h_m000_31031.trc:
ORA-51106: check failed to complete due to an error. See error below
ORA-48101: error encountered when attempting to read a file [block] [/opt/oracle/app/oracle/diag/rdbms/pm4h/pm4h/metadata/HM_FINDING.ams] [0]
ORA-48102: encountered the end-of-file when reading the file
Additional information: 64840
Additional information: 1
Additional information: 32823
Tue May 03 18:10:03 2016
Shutting down instance (immediate)
Stopping background process SMCO
Shutting down instance: further logons disabled
Stopping background process QMNC
Tue May 03 18:10:05 2016
Stopping background process CJQ0
Stopping background process MMNL
Stopping background process MMON
License high water mark = 1426
Tue May 03 18:11:17 2016
ALTER DATABASE CLOSE NORMAL
Tue May 03 18:11:21 2016
SMON: disabling tx recovery
SMON: disabling cache recovery
^C

 

 

 

 

处理的措施:

1.查看共享内存资源
 ipcs -pmb

 

oracle@NMSSERVER1:~> ipcs -pm;

------ Shared Memory Creator/Last-op PIDs --------
shmid owner cpid lpid
3145744 oracle 14924 32669
3178513 oracle 14924 32669
3211282 oracle 14924 32669
3244051 oracle 14924 32669
3276820 oracle 14924 32669
3309589 oracle 14924 32669
3342358 oracle 14924 32669
3375127 oracle 14924 32669
3407896 oracle 14924 32669
3440665 oracle 14924 32733

oracle资源在占用,所以必须进行资源释放,执行如下操作:

oracle@NMSSERVER1:~> ipcrm -m 3145744

(这里必须一个一个的停,不能一次停 多个)

2.


SQL> shutdown immediate;
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
SQL> startup force;
ORACLE instance started.

Total System Global Area 5.1310E+10 bytes
Fixed Size 2240344 bytes
Variable Size 3.1139E+10 bytes
Database Buffers 2.0133E+10 bytes
Redo Buffers 36098048 bytes
Database mounted.
Database opened.

oracle数据库的一次异常起停处理。

标签:

热心网友 时间:2022-04-09 00:33

先用oracle用户登录
按如下执行以下命令,每行敲一下回车
1.停监听:
lsnrctl
stop
2.停数据库:
sqlplus /nolog
connect /as sysdba
shutdown immediate
exit

3.启数据库:
sqlplus /nolog
connect /as sysdba
startup
exit
4.启监听:
lsnrctl
start
exit

应该是这样,不启动和停止监听的话容易出问题的

热心网友 时间:2022-04-09 01:51

以oracle帐号登录unix,
#sqlplus "/ as sysdba"
启动:
SQL>startup;

停:
SQL>shutdown immediate;
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
怀孕四个月补钙可以吗 孕妇吃什么时候钙片好 孕妇吃什么钙片最好 怀孕补钙是必须的吗?孕妇钙片品牌哪个好? ...在长高的黄金发育时期,会影响容貌五官的变化吗,不仅没有发育到变... 冬至吃饺子的诗词 立冬吃饺子的暖心诗词 宁波全封闭学校有哪些 宁波市北仑区小港镇会计学校在那? 或红联镇也可以 江南教育集团小港中心幼儿园园况介绍 红联哪里有报暑假班 开劳务派遣公司需要什么条件? hpv56与hpv16哪个严重一些? hpv16 hpv18 hpv58哪个更严重 开劳务公司需要什么条件? 开劳务派遣公司需要什么条件 开劳务中介公司需要什么条件 开劳务派遣公司有什么要求? 后胎磨破了,要把它换了。优科豪马轮胎怎么样? 魔兽世界怎么下 魔兽世界如何改变默认区 魔兽世界服务器对应的都是哪些地区 WOW的服务器选项是在那个文件夹怎么改啊,我进过一个私服之后,就不能进其他服了 哪种魔兽世界的插件最好用,最多人用?魔兽世界有官方插件吗? 魔兽世界号被无故冻结是不是发送邮件到gm@wowchina,com就可以解决 急 魔兽世界这个游戏怎么样?它为什么好玩? 魔兽世界端口号是多少? 魔兽世界现在的网站是什么? 魔兽世界的端口号是多少? 魔兽世界把美服客户端改成国服怎么各改法? WOW是什么游戏?全称是? hpv16和hpv56那个严重 注册劳务服务公司需要什么条件 hpv56和hpv18哪个严重 HPV16和59哪个严重? 美的中央空调出风口有异味应该怎么处理 我想了解hpv56和16有什么区别 办理年审的时候,有一份《劳动用工备案花名册》是不是又叫做《劳动用工和社会保险增减员表》? 劳动合同备案的程序?去哪里备案? 办理用工登记,需要准备什么材料去社保?大家帮帮忙!! 淄博市劳动用工备案和就业失业登记人员信息表 怎么填写 小米手机开机显示小米标志后就黑屏是怎么回事? 为什么我办的移动花卡,但给我的确是联通? 在快手上办中国移动花卡,为什么收到货是联通卡? 劳动合同备案需要哪些资料,劳动合同范本 乌鲁木齐劳动用工年检所需的资料 劳动合同制职工花名册盖章问题 用人单位劳动用工(招工)备案表如何打印 劳动用工登记证如何办理? 干洗一件羽绒服要多久时间,多少钱? 干洗一件羽绒服最快多长时间,速度回答