- 浏览: 278142 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (220)
- oracle (45)
- extjs (2)
- jstl (8)
- tomcat (9)
- svn (2)
- 系统 (12)
- 工作日志 (4)
- flex (5)
- 乱码 (1)
- jsp (2)
- java (26)
- mysql (8)
- vmware (2)
- 其他 (4)
- acegi (1)
- yui (1)
- hibernate (1)
- javascript (10)
- Maven (2)
- 数据库 (3)
- html css (2)
- displaytag (6)
- 软件开发管理 (2)
- java模式 (2)
- springside (7)
- android (14)
- other (3)
- linux (1)
最新评论
-
yixiandave:
string2020 写道分布式应用 用户认证,应该是在统一的 ...
分布式应用注意简介 -
string2020:
分布式应用 用户认证,应该是在统一的一个地方验证吧
分布式应用注意简介 -
liusu:
1、listView 视图黑色 设置 cacheColorHi ...
android 注意 -
teamilk:
engine 是什么?怎么导呢,不会弄,请教下
H2 数据库数据导出 -
djb_daydayup:
哦,我看到源文件了!
How to use
Ver.2.00 ...
android screen monitor 手机屏幕共享
Oracle10g中每天晚上10点会进行自动搜集统计信息,数据库准时报下面这个错,已经忍它很久了,虽然对数据库没什么大影响,但是每天查日志看见也很不爽:
Tue Dec 19 22:00:03 2006
Errors in file /oracle/admin/shdt2/bdump/shdt2_j000_8466.trc:
ORA-12012: error on auto execute of job 8898
ORA-20000: ORA-20000: Content of the tablespace specified is not permanent or tablespace name is invalid
ORA-06512: at "SYS.PRVT_ADVISOR", line 1624
ORA-06512: at "SYS.DBMS_ADVISOR", line 186
ORA-06512: at "SYS.DBMS_SPACE", line 1344
ORA-06512: at "SYS.DBMS_SPACE", line 1560
Errors in file /oracle/admin/shdt2/bdump/shdt2_j000_8466.trc:
ORA-12012: error on auto execute of job 8898
ORA-20000: ORA-20000: Content of the tablespace specified is not permanent or tablespace name is invalid
ORA-06512: at "SYS.PRVT_ADVISOR", line 1624
ORA-06512: at "SYS.DBMS_ADVISOR", line 186
ORA-06512: at "SYS.DBMS_SPACE", line 1344
ORA-06512: at "SYS.DBMS_SPACE", line 1560
/oracle/admin/shdt2/bdump/shdt2_j000_8466.trc:
*** ACTION NAME:(AUTO_SPACE_ADVISOR_JOB) 2006-12-19 22:00:03.457
*** MODULE NAME:(DBMS_SCHEDULER) 2006-12-19 22:00:03.457
*** SERVICE NAME:(SYS$USERS) 2006-12-19 22:00:03.457
*** CLIENT ID:() 2006-12-19 22:00:03.457
*** SESSION ID:(487.15519) 2006-12-19 22:00:03.457
*** 2006-12-19 22:00:03.457
ORA-12012: error on auto execute of job 8898
ORA-20000: ORA-20000: Content of the tablespace specified is not permanent or tablespace name is invalid
ORA-06512: at "SYS.PRVT_ADVISOR", line 1624
ORA-06512: at "SYS.DBMS_ADVISOR", line 186
ORA-06512: at "SYS.DBMS_SPACE", line 1344
ORA-06512: at "SYS.DBMS_SPACE", line 1560
*** MODULE NAME:(DBMS_SCHEDULER) 2006-12-19 22:00:03.457
*** SERVICE NAME:(SYS$USERS) 2006-12-19 22:00:03.457
*** CLIENT ID:() 2006-12-19 22:00:03.457
*** SESSION ID:(487.15519) 2006-12-19 22:00:03.457
*** 2006-12-19 22:00:03.457
ORA-12012: error on auto execute of job 8898
ORA-20000: ORA-20000: Content of the tablespace specified is not permanent or tablespace name is invalid
ORA-06512: at "SYS.PRVT_ADVISOR", line 1624
ORA-06512: at "SYS.DBMS_ADVISOR", line 186
ORA-06512: at "SYS.DBMS_SPACE", line 1344
ORA-06512: at "SYS.DBMS_SPACE", line 1560
错误重现:
sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Dec 20 09:03:48 2006
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> exec dbms_space.auto_space_advisor_job_proc;
BEGIN dbms_space.auto_space_advisor_job_proc; END;
BEGIN dbms_space.auto_space_advisor_job_proc; END;
*
ERROR at line 1:
ORA-20000: Content of the tablespace specified is not permanent or tablespace
name is invalid
ORA-06512: at "SYS.PRVT_ADVISOR", line 1624
ORA-06512: at "SYS.DBMS_ADVISOR", line 186
ORA-06512: at "SYS.DBMS_SPACE", line 1344
ORA-06512: at "SYS.DBMS_SPACE", line 1560
ORA-06512: at line 1
ERROR at line 1:
ORA-20000: Content of the tablespace specified is not permanent or tablespace
name is invalid
ORA-06512: at "SYS.PRVT_ADVISOR", line 1624
ORA-06512: at "SYS.DBMS_ADVISOR", line 186
ORA-06512: at "SYS.DBMS_SPACE", line 1344
ORA-06512: at "SYS.DBMS_SPACE", line 1560
ORA-06512: at line 1
原因是某个表空间删除以后,数据库还会对它进行统计,这时候就会报错了。DBA_AUTO_SEGADV_CTL表存储的是自动搜集统计信息的对象,把出错的表空间对象从这删除就可以了。先确定是哪个表空间:
SQL> desc DBA_AUTO_SEGADV_CTL
Name Null? Type
----------------------------------------- -------- ----------------------------
AUTO_TASKID NUMBER
TABLESPACE_NAME VARCHAR2(30)
SEGMENT_OWNER VARCHAR2(30)
SEGMENT_NAME VARCHAR2(81)
SEGMENT_TYPE VARCHAR2(18)
PARTITION_NAME VARCHAR2(30)
STATUS VARCHAR2(40)
REASON VARCHAR2(40)
REASON_VALUE NUMBER
CREATION_TIME TIMESTAMP(6)
PROCESSED_TASKID NUMBER
END_TIME TIMESTAMP(6)
Name Null? Type
----------------------------------------- -------- ----------------------------
AUTO_TASKID NUMBER
TABLESPACE_NAME VARCHAR2(30)
SEGMENT_OWNER VARCHAR2(30)
SEGMENT_NAME VARCHAR2(81)
SEGMENT_TYPE VARCHAR2(18)
PARTITION_NAME VARCHAR2(30)
STATUS VARCHAR2(40)
REASON VARCHAR2(40)
REASON_VALUE NUMBER
CREATION_TIME TIMESTAMP(6)
PROCESSED_TASKID NUMBER
END_TIME TIMESTAMP(6)
SQL> select distinct tablespace_name from DBA_AUTO_SEGADV_CTL;
TABLESPACE_NAME
------------------------------
SYSAUX
NEWHC
NEWHCINDEX
STRMADMIN
------------------------------
SYSAUX
NEWHC
NEWHCINDEX
STRMADMIN
SQL> select tablespace_name from dba_tablespaces;
TABLESPACE_NAME
------------------------------
SYSTEM
UNDOTBS1
SYSAUX
TEMP
USERS
NEWHC
NEWHCINDEX
------------------------------
SYSTEM
UNDOTBS1
SYSAUX
TEMP
USERS
NEWHC
NEWHCINDEX
SQL> select count(*) from DBA_AUTO_SEGADV_CTL where tablespace_name='STRMADMIN';
COUNT(*)
----------
1
----------
1
SQL> select segment_owner, segment_name, status from DBA_AUTO_SEGADV_CTL where tablespace_name='STRMADMIN';
SEGMENT_OWNER SEGMENT_NAME STATUS
----------------------- ---------------------- ----------------------------------------
----------------------- ---------------------- ----------------------------------------
BEING_PROCESSED
SQL> delete DBA_AUTO_SEGADV_CTL where tablespace_name='STRMADMIN';
SQL> delete DBA_AUTO_SEGADV_CTL where tablespace_name='STRMADMIN';
1 row deleted.
SQL> commit;
Commit complete.
SQL> exec dbms_space.auto_space_advisor_job_proc;
PL/SQL procedure successfully completed.
结果到了晚上又报错,那条记录重新加到DBA_AUTO_SEGADV_CTL中去了,猜想可能是ts$中还保留着STRMADMIN表空间的信息,把ts$中的记录也删除就完全解决了。ts$中记录了从数据库建立以来所有的创建过的表空间信息。
发表评论
-
修改归档路径
2013-12-30 13:57 666修改 sql>alter system set log_ ... -
带数据库网站并发数
2011-04-08 16:50 929所以如果要设计一个1000并发的网站,需要一个数据库3个tom ... -
删除过期备份
2011-01-16 06:45 8071. 设置保留最近的3次备份 RMAN> con ... -
Oracle 数据库连接报错 ORA-12514
2010-09-16 13:49 1005hosts文件中有一个用来标识网络上可以访问的计算机的IP地址 ... -
改redo重做日志大小
2010-06-16 14:57 11111、查重做日志详细内容select a.status, b.m ... -
oracle 查日志每分钟的连接数
2010-06-01 17:05 816cat listener.log | grep '30-MAY ... -
异机恢复oracle
2010-06-01 14:37 1295环境准备:a、数据库版本一样。(我的是oracle10.2.0 ... -
oracle listener.log 过大
2010-05-20 17:00 909lsnrctl set log_status off mv ... -
oracle 重装 后用rman恢复 转载收藏
2010-05-06 16:27 1268重新安装OS,ORACLEL软件用RMAN恢复数据 OS和or ... -
oracle redolog 文件丢失恢复 sqlplus
2010-05-06 10:45 1178好用: sqlplus /nolog 0、connect ... -
oracle 控制文件丢失恢复 rman
2010-05-06 10:33 8060、和恢复spfile一样数据库start nomount 状 ... -
oracle spfile 文件丢失 恢复 rman
2010-05-06 09:56 10781、进入rman : rman target / a、RMA ... -
oracle 口令文件丢失恢复 orapwd
2010-05-06 09:45 9881、一般oracle的口令文$ORACLE_HOME/dbs( ... -
oracle rnam 备份方案
2010-05-05 16:16 1002oracle rnam 备份方案 周日晚上 oracle$& ... -
oracle rman
2010-05-04 13:48 10631、rman target / ... -
exp imp 移动数据 注意事项
2010-04-28 22:18 1152当 exp imp 移动数据时长时间未完成时,这时一定要看or ... -
oracle startup 错误诊断
2010-04-21 11:28 772oracle startup 错误大体诊断 1、startu ... -
oracle10g 归档日志文件夹设置
2010-04-20 11:00 13771、双归档备份。两份一样的规定。 alter system ... -
oracle9i 改归档模式
2010-04-18 12:56 765进入sqlplus重启动数据库到mount状态 a0 ... -
oracle9i 恢复 bad的回滚段导致的不能启动 备忘
2010-04-18 12:35 1095停电等意外关机会使orac ...
相关推荐
#### ORA-00029: No Lock on Object 当尝试操作一个没有锁的对象时触发。这可能是因为锁不存在或已被其他用户释放。 #### ORA-00030: Lock ID Not Found 指定的锁ID未找到时触发。这可能是由于锁ID无效或已被删除。...
#### ORA-00022: Error while getting ID of current transaction - **解释**: 在获取当前事务的ID时出错。 - **解决方案**: 确保数据库服务正常运行,检查日志以获取更多信息。 #### ORA-00023: Failed to open ...
#### ORA-00055: DML on a dictionary managed table/view is not supported - **描述**:不支持对字典管理的表/视图进行DML操作。 - **解决方法**:使用本地管理的表空间或禁用字典管理。 #### ORA-00056: '.' not...
- **ORA-02225**:表示仅当具有EXECUTE DEBUG权限时才能执行ALTER操作。 - **ORA-02226**:表示在修改段时,最大扩展次数的值无效。 - **ORA-02227**:表示在修改集群时,缺少必要的选项。 - **ORA-02228**:表示在...
关于CRA-00600:内部代码错误解决,这一主题主要聚焦于Oracle数据库中一个常见的技术难题——ORA-00600错误的识别与处理。ORA-00600是一种内部错误,通常指向Oracle数据库内核中的某种异常情况,其参数列表如[19004]...
4. ORA-02204: 不允许 ALTER, INDEX 和 EXECUTE 用于视图 - 在试图对视图执行非SELECT或ALTER操作时,可能会出现这个错误。 5. ORA-02205: 只有 SELECT 和 ALTER 权限对序列有效 - 序列对象仅允许SELECT和ALTER操作...
EXECUTE IMMEDIATE 'ALTER SYSTEM KILL SESSION ''' || p_sid || ',' || p_serial || ''''; RETURN 1; END kill_session; / ``` 4. 使用 Oracle 提供的死锁解决工具:Oracle提供了多种工具来解决死锁问题,例如...
7. **环境适应性**:描述中提到“源代码需要指定的不同Oracle环境下才能运行”,这意味着代码可能包含特定的数据库配置信息,比如TNSNames.ora文件的引用,该文件定义了Oracle数据库的网络连接信息。因此,部署到...
<load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>JeeCmsFront</servlet-name> <url-pattern>*.jhtml</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>...
4. ORA-02204: 不允许 ALTER, INDEX 和 EXECUTE 用于视图 这意味着试图对视图执行不被允许的操作,如ALTER、INDEX或EXECUTE。视图只能被SELECT、INSERT、UPDATE或DELETE。 5. ORA-02205: 只有 SELECT 和 ALTER ...
2. **ORA-12712: new character set must be a superset of old character set** - 解决方案:选择一个包含旧字符集的新字符集。 ```sql ALTER DATABASE CHARACTERSET INTERNAL_USE ZHS16GBK; ``` 3. **ORA-...
Usage: ora [-u user] [-i instance#] <command> [] General -u user/pass use USER/PASS to log in -i instance# append # to ORACLE_SID -sid <sid> set ORACLE_SID to sid -top # limit some large queries ...
5. **更改在线重做日志文件名称(Changing the Name of the Online Redo Logfile)** - 命令: ``` alter database rename file 'c:/oracle/oradata/oradb/redo01.log' to 'c:/oracle/oradata/redo01.log'; `...
EXECUTE DBMS_LOGMNR_D.BUILD('oradb.ora', 'c:\oracle\oradb\log'); EXECUTE DBMS_LOGMNR.ADD_LOGFILE('c:\oracle\oradata\oradb\redo01.log', DBMS_LOGMNR.NEW); EXECUTE DBMS_LOGMNR.ADD_LOGFILE('c:\oracle\...
5. **changing the name of the online redo logfile(更改在线重做日志文件名)** - 命令示例: - `ALTER DATABASE RENAME FILE 'c:/oracle/oradata/oradb/redo01.log' TO 'c:/oracle/oradata/redo01.log';` - ...
ORA-00942:表或视图不存在 若在程序中执行该语句则会报异常,这就需要我们在删除表前先判断该表是否存在,若存在则删除. DECLARE num NUMBER; BEGIN SELECT COUNT(1) INTO num FROM USER_TABLES WHERE TABLE_NAME = ...