在学习Oracle时遇到的ORA-xxxx

如果需要查看错误的大致意思,可以运行下面的命令:

[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> 



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值