Previous Topic

Next Topic

Alter Profile

Valid in: SQL, ESQL

The Alter Profile statement alters a user profile.

Previous Topic

Next Topic

Syntax

The Alter Profile statement has the following format:

[EXEC SQL] ALTER [DEFAULT] PROFILE [profile_name]
[ADD PRIVILEGES( priv {,priv}) | DROP PRIVILEGES( priv {,priv})]
[WITH with_item {, with_item}]

with_item = NOPRIVILEGES | PRIVILEGES = ( priv {, priv} )
                           | NOGROUP | GROUP = default_group
                           | SECURITY_AUDIT = ( audit_opt {,audit_opt})
                           | NOEXPIRE_DATE | EXPIRE_DATE = 'expire_date'
                           | DEFAULT_PRIVILEGES = ( priv {, priv} ) | all
                           | NODEFAULT_PRIVILEGES

More Information:

Create Profile

Previous Topic

Next Topic

Embedded Usage

In an embedded Alter Profile statement, the with clause can be specified using a host string variable (with :hostvar).

Previous Topic

Next Topic

Permissions

You must have maintain_users privileges and be connected to the iidbdb database. Additional privileges are required to perform certain operations, as summarized in the table below:

Action

Privilege Required

Change security audit attributes

maintain_audit

Previous Topic

Next Topic

Locking

The Alter Profile statement locks iiprofile exclusively.

Previous Topic

Next Topic

Related Statements

Alter User

Create Profile

Create User

Drop Profile

Previous Topic

Next Topic

Examples: Alter Profile

The following examples alter a user profile:

  1. Update a default profile by using the alter default profile variant of the alter profile statement.

    alter default profile
    with expire_date = '30 days';

  2. Change the default profile to include createdb privileges.

    alter default profile
    add privileges ( createdb );

    Only one of default profile and profile profile_name can be specified.

  3. Alter the trusted profile to add the createdb privilege and make the default group trusted_group:

    alter profile trusted
    add privileges ( createdb )
    with group = trusted_group

    All users currently using this profile have the appropriate changes made to their security privilege and group.

  4. Alter the security auditing for profile, clerk.

    alter profile clerk
    with security_audit = (query_text, default_events);


© 2007 Ingres Corporation. All rights reserved.