ORA-03001: unimplemented feature [message #554555] |
Tue, 15 May 2012 09:17 |
dba_7722
Messages: 197 Registered: August 2010 Location: Delhi
|
Senior Member |
|
|
Hello Expert,
Please suggest for error: ORA-03001: unimplemented feature.
SQL> SELECT /*+ PARALLEL (a 8) PARALLEL (b 8) */
SUM (space_used_delta) / 1024 / 1024 "USED_MB",
2 3 SUM (c.bytes) / 1024 / 1024 "TOTAL_MB",
4 ROUND (SUM (space_used_delta) / SUM (c.bytes) * 100, 2) || '%'"PERCENT"
5 FROM dba_hist_snapshot sn,dba_hist_seg_stat a,
6 dba_objects b,
7 dba_segments c
8 WHERE end_interval_time > TRUNC (SYSDATE) - 7
9 AND sn.snap_id = a.snap_id
10 AND b.object_id = a.obj#
11 AND b.owner = c.owner
AND b.object_name = c.segment_name
12 13 AND c.owner = 'COMAPPO'
14 AND space_used_delta > 0;
FROM dba_hist_snapshot sn,dba_hist_seg_stat a,
*
ERROR at line 5:
ORA-03001: unimplemented feature
SQL>
All the tables are present, still..??
|
|
|
|
Re: ORA-03001: unimplemented feature [message #554558 is a reply to message #554556] |
Tue, 15 May 2012 09:31 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
It works for me:orcl> SELECT /*+ PARALLEL (a 8) PARALLEL (b 8) */
2 SUM (space_used_delta) / 1024 / 1024 "USED_MB",
3 SUM (c.bytes) / 1024 / 1024 "TOTAL_MB",
4 ROUND (SUM (space_used_delta) / SUM (c.bytes) * 100, 2) || '%'"PERCENT"
5 FROM dba_hist_snapshot sn,dba_hist_seg_stat a,
6 dba_objects b,
7 dba_segments c
8 WHERE end_interval_time > TRUNC (SYSDATE) - 7
9 AND sn.snap_id = a.snap_id
10 AND b.object_id = a.obj#
11 AND b.owner = c.owner
12 AND b.object_name = c.segment_name
13 AND c.owner = 'COMAPPO'
14 AND space_used_delta > 0;
USED_MB TOTAL_MB PERCENT
---------- ---------- -----------------------------------------
%
orcl> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for 32-bit Windows: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
orcl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: ORA-03001: unimplemented feature [message #581122 is a reply to message #554555] |
Tue, 02 April 2013 06:09 |
|
fladehis
Messages: 7 Registered: April 2013
|
Junior Member |
|
|
dba_7722 wrote on Tue, 15 May 2012 09:17Hello Expert,
Please suggest for error: ORA-03001: unimplemented feature.
SQL> SELECT /*+ PARALLEL (a 8) PARALLEL (b 8) */
SUM (space_used_delta) / 1024 / 1024 "USED_MB",
2 3 SUM (c.bytes) / 1024 / 1024 "TOTAL_MB",
4 ROUND (SUM (space_used_delta) / SUM (c.bytes) * 100, 2) || '%'"PERCENT"
5 FROM dba_hist_snapshot sn,dba_hist_seg_stat a,
6 dba_objects b,
7 dba_segments c
8 WHERE end_interval_time > TRUNC (SYSDATE) - 7
9 AND sn.snap_id = a.snap_id
10 AND b.object_id = a.obj#
11 AND b.owner = c.owner
AND b.object_name = c.segment_name
12 13 AND c.owner = 'COMAPPO'
14 AND space_used_delta > 0;
FROM dba_hist_snapshot sn,dba_hist_seg_stat a,
*
ERROR at line 5:
ORA-03001: unimplemented feature
SQL>
All the tables are present, still..??
at line 4, add a space between '%' and "PERCENT"
|
|
|
|
|
|
|
|
|
|
|
Re: ORA-03001: unimplemented feature [message #581148 is a reply to message #581146] |
Tue, 02 April 2013 08:10 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
fladehis wrote on Tue, 02 April 2013 08:58Michel Cadot wrote on Tue, 02 April 2013 07:53SQL> select PLATFORM_NAME from sys.DBA_REGISTRY_DATABASE;
PLATFORM_NAME
-------------------------------------------------------------
Linux x86 64-bit
Regards
Michel
The same for me, but an error when no space between ' and " ...
If I add a space, it's OK
Prove it. Show us a complete test of both ways.
|
|
|
|
|
Re: ORA-03001: unimplemented feature [message #581151 is a reply to message #581150] |
Tue, 02 April 2013 08:44 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Well, that is a surprise. I get the same result, by the way.
But if I use a bind variable explicitly, no problem:
orcl>
orcl> var vc varchar2(4)
orcl>
orcl> exec :vc := 'test'
PL/SQL procedure successfully completed.
orcl> select :vc"test" from dual;
test
--------------------------------
test
orcl> Very odd. A bug in the re-write mechanism, perhaps?
|
|
|
|
|