User 9ec4593bcc
06-06-2007 12:45:26
Hi,
I am encountering the following error when attempting to perform a chemical search in SQLplus. The chemical database was created with instantJchem.
E:\JChem\cartridge>test jchem/jchem
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 6 07:41:36 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
JCHEM_CORE_PKG.GETENVIRONMENT()
--------------------------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
JChem version in the database: 3.2.6
JChem version in the Tomcat server: 3.2.6
java.vm.version: 1.6.0_01-b06
java.vm.vendor: Sun Microsystems Inc.
Apache Tomcat/6.0.1
JCHEM_CORE_PKG.GETENVIRONMENT()
--------------------------------------------------------------------------------
Major JDBC version in Tomcat: 10
Minor JDBC version in Tomcat: 2
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Pr
oduction
With the Partitioning, OLAP and Data Mining options
E:\JChem\cartridge>
JChem version: 3.2.6
JChem Streams version: 3.2.6
SQL> select cd_id from bionet where jc_contains(cd_structure,'CN1C=NC2=C1C(=O)N(C)C(=O)N2C')=1;
select cd_id from bionet where jc_contains(cd_structure,'CN1C=NC2=C1C(=O)N(C)C(=O)N2C')=1
*
ERROR at line 1:
ORA-29900: operator binding does not exist
ORA-06553: PLS-306: wrong number or types of arguments in call to 'JC_CONTAINS'
I also tried this from a different post
create or replace function charToTmpBlob(c varchar2) RETURN BLOB AS LANGUAGE JAVA NAME 'chemaxon.jchem.cartridge.JCFunctionsBlob.stringToTmpBlob(java.lang.String) return oracle.sql.BLOB';
select cd_id from bionet where jc_containsb(cd_structure, charToTmpBlob('CCCCC')) = 1;
with the following error when executing
*
ERROR at line 1:
ORA-29531: no method stringToBlob in class
chemaxon/jchem/cartridge/JCFunctionsBlob
Can someone suggest how I can perform the same search in instantJchem at the SQL Level?
I am encountering the following error when attempting to perform a chemical search in SQLplus. The chemical database was created with instantJchem.
E:\JChem\cartridge>test jchem/jchem
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 6 07:41:36 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
JCHEM_CORE_PKG.GETENVIRONMENT()
--------------------------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
JChem version in the database: 3.2.6
JChem version in the Tomcat server: 3.2.6
java.vm.version: 1.6.0_01-b06
java.vm.vendor: Sun Microsystems Inc.
Apache Tomcat/6.0.1
JCHEM_CORE_PKG.GETENVIRONMENT()
--------------------------------------------------------------------------------
Major JDBC version in Tomcat: 10
Minor JDBC version in Tomcat: 2
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Pr
oduction
With the Partitioning, OLAP and Data Mining options
E:\JChem\cartridge>
JChem version: 3.2.6
JChem Streams version: 3.2.6
SQL> select cd_id from bionet where jc_contains(cd_structure,'CN1C=NC2=C1C(=O)N(C)C(=O)N2C')=1;
select cd_id from bionet where jc_contains(cd_structure,'CN1C=NC2=C1C(=O)N(C)C(=O)N2C')=1
*
ERROR at line 1:
ORA-29900: operator binding does not exist
ORA-06553: PLS-306: wrong number or types of arguments in call to 'JC_CONTAINS'
I also tried this from a different post
create or replace function charToTmpBlob(c varchar2) RETURN BLOB AS LANGUAGE JAVA NAME 'chemaxon.jchem.cartridge.JCFunctionsBlob.stringToTmpBlob(java.lang.String) return oracle.sql.BLOB';
select cd_id from bionet where jc_containsb(cd_structure, charToTmpBlob('CCCCC')) = 1;
with the following error when executing
*
ERROR at line 1:
ORA-29531: no method stringToBlob in class
chemaxon/jchem/cartridge/JCFunctionsBlob
Can someone suggest how I can perform the same search in instantJchem at the SQL Level?