Previous Topic

Next Topic

Create Profile

Valid in: SQL, ESQL

The Create Profile statement creates a new user profile.

Previous Topic

Next Topic

Syntax

The Create Profile statement has the following format:

[EXEC SQL] CREATE PROFILE profile_name [WITH with_item {,with_item}]

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

Previous Topic

Next Topic

Description

User profiles are a set of subject privileges and other attributes that can be applied to a user or set of users. Each user can be given a profile, which provides the default attributes for that user.

A profile includes:

A default profile, changeable by the system administrator, is created during installation that determines the default user attributes when no profile is explicitly specified. The initial default profile is:

Previous Topic

Next Topic

Embedded Usage

The with clause in the embedded Create Profile statement 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 this table:

Action

Privilege Required

Set security audit attributes

Maintain_audit

Previous Topic

Next Topic

Locking

The Create Profile statement locks the iiprofile system catalog exclusively.

Previous Topic

Next Topic

Related Statements

Alter Profile

Alter User

Create User

Drop Profile

Drop User

Previous Topic

Next Topic

Examples: Create Profile

The following are Create Profile statement examples:

  1. Specifiy a profile for a particular user.

    create profile dbop;
        create user bspring with profile = dbop;

  2. Create a dbop profile with the appropriate privileges to maintain a database.

    create profile dbop with
    privileges = ( operator, maintain_locations, trace ),
    group = dbopgroup;


© 2007 Ingres Corporation. All rights reserved.