User d8da4712c1
21-05-2013 14:25:00
Hello everyone,
I want to use an sql request with molfile without bidding like:
This is equivalent to : SELECT cd_id FROM kiet.sub_structure WHERE jc_compare(cd_smiles, 'COC1=CC=C(C(CC#N)=N1)[N+]([O-])=O','t:s') = 1;
////////////////////////////////////////////////// this is what I want to do :
Instead of (for example, didn't try if it works with bidding): SELECT cd_id FROM kiet.sub_structure WHERE jc_compare(cd_structure,:molfile,'t:s') = 1;
I want to (cause testing my queries on sqlplus before implementation on the code):
SELECT cd_id FROM kiet.sub_structure WHERE jc_compare(cd_structure, ' Mrv0541 05211312252D
14 14 0 0 0 0 999 V2000
0.0687 1.0863 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
-0.6457 0.6738 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-0.6457 -0.1513 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0687 -0.5638 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.7832 -0.1513 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.7832 0.6738 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.2291 1.2571 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
-2.0260 1.0436 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.4977 1.0863 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.2946 0.8727 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.4977 -0.5638 0.0000 N 0 3 0 0 0 0 0 0 0 0 0 0
2.7071 0.1583 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0
2.3227 -0.5638 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0
1.4977 -1.3888 0.0000 O 0 5 0 0 0 0 0 0 0 0 0 0
1 2 1 0 0 0 0
1 6 2 0 0 0 0
2 3 2 0 0 0 0
3 4 1 0 0 0 0
4 5 2 0 0 0 0
5 6 1 0 0 0 0
2 7 1 0 0 0 0
7 8 1 0 0 0 0
6 9 1 0 0 0 0
9 10 1 0 0 0 0
5 11 1 0 0 0 0
10 12 3 0 0 0 0
11 13 2 0 0 0 0
11 14 1 0 0 0 0
M CHG 2 11 1 14 -1
M END','t:s') = 1;
////////////////////////////////
I'm getting this error when doing the last query:
Erreur SQL : ORA-29902:Error excuting the routine ODCIIndexStart()
ORA-20101: Cannot read molecule file.
ORA-06512: à "KIET.JCHEM_CORE_PKG", ligne 45
ORA-06512: à "KIET.JC_IDXTYPE_IM", ligne 335
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.