Choral FAQ and Known Issues¶
-
- False similarity search results in the case of molecule types with tautomer=GENERIC parameter
1<a name="src-1803889-choralfaqandknownissues-faq"></a>
- False similarity search results in the case of molecule types with tautomer=GENERIC parameter
FAQ¶
How to check/change the host Oracle calls back to¶
How to check invalid structures¶
-
Use the isvalidmolecule method. Note, there are some structures which are qualified as valid, but cannot be indexed by the cartridge.
-
Check the logs in
/logs . The logging level can be set in/conf/application.properties file.- INFO level log files contain only the error.
- DEBUG level log files contain the the error and the structure as well.
-
Check warnings in the CHORAL_LOG table (with permission to select the table). See details of logging configuration relating CHORAL_LOG table.
Look for messages like
Invalid structure with rowid
-
By this query on an indexed table:
note: this is an unofficial solution, it may be changed without notice between versions.
-
By this query (preferably on an indexed table):
-
The error message will contain a key (e.g.):
“Unable to import molecule with key 1101010960388”
Run this query (be careful, the table owner and name are in uppercase)
How to check the progress of creating an index¶
How to check the execution plan of an sql statement¶
EXPLAIN PLAN
It is advised always to check your select sql statement by generating its explain plan.
How to import SD file into Oracle database¶
Prerequisites¶
- sdf file (example.sdf)
- Oracle DB access with table creation grants
Import steps¶
The following example will import the example.sdf file records into the mol column. Note that the fields of the sdf records are not separated and imported into separate columns.
-
Create table in the database (this table will be used to import the data into):
-
Create an sqlldr control file with the following content.
-
Load the sdf file from command line with sqlldr command (the command will ask you username and password to access the database). The sqlldr command should be executed in the directory where the example.sdf and sdfload.ctl are located.
Result¶
As a result of the previous operations you will have a table with primary keys in id column and the molecules with additional fields (which are not extracted) in the mol column.
ORA-06598: insufficient INHERIT PRIVILEGES privilege¶
ORA-06598: insufficient INHERIT PRIVILEGES privilege error can be received in case of Oracle 12.1 if statements using the operators, functions of Choral are issued by a dba_user (Sys or System).
Workaroud recommended:
Known Issues¶
Search result inconsistency¶
Inconsistent search results might be received if during the run of the search some modifications (insert, update or delete) of stored chemical structures of the chemical structure table(s) affected by the search are committed by a different user than the searcher one.
Order by inconsistency of uncommitted structures¶
Uncommitted chemical structures are always at the end of the order by queries in index mode.
Slow indexing¶
Indexing can be slow due to not doing calculations in parallel in special cases. If the indexed table is not owned by the user who issued the CREATE INDEX command and the indexing user don’t have select role with grant option on the indexed table or doesn’t have the create view role and the cartridge owner doesn’t have select role on the indexed table.
Order by inconsistency at similarity search in function mode¶
If the Oracle Cost Based Optimizer chooses not to use the index at similarity search, ordering based on similarity relevance will be corrupted.
Slow calculation of chemical terms¶
Calculation of chemical terms for great number of structures might be slow.
Cost estimation for query structures in CLOB¶
Cost estimation does not work for query structures in CLOB.
The following workarounds are suggested to convert the CLOB query to VARCHAR2 and run the search (then cost estimation will work):
Workaround 1¶
Workaround 2¶
Cost estimation can not be calibrated automatically yet¶
Cost estimation automatically runs for a given environment using predefined values. It is not possible to run an automated calibration for it to adjust to the custom environment. However, cost estimation factors can be adjusted manually and thus the plan selected for chemical search by Oracle can be influenced. See how to make calibration settings manually.
No more data to read from socket error¶
After an apparently successful installation and index creation, the search processes can throw No more data to read from socket error.
Ocassionally, the error appears also at the end of the installation process.
At the moment, the only viable workaround is repeating the installation.
False similarity search results in the case of molecule types with tautomer=GENERIC parameter¶
In the case molecule types with tautomer=GENERIC parameter, similarity search gives false results.
These is no workaround at the moment, please do not execute similarity search in structure columns having molecule type with tautomer=GENERIC parameter.
From version 21.9.0 similarity search works correctly even in the case of molecule types with tautomer=GENERIC parameter.