ORA-29902 Error when executing context query
We sometimes get the following error when executing a search based on keywords entered by a user:
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Error generating context stmt ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: interMedia Text error: DRG-50901: text query <HR></BLOCKQUOTE>
A demonstration of the error can be seen by going to the main
http://technet.oracle.com technet page and then performing a site search. Type in any of the following search phrases:
Oracle and not Microsoft
not Microsoft
and database
In my brief experimentation, the presence of any of
not, and, or
at the beginning of the keywords, or next to each other 'and not' within the keywords set causes the above oracle error.
OK, I could train the users not to do this, but with the potential for every net user on the planet using my site, it might take me some time to speak to all of them.
So how do I stop Intermedia from throwing up the error? I have written a quick parser to try to strip out offending entries, but that is not, imho, a good solution, as I do not know all the rules that will break it.
tia
You need to write a text query parser. Check the Query Translator code samples from http://technet.oracle.com/sample_code/products/text/content.html
Similar Messages
-
ORA-29902: error in executing ODCIIndexStart() routine
Hi,
I have a problem with my text mining application.
when I start the classification procedure I get the following errors
Error executing statement: ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50857: oracle error in drcs_query
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at "CTXSYS.DRVODM", line 676
ORA-01426: numeric overflow
ORA-06512: at line 1
After closing and restarting the SQL Navigator, most times it works again, but not every time.
Here is the procedure I use:
PROCEDURE sp_classify
IS
vc2_sqlcommand VARCHAR2(1000);
guete DBMS_SQL.number_table;
branche DBMS_SQL.varchar2_table;
BEGIN
vc2_sqlcommand := 'ALTER TABLE ergebnisse MOVE TABLESPACE xxx;
execute IMMEDIATE vc2_sqlcommand;
n_matchscore := 20;
INSERT INTO ergebnisse
SELECT rt.cat_id, pt.produktions_id, match_score(1) AS MatchScore
FROM produktionsdaten pt, trainingsregeln rt
WHERE matches ( rt.rule, pt.geschaeftsgegenstand, 1) > n_matchscore;
COMMIT;
vc2_sqlcommand :=
'CREATE INDEX I_ERG_PRODID ON ERGEBNISSE ' ||
'( PRODUKTIONS_ID ASC ) ' ||
'TABLESPACE XXX' ||
'STORAGE ( INITIAL 64K ' ||
'NEXT 64K ' ||
'PCTINCREASE 0 ' ||
execute IMMEDIATE vc2_sqlcommand;
Please help me
Greetz Steffi Schweppe
Message was edited by:
user634781I agree with Omar, However if you want to search using special character, you may want to look into the following example. I am not saying this may be a solution for you, however this may give you a start on how to deal with special character in you search.
In our enviroment we have "N" number of Science & Pharmacy & Chemical clients. They need the ability to search using special character for that we have done the following..
begin
select user into v_username from dual;
ctx_ddl.create_preference('orc_CTX_WLPREF', 'BASIC_WORDLIST');
ctx_ddl.set_attribute('orc_CTX_WLPREF','SUBSTRING_INDEX','TRUE');
ctx_ddl.set_attribute('orc_CTX_WLPREF','WILDCARD_MAXTERMS','2559');
ctx_ddl.Create_Preference('orc_LEXER','BASIC_LEXER');
ctx_ddl.Set_Attribute('orc_LEXER', 'index_themes', 'FALSE');
ctx_ddl.set_attribute('orc_LEXER','printjoins','0123456789%,./?;:<>[]{}\|+=-_()*&^$#@!''"%');
end;
And then siply create the index as follow..
create index index_name on activitylog(columnname)
indextype is ctxsys.context
parameters ('Wordlist CYBERLAB_CTX_WLPREF lexer CYBERLAB_LEXER memory 48M');
then I am able to do something like the following..
select count(*) from ACTIVITYLOG where contains (DESCRIPTION, '<%.htm@') > 0;
hope this helps.. -
SQL Error: ORA-29902: error in executing ODCIIndexStart() routine
I am running a SDO_RELATE operation on 2 geometries from 2 different tables. Spatial indexes are already created and the tables are also versioned.
Below is the spatial meta data for both the geometries in user_sdo_geom_metadata table:
DIMINFO is :
MDSYS.SDO_DIM_ELEMENT(MDSYS.SDO_DIM_ELEMENT(Easting,0,700000,0.001),MDSYS.SDO_DIM_ELEMENT(Northing,0,1300000,0.001),MDSYS.SDO_DIM_ELEMENT(Height,-100,2000,0.001))
SRID is 27700
When I use SDO_RELATE or ADO_ANYINTERACT on both the geometires, i am getting the below error.
Error report:
SQL Error: ORA-29902: error in executing ODCIIndexStart() routine
ORA-13243: specified operator is not supported for 3- or higher-dimensional R-tree
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 333
29902. 00000 - "error in executing ODCIIndexStart() routine"
*Cause: The execution of ODCIIndexStart routine caused an error.
*Action: Examine the error messages produced by the indextype code and
take appropriate action.
Could you please let me know what should be the root cause for this issue?Hi
Have you checked this posting?
Re: ORA-13243
Luc -
ORA-20001: ORA-29902: error in executing ODCIIndexStart() routine
Hi, everyone!
I have an error as follow:
ORA-20001: ORA-29902: error in executing ODCIIndexStart() routine
ORA-06553: PLS-123: program too large
I can get the sql where the procedure through the error, and execute the sql in sqlplus, no error. Does anyone have experience with the error? or have some direction to solve problem? thank you!
My oracle version is 9.2.0.8.0 and sdo version is 9.2.0.8.0, too.I agree with Omar, However if you want to search using special character, you may want to look into the following example. I am not saying this may be a solution for you, however this may give you a start on how to deal with special character in you search.
In our enviroment we have "N" number of Science & Pharmacy & Chemical clients. They need the ability to search using special character for that we have done the following..
begin
select user into v_username from dual;
ctx_ddl.create_preference('orc_CTX_WLPREF', 'BASIC_WORDLIST');
ctx_ddl.set_attribute('orc_CTX_WLPREF','SUBSTRING_INDEX','TRUE');
ctx_ddl.set_attribute('orc_CTX_WLPREF','WILDCARD_MAXTERMS','2559');
ctx_ddl.Create_Preference('orc_LEXER','BASIC_LEXER');
ctx_ddl.Set_Attribute('orc_LEXER', 'index_themes', 'FALSE');
ctx_ddl.set_attribute('orc_LEXER','printjoins','0123456789%,./?;:<>[]{}\|+=-_()*&^$#@!''"%');
end;
And then siply create the index as follow..
create index index_name on activitylog(columnname)
indextype is ctxsys.context
parameters ('Wordlist CYBERLAB_CTX_WLPREF lexer CYBERLAB_LEXER memory 48M');
then I am able to do something like the following..
select count(*) from ACTIVITYLOG where contains (DESCRIPTION, '<%.htm@') > 0;
hope this helps.. -
ORA-27092 Error while executing any query from client
Hello
I am getting following error while executing any query from client remotly.
IAMDBA@TEST_OAT.ABCD > select userid from dual;
select userid from dual
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01116: error in opening database file 1
ORA-01110: data file 1: '/u01/prod/system/system01.dbf'
ORA-27092: size of file exceeds file size limit of the process
Additional information: 131071
Additional information: 286209
But while local connection,its working.hi,
ulimit command- Limit user resources
su - oracle
ulimit -n (this command will show you the current value for ulimit the default value is 1024)
to increase its value:---
ulimit -n <some value> ( this command will change value for current session only)
example
ulimit -n 101062
once done check the value as:--
ulimit -n( for verification)
search in google for more explanation or revert back to me for any suggestions.... :)
Edited by: varun4dba on Jan 31, 2011 4:09 PM -
ORA-20000 error when executing background jobs in BI System
Hello Experts,
We newly installed NW2004s System. Few BI related background jobs are showing Error no: 4 or Error no: 3 in SM50. Also few BI related background jobs are giving error "ORA-20000 occurred when executing SQL statement (parse error offset=0)". Please let me know what does Error 4 or 3 mean in SM50 and how to resolve Ora-20000 error?
ThanksThis may be to do with insufficient authorization for the user (for creating statistics for example). Check OSS note 963760.
-
Error when executing a Query through information Broadcasting
Dear SDN,
We have configured information Broadcasting in the Web Reports---
Scheduled and then when executing the following error is coming
500 internal server error - Microsoft internet explorer
Error when processing your request
What has happened?
The URL http://xyz.com:8000/sap/bw/BEx was not called due to an error.
Note
The following error text was processed in the system BWD : Please enter a valid value for characteristic 0CALMONTH.
The error occurred on the application server asalbwd_BWD_00 and in the work process 0 .
The termination type was: ERROR_MESSAGE_STATE
The ABAP call stack was:
START-OF-SELECTION of program RSRD_BROADCAST_PROCESSOR
What can I do?
If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system BWD in transaction ST22.
If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server asalbwd_BWD_00 in transaction SM21.
If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server asalbwd_BWD_00 . In some situations, you may also need to analyze the trace files of other work processes.
If you do not yet have a user ID, contact your system administrator.
Error code: ICF-IE-http-c:900-u:VENKAT -l:E-s:BWD-i:asalbwd_BWD_00 -w:0-d:20080708-t:133744-v: ERROR_MESSAGE_STATE-e:Please enter a valid value for characteristic 0CALMONTH.
HTTP 500 - Internal Server Error
Your SAP Internet Communication Framework Team
Please suggest us to resolve this error..
Help will be greatly appreciated with points..
Thanks in advanceHi
Thanks...
I have given only Fiscal Year/Period Variable
Other than Fiscal Year/Period Variable....No Variables in that Query..
In FI Queries, I did not use 0CALMONTH Variable...
I do not know why it is giving that error..
Please suggest us to resolve this error..
Thanks in advance -
Error when executing a query on upgraded system
Hi All,
We are in the process of upgrading our BI system. Currently we are on Quality system and its a copy of existing production system. I have executed a query on the production system (3.5 system) successfully.
But the same query when I'm trying to execute on the upgraded quality system (BI 7.0), I get an error " warning info provider was changed or activated at runtime. The query cannot be opened". The same message doesn't pop up on the current 3.5 BI system.
Can anyone help me how I can correct this error?
regards,
SumanHi All,
I activated the Infoset and I could eliminate the error. Now the issue is solved.
Thanks -
Error when executing a query on master data
Hi Friends,
When I execute a query fon Master Data Characteristic infoObject ( 0BPARTNER ) from BEx Analyzer I got the below error. 0BPARTNER contains 15 attributes. I am getting the below error only for this query. Rest all other queries are working good with the same BEx Analyzer.
<b>An error occured in the communication with the BW Server.
Due to this connection has to be closed.</b>
<b>Detailed Description:
The system is configured incorrectly.</b>
Please tell me what could be the problem? How to overcome this?
Thanks,
SasiHi Arun,
Before the execution of query I did that. And it was ' Query is Correct'.
Any more ideas?
Thanks,
Sasi. -
ORA-01008 Error while executing VO Query
HI,
I have a VO to get the heirarchy for the selected Business. On selecting appropriate business, ppr is fired to build up available heirarchies for that business. The query for VO is
SELECT pos.name ||' ('||DECODE(pos.primary_structure_flag,'Y','Primary', 'N', 'Non-Primary','')||')' name , posv.org_structure_version_id org_structure_version_id
FROM per_organization_structures pos,per_org_structure_versions posv
WHERE pos.business_group_id = :1
AND pos.organization_structure_id = posv.organization_structure_id
AND pos.business_group_id = posv.business_group_id
AND posv.date_to IS NULL
While executing the query, it throws ORA-01008 exception saying "Not all Variables are bound". During debugging i saw that the selected business group id is available in AM before calling the VO execution.
Any help will be appreciated.
Thanks,Hi Tapash,
The following is the information you have requested
1. VO defn from the xml file
<?xml version="1.0" encoding='windows-1252'?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<ViewObject
Name="HierarchyVO"
BindingStyle="Oracle"
CustomQuery="true"
RowClass="ge.oracle.apps.per.orghierarchy.poplist.server.HierarchyVORowImpl"
ComponentClass="ge.oracle.apps.per.orghierarchy.poplist.server.HierarchyVOImpl"
MsgBundleClass="oracle.jbo.common.JboResourceBundle"
UseGlueCode="false" >
<SQLQuery><![CDATA[
SELECT pos.name ||' ('||DECODE(pos.primary_structure_flag,'Y','Primary', 'N', 'Non-Primary','')||')' name , posv.org_structure_version_id org_structure_version_id
FROM per_organization_structures pos,per_org_structure_versions posv
WHERE pos.business_group_id = :1
AND pos.organization_structure_id = posv.organization_structure_id
AND pos.business_group_id = posv.business_group_id
AND posv.date_to IS NULL
]]></SQLQuery>
<DesignTime>
<Attr Name="_isCodegen" Value="true" />
<Attr Name="_version" Value="9.0.3.12.53" />
<Attr Name="_CodeGenFlagNew" Value="36" />
</DesignTime>
<ViewAttribute
Name="Name"
IsPersistent="false"
Precision="44"
Type="java.lang.String"
AliasName="NAME"
ColumnType="VARCHAR2"
Expression="NAME"
SQLType="VARCHAR" >
<DesignTime>
<Attr Name="_DisplaySize" Value="44" />
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="OrgStructureVersionId"
IsPersistent="false"
IsNotNull="true"
Type="oracle.jbo.domain.Number"
AliasName="ORG_STRUCTURE_VERSION_ID"
ColumnType="VARCHAR2"
Expression="ORG_STRUCTURE_VERSION_ID"
SQLType="NUMERIC" >
<DesignTime>
<Attr Name="_DisplaySize" Value="22" />
</DesignTime>
</ViewAttribute>
</ViewObject>
2. the method in AM
public void getHierarchy(String strBusinessGrpId)
try
HierarchyVOImpl vo = getHierarchyVO1();
Number BusinessGroupId = new Number("0");
if(strBusinessGrpId!=null && !strBusinessGrpId.equals(""))
BusinessGroupId = new Number(strBusinessGrpId);
//vo.setWhereClause(null);
//vo.setWhereClauseParam(0,BusinessGroupId);
vo.executeQuery();
catch(Exception e)
throw new OAException(e.toString(),OAException.ERROR);
} //end of getHierarchy
3. calling code in CO
if ("changeBusiness".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
String businessGrpId = pageContext.getParameter("BusinessGroup");
Serializable[] parameters = { businessGrpId };
mAM.invokeMethod("handleChangeBusiness", parameters);
mAM.invokeMethod("getHierarchy", parameters);
Thanks,
Mohammadi -
No space left in shared memory error when executing a query
Hi,
When I executed a query, it showed the results. But when I drilled down it by material, it showed the following error message.
Error An exception with the type CX_SY_EXPORT_NO_SHARED_MEMORY occured
Error No space left in shared memory
Is there anyone know what is the reason and how to resolve?
Many Thanks
JeanYour report got too big and you ran out of memory on the server.
Run it for a smaller data set (e.g., a few months instead of a year) to avoid this problem.
Hope this helps...
Bob -
Error when executing the query or refreshing the workbook
Hi All,
Whenever I am trying to execute a query or refresh a workbook a error message is poping up saying that
Error: <internal error> Problem when writing table: E_T_cel.
I face this error in few of the queries and when i refresh workbooks. These queries have lot of calculations and filters and they sum up lot of records.
Any help greatly appreciated.
Thanks
Raj.Hi Maik,
Thanks for reply, I went into tran sm21 but i could not understand the messages there. Below is the list of messages in sm21
System Log: Local Analysis of cdsap9d 1
From date/time............. 04/20/2005 / 10:00:00
To date/time............... 04/21/2005 /
User....................... KADALPR
Transaction code...........
Terminal...................
Task.......................
Problem class..............
Further restrictions.......
Sorted ? ................ SOFI
Pages with single entries 00000100
With statistics............
System Log: Local Analysis of cdsap9d 2
Time Ty. Nr Cl. Tcod MNo Text Date : 20.04.05
12:58:10 DIA 0 100 R49 Communication error, CPIC return code 019, SAP return code 728
12:58:10 DIA 0 100 R5A > Conversation ID: 29858195
12:58:10 DIA 0 100 R64 > CPI-C function: CMSEND(SAP)
12:58:10 DIA 0 100 R68 Perform rollback
12:58:10 DIA 0 100 R47 Delete session 001 after error 003
23:54:49 DIA 1 100 R49 Communication error, CPIC return code 019, SAP return code 728
23:54:49 DIA 1 100 R5A > Conversation ID: 44959947
23:54:49 DIA 1 100 R64 > CPI-C function: CMSEND(SAP)
System Log: Local Analysis of cdsap9d 3
Time Ty. Nr Cl. Tcod MNo Text Date : 21.04.05
09:32:50 DIA 2 100 R49 Communication error, CPIC return code 019, SAP return code 728
09:32:50 DIA 2 100 R5A > Conversation ID: 83536783
09:32:50 DIA 2 100 R64 > CPI-C function: CMSEND(SAP)
Reading:
Number of records read......... 2777
Number of records selected..... 11
Old records skipped............ 2733
Records of invalid users skippe 33
Further selection:
Number of records read......... 11
Number of records selected..... 11
Number of records printed...... 11
End of system log
System Log: Local Analysis of cdsap9d 4
C o n t e n t s
Contents Page Start End
Selection criteria 1
2 20.04.2005 12:58:10 - 23:54:49
3 21.04.2005 09:32:50 - 09:32:50
Contents 4
End of program -
If you can help me out as where to look at these messages then it great.
Thanks,
Raj. -
Error when executing a query in ECC
W'e're getting the following error when attempting to run a Crystal Report (2008) that uses an SAP ECC query as the datasource:
Database Connector Error: "Screen output without connection to user"
Anyone seen this before? Tried looking this up in the forum but didn't find anything.
Thanks.Are you up to date on the Crystal ECC transports?
Is the user running the Crystal Reported assigned to the SAP query user group (SQ03/02)?
I have seen strange errors with these two things.
Why not upgrade to CR 2011? We found with our license there was no addiitional fee/cost to do this.
Tammy -
I'm trying a simple spatial query and this does not work:
select count(1) from will w,
t_line_sdo t
where w.ID = 2 --
and SDO_relate(T.sdo, W.sdo,
'mask=anyinteract querytype=WINDOW')= 'TRUE'
t_line_sdo is indexed on sdo column.
will is indexed on sdo column
I get an error in executing ODCIIndexStart() routine.
But this works:
select count(1) from will w,
t_line_sdo t
where w.ID = 2 --
and SDO_filter(T.sdo, W.sdo,
'querytype=WINDOW')= 'TRUE'
-puzzledHi Will,
No luck reproducing the error on my 9.2.0.1 system.
I slightly changed the user_sdo_geom_metadata entries to set the coordinate system bounds/tolerance to:
-180,180,0.5
-90,90,0.5
but I don't think those would have been the difference.
Another change I made was to the queries to use t_line_sdo instead of t_line.
If I was writing the query I might make one slight modification though - I'd use the /*+ ordered */ hint:
select /*+ ordered */ count(1) ALBERTA from will w,
t_line_sdo t
where w.CAN_BOR_35_ID = 2
and SDO_RELATE( t.sdo, w.sdo,
'mask=anyinteract querytype=WINDOW')= 'TRUE';
Perhaps this will help you.
Here is what I did:
CREATE TABLE WILL
CAN_BOR_35_ID NUMBER (17) NOT NULL,
BOR_CODE VARCHAR2(5),
SDO MDSYS.SDO_GEOMETRY NOT NULL
--Here's my insert:
INSERT INTO WILL
VALUES ( 2, 'ALBT', MDSYS.SDO_GEOMETRY(
2003, -- 2-dimensional polygon
8307, -- SRID for 'Longitude / Latitude (WGS 84)' coordinate system
NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 1),
MDSYS.SDO_ORDINATE_ARRAY( -114.05013, 49.00081, -- ALBT1
-109.98920, 48.98902, -- SASK1
-110.00531, 49.50556, -- SASK6
-114.59275, 49.50253, -- ALBT2
-114.05013, 49.00081) -- ALBT1 -- CLOSE THE LOOP
COMMIT;
-- of course I did the insert into the metadata table...
INSERT INTO USER_SDO_GEOM_METADATA
VALUES (
'WILL',
'SDO',
MDSYS.SDO_DIM_ARRAY(
MDSYS.SDO_DIM_ELEMENT('X', -180, 180, 0.5),
MDSYS.SDO_DIM_ELEMENT('Y', -90, 90, 0.5)),
8307 -- SRID for 'Longitude / Latitude (WGS 84)' coordinate system
INSERT INTO USER_SDO_GEOM_METADATA
VALUES (
'T_LINE_SDO',
'SDO',
MDSYS.SDO_DIM_ARRAY(
MDSYS.SDO_DIM_ELEMENT('X', -180, 180, 0.5),
MDSYS.SDO_DIM_ELEMENT('Y', -90, 90, 0.5)),
8307 -- SRID for 'Longitude / Latitude (WGS 84)' coordinate system
COMMIT;
CREATE INDEX IDX_WILL
ON WILL (SDO)
INDEXTYPE IS MDSYS.SPATIAL_INDEX
--And I did the validate:
select T.BOR_CODE , SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT
(T.SDO, 0.5)
from WILL T
-- Script to create t_line_sdo:
CREATE TABLE t_line_sdo
(life_id NUMBER(17,0) NOT NULL,
feat_code NUMBER(4,0),
sdo MDSYS.SDO_GEOMETRY)
INSERT INTO t_line_sdo
VALUES
(1994622361001,4110,
MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
MDSYS.SDO_ORDINATE_ARRAY(-112.08714, 49.14799, -112.08772, 49.14847, -112.08851, 49.1492,
-112.08879, 49.14954, -112.08894, 49.14977, -112.0899, 49.15134, -112.09043, 49.15218)))
INSERT INTO t_line_sdo
VALUES
(1994632361001,4110,
MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
MDSYS.SDO_ORDINATE_ARRAY(-112.09043, 49.15218, -112.09117, 49.15336, -112.09239, 49.15544,
-112.09338, 49.15718, -112.09408, 49.15835, -112.09495, 49.15992, -112.09542, 49.16066,
-112.09579, 49.16131, -112.09624, 49.16224, -112.09642, 49.16285, -112.09654, 49.16332,
-112.09657, 49.16389, -112.09658, 49.16468, -112.0965, 49.16529, -112.09612, 49.16633,
-112.09594, 49.16677, -112.0945, 49.16904, -112.09403, 49.16984, -112.09326, 49.17102,
-112.09292, 49.17165, -112.09266, 49.17218, -112.09256, 49.1726, -112.09252, 49.17298,
-112.0925, 49.17337, -112.09256, 49.17385, -112.09265, 49.17419)) )
INSERT INTO t_line_sdo
VALUES
(1994642361001,4110,
MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
MDSYS.SDO_ORDINATE_ARRAY(-112.09265, 49.17419, -112.09277, 49.17457, -112.09306, 49.1751,
-112.09385, 49.17636, -112.09511, 49.17845, -112.09728, 49.18187, -112.09832, 49.18355,
-112.09864, 49.18412, -112.09897, 49.18462, -112.09921, 49.18493, -112.09961, 49.18533,
-112.10004, 49.18567, -112.10053, 49.18602, -112.10302, 49.18744, -112.11002, 49.19128,
-112.1151, 49.1941, -112.11592, 49.1946, -112.1164, 49.19497, -112.11687, 49.19545,
-112.11749, 49.19642, -112.11898, 49.20042, -112.11989, 49.20288)))
INSERT INTO t_line_sdo
VALUES
(1994712361001,4110,
MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
MDSYS.SDO_ORDINATE_ARRAY(-112.06171, 49.1155, -112.0626, 49.11626, -112.06361, 49.11717,
-112.0661, 49.11924, -112.0673, 49.12028, -112.06886, 49.12156, -112.07009, 49.12263,
-112.07084, 49.12319, -112.07145, 49.12385, -112.07233, 49.12489, -112.07314, 49.12607,
-112.07415, 49.12744, -112.07484, 49.12843, -112.07534, 49.12904, -112.07553, 49.12938,
-112.07574, 49.12968, -112.07603, 49.13043, -112.07624, 49.13107, -112.07832, 49.13632)))
INSERT INTO t_line_sdo
VALUES
(1994722361001,4110,
MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
MDSYS.SDO_ORDINATE_ARRAY(-112.06171, 49.1155, -112.0626, 49.11626, -112.06361, 49.11717,
-112.0661, 49.11924, -112.0673, 49.12028, -112.06886, 49.12156, -112.07009, 49.12263,
-112.07084, 49.12319, -112.07145, 49.12385, -112.07233, 49.12489, -112.07314, 49.12607,
-112.07415, 49.12744, -112.07484, 49.12843, -112.07534, 49.12904, -112.07553, 49.12938,
-112.07574, 49.12968, -112.07603, 49.13043, -112.07624, 49.13107, -112.07832, 49.13632)))
INSERT INTO t_line_sdo
VALUES
(1994852361001,4110,
MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
MDSYS.SDO_ORDINATE_ARRAY(-112.07832, 49.13632, -112.07849, 49.13678, -112.07912, 49.13847,
-112.08024, 49.14133, -112.0806, 49.14208, -112.0809, 49.14257, -112.08126, 49.14305,
-112.08219, 49.14393, -112.0826, 49.14434, -112.08341, 49.14508, -112.08397, 49.14555,
-112.08591, 49.14708, -112.08714, 49.14799)))
INSERT INTO t_line_sdo
VALUES
(2681482361001,4110,
MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
MDSYS.SDO_ORDINATE_ARRAY(-112.05406, 49.10917, -112.05521, 49.11004, -112.0561, 49.11082)) )
INSERT INTO t_line_sdo
VALUES
(2681492361001,4110,
MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
MDSYS.SDO_ORDINATE_ARRAY(-112.06313, 49.11545, -112.06171, 49.1155)))
INSERT INTO t_line_sdo
VALUES
(2681502361001,4110,
MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
MDSYS.SDO_ORDINATE_ARRAY(-112.0561, 49.11082, -112.05787, 49.11233, -112.05916, 49.11338,
-112.06171, 49.1155)))
commit
create index IDX_T_LINE_SDO on t_line_sdo (sdo)
INDEXTYPE IS MDSYS.SPATIAL_INDEX
--And I did the validate:
select T.LIFE_ID , SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT
(T.SDO, 0.5)
from T_LINE_SDO T
-- Both of these work
select count(1) ALBERTA from will w,
t_line_sdo t
where w.CAN_BOR_35_ID = 2
and SDO_RELATE( t.sdo, w.sdo,
'mask=anyinteract querytype=WINDOW')= 'TRUE';
-- Works (because it's doing a full table scan???)
select count(1) ALBERTA from will w,
t_line_sdo t
where w.CAN_BOR_35_ID = 2
and SDO_RELATE( w.sdo, t.sdo,
'mask=anyinteract querytype=WINDOW')= 'TRUE'; -
Java.sql.SQLException: ORA-00933: error when executing query
Hello,
I am trying to execute the following query from a jsp page.
String sqlUpdate ="UPDATE table_name SET name ='"+name+"', description='"+description+"', proj_link='" projlink"', active='" active"',sort_order='" order"',image='" image"',category='" category"', technology='" technology "' WHERE id="+id+" ";
stmt.executeQuery(sqlUpdate);
I get the follwoing error java.sql.SQLException: ORA-00933: SQL command not properly ended
When I omit "description" from the query it executes fine. But when I place it back into the query I get the above error. The table is in Oracle database and the datatype of description id varchar2(4000). I declared all the variables used in the query, I then assigned values caught from the form and then am trying to update the form varibles in the table.
Thanks,
Nikky128Nikky128 wrote:
Hello,
I am trying to execute the following query from a jsp page.There's a big part of your problem. You shouldn't be doing database stuff in JSPs. If you must, you should be using JSTL and its <sql> tags.
String sqlUpdate ="UPDATE table_name SET name ='"+name+"', description='"+description+"', proj_link='" projlink"', active='" active"',sort_order='" order"',image='" image"',category='" category"', technology='" technology "' WHERE id="+id+" ";Not using PreparedStatement here is just a silly noob error.
When I omit "description" from the query it executes fine. But when I place it back into the query I get the above error. The table is in Oracle database and the datatype of description id varchar2(4000). I declared all the variables used in the query, I then assigned values caught from the form and then am trying to update the form varibles in the table.Probably a single or double quote that you can't see. PreparedStatement will eliminate that problem.
%
Maybe you are looking for
-
Trying to install Windows via Bootcamp (dual SSD, optibay)
I have an MBP 17" late 2011. I am running Lion 10.7.4. and I recently bought two Samsung 830 Series SSD drives to put into the MBP. I want to put one in the The second one I want to go into the optibay, so I bought a drive caddy. I am not able to ins
-
Names of many city and villages on the new maps application are in the wrong position
Is only me with this problem? Using maps with iOS 6 names of many small villages in Sardinia are positioned very far from the correct place
-
Custom decimal places in OBIEE Presentation Services
Hello All, In the OBIEE presentaion services for a column of type number there is an option to override the default data format. In this option in the decimal places we have a value "up to 6". Is there any way I can change this to "up to 10" (at the
-
Flash Crashes on clicking import to stage
I'm having an issue with a blank open document, clicking on 'import to stage' will crash the program or clicking on 'import to library' will crash the program. I have tried uninstalling CS4 and re-installing CS4. The problem remains the same. Any id
-
Adobe AIR apk for android having problem when running in tablet
Already we know AIR having problem when running on some tablet,shows black color for some time after clicking icon and rendering process also very slow mean while game performance is too low and stage frame rate also reduced not 24 fps. My case is ot