Managing user accounts and connections

The Sybase IQ login management facility helps you manage users and connections to a database.

Users with DBA or USER ADMIN authority can add or drop users and control connections by:

For the SQL command syntax to manage policies, see CREATE LOGIN POLICY, ALTER LOGIN POLICY, and DROP LOGIN POLICY in Reference: Statements and Options.

Each new database contains a login policy named root. You can modify the option values for the root login policy, but you cannot drop the policy. When a user account is created without specifying its login policy, the user becomes part of the root login policy.

Table 8-4 lists the procedure you call to perform each Sybase IQ login management function.

Table 8-4: Stored procedures for login management

Stored procedure

Purpose

Authority required

sa_get_user_status

Retrieve the current status of all existing users

DBA or USER ADMIN

sp_expireallpasswords

Cause all user passwords to expire immediately

DBA or USER ADMIN

sp_iqaddlogin

Add users, define their passwords, specify login policy and password expiry on next login

DBA

sp_iqcopyloginpolicy

Create a new login policy by copying an existing one

DBA

sp_iqdroplogin

Drop the specified user

DBA

sp_iqmodify

Assign a given user to a login policy

DBA

sp_iqmodifyadmin

Set an option on a named login policy to a certain value

DBA

sp_iqpassword

Change a user’s password

DBA to change another user’s password. All users can run sp_iqpassword to change their own passwords.

For details of Sybase IQ login management procedures, see Chapter 7, “System Procedures” in Reference: Building Blocks, Tables, and Procedures

For system tables used in Sybase IQ login management, see Chapter 8, “System Tables and Views,” in Reference: Building Blocks, Tables, and Procedures.