Hi
When using the cartridge to create a JChem index on a table in a schema with a long name then an error is generated. The user is created like this (i.e the maximum length) :
create user DB3456789012345678901234567890 identified by DB3456789012345678901234567890 default tablespace users temporary tablespace temp;
grant connect,resource,unlimited tablespace to DB3456789012345678901234567890;
and then when connected as this user :
SQL> create table structures (casnum varchar2(32), common_name varchar2(256), structure clob);
Table created.
SQL> Insert into STRUCTURES (CASNUM,COMMON_NAME,STRUCTURE) values ('58-08-2','Caffeine','CN1C=NC2=C1C(=O)N(C)C(=O)N2C');
1 row created.
SQL> commit;
Commit complete.
SQL> create index struct_jchem_idx on structures (structure)
indextype is jchem.jc_idxtype
parameters('tableType=anyStructures');
create index struct_jchem_idx on structures (structure)
*
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-29532: Java call terminated by uncaught Java exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.RemoteException: ORA-12899: value too large for column
"DB3456789012345678901234567890"."JC_IDX_PROPERTY"."PROP_VALUE" (actual: 51,
maximum: 50)
ORA-06512: at "JCHEM.JCHEM_CORE_PKG", line 65
ORA-06512: at "JCHEM.JC_IDXTYPE_IM", line 17
SQL>
Even if I manually alter the JC_IDX_PROPERTY column width in both the JCHEM schema and the 'long' schema above it still fails. It looks like the JC_IDX_PROPERTY table in the user schema is being re-created each time?
Is there a workaround to this?
We are on JChem 5.2 by the way.
Steve