如果需要查看错误的大致意思,可以运行下面的命令:
[root@localhost ~]# su - oracle
[oracle@localhost ~]$ oerr ora 01507
01507, 00000, "database not mounted"
// *Cause: A command was attempted that requires the database to be mounted.
// *Action: If you are using the ALTER DATABASE statement via the SQLDBA
// startup command, specify the MOUNT option to startup;
// else if you are directly doing an ALTER DATABASE DISMOUNT,
// do nothing; else specify the MOUNT option to ALTER DATABASE.
// If you are doing a backup or copy, you must first mount the
// desired database.
// If you are doing a FLASHBACK DATABASE, you must first mount
// the desired database.
[oracle@localhost ~]$
ORA-04043:
输入如下命令:desc dictionary;
报错:ORA-04043 object dictionary does not exist。
解决:alter system flush shared_pool;
在SQL Developer中连接数据库时报错,主要的原因是由于参数值不正确,导致系统不能正常启动:
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期六 9月 28 10:54:02 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
已连接到空闲例程。
SQL> startup
ORA-00844: Parameter not taking MEMORY_TARGET into account
ORA-00851: SGA_MAX_SIZE 3154116608 cannot be set to more than MEMORY_TARGET 2550136832.
--出现这个问题时,之前修改了spfile中的sga_max_size,而这个值大于memory_target,
--所以必须修改spfile中的参数的值,但是由于系统启动不了,所以这里通过spfile创建pfile,
--然后修改pfile的值,再由pfile创建spfile,最后重启一下就可以了
SQL> create pfile='c:\pfile.ora' from spfile;
文件已创建。
SQL> edit c:\pfile.ora
SQL> create spfile from pfile='c:\pfile.ora';
文件已创建。
SQL> startup nomount;
ORACLE 例程已经启动。
Total System Global Area 2137886720 bytes
Fixed Size 2177456 bytes
Variable Size 989857360 bytes
Database Buffers 1140850688 bytes
Redo Buffers 5001216 bytes
SQL> alter database open;
alter database open
*
第 1 行出现错误:
ORA-01507: ??????
SQL> shutdown immediate;
ORA-01507: ??????
ORACLE 例程已经关闭。
SQL> startup;
ORACLE 例程已经启动。
Total System Global Area 2137886720 bytes
Fixed Size 2177456 bytes
Variable Size 989857360 bytes
Database Buffers 1140850688 bytes
Redo Buffers 5001216 bytes
数据库装载完毕。
数据库已经打开。
SQL>
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/653220/viewspace-1982374/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/653220/viewspace-1982374/