User 55ffa2f197
11-07-2013 18:12:34
Hi , i am using jc_compare in a cursor as following, i keep getting an Oracle error
PL/SQL: ORA-00942: table or view does not exist.
however all the tables, columns do exist. How do i get around the problem?
Thanks
Dong
CREATE OR REPLACE PROCEDURE insertD2SMol IS
cursor cur_mol (v_smiles varchar2) is
select * from molecules
where jc_compare(molecule,v_smiles,'t:ef')=1;
BEGIN
dbms_output.put_line('hello');
END insertD2SMol;
/
ChemAxon aa7c50abf8
11-07-2013 18:30:02
Hi Dong,
If the same structure search query works outside the stored procedure (as a top-level SQL call), the solution is to grant the JCC/Oracle user privileges on the JChem objects schema directly (as opposed to their being granted through a role). Executing the following command in the jchem/cartridge directory will guide you through the (not so complex) process of doing the required grants:
config-util list-sqls-for-jcc-user-privs
Peter
User 55ffa2f197
11-07-2013 18:33:32
this is mighty annoying !!!! the grants are done by DBA ... you thought everything is set and ready to go but ...
ChemAxon aa7c50abf8
12-07-2013 08:44:12
Let me know if directly granting privileges doesn't solve the issue.
Peter