Managing IQ user accounts and connections

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

DBAs 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-2 lists the procedure you call to perform each Sybase IQ login management function. DBA authority is required to run all procedures except sp_iqpassword. All users can run sp_iqpassword to change their own passwords.

Table 8-2: Stored procedures for login management

Call this stored procedure...

To perform this task...

sa_get_user_status

Retrieve the current status of all existing users

sp_expireallpasswords

Cause all user passwords to expire immediately

sp_iqaddlogin

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

sp_iqcopyloginpolicy

Create a new login policy by copying an existing one

sp_iqdroplogin

Drop the specified user

sp_iqmodify

Assign a given user to a login policy

sp_iqmodifyadmin

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

sp_iqpassword

Change a user’s password

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 9, “System Tables,” in Reference: Building Blocks, Tables, and Procedures.