我在服务器上安装了3个oracle dbs作为单独的用户。这三个都正常工作,直到服务器重启。之后,我无法启动数据库,我无法执行任何其他命令。
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed Oct 26 04:53:30 2016
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> shutdown abort
ORACLE instance shut down.
SQL> startup mount
ORA-03113: end-of-file on communication channel
SQL> shutdown abort
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SQL> startup
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
sql querires给出:
ERROR:
ORA-03114: not connected to ORACLE
连接到sqldeveloper会给出
An error was encountered performing the requested operation:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
01034. 00000 - "ORACLE not available"
*Cause: Oracle was not started up. Possible causes include the following
- The SGA requires more space than was allocated for it.
- The operating-system variable pointing to the instance is
improperly defined.
*Action: Refer to accompanying messages for possible causes and correct
the problem mentioned in the other messages.
If Oracle has been initialized, then on some operating systems,
verify that Oracle was linked correctly. See the platform
specific Oracle documentation.
Vendor code 1034
如何启动数据库和恢复数据。我可以使用lsnrctl start启动监听器。它工作正常。
警告日志文件::
Sun Oct 16 06:00:01 2016
Begin automatic SQL Tuning Advisor run for special tuning task "SYS_AUTO_SQL_TUNING_TASK"
End automatic SQL Tuning Advisor run for special tuning task "SYS_AUTO_SQL_TUNING_TASK"
Sun Oct 16 06:00:16 2016
Thread 1 cannot allocate new log, sequence 203
Private strand flush not complete
Current log# 1 seq# 202 mem# 0: /home/oracle/data/datafiles/db/redo01.log
Thread 1 advanced to log sequence 203 (LGWR switch)
Current log# 2 seq# 203 mem# 0: /home/oracle/data/datafiles/db/redo02.log
Sun Oct 16 18:05:38 2016
Thread 1 advanced to log sequence 204 (LGWR switch)
Current log# 3 seq# 204 mem# 0: /home/oracle/data/datafiles/db/redo03.log
Mon Oct 17 02:00:00 2016
Clearing Resource Manager plan via parameter
Mon Oct 17 06:00:04 2016
Thread 1 advanced to log sequence 205 (LGWR switch)
Current log# 1 seq# 205 mem# 0: /home/oracle/data/datafiles/db/redo01.log
Mon Oct 17 22:00:00 2016
Setting Resource Manager plan SCHEDULER[0x3003]:DEFAULT_MAINTENANCE_PLAN via scheduler window
Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter
Mon Oct 17 22:00:00 2016
Starting background process VKRM
Mon Oct 17 22:00:00 2016
VKRM started with pid=21, OS id=29144
Mon Oct 17 22:00:00 2016
Begin automatic SQL Tuning Advisor run for special tuning task "SYS_AUTO_SQL_TUNING_TASK"
End automatic SQL Tuning Advisor run for special tuning task "SYS_AUTO_SQL_TUNING_TASK"
Mon Oct 17 22:00:28 2016
Thread 1 cannot allocate new log, sequence 206
Private strand flush not complete
Current log# 1 seq# 205 mem# 0: /home/oracle/data/datafiles/db/redo01.log
Thread 1 advanced to log sequence 206 (LGWR switch)
Current log# 2 seq# 206 mem# 0: /home/oracle/data/datafiles/db/redo02.log
Mon Oct 17 22:30:25 2016
Thread 1 advanced to log sequence 207 (LGWR switch)
Current log# 3 seq# 207 mem# 0: /home/oracle/data/datafiles/db/redo03.log
Tue Oct 18 02:00:00 2016
Clearing Resource Manager plan via parameter
Tue Oct 25 11:22:27 2016
Starting ORACLE instance (normal)
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D566CD, {empty}] [flags: 0x8, count: 2]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 3]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 4]
Tue Oct 25 14:40:20 2016
Starting ORACLE instance (normal)
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D566CD, {empty}] [flags: 0x8, count: 2]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 3]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 4]
Tue Oct 25 14:53:23 2016
Starting ORACLE instance (normal)
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D566CD, {empty}] [flags: 0x8, count: 2]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 3]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 4]
Tue Oct 25 15:10:00 2016
Starting ORACLE instance (normal)
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D566CD, {empty}] [flags: 0x8, count: 2]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 3]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 4]
Tue Oct 25 15:34:28 2016
Starting ORACLE instance (normal)
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D566CD, {empty}] [flags: 0x8, count: 2]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 3]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 4]
Wed Oct 26 01:49:06 2016
Starting ORACLE instance (normal)
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D566CD, {empty}] [flags: 0x8, count: 2]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 3]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 4]
Wed Oct 26 01:49:34 2016
Starting ORACLE instance (normal)
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D566CD, {empty}] [flags: 0x8, count: 2]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 3]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 4]
Wed Oct 26 03:17:52 2016
Starting ORACLE instance (normal)
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D566CD, {empty}] [flags: 0x8, count: 2]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 3]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 4]
Wed Oct 26 04:01:42 2016
Starting ORACLE instance (normal)
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D566CD, {empty}] [flags: 0x8, count: 2]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 3]
Exception [type: SIGBUS, Non-existent physical address] [ADDR:0xEC8910] [PC:0x6D53DAD, {empty}] [flags: 0xA, count: 4]
编辑:(补充) 一切都已正确设置,并且在服务器重启之前它正常工作。它工作时间超过3个月,我已多次启动和关闭数据库。一直都很好,直到这个时候。
答案 0 :(得分:0)
正如其他人所说,这个问题太容易回答。另一方面,看起来您的unix环境对于相关数据库来说是不正确的。至少需要设置ORACLE_HOME和ORACLE_SID。数据库需要定义适当的初始化文件等,等等。
答案 1 :(得分:0)
请遵循以下指南: http://www.tecmint.com/oracle-database-11g-release-2-installation-in-linux/
它指导您在CentOS上完成Oracle的良好安装,或者您可以找到解决问题所需的内容。
答案 2 :(得分:-1)
your trouble is due to many thing like
-*invalid configuration reason why your have to set ORACLE_HOME and ORACLE_SID
-*invalid setting reason why your have to be sure that your oracle database instance is running up
~~~~sql
set ORACLE_HOME and ORACLE_SID
check if your database instance is running up, in case of misunderstanding check (this)[https://www.tecmint.com/oracle-database-11g-release-2-installation-in-linux/]
~~~~