I got a app developed in Delphi 6 with master/detail constrution. Both master and detail take TQuery to open the data source. It works fine when the master opens first, but after that an error message of "Table is not indexed" occured when the detail opens the data source.
The working account for app. is the SCHEMA_USER, which has a after login trigger to switch itself to SCHEMA_OWNER, it looks like this:
CREATE OR REPLACE TRIGGER AFTER_LOGON_TRG
AFTER LOGON ON SCHEME_USER.SCHEMA
BEGIN
--switch to SCHEMA_OWNER schema
DBMS_APPLICATION_INFO.set_module(USER,'Inilialized');
EXECUTE IMMEDIATE 'ALTER SESSION SET current_schema=SCHEMA_OWNER';
END;
I use SCHEMA_USER to login in DB and execute deltail's SQL, and it works fine. I don't know what's going wrong.
So, any idea is appreciated.
Thx adv.!!
David, Regards