ORA-01555 caused by SQL statement below

Sun Jul 27 15:59:34 2014
ORA-01555 caused by SQL statement below (SQL ID: 6cttns598np15, Query Duration=1699 sec, SCN: 0x0001.086b282b):
INSERT INTO RP_RETAIL001 (ID, AD_CLIENT_ID, AD_ORG_ID, OWNERID, ISACTIVE, BILLDATE, DOCNO, RETAILBILLTYPE, CREATER, C_STORE_ID, DESCRIPTION, C_VIP_ID, SALESREP_ID, M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE_ID, QTY, PRICELIST, TOT_AMT_LIST, PRICEACTUAL, TOT_AMT_ACTUAL, DISCOUNT, TYPE, REFNO, PERCOST, M_PRODUCT_ALIAS_ID, MARKDISAMT, ITEM_DESCRIPTION, C_MARKBALTYPE_ID, STATUSTIME, AD_PI_ID, C_RETAILTYPE_ID) SELECT B.ID, B.AD_CLIENT_ID, B.AD_ORG_ID, B.OWNERID, B.ISACTIVE, A.BILLDATE, A.DOCNO, A.RETAILBILLTYPE, A.OWNERID AS CREATER, A.C_STORE_ID, A.DESCRIPTION, A.C_VIP_ID, B.SALESREP_ID, B.M_PRODUCT_ID, B.M_ATTRIBUTESETINSTANCE_ID, B.QTY, B.PRICELIST, B.TOT_AMT_LIST, B.PRICEACTUAL, B.TOT_AMT_ACTUAL, B.DISCOUNT, B.TYPE, A.REFNO, (SELECT K.PERCOST FROM FA_PRODUCT_CUSCOST K WHERE K.C_CUSTOMER_ID = A.C_CUSTOMER_ID AND K.M_PRODUCT_ID = B.M_PRODUCT_ID) AS PERCOST, B.M_PRODUCTALIAS_ID AS M_PRODUCT_ALIAS_ID, B.TOT_AMT_ACTUAL * 0, B.DESCRIPTION ITEM_DESCRIPTION, B.C_MARKBALTYPE_ID, A.STATUSTIME, :B5 , A.C_RETAILTYPE_ID FROM M_R
Sun Jul 27 16:12:03 2014

今天是周末,难得可以休息一下,晚上8点来到办公室查看下库的情况,发现有条日志报错,这条语句很熟悉了,也就是这几天一直和开发那边沟通的一条报表的存储过程,该语句近一段时间以来一直雄踞ADDM 性能分析中占Top SQL Statements第一位,在7月18号时该语句把undo表空间占满了,日志中出现ORA-01555 caused by SQL statement below 提示,所以马上查看UNDO表空间,

20:25:00 [email protected]> select sum(maxbytes)/1024/1024/1024,SUM(USER_BYTES)/1024/1024/1024 FROM dba_data_files where tablespace_NAME=‘UNDOTBS1‘;

SUM(MAXBYTES)/1024/1024/1024 SUM(USER_BYTES)/1024/1024/1024
---------------------------- ------------------------------
                  63.9999695                     63.9989624

Elapsed: 00:00:00.02
20:25:02 [email protected]> select sum(maxbytes)/1024/1024/1024,SUM(USER_BYTES)/1024/1024/1024 FROM dba_data_files where tablespace_NAME=‘UNDOTBS2‘;

SUM(MAXBYTES)/1024/1024/1024 SUM(USER_BYTES)/1024/1024/1024
---------------------------- ------------------------------
                  63.9999695                     63.9989624

20:10:46 [email protected]> show parameter undo

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
undo_management                      string      AUTO
undo_retention                       integer     900
undo_tablespace                      string      UNDOTBS1

这次表空间几乎没有怎么使用;实际上看表空间的大小我会通过OEM查看比较简单明了;

20:29:02 [email protected]> SELECT DISTINCT STATUS  ,COUNT(*)  , SUM(BYTES) / 1024 / 1024 / 1024   FROM DBA_UNDO_EXTENTS GROUP BY STATUS;

STATUS      COUNT(*) SUM(BYTES)/1024/1024/1024
--------- ---------- -------------------------
EXPIRED         2739                11.5249634
UNEXPIRED        957                1.08874512
ACTIVE             5                 .01171875

ORA-01555 caused by SQL statement below,布布扣,bubuko.com

时间: 2024-10-12 21:16:15

ORA-01555 caused by SQL statement below的相关文章

Error 1313: RETURN is only allowed in a FUNCTION SQL Statement

1.错误描述 14:07:26 Apply changes to rand_string Error 1313: RETURN is only allowed in a FUNCTION SQL Statement: CREATE PROCEDURE `rand_string` (n int) BEGIN DECLARE chars varchar(100) DEFAULT 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; DECLA

不用配置tnsnames.ora,直接通过PL/SQL访问远程数据库

不用配置tnsnames.ora,直接通过PL/SQL访问远程数据库

解决mysql的错误 CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1300 Invalid utf8 character string: '\xBF\xA5'

报错: CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 1300 Invalid utf8 character string: '\xBF\xA5' 解决方法: $currentPrice = $currentPrice * 1; => $currentPrice 原本是字符串的 数字,导致插入数据库失败. =>所以只要改成 数字 即可. =>字符串的 数字 ,乘以 1 就会变

java.sql.preparedstatement和java.sql.statement的区别

本文转自CSDN,然后整理了一遍.原文出处:CSDN JDBC(java database connectivity,java数据库连接)的api中的主要的四个类之一的java.sql.statement要求开发者付出大量的时间和精力.在使用statement获取JDBC访问时所具有的一个共通的问题是输入适当格式的日期和时间戳:2002-02-0520:56 或者 02/05/02 8:56 pm. 通过使用java.sql.preparedstatement,这个问题可以自动解决.一个prep

Viewing the Raw SQL Statement(xcode で)

Thanks to Core Data. Even without learning SQL and database, you’re able to perform create, select, update and delete operation. However, for those with database background, you may want to know the exact SQLs executed behind the scene. To enable SQL

PL/SQL: Statement ignored 异常 关于存储过程的调用

C:\Java\jdk8\bin\java -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\Installed\IntelliJ IDEA 2017.3.4\lib\idea_rt.jar=3706:D:\Installed\IntelliJ IDEA 2017.3.4\bin" -Dfile.encoding=UTF-8 -classpath "D:\Installed\IntelliJ IDEA 2017

ORA-00900:invalid SQL statement

1.错误描述 2.错误原因 show databases; 3.解决办法

Prepared SQL Statement Syntax

http://dev.mysql.com/doc/refman/5.7/en/sql-syntax-prepared-statements.html 1 CREATE TABLE t1 (a INT NOT NULL); 2 INSERT INTO t1 VALUES (4), (8), (11), (32), (80); 3 SET @table = 't1'; 4 SET @s = CONCAT('SELECT * FROM ', @table); 5 PREPARE stmt3 FROM

Explaining ORA-1555 Error (Doc ID 467872.1)

  To Bottom In this Document   Goal   Solution   References APPLIES TO: Oracle Database - Enterprise Edition - Version 9.0.1.0 to 12.1.0.1 [Release 9.0.1 to 12.1]Oracle Database Cloud Schema Service - Version N/A and laterOracle Database Exadata Expr