Hi All,
I'm using Crystal Reports for eclipse (v11.8.0 in the settings tab) with an Oracle 10g database.
We're using JNDI for our runtime datasource (set via "JNDI Connection Source" property in the data view of the IDE).
Report previews are working correctly and deployments run against the same development database they were designed with work correctly at run time (and use the JNDI data source form the app server).
When the application is deployed outside the development environment the first run of any report returns an
"JDBC Error: ORA-00942: table or view does not exist"
error. Running the same report again works but appears to return data from the wrong database (not the one referenced by the JNDI source).
We have multiple instances of the same database in different schemas and we rely on queries to use the default schema based on the user credentials supplied (ie. the default schema for USER1 is SCHEMA1 as configured in oracle).
My understanding is that Crystal will generate the reports SQL (which includes the schema name in the form SCHEMA1.table_name) at runtime but this doesn't appear to be happening in our case.
Is there a way to force crystal to regenerate the SQL or to always use the default schema for queries?
Thanks,
Cameron.