How can I include the schema into my connection string inside my web.config.
+1
A:
The schema is synonymous with user in oracle - you don't specify a schema in the connection string - you specify a username. Each user may or may not be an owner of database objects (tables, views, procedures, etc). To access the objects owner by another user (schema) you can either:
- Use a fully qualified name:
SCHEMA.OBJECTNAME
- Create a private synonym which aliases to the object:
CREATE SYNONYM mytable FOR otherschema.sometable
- Create a public synonym which all users can use to access the object:
CREATE PUBLIC SYNONYM sometable FOR otherschema.mytable
LBushkin
2010-05-08 17:55:33
Also, ALTER SESSION SET CURRENT_SCHEMA = 'otherschema';
DCookie
2010-05-08 18:06:38