PL/SQL Packages and Types Reference 10g Release 1 (10.1) Part Number B10802-01 |
|
|
View PDF |
The DBMS_STREAMS_AUTH
package, one of a set of Streams packages, provides interfaces for granting privileges to Streams administrators and revoking privileges from Streams administrators.
See Also:
Oracle Streams Concepts and Administration for more information about this package and Streams administrators |
This chapter contains the following topic:
This procedure either grants the privileges needed by a user to be a Streams administrator directly, or generates a script that can be used to grant these privileges.
DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE( grantee IN VARCHAR2, grant_privileges IN BOOLEAN DEFAULT true, file_name IN VARCHAR2 DEFAULT NULL, directory_name IN VARCHAR2 DEFAULT NULL);
The user who runs this procedure must be an administrative user who can grant privileges to other users.
Specifically, this procedure grants the following privileges to the specified user:
RESTRICTED
SESSION
system privilegeEXECUTE
on the following packages:
In addition, the grantee has the ability to grant these privileges to other users.
SELECT
privilege on data dictionary views related to StreamsGRANT_REMOTE_ADMIN_ACCESS
procedure in this package.
See Also:
|
This procedure enables a remote Streams administrator to perform administrative actions at the local database by connecting to the grantee using a database link.
DBMS_STREAMS_AUTH.GRANT_REMOTE_ADMIN_ACCESS( grantee IN VARCHAR2);
Typically, you run this procedure and specify a grantee at a local source database if a downstream capture process captures changes originating at the local source database. The Streams administrator at a downstream capture database administers the source database using this connection. You may also run this procedure at a database running an apply process so that a remote Streams administrator can set instantiation SCNs at the local database.
This procedure either revokes Streams administrator privileges from a user directly, or generates a script that can be used to revoke these privileges.
DBMS_STREAMS_AUTH.REVOKE_ADMIN_PRIVILEGE( grantee IN VARCHAR2, revoke_privileges IN BOOLEAN DEFAULT true, file_name IN VARCHAR2 DEFAULT NULL, directory_name IN VARCHAR2 DEFAULT NULL);
The user who runs this procedure must be an administrative user who can revoke privileges from other users. Specifically, this procedure revokes the privileges granted by running the GRANT_ADMIN_PRIVILEGE
procedure in this package.
Note: To view all of the statements run by this procedure in detail, you can use the procedure to generate a script and then view the script in a text editor. |
This procedure disables a remote Streams administrator from performing administrative actions by connecting to the grantee using a database link.
DBMS_STREAMS_AUTH.REVOKE_REMOTE_ADMIN_ACCESS( grantee IN VARCHAR2);