ORA-01428: argument '0' is out of range
Hi,
in 10g R2 , I created (code found in David Kurtz article) a function as follows but when use it I receive an error :
SQL> CREATE OR REPLACE FUNCTION h2i (p_hash_value NUMBER) RETURN VARCHAR2 IS
2 l_output VARCHAR2(10) := '';
3 BEGIN
4 FOR i IN (
5 SELECT substr('0123456789abcdfghjkmnpqrstuvwxyz',1+floor(mod(p_hash_value/(POWER(32,LEVEL-1)),32)),1) sqlidchar
6 FROM dual CONNECT BY LEVEL <= LN(p_hash_value)/LN(32) ORDER BY LEVEL DESC
7 ) LOOP
8 l_output := l_output || i.sqlidchar;
9 END LOOP;
10 RETURN l_output;
11 END;
12 /
Function created.
SQL> select SQL_PLAN_HASH_VALUE, sql_id ,h2i(SQL_PLAN_HASH_VALUE) from v$active_session_history;
select SQL_PLAN_HASH_VALUE, sql_id ,h2i(SQL_PLAN_HASH_VALUE) from v$active_session_history
ERROR at line 1:
ORA-01428: argument '0' is out of range
ORA-06512: at "SYS.H2I", line 4ANy idea ? Any help ,
Thank you.
Thaks Michael,
SELECT sql_id, dbms_utility.sqlid_to_sqlhash (sql_id) hash,
sql_plan_hash_value
FROM v$active_session_history
WHERE sql_plan_hash_value != 0
SQL_ID HASH SQL_PLAN_HASH_VALUE
g1p4md32k85mv 3307476603 149324150
bwhzpth8a3zgv 279051771 2848324471
bwhzpth8a3zgv 279051771 2848324471
0zcud3g9fky57 3538516135 2890534904
0zcud3g9fky57 3538516135 2890534904
0zcud3g9fky57 3538516135 2890534904
08bqjmf8490s2 2420409090 2890534904
4gd6b1r53yt88 3393152264 2675018582
4gd6b1r53yt88 3393152264 2675018582
26xbn5mhmjqn9 3778599561 381738983
4gd6b1r53yt88 3393152264 2675018582Then can I conclude that h2i function is wrong and it would be better to use original oracle dbms_utility.sqlid_to_sqlhash ?
Similar Messages
-
ORA-01428: argument '-1' is out of range
hi
here is the details: -
Select walkin_id, applying_for from walkins where walkin_id =197
WALKIN_ID APPLYING_FOR
197 CLASS1:CLASS2:OTHER /*stored colon seprated classification*/
Select program_id, program_name, classification from ss_programs
PROGRAM_ID PROGRAM_NAME CLASSIFICATION
1 PG1 CLASS1
2 PG2 CLASS1
3 PG3 CLASS3
4 PG4 CLASS1
5 PG5 CLASS1
6 PG6 CLASS1
7 PG7 CLASS1
8 PG8 CLASS1
9 PG9 CLASS1
10 PG10 CLASS2
11 PG11 CLASS2
12 PG12 CLASS3
13 PG13 CLASS1
14 PG14 CLASS1
15 PG15 CLASS1
16 PG16 CLASS1
17 PG17 CLASS1
18 OTHER OTHER
now i wanted to extract all the program_ids belongs to the walkins.applying_for (colon seprated ss_programs.classification) and
rebuild them into colon separated list
like if
walkins.applying_for is : CLASS1:CLASS2:OTHER then the
program_list would be : PG1:PG2:PG4:PG5:PG6:PG7:PG8:PG9:PG10:PG11:PG13:PG14:PG15:PG16:PG17:OTHER
and for this i build the following query and its giving me
"ORA-01428: argument '-1' is out of range" error and i am stucked.
So could you please tell me where i am doing wrong
and can we do this with SQL like below specified query or some other (SQL) way.
SELECT SUBSTR (LTRIM(MAX (SYS_CONNECT_BY_PATH (program_id, ':')) KEEP (DENSE_RANK LAST ORDER BY curr),
':'), 2) programs
FROM
(SELECT walkin_id, program_id,
row_number() over (partition by 1 order by program_id) curr,
row_number() over (partition by 1 order by program_id)-1 prev
FROM
(SELECT wp.walkin_id, sp.program_id
FROM SS_PROGRAMS sp,
(SELECT walkin_id, substr(val, decode(level, 1, 1, INSTR(val, ':', 1, LEVEL -1)+1),
INSTR(val, ':', 1, level) - decode(level, 1, 1, INSTR(val, ':', 1, LEVEL -1)+1)) walkin_classif
FROM
(SELECT walkin_id, DECODE(SUBSTR(applying_for, -1, 1), ':', applying_for, applying_for||':') val FROM walkins
WHERE walkin_id =197)
CONNECT BY INSTR(val, ':', 1, LEVEL) > 0) wp
WHERE sp.classification = wp.walkin_classif))
GROUP BY walkin_id
CONNECT BY prev = PRIOR curr AND walkin_id = PRIOR walkin_id
START WITH curr = 1;And if you want it to work for more than 1 walkin at the same time:
SQL> create table walkins (walkin_id, applying_for)
2 as
3 select 197, 'CLASS1:CLASS2:OTHER' from dual union all
4 select 198, null from dual union all
5 select 199, 'CLASS4' from dual union all
6 select 200, 'CLASS3:CLASS1' from dual
7 /
Table created.
SQL> create table ss_programs (program_id, program_name, classification)
2 as
3 select 1, 'PG1', 'CLASS1' from dual union all
4 select 2, 'PG2', 'CLASS1' from dual union all
5 select 3, 'PG3', 'CLASS3' from dual union all
6 select 4, 'PG4', 'CLASS1' from dual union all
7 select 5, 'PG5', 'CLASS1' from dual union all
8 select 6, 'PG6', 'CLASS1' from dual union all
9 select 7, 'PG7', 'CLASS1' from dual union all
10 select 8, 'PG8', 'CLASS1' from dual union all
11 select 9, 'PG9', 'CLASS1' from dual union all
12 select 10, 'PG10', 'CLASS2' from dual union all
13 select 11, 'PG11', 'CLASS2' from dual union all
14 select 12, 'PG12', 'CLASS3' from dual union all
15 select 13, 'PG13', 'CLASS1' from dual union all
16 select 14, 'PG14', 'CLASS1' from dual union all
17 select 15, 'PG15', 'CLASS1' from dual union all
18 select 16, 'PG16', 'CLASS1' from dual union all
19 select 17, 'PG17', 'CLASS1' from dual union all
20 select 18, 'OTHER', 'OTHER' from dual
21 /
Table created.
SQL> with walkins_normalized as
2 ( select walkin_id
3 , substr
4 ( ':' || applying_for || ':'
5 , instr(':' || applying_for || ':',':',1,l) + 1
6 , instr(':' || applying_for || ':',':',1,l+1) - instr(':' || applying_for || ':',':',1,l) -1
7 ) applying_for_element
8 from walkins w
9 , ( select level l
10 from ( select max(length(applying_for) - length(replace(applying_for,':')))+1 maxn
11 from walkins
12 )
13 connect by level <= maxn
14 ) m
15 where l <= length(applying_for) - length(replace(applying_for,':'))+1
16 )
17 , string_aggregated as
18 ( select walkin_id
19 , rtrim(pl,':') program_list
20 , rn
21 from walkins_normalized w
22 , ss_programs p
23 where w.applying_for_element = p.classification
24 model
25 partition by (w.walkin_id)
26 dimension by (row_number() over (partition by w.walkin_id order by p.program_id) rn)
27 measures (cast(p.program_name as varchar2(100)) pl)
28 rules
29 ( pl[any] order by rn desc = pl[cv()] || ':' || pl[cv()+1]
30 )
31 )
32 select walkin_id
33 , program_list
34 from string_aggregated
35 where rn = 1
36 /
WALKIN_ID PROGRAM_LIST
197 PG1:PG2:PG4:PG5:PG6:PG7:PG8:PG9:PG10:PG11:PG13:PG14:PG15:PG16:PG17:OTHER
200 PG1:PG2:PG3:PG4:PG5:PG6:PG7:PG8:PG9:PG12:PG13:PG14:PG15:PG16:PG17
2 rows selected.And by the way, you should think of redesigning your walkins table to something normalized...
Regards,
Rob. -
Oracle ORA-01428: argument is out of range error
Oracle ORA-01428: argument is out of range error
I take it you don't feel like spending the extra money for the EE add-on that was designed to CREATE an INDEX on polygons of logitude,latitude values in such away that a simple
SELECT * FROM ZIP_CODES WHERE SDO_WITHIN_DISTANCE( Z.ZIPCODE_AREA, /* point for zipcode */, 'distance=' || in_distance ) = 'TRUE';
will be very efficient and fast.
primary thing:
you need to drop out the WHEN OTHERS THEN NULL;
also, take advantage of the NO_ROWS_FOUND exception for finding out if a row exists in the database. (instead of doing an IF statement on the results of COUNT(*))
back to your problem
You'll need to investigate which row is causing the problem.
Most likely, it is the zipcode that was the input for the search. I've seen this occur many times on similar trigonometric calculations.
You may have to surround a lot of those trigonometric functions with ROUND( ____, 25) to get it to work.
However, I highly advise you to take a look at what can be done with Oracle Spacial
MK -
ORA-13000: dimension number is out of range when using SDO_GEOM.RELATE
Dear everyone
I am attempting to workout which polygons cover the same area in order to determine distinct polygons. This is so I can then have just one copy of a polygon to a new table and delete all the duplicate polygons in the current table.
I ran the following first to check something:
SELECT SDO_GEOM.RELATE
(A.geographical_coordinates,
'DETERMINE',
B.geographical_coordinates,
0.05) relationship
FROM MAP_INDEX A,
MAP_INDEX B
where A.geographical_coordinates is not NULL
and B.geographical_coordinates is not NULL;but got the error message:
Error starting at line 1 in command:
SELECT DISTINCT A.mi_prinx,
SDO_GEOM.RELATE
(A.geographical_coordinates,
'EQUAL',
B.geographical_coordinates,
0.05)
FROM MAP_INDEX A,
MAP_INDEX B
where A.geographical_coordinates is not NULL
and B.geographical_coordinates is not NULL
Error report:
SQL Error: ORA-13000: dimension number is out of range
ORA-06512: at "MDSYS.SDO_GEOM", line 70
ORA-06512: at "MDSYS.SDO_GEOM", line 2647
13000. 00000 - "dimension number is out of range"
*Cause: The specified dimension is either smaller than 1 or greater than
the number of dimensions encoded in the HHCODE.
*Action: Make sure that the dimension number is between 1 and the maximum
number of dimensions encoded in the HHCODE.I then tried the following:
SELECT DISTINCT A.mi_prinx,
SDO_GEOM.RELATE
(A.geographical_coordinates,
'EQUAL',
B.geographical_coordinates,
0.05)
FROM MAP_INDEX A,
MAP_INDEX B
where A.geographical_coordinates is not NULL
and B.geographical_coordinates is not NULLwhich produced the following error message:
Error starting at line 1 in command:
SELECT
SDO_GEOM.RELATE
(A.geographical_coordinates,
'EQUAL',
B.geographical_coordinates,
0.05) relationship
FROM MAP_INDEX A,
MAP_INDEX B
Error report:
SQL Error: ORA-13050: unable to construct spatial object
ORA-06512: at "MDSYS.SDO_3GL", line 4
ORA-06512: at "MDSYS.MD2", line 771
ORA-06512: at "MDSYS.SDO_GEOM", line 2622
ORA-06512: at "MDSYS.SDO_GEOM", line 2649
13050. 00000 - "unable to construct spatial object"
*Cause: This is an internal error.
*Action: Contact Oracle Support Services.Does anyone have any idea as to what I might doing wrong? The original polygons were created in MapInfo Professional 8 and I am working in 10.2g
I believe Imust be doing something wrong. I looked into SDO_GEOM_VALIDATE but again that produce the same error message as the first one. I have previously created a spatial index and inserted the values into the USER_SDO_GEOM_METADATA view.
I have been able to get the following to work, I was testing out examples online just to see if I could produce a result on an sdo function:
SELECT NAME_OF_FEATURE, SDO_GEOM.SDO_AREA(GEOGRAPHICAL_COORDINATES,M.DIMINFO)
FROM MAP_INDEX, user_sdo_geom_metadata M
WHERE M.TABLE_NAME='MAP_INDEX' AND M.COLUMN_NAME='GEOGRAPHICAL_COORDINATES'
AND geographical_coordinates is not null;When I drew my polygons in MapInfo, they are likely to have gone partly outside of the boundary dimension values inserted in USER_SDO_GEOM_METADATA. Is that likely to be the cause of my problems or something else?
If it is the cause, is there away of setting up Oracle or MapInfo so that anything drawn outside of the dimension area is clipped.
Kind regards
TimHi Tim,
Since Oracle 8.1.6 Oracle has suggested the use of 4 digit SDO_GTYPE values, which encode the number of dimensions in the geometry. Examples of 4 digit SDO_GTYPES include 2001 for a 2D point, 3001 for a 3D point, 2002 for a 2D linestring, 3002 for a 3D linestring, 2003 for a 2D polygon and 3003 for a 3D polygon.. Contrast these with single digit values of 1 for a point, 2 for a linestring, and 3 for a polygon.
My guess is that at least some of your data is loaded using single digit SDO_GTYPE values, and in the function Oracle does not know the dimensionality of the data (is a vertex identified by 2, 3, or four numbers?). You can check this by doing a:
select distinct a.geographical_coordinates.sdo_gtype from MAP_INDEX A;
If any of the values returned are single digit values then you will know this is the problem.
You have a few options.
You can have Oracle automatically fix the data by migrating the data:
execute sdo_migrate.to_current('MAP_INDEX','GEOGRAPHICAL_COORDINATES');
This will not only set the SDO_GTYPE correctly but will also fix any ring rotation problems (ensures exterior rings are stored counter-clockwise, and interior rings are stored clockwise), it will fix ring ordering problems (ensuring an exterior ring is followed by its interior rings), and it will appropiately set values in the SDO_ELEM_INFO_ARRAY.
After you do this you should be good to go. However, if you are using a tool to update the data and it resets the information back, then the problem will continue to plague you. You should check with your vendor if that is the case.
Another option is to change the query to a different signature which uses the SDO_GEOM_METADATA to get the dimensionality of the data. Instead of writing the query as you have, you would change it to:
SELECT SDO_GEOM.RELATE
(A.geographical_coordinates,
C.DIMINFO,
'DETERMINE',
B.geographical_coordinates,
C.DIMINFO) relationship
FROM MAP_INDEX A,
MAP_INDEX B,
USER_SDO_GEOM_METADATA C
WHERE A.geographical_coordinates is not NULL
and B.geographical_coordinates is not NULL
and C.TABLE_NAME='MAP_INDEX'
and C.COLUMN_NAME='GEOGRAPHICAL_COORDINATES';
So either of those should fix the problem you are seeing, but neither of those are the best way to accomplish what you want to do.
If I were you I would follow first set of directions (migrate your data), make sure I have a spatial index on my table:
select index_name
from user_sdo_index_info
where table_name='MAP_INDEX';
If no rows are returned, create the index:
create index MAP_INDEX_SIDX on MAP_INDEX(GEOGRAPHICAL_COORDINATES)
indextype is mdsys.spatial_index;
You could use SDO_JOIN to perform a self-join:
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28400/sdo_operat.htm#BGEDJIBF
using the EQUAL mask. Note the section on optimizing self-joins.
If you don't have too much data, this might be a start to doing what you want:
create table dups_rowids as
select /*+ ordered */ a.rowid rowid1,b.rowid rowid2
from MAP_INDEX A,
MAP_INDEX B
where SDO_EQUALS (a.geographical_coordinates,b.geographical_coordinates)='TRUE'
and a.rowid <> b.rowid;
create table nodup_rowid (noduprid VARCHAR2(24));
create table dup_rowid (duprid VARCHAR2(24));
set serveroutput on;
declare
rowida varchar2(24);
rowidb varchar2(24);
rowidt varchar2(24);
type myCursor is ref cursor;
acursor myCursor;
cursor c1 is select rowid1,rowid2 from dups_rowids;
begin
for r in c1 loop
rowida := r.rowid1;
rowidb := r.rowid2;
rowidt := NULL;
open acursor for 'select duprid from dup_rowid where duprid = :rowida' using rowida;
fetch acursor into rowidt;
if rowidt is null
then
execute immediate 'insert into nodup_rowid values (:rowida)' using rowida;
execute immediate 'insert into dup_rowid values (:rowida)' using rowida;
execute immediate 'commit';
end if;
close acursor;
rowidt := NULL;
open acursor for 'select duprid from dup_rowid where duprid = :rowidb' using rowidb;
fetch acursor into rowidt;
if rowidt is null
then
execute immediate 'insert into dup_rowid values (:rowidb)' using rowidb;
execute immediate 'commit';
end if;
close acursor;
end loop;
end;
Then your final table would have the geometries from the original table that had no match:
create table MAP_INDEX_NODUPS
as select * from MAP_INDEX where rownum < 1;
insert into MAP_INDEX_NODUPS
(select *
from MAP_INDEX
where ROWID not in
(select ROWID1 from DUPS_ROWIDS));
plus only one of the geometries that were equal:
insert into MAP_INDEX_NODUPS
(select *
from MAP_INDEX
where ROWID in
(select ROWID1 from NODUP_ROWID);
Hope this helps. -
I am trying to download a blob from a database table and I am getting ORA-21560: argument 3 is null, invalid, or out of range
this is my code:
PROCEDURE retrieve_document (p_pk_id in varchar2)
IS
size1 integer;
blob1 BLOB ;
tmpblob BLOB;
l_mimetype varchar2(4000);
BEGIN
BEGIN
insert into temp_document
select pk_id,document_file,mime_type
from portal_documents
where pk_id = p_pk_id;
select document_file, mime_type
into blob1, l_mimetype
from temp_document;
--insert into temp_stu_pic select student_id, student_picture from stu_pics
where student_id = 'CHS321';
--select student_picture into blob1 from temp_stu_pic where student_id = 'CHS321';
EXCEPTION when no_data_found then null;
END;
size1 := dbms_lob.getlength(blob1);
dbms_lob.createtemporary(tmpblob,true);
dbms_lob.copy(tmpblob,blob1,size1,1,1);
owa_util.mime_header(l_mimetype, false,null);
htp.p('Content-length: '|| size1);
htp.p('Pragma: no-cache');
htp.p('Cache-Control: no-cache');
htp.p('Expires: Thu, 01 Jan 1970 12:00:00
GMT');
owa_util.http_header_close;
wpg_docload.download_file(tmpblob);
dbms_lob.freetemporary(tmpblob);
END retrieve_document;
Anybody know why I would be getting this error?In the future, use the PRE and /PRE tags, enclosed in [] to format your code.
You have commented out some code, and left other portions.
If you're actually getting an error when running (which i would guess you are based on the thread title) then show us the copy / paste of the error message which shows line numbers, etc...
PROCEDURE retrieve_document (p_pk_id in varchar2)
IS
size1 integer;
blob1 BLOB ;
tmpblob BLOB;
l_mimetype varchar2(4000);
BEGIN
BEGIN
insert into temp_document
select pk_id,document_file,mime_type
from portal_documents
where pk_id = p_pk_id;
select document_file, mime_type
into blob1, l_mimetype
from temp_document;
--insert into temp_stu_pic select student_id, student_picture from stu_pics
where student_id = 'CHS321';
--select student_picture into blob1 from temp_stu_pic where student_id = 'CHS321';
EXCEPTION when no_data_found then null;
END;
size1 := dbms_lob.getlength(blob1);
dbms_lob.createtemporary(tmpblob,true);
dbms_lob.copy(tmpblob,blob1,size1,1,1);
owa_util.mime_header(l_mimetype, false,null);
htp.p('Content-length: '|| size1);
htp.p('Pragma: no-cache');
htp.p('Cache-Control: no-cache');
htp.p('Expires: Thu, 01 Jan 1970 12:00:00
GMT');
owa_util.http_header_close;
wpg_docload.download_file(tmpblob);
dbms_lob.freetemporary(tmpblob);
END retrieve_document;Message was edited by:
Tubby -
Spatial index creation error -ORA-13011: value is out of range
I am trying to create a spatial index and this is what I get.
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13200: internal error [ROWID:AAAFXYAADAAABxyAAD] in spatial indexing.
ORA-13206: internal error [] while creating the spatial index
ORA-13011: value is out of range
ORA-00600: internal error code, arguments: [kope2upic014], [], [], [], [],
ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 7
ORA-06512: at line 1
I can't find any documentation as to how to fix this. How do you determine which row of data is out of range? Any help would be greatly appreciated!Hi Jeff,
The data at rowid AAAFXYAADAAABxyAAD has a problem.
Can see what the issue is by doing:
select sdo_geom.validate_geometry(geom_col_name,diminfo)
from your_table_name a, user_sdo_geom_metadata b
where b.table_name='YOUR_TABLE_NAME'
and a.rowid='AAAFXYAADAAABxyAAD';
If you are using Oracle9iR2 then this would be even better:
select sdo_geom.validate_geometry_with_context(geom_col_name,diminfo)
from your_table_name a, user_sdo_geom_metadata b
where b.table_name='YOUR_TABLE_NAME'
and a.rowid='AAAFXYAADAAABxyAAD'; -
"OCI-21560: argument 4 is null, invalid, or out of range"
Hi,
When I am running query *"select xmlelement("SQLX", 'Hello World!') from dual"* in Toad , i am getting below error -
*"OCI-21560: argument 4 is null, invalid, or out of range"*
In sql prompt also it is not runnig.Got below error.
SQL> select xmlelement("SQLX", 'Hello World!') from dual
2 /
select xmlelement("SQLX", 'Hello World!') from dual
ERROR at line 1:
ORA-03113: end-of-file on communication channel
SQL>
DB version -
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for HPUX: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
Please let me know the solution.
Rg.
SubirError: ORA 3136
Text: null common code generated
Cause: This is an internal error.
Action: Document messages and contact Oracle Worldwide Support.
For more information about the Spatial Data option, see <Oracle7
Spatial Data Option Reference and Administrator's Guide>. -
Argument #1 of "Gridrowcolumnvalue" is out of range
Hi I have a CrossTab that I am trying to manually insert information to.
The idea is that I have two arrays (One with a date value and the other with a dollar value). I would like to match the date on the header of the column to that of my "ConsDate" array and pull the corresponding dollar amount from my "ConsPrice" array.
My calculated member formula is as so
global datevar array ConsDate;
global numbervar array ConsPrice;
local numbervar i;
local numbervar Output;
for i := 1 to ubound(ConsDate) do(
if ConsDate[i] = date(gridrowcolumnvalue("@Date")) then(
Output := ConsPrice[i];
exit for;
0;
else
Output := 0
Output;
However, I am getting the error 'Argument #1 of "Gridrowcolumnvalue" is out of range'
Does anyone have a workaround for this?
Thanks!Hi Abhilash I managed to fix it myself.
Apparently it was trying to obtain a datetime value from the "Total" column.
I ended up fixing it by adding a constraint
global datevar array ConsDate;
global numbervar array ConsPrice;
local numbervar i;
local numbervar j;
local numbervar Output;
local numbervar Summary;
if currentcolumnindex = GetNumColumns - 1 then(
for i := 0 to GetNumColumns - 2 do
Summary := Summary + gridvalueat(currentrowindex,i,currentsummaryindex);
for i := 1 to ubound(ConsDate) do(
if currentcolumnindex in 0 to GetNumColumns - 2 then(
if month(ConsDate[i]) = month(date(gridrowcolumnvalue("@Date"))) then
Output := ConsPrice[i];
else
Output := Summary;
Output; -
Hi Friends,
One of my user is receiving the below error, pls help me is resolving this.
index: The argument is out of range: 8<0 or 8>=8. (Error: RWI 00012)
Thanks in Advance
MMVIHARHi,
No, you defiitely should not/cannot apply FP4.2 ontop of SP05
This fix is going to be ported to FP5.1 which is planned for CW25 (end of June) according to here:
https://websmp104.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000092015&_SCENARIO=01100035870000000202&
Regards,
H -
- ORA-01727: numeric precision specifier is out of range (1 to 38)
What is cause of above error??
SQL> SELECT DBMS_SQLTUNE.REPORT_TUNING_TASK( 'my_sql_tuning_task_1') from DUAL;
DBMS_SQLTUNE.REPORT_TUNING_TASK('MY_SQL_TUNING_TASK_1')
GENERAL INFORMATION SECTION
Tuning Task Name : my_sql_tuning_task_1
Tuning Task Owner : SYS
Workload Type : Single SQL Statement
Scope : COMPREHENSIVE
Time Limit(seconds): 3600
Completion Status : COMPLETED
Started at : 09/27/2012 13:24:45
Completed at : 09/27/2012 13:24:45
Schema Name: PDS
SQL ID : 4wv8x1b10dvk0
SQL Text : INSERT INTO dlg_participant
(dp_dg_id, dp_dlg_id, dp_customer_id, dp_context,
dp_inserted_timestamp, dp_moved_timestamp, dp_active,
dp_internal_id)
(SELECT
cast(:1 as number(:"SYS_B_0")),
cast(:2 as number(:"SYS_B_1")),
mh_customer_id,
mh_context,
SYSDATE,
SYSDATE,
cast(:3 as number(:"SYS_B_2")),
cast(:4 as number(:"SYS_B_3"))
FROM
(SELECT
Relations.MARE_ID as mh_customer_id,
:"SYS_B_4" as mh_context,
null as mh_participant_id
FROM
(select *
from Testuser.RelationsEnriched_10M
) Relations
WHERE
((:5 >= Relations.MARE_ID))) AND
NOT EXISTS (SELECT
dp_id
FROM
dlg_participant,
dlg_group
WHERE
(dp_dg_id = dg_id) AND
(dg_dlg_id = :6) AND
(dp_active = :7) AND
(dp_customer_id = Relations.MARE_ID))) mh_container)
Bind Variables :
2 - (NUMBER):9
4 - (NUMBER):9
6 - (NUMBER):18
8 - (NUMBER):18
10 - (NUMBER):1500000
11 - (NUMBER):1053
12 - (NUMBER):0
ERRORS SECTION
- ORA-01727: numeric precision specifier is out of range (1 to 38)
-------------------------------------------------------------------------------Strange as none of the number datatype is more than 38
SQL> desc testuser.relationsenriched_10m
Name Null? Type
MAEX_VALUE_CODE_002 NUMBER(38)
MAEX_PHONE_IND_DATE DATE
MAEX_TOTAL_SWITCH_DATE DATE
MAEX_VALUE_CODE_002_DATE DATE
MARE_COMP_FS_PC VARCHAR2(199)
MARE_DEALER_RETAIL VARCHAR2(7)
MARE_CONSODATA_IND VARCHAR2(2)
MAEX_VALUE_CODE_003 NUMBER(38)
MARE_EXT_KEY1_NR VARCHAR2(199)
MARE_GM_CARD_CODE VARCHAR2(199)
MAEX_LAST_CHANGE_DATE DATE
MAAD_MARE_ID NUMBER(38)
MAEX_MAIL_IND_DATE DATE
MARE_PERS_TITLE VARCHAR2(6)
MARE_EXT_KEY3_NR VARCHAR2(199)
MARE_BSM_DATE VARCHAR2(199)
MARE_ID NUMBER(38)
MARE_GM_CARD_STATUS VARCHAR2(199)
MAAD_PREFERED_IND VARCHAR2(2)
MAEX_SMS_IND_DATE DATE
MARE_RELATED_CODE VARCHAR2(199)
MARE_FAX FLOAT(126)
MACA_MARE_ID NUMBER(38)
MACA_REGDATE_OWNER_YEAR NUMBER(38)
MAEX_EMAIL_IND_DATE DATE
MAEX_MAILABLE_IND6 VARCHAR2(2)
MARE_PERS_LAST_NAME VARCHAR2(42)
MARE_PERS_SALUTATION VARCHAR2(9)
MARE_PERS_FIRST_NAMES VARCHAR2(51)
MARE_SUB_TYPE VARCHAR2(2)
MACA_PREFERED_IND VARCHAR2(2)
MAEX_CONTROL_GROUP_DATE DATE
MARE_MOBILE_PHONE VARCHAR2(21)
MARE_COMP_ID NUMBER(38)
MARE_EXT_KEY1_CHAR VARCHAR2(16)
MARE_FIRST_CONTACT_DATE DATE
MARE_MOI1_DESCR VARCHAR2(21)
MAEX_MAILABLE_IND9 VARCHAR2(2)
MARE_MOI1 VARCHAR2(11)
MARE_MAAD_ID_T NUMBER(38)
MARE_COMP_SIZE_CAT NUMBER(38)
MAEX_SMS_IND VARCHAR2(2)
MARE_PERS_LAST_NAME_SECOND VARCHAR2(15)
MAEX_VALUE_CODE_001_DATE DATE
MARE_ORDER_T NUMBER(38)
MARE_BSM_IND VARCHAR2(2)
MACA_BRAND VARCHAR2(12)
MACA_DEALER_RETAIL VARCHAR2(7)
MARE_HOME_PHONE VARCHAR2(21)
MAEX_MAIL_IND VARCHAR2(2)
MARE_PERS_BIRTH_DATE DATE
MARE_CNSMR_TYPE VARCHAR2(2)
MAEX_MAILABLE_IND5 VARCHAR2(2)
MARE_PERS_AGE NUMBER(38)
MAEX_MAILABLE_IND1 VARCHAR2(2)
MARE_INSRC_RNWL_DATE DATE
MACA_NEW_USED VARCHAR2(5)
MARE_LOAD_DATE DATE
MARE_PERS_MAR_STATUS VARCHAR2(199)
MARE_PERS_PREFIX VARCHAR2(7)
MARE_COMP_SIZE NUMBER(38)
MAEX_VALUE_CODE_100_DATE DATE
MARE_HISTORY_FILE VARCHAR2(26)
MARE_COMP_NAME VARCHAR2(108)
MARE_IDX_T VARCHAR2(51)
MARE_DEALER_RETAIL_NAME VARCHAR2(41)
MACA_OWNER_TYPE VARCHAR2(2)
MARE_CREATION_DATE DATE
MARE_MACA_ID_T NUMBER(38)
MARE_EXT_KEY3_CHAR VARCHAR2(199)
MAAD_POSTAL_CODE VARCHAR2(8)
MAEX_MARE_ID NUMBER(38)
MARE_CNSMR_TYPE_CODE NUMBER(38)
MARE_SOURCE VARCHAR2(5)
MARE_LAST_CONTACT_DATE DATE
MARE_EXT_KEY2_CHAR VARCHAR2(199)
MAEX_ID NUMBER(38)
MAEX_TOTAL_SWITCH VARCHAR2(2)
MARE_EMAIL VARCHAR2(53)
MARE_DEALER_SERV_NAME VARCHAR2(41)
MARE_WORK_PHONE VARCHAR2(21)
MAEX_VALUE_CODE_100 NUMBER(38)
MAEX_PHONE_IND VARCHAR2(2)
MARE_AERD VARCHAR2(199)
MARE_SPS_FILE_ID NUMBER(38)
MAEX_LOAD_DATE DATE
MARE_MOI5 VARCHAR2(11)
MAEX_MAILABLE_IND7 VARCHAR2(2)
MAEX_VALUE_CODE_001 NUMBER(38)
MARE_COMP_NAME_2 VARCHAR2(172)
MARE_SOFI_NR VARCHAR2(17)
MARE_COMP_CODE VARCHAR2(199)
MARE_COMP_FS_CC VARCHAR2(199)
MAEX_MAILABLE_IND4 VARCHAR2(2)
MARE_DEALER_PREF VARCHAR2(7)
MARE_LANG_CODE VARCHAR2(3)
MACA_REGDATE_CAR_YEAR NUMBER(38)
MARE_PERS_INITIALS VARCHAR2(7)
MARE_DEAR_SALUTATION VARCHAR2(50)
MAEX_MAILABLE_IND8 VARCHAR2(2)
MAEX_TITLE_IND VARCHAR2(2)
MARE_MATCHING_IDX VARCHAR2(199)
MARE_MOI3 VARCHAR2(11)
MARE_DEALER_PREF_NAME VARCHAR2(2)
MARE_ENVELOPE_NAME VARCHAR2(199)
MARE_PERS_CHILD_UNDER_18 VARCHAR2(199)
MARE_MOI2 VARCHAR2(11)
MARE_RELATED_DESCR VARCHAR2(199)
MARE_EXT_KEY2_NR VARCHAR2(199)
MARE_PERS_GENDER VARCHAR2(2)
MACA_MODEL VARCHAR2(16)
MARE_PERS_HH_SIZE VARCHAR2(199)
MAEX_TITLE_IND_DATE DATE
MARE_LAST_CHANGE_DATE DATE
MARE_MOI4 VARCHAR2(11)
MAEX_MAILABLE_IND2 VARCHAR2(2)
MARE_DEALER_SERV VARCHAR2(7)
MAEX_VALUE_CODES VARCHAR2(25)
MARE_NAME_T VARCHAR2(51)
MAEX_VALUE_CODE_003_DATE DATE
MARE_PERS_HH_CARS VARCHAR2(199)
MAEX_MAILABLE_IND3 VARCHAR2(2)
MARE_ERD NUMBER(38)
MAEX_CREATION_DATE DATE
MARE_IERD VARCHAR2(199)
MAEX_CONTROL_GROUP NUMBER(38)
MAEX_EMAIL_IND VARCHAR2(2)
MARE_COMP_FS_TOT VARCHAR2(199)
MARE_RELT_ID NUMBER(38)
MARE_PERS_ID NUMBER(38)
SQL> desc pds.dlg_participant
Name Null? Type
DP_ID NOT NULL NUMBER(18)
DP_DG_ID NOT NULL NUMBER(9)
DP_DLG_ID NOT NULL NUMBER(9)
DP_CUSTOMER_ID NOT NULL NUMBER(38)
DP_CONTEXT NOT NULL NVARCHAR2(128)
DP_INSERTED_TIMESTAMP NOT NULL DATE
DP_MOVED_TIMESTAMP NOT NULL DATE
DP_PART_STAMP NVARCHAR2(3)
DP_ACTIVE NOT NULL NUMBER(18)
DP_INTERNAL_ID NUMBER(18)
DP_CUSTOM_VALUES NCLOB -
Hi,
My CFC component is defined as:
<cffunction name="updateNote" output="false" access="remote" returntype="void" >
<cfargument name="notedetails" required="true" type="string" >
<cfargument name="notename" required="true" type="string" />
<cfquery name="qupdateNote" datasource="notes_db">
UPDATE
notes
SET
notes.notedetails=<CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#ARGUMENTS.notedetails#">,
WHERE
notename="<CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#ARGUMENTS.notename#">"
</cfquery>
</cffunction>
In Flash builder when I test the operation I get this error:
"There was an error while invoking the operation. Check your server settings and try invoking the operation again.
Reason: Server error Unable to invoke CFC - Error Executing Database Query. Parameter index out of range (2 > number of parameters, which is 1)."
Im really quessing that this is something small but right now its causing me to pull my hair out of my head!! Argg. Tried a bunch of things but I know thik im stuck.
Help would be very very appreciated.
ThanksCreate test.cfm along these lines:
<cfset myObj = createObject("component", "dotted.path.to.cfc.file")>
<cfset myResult = myObj.myMethod(arg=value1, etc)>
<cfdump var="#myResult#">
Or, really, you could just browse to this:
http://your.domain/path/to/your.cfc?method=yourMethod&arg1=value1 [etc]
Although I dunno which of those two approachs will give you a better error message (indeed, it might be the same).
Try both.
Adam -
ORA-12535: TNS:operation timed out on a win2000 Oracle instance
Hi,
i have a Oracle 8.1.5 instance on a WIN2000 PC.
I can connect me to this database with sqlplus
as long i stay on the PC (means i started the sqlplus
on the same machine).
When i try to connect from an other (unix-)system
i get after a while (ca. 90 sec.) the error:
ORA-12535: TNS:operation timed out
tnsping works fine (answer comes back in one second)
There are no firewalls or other "strange" things between
the database and the failing client (on an other PC,
also win2000, Oracle 8.1.5 everything works fine).
Below you see the log with debug of the listener.
I have also a trace on level SUPPORT but this is more
than 1000 lines for just 1 or 2 TNSPINGs and one SQLPLUS
connect. Due to this volume i decided not to attach it to
this initial mail.
Does any one have some advice or experiences ?
Please advice.
Best regards,
[email protected]
======================================================================
TNSLSNR for 32-bit Windows: Version 8.1.5.0.0 - Production on 19-APR-01 09:07:26
(c) Copyright 1998 Oracle Corporation. All rights reserved.
Die System-Parameterdatei ist D:\Oracle81\network\admin\listener.ora
Log-Meldungen wurden geschrieben in: D:\Oracle81\network\log\listener.log
Listen auf: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=driller-nb)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS)))
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
19-APR-01 09:07:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
19-APR-01 09:08:04 * service_register * MDR50 * 0
19-APR-01 09:08:11 * trc_level * 0
19-APR-01 09:08:16 * trc_level * 0
---------------- BEGIN TNSLSNR DEBUG ---------------------
*** ENDPOINT #1 **
Name:
Address: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=driller-nb)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS)))
Presentation: ttc
Session: NS
Info = <none>
Display: <none>
Load: 0
Handler ID = 80FFE377148D-41F8-AAC2-09A8BD4BE682
Oracle SID = <none>
Flags:
** INSTANCE #1 **
INSTANCE_NAME: MDR50
SERVICE_NAMEs: MDR50
INSTANCE LOAD: 0
INSTANCE ID: 4CC2FCDA6819-40D2-839D-F1628CC0BCA2
FLAGS: LOCAL
VERSION: 81500
NUM. HANDLERS: 2
Handler Matrix: (NS):
tcp nmp spx raw ipc beq lu62 tcps ANY
ttc 0 0 0 0 0 0 0 0 0
giop 0 0 0 0 0 0 0 0 0
http 0 0 0 0 0 0 0 0 0
ro 0 0 0 0 0 0 0 0 0
ANY 0 0 0 0 0 0 0 0 2
Handler Matrix: (RAW):
tcp nmp spx raw ipc beq lu62 tcps ANY
ttc 0 0 0 0 0 0 0 0 0
giop 0 0 0 0 0 0 0 0 0
http 0 0 0 0 0 0 0 0 0
ro 0 0 0 0 0 0 0 0 0
ANY 0 0 0 0 0 0 0 0 0
SERVICE HANDLERS:
Name: DEDICATED
Address: (ADDRESS=(PROTOCOL=beq)(PROGRAM=oracle)(ENVS=)(ARGV0=oracleMDR50)(ARGS='(LOCAL=NO)'))
Presentation: <none>
Session: <none>
Info = LOCAL SERVER
Display: DEDICATED SERVER
Load: 0
Handler ID = 83CB008C17A3-4E48-94DA-2765A62AAD7E
Oracle SID = <none>
Flags: BEQUEATH
Name: DEDICATED
Address: (ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleMDR50)(ARGS='(DESCRIPTION=(LOCAL=no)(ADDRESS=(PROTOCOL=BEQ)))'))
Presentation: <none>
Session: NS
Info = LOCAL SERVER
Display: DEDICATED SERVER
Load: 0
Handler ID = D9E0EC298D16-40FA-935F-7B989D139666
Oracle SID = MDR50
Flags: BEQUEATH CONNECTED DYNAMIC
** INSTANCE #2 **
INSTANCE_NAME: PLSExtProc
SERVICE_NAMEs: PLSExtProc
INSTANCE LOAD: 0
INSTANCE ID: 000000000000-0000-0000-000000000000
FLAGS: LOCAL
NUM. HANDLERS: 1
Handler Matrix: (NS):
tcp nmp spx raw ipc beq lu62 tcps ANY
ttc 0 0 0 0 0 0 0 0 0
giop 0 0 0 0 0 0 0 0 0
http 0 0 0 0 0 0 0 0 0
ro 0 0 0 0 0 0 0 0 0
ANY 0 0 0 0 0 0 0 0 1
Handler Matrix: (RAW):
tcp nmp spx raw ipc beq lu62 tcps ANY
ttc 0 0 0 0 0 0 0 0 0
giop 0 0 0 0 0 0 0 0 0
http 0 0 0 0 0 0 0 0 0
ro 0 0 0 0 0 0 0 0 0
ANY 0 0 0 0 0 0 0 0 0
SERVICE HANDLERS:
Name: DEDICATED
Address: (ADDRESS=(PROTOCOL=beq)(PROGRAM=extproc)(ENVS=)(ARGV0=extprocPLSExtProc)(ARGS='(LOCAL=NO)'))
Presentation: <none>
Session: <none>
Info = LOCAL SERVER
Display: DEDICATED SERVER
Load: 0
Handler ID = 56D4DAD11082-4097-992C-AF7F8067D858
Oracle SID = <none>
Flags: BEQUEATH
---------------- END TNSLSNR DEBUG ---------------------
19-APR-01 09:08:28 * debug * 0
19-APR-01 09:08:41 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
19-APR-01 09:09:57 * ping * 0
19-APR-01 09:10:16 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=slarti)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55678)) * establish * MDR50 * 0
19-APR-01 09:14:39 * trc_level * 0
19-APR-01 09:14:58 * trc_level * 0
19-APR-01 09:15:06 * trc_level * 0
19-APR-01 09:16:16 * trc_level * 0
19-APR-01 09:16:20 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=mdriller))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=135286784)) * status * 0
19-APR-01 09:16:33 * trc_level * 0
19-APR-01 09:17:09 * ping * 0
19-APR-01 09:17:51 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=slarti)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55695)) * establish * MDR50 * 0
19-APR-01 09:18:06 * MDR50 * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.34)(PORT=55695)) * service_update * MDR50 * 0
19-APR-01 09:23:33 * (CONNECT_DATA=(SID=MDR50)(CID=(PROGRAM=)(HOST=deep-thought)(USER=mdriller))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.22)(PORT=42006)) * establish * MDR50 * 0
19-APR-01 09:28:09 * MDR50 * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.22)(PORT=42006)) * service_update * MDR50 * 0
19-APR-01 09:28:25 * ping * 0
nullRather than
MyDB.10gXE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
why not go with the bulk standard tnsnames entry as follows:-
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = MYSERVER)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
I don't think the qualified MyDB.10gXE name is adding any value and may well confuse things.
Although setting it for my environment does work
C:\Documents and Settings\mtownsen.ST-USERS>tnsping myDB.10gXE
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-NOV-2
005 18:06:48
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = mtownsen
-lap.us.oracle.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_
NAME = XE)))
OK (40 msec)
OK - when I use your entry pasted directly from the above, with my server name, I get the following problem:-
C:\Documents and Settings\mtownsen.ST-USERS>tnsping myDB.10gXE
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-NOV-2
005 18:07:43
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION =
TNS-12533: TNS:illegal ADDRESS parameters
I added back some spaces, as indicated by the . below, and it works fine
MyDB.10gXE =
(DESCRIPTION =
.(ADDRESS = (PROTOCOL = TCP)(HOST = mtownsen-lap.us.oracle.com)(PORT = 1521))
.(CONNECT_DATA =
.(SERVER = DEDICATED)
.(SERVICE_NAME = XE)
.) -
BEx Error - The specified value is out of range
Hi
We areBI 7.0 (SP14) & recently installed SAPGUI 7.10 (patch 7).
When I select a query (Path: Info Areas --> WMH Warehouse Management --
> Shipping KPIu2019s --> Order Turnaround in Detail) and give date range
greater than 2 weeks, then I can a critical error message and the BEx session closes.
Following is the trace file details:
ListSeparator: ,
ExcelVersion: 12.0
AddinVersion: 7100.1.400.1062
10/13/2008 10:16:12 PM----
System.Exception: CriticalProgramError ---> System.Exception: CriticalProgramError ---> System.Exception: CriticalProgramError ---> System.Exception: CriticlaProgramError ---> System.Exception: CriticlaProgramError ---> System.ArgumentException: The specified value is out of range.
at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateSet(Object o, Type& objType, String name, Object[] args, String[] paramnames, Boolean OptimisticSet, CallType UseCallType)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateSet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean OptimisticSet, Boolean RValueBase, CallType CallType)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateSetComplex(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean OptimisticSet, Boolean RValueBase)
at com.sap.bi.et.analyzer.addin.BExExcelItem.set_RangeAddress(String value)
at com.sap.bi.et.analyzer.addin.BExItemGrid.AdjustItemRange()
at com.sap.bi.et.analyzer.addin.BExItemGrid.OnRender(Boolean iForceRendering)
at com.sap.bi.et.analyzer.api.BExItem.Render()
--- End of inner exception stack trace ---
at com.sap.bi.et.analyzer.api.BExItem.Render()
at com.sap.bi.et.analyzer.api.BExApplication.Render()
--- End of inner exception stack trace ---
at com.sap.bi.et.analyzer.api.BExApplication.Render()
at com.sap.bi.et.analyzer.api.BExApplication.set_Synchronize(Boolean iValue)
at com.sap.bi.et.analyzer.addin.BExExcelApplication.OpenQueryThreaded(BExParameter iParameter)
--- End of inner exception stack trace ---
at com.sap.bi.et.analyzer.addin.BExExcelApplication.OpenQueryThreaded(BExParameter iParameter)
at com.sap.bi.et.analyzer.addin.BExThreads.ProcessParameterSubExecuter.Execute()
at com.sap.bi.et.analyzer.addin.BExExcelApplication.OpenQuery(OSObjectInformation iObjectDescription, String iRRIVariableName, String iRRIVariableValue)
at com.sap.bi.et.analyzer.addin.BExThreads.ProcessOpenQueryExecuter.Execute()
--- End of inner exception stack trace ---
at com.sap.bi.et.analyzer.addin.BExThreads.ProcessOpenQueryExecuter.Execute()
at com.sap.bi.et.analyzer.addin.BExMenu.ProcessOpenQuery()
at com.sap.bi.et.analyzer.addin.BExUserInteraction.Process(String iStepName)
--- End of inner exception stack trace ---
at com.sap.bi.et.analyzer.addin.BExUserInteraction.Process(String iStepName)
at com.sap.bi.et.analyzer.addin.BExUserInteraction.ProcessUserInteraction(Sub iSubDelegate, BExStepType iStepType)
at com.sap.bi.et.analyzer.addin.BExMenu.Process(CMD iCMD)
at com.sap.bi.et.analyzer.addin.BExMenu.ProcessCMD(CMD iCMD)
at com.sap.bi.et.analyzer.addin.BExConnect.ExcelCommunication.ProcessBExMenuCommand(String iCMD)
CriticalProgramError
at com.sap.bi.et.analyzer.addin.BExUserInteraction.Process(String iStepName)
at com.sap.bi.et.analyzer.addin.BExUserInteraction.ProcessUserInteraction(Sub iSubDelegate, BExStepType iStepType)
at com.sap.bi.et.analyzer.addin.BExMenu.Process(CMD iCMD)
at com.sap.bi.et.analyzer.addin.BExMenu.ProcessCMD(CMD iCMD)
at com.sap.bi.et.analyzer.addin.BExConnect.ExcelCommunication.ProcessBExMenuCommand(String iCMD)
Thanks & Regards
Madhucheck if oyu can execute this query in RSRT, is so then you need to either go for SP > 16 or BEx Gui = 4 or 5 .,
Hope this helps -
Hi, I'm using Oracle Database 9.0.1.1.1 on MS NT SP6.
Error: ORA-00600: arguments: [srsale_2], [0], [147], [], [], [], [], []
This error happens when I create a Materialized View or a Table
with a query, selecting data on more than one partition of a Partitioned Table
the Partitioned Table is loaded every morning with SQL*Loader.
CREATE MATERIALIZED VIEW DATAMART.MV_RESUMEN_CENTRAL
BUILD IMMEDIATE
REFRESH COMPLETE ON DEMAND
AS
SELECT FECHA, CLIENTE,
H_AUDITOR, SUM(LLAMADAS) AS LLAMADAS, SUM(MIN_FL) AS MIN_FL,
SUM(MIN_RN) AS MIN_RN, SUM(MIN_TZ) AS MIN_TZ
FROM RESUMEN_CENTRALES_HR
WHERE FECHA > 020600
GROUP BY FECHA, CLIENTE, H_AUDITOR;
If I use some like " FROM RESUMEN_CENTRALES_HR partition (rchrmX) "
in de query, the error doesn't happens
The table RESUMEN_CENTRALES_HR is
CREATE TABLE DATAMART.RESUMEN_CENTRALES_HR
FECHA NUMBER(6) NOT NULL,
HR CHAR(2),
CLIENTE VARCHAR2(5),
... more fields
H_AUDITOR CHAR(1),
LLAMADAS NUMBER,
MIN_FL FLOAT,
MIN_RN NUMBER(6),
MIN_TZ FLOAT
) PARTITION BY RANGE(FECHA)
(PARTITION rchrm1 VALUES LESS THAN (20200),
PARTITION rchrm2 VALUES LESS THAN (20300),
PARTITION rchrm3 VALUES LESS THAN (20400),
PARTITION rchrm4 VALUES LESS THAN (20500),
PARTITION rchrm5 VALUES LESS THAN (20600),
PARTITION rchrm6 VALUES LESS THAN (20700),
PARTITION rchrm7 VALUES LESS THAN (20800),
PARTITION rchrm8 VALUES LESS THAN (20900),
PARTITION rchrm9 VALUES LESS THAN (21000),
PARTITION rchrm10 VALUES LESS THAN (21100),
PARTITION rchrm11 VALUES LESS THAN (21200),
PARTITION rchrm12 VALUES LESS THAN (21300));
(This is a part of the INSTANCE_NAME_ALRT.LOG)
Wed Aug 07 11:54:11 2002
Errors in file F:\orant\oradata\mirtest\admin\mirtest\udump\ORA00261.TRC:
ORA-00600: internal error code, arguments: [srsale_2], [0], [147], [], [], [], [], []
Can anybody help me ??Yes, this problem happen when I'm creating the view !!!!
I've created test tables with 1500 rows by partition in the partitioned table,
and then the materialized view has been created successful.
But with my real data (above 3,000,000 rows by partition) is when
I get the error. I don't think that my data is too large because
the tablespace is about 400 MB, but quickly will be increase.
are there any problem with size of partition ???
or there are a special configuration ????
These are some querys of my data :
SQL> SELECT count(rowid) FROM resumen_centrales_hr PARTITION(rchrm6);
COUNT(ROWID)
0
SQL> SELECT count(rowid) FROM resumen_centrales_hr PARTITION(rchrm7);
COUNT(ROWID)
3330020
SQL> SELECT count(rowid) FROM resumen_centrales_hr PARTITION(rchrm8);
COUNT(ROWID)
747114
SQL> CREATE MATERIALIZED VIEW DATAMART.MV_RESUMEN_CENTRAL
2 BUILD IMMEDIATE
3 REFRESH COMPLETE ON DEMAND
4 AS
5 SELECT FECHA, CLIENTE,
6 H_AUDITOR, SUM(LLAMADAS) AS LLAMADAS, SUM(MIN_FL) AS MIN_FL,
7 SUM(MIN_RN) AS MIN_RN, SUM(MIN_TZ) AS MIN_TZ
8 FROM RESUMEN_CENTRALES_HR
9 WHERE FECHA > 020600
10 GROUP BY FECHA, CLIENTE, CLIENTE_800, RUTA_A,
11 ONOFF_A, CDMAT_A, RUTA_B, ONOFF_B, CDMAT_B, H_TELMEX,
12 H_AUDITOR;
FROM RESUMEN_CENTRALES_HR
ERROR at line 8:
ORA-00600: internal error code, arguments: [srsale_2], [0], [148], [], [], [],
SQL> -
Receiving String index out of range: 0 when logging onto database
I am on version 1.5.1-5440 of SQL Developer. I am receiving the following error when I try to
login to a database(s) that is on our network. This error does not occur with databases that I
connect to at Oracle On Demand in Austin TX.
String index out of range: 0
Exception Stack Trace:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:558)
at oracle.jdbc.driver.PhysicalConnection.setDbTzCalendar(PhysicalConnection.java:4702)
at oracle.jdbc.driver.PhysicalConnection.setSessionTimeZone(PhysicalConnection.java:4657)
at oracle.javatools.db.ora.Oracle8i.initOC(Oracle8i.java:171)
at oracle.javatools.db.ora.Oracle8i.<init>(Oracle8i.java:41)
at oracle.javatools.db.ora.Oracle9i.<init>(Oracle9i.java:181)
at oracle.javatools.db.ora.Oracle9iR2.<init>(Oracle9iR2.java:41)
at oracle.javatools.db.ora.Oracle10g.<init>(Oracle10g.java:26)
at oracle.javatools.db.ora.Oracle10gR2.<init>(Oracle10gR2.java:18)
at oracle.javatools.db.ora.OracleDatabaseFactory.createDatabaseImpl(OracleDatabaseFactory.java:112)
at oracle.javatools.db.DatabaseFactory.createDatabaseImpl(DatabaseFactory.java:147)
at oracle.javatools.db.DatabaseFactory.createDatabase(DatabaseFactory.java:130)
at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:637)
at oracle.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:564)
at oracle.dbtools.raptor.utils.Connections$ConnectionInfo$ConnectRunnable.doWork(Connections.java:1144)
at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:161)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:615)
at java.lang.Thread.run(Thread.java:595)
I have reset my NLS Parameters to their Default Values under the Preferences menu.
Any help short of re-installing would be greatly appreciated.
Thanks,
RaoulI came across another error on this forum that was similar to my problem in that the client could not connect to the database. One of the solutions to try was create a sqldeveloper.cmd file in the sqldev/sqldeveloper directory with the following lines:
set ORACLE_HOME=%CD%
start sqldeveloper.exe
I did this and I am able to connect to both my local databases and the databases located in Austin TX. Startup is very slow by the way. Before I could only connect to the databases in Austin.
One difference between the databases is that the nls_date_format parameter is explicitly defined in Austin with a format of DD-MON-RR.
My local database does not have an explicit definition and is taking the default, based on the nls_territory parameter.
It really does not explain my problem only a partial solution.
Thanks,
Raoul
Maybe you are looking for
-
I had cancelled a auto withdrawal from a app I purchased months ago. The app is smule sing. I cancelled the VIP on December 26,2013. Auto renewal was on 12/27/2013. On 1/7/2014 apple charged my account for this. How do I get my money back
-
I have a Canon MX882 printer and more often than note get an error message that says "Printer not Connected." When I check the printer itself, I get confirmation that the access point is connected. I tried reloading the software and that seemed to ha
-
Hi Gurus, Tables required
Hi I want to know opening Stock quantity table and Issued stock quantity table names. Please provide us. Its urgent. Regards Rajesh
-
Survey: Considerations for Using DITA
Survey: Considerations for Using DITA To help potential users decide whether to use DITA and how much effort doing so would involve, Text Structure Consulting, Inc. is conducting a survey to better understand the documentation projects for which DITA
-
Wie muss das PDF in Muse eingebettet werden, dass es zwingend im Acrobat Reader aufgemacht werden kann? Bei normaler einbettungsweise, in Muse, machen die Browser was sie wollen. Sie betten das PDF im Browser ein oder legen es im Downloadordner ab. I