User bf3dbc99cf
04-02-2014 09:59:32
Dear ChemAxon,
Using InstantJChem in oracle, I'd like to share my compound structure (oracle view, DataTree, Entity, RelationShip, Form view) with my colleageue ORACLE users.
I can share the structure of COMPOUND TABLE, but I cannot share structures via Oracle VIEW.
As instructed in "Setting up cartridge tables for use in IJC", (http://www.chemaxon.com/instantjchem/ijc_latest/docs/admin/tips/carttable/index.html)
1. Make compound table :
I have created a user named 'MASTER'.
As MASTER, I created a vendor list table VENDOR, and a structure table COMPOUND using JCMan, and promoted it in InstantJChem.
create table VENDOR (
ID number(10) primary key,
NAME varchar2(100)
);
create table COMPOUND (
CD_ID number,
CD_STRUCTURE CLOB,
ID_VENDOR number(10) references VENDOR(ID)
);
User MASTER can see the structures as gridview of COMPOUND in IJC. OK.
2. Make compound view :
Now, I create an oracle composite view COMPOUND_VIEW;
create or replace view COMPOUND_VIEW
as
select CD_ID, CD_STRUCTURE, VENDOR.NAME
from COMPOUND, VENDOR
where COMPOUND.ID_VENDOR = VENDOR.ID
order by CD_ID;
User MASTER can see the structures as gridview of COMPOUND_VIEW in IJC. OK.
3. Share COMPOUND table :
I create a SLAVE oracle user, and give permission on COMPOUND to SLAVE as in the web page.
As SLAVE, I can see structures in gridview of COMPOUND table entity in IJC. OK.
4. Share COMPOUND_VIEW :
Oracle user SLAVE can see the view COMPOUND_VIEW, and can do substructure search on this view. OK.
select cd_id from MASTER.COMPOUND_VIEW where JC_COMPARE( cd_structure, 'c1ccccc1NC(=O)Nc2ccccc2C', 't:s' ) = 1;
But cannot see structures in gridview of COMPOUND_VIEW entity in IJC.
In COMPOUND_VIEW entity promoted, the CD_STRUCTURE column seems to be recognized as image(.jpg, ... ).
FAIL!!!
5. Share COMPOUND table, create view
As MASTER, I granted select on COMPOUND, VENDOR to SLAVE.
As SLAVE, I create a COMPOUND_VIEW such as
create or replace view COMPOUND_VIEW2
as
select CD_ID, CD_STRUCTURE, VENDOR.NAME
from MASTER.COMPOUND, MASTER.VENDOR
where COMPOUND.ID_VENDOR = VENDOR.ID
order by CD_ID;
I can do substructure search on COMPOUND_VIEW2.
But I cannot promote this COMPOUND_VIEW2 to structural entity in IJC. FAIL!!!
How can the user SLAVE see the structures in COMPOUND_VIEW in IJC?
Your instruction page does not contain information on how to share oracle view.
Regards,