A database management system that supports multiple databases in an
instance with controlled sharing between the databases. The invention can
also support execution of procedures and other modules in the context of
any principal possibly different from that of the caller. Trusted
certificates can be employed to permit access to procedures (or other
modules). The security context of the invention can enable the building
blocks of building a pure trusted sub-system model of authorization.