--first, create context , creator must have CREATE ANY CONTEXT privilege create or replace context owb_workspace using owb_workspace_manager; --then create associated procedure to set the context create or replace package owb_workspace_manager AS procedure set_workspace(theWorkspaceID in number); function get_workspace return number; end owb_workspace_manager;