Oracle--ORA-01012问题
来源:互联网 发布:嘉实优化红利基金净值 编辑:程序博客网 时间:2024/06/05 21:08
sqlplus / as sysdba 登录oracle时报错ORA-01012: not logged on
发生原因:关闭数据库是shutdown 后面没有接关闭参数中的任何一个。
以下是shutdown使用的一些参数
nomal --->所有连接都断开时才能关闭;
transactional --->等待事务结束后,主动断开连接;
immediate --->主动断开事务和连接;
abort --->立刻关闭数据库,这个操作是危险的,不会同步数据,不触发检查点,回滚段直接清 空,相当于掉电,每次启动都要实例恢复。
[root@iZ2zeh44pi6rlahxj7s9azZ ~]# su - oracle
[oracle@iZ2zeh44pi6rlahxj7s9azZ ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 7 10:43:18 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected.
SQL> startup;
ORA-01012: not logged on
SQL> select * from all_tables;
select * from all_tables
*
ERROR at line 1:
ORA-01012: not logged on
Process ID: 0
Session ID: 0 Serial number: 0
第一种方法:
[root@iZ2zeh44pi6rlahxj7s9azZ ~]# ps -ef | grep ora_dbw0_$Oracle_SID
[root@iZ2zeh44pi6rlahxj7s9azZ ~]# kill -9 pid
[root@iZ2zeh44pi6rlahxj7s9azZ ~]# su - oracle
[oracle@iZ2zeh44pi6rlahxj7s9azZ oracle]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 7 11:31:23 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
SQL> startup
ORACLE instance started.
Total System Global Area 768294912 bytes
Fixed Size 2257192 bytes
Variable Size 503320280 bytes
Database Buffers 260046848 bytes
Redo Buffers 2670592 bytes
Database mounted.
Database opened.
第一种方法搞不定,那么用第二种方法(利用oracle的小工具)
[root@iZ2zeh44pi6rlahxj7s9azZ ~]# sysresv
IPC Resources for ORACLE_SID "dtstack" :
Shared Memory:
ID KEY
262145 0x00000000
294914 0x00000000
327683 0x7d9066c0
Semaphores:
ID KEY
786437 0x50f506b0
Unable to determine if Oracle instance alivefor sid "dtstack"
[root@iZ2zeh44pi6rlahxj7s9azZ ~]# ipcrm -m 262145
[root@iZ2zeh44pi6rlahxj7s9azZ ~]# ipcrm -m 294914
[root@iZ2zeh44pi6rlahxj7s9azZ ~]# ipcrm -m 327683
[root@iZ2zeh44pi6rlahxj7s9azZ ~]# su - oracle
[oracle@iZ2zeh44pi6rlahxj7s9azZ oracle]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 7 11:31:23 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
SQL> startup
ORACLE instance started.
Total System Global Area 768294912 bytes
Fixed Size 2257192 bytes
Variable Size 503320280 bytes
Database Buffers 260046848 bytes
Redo Buffers 2670592 bytes
Database mounted.
Database opened.
注:
sysresv的小工具来查看oracle占用的共享内存段和信号量等系统资源的一些关键信息
ipcs命令用于报告Linux中进程间通信设施的状态,显示的信息包括消息列表、共享内存和信号量的信息。
原文链接
阅读全文
0 0
- Oracle--ORA-01012问题
- oracle ORA-01033问题
- oracle连接问题ORA-00604,ORA-12705
- oracle连接问题ORA-00604,ORA-12705
- oracle监听问题 ORA-12514
- 【oracle】ORA-00600问题记录
- oracle数据库中ORA问题
- ORA-12505 oracle监听问题
- Oracle cursors问题:Ora-01000
- 解决oracle ORA-09925问题
- oracle ora-600 undo问题
- oracle ora-12154问题总结
- ORACLE EXPDP ORA-31626 问题
- Oracle ORA-01078 ORA-01565 ORA-17503 ORA-15077问题的解决(及ORA-15100和ora-1031)
- Oracle ORA-01078 ORA-01565 ORA-17503 ORA-15077问题的解决
- Oracle ORA-01078 ORA-01565 ORA-17503 ORA-15077问题的解决
- oracle exp ORA-31600和ORA-00942问题的解决
- help!ORACLE RMAN恢复问题ORA-01152 ORA-01110
- 9月7日云栖精选夜读:ApsaraDB for HBase性能/延时全面领先社区版本
- Oracle中insert into select和select into的用法(异常0RA-00905:missing keyword的解决)
- Caused by: java.lang.NoClassDefFoundError
- Python基础之文件读写和列表字典使用 ——《侠客行》文本分析
- vue事件修饰符
- Oracle--ORA-01012问题
- fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
- 返回最大天数(中兴机试-9.08)
- (Basic algorithm学习笔记)《基础算法三》- 枚举
- Android中对RecyclerView的帮助类Snaphelper使用
- 解决win10系统命令提示符添加路由时提示请求的操作需要提升问题
- Hadoop-2.7.2集群的搭建——集群学习日记
- STL nth_element神器
- UML使用2