Create a new user account for the DB2 database and assign specific privileges to it

Source: Internet
Author: User

Create a new user account for the DB2 database and assign specific privileges to it. A System Administrator account is created when the DB2 database is installed. The default account is DB2ADMIN.
At the same time, two user groups DB2ADMNS and DB2USERS will be created at www.2cto.com in the "local user and group" group of the operating system. The generated DB2ADMIN account will be
Add to the operating system account and add to these two groups. If your operating system account does not add other domains
You can log on to the account DB2ADMIN. To add a user, follow these steps: 1. Right-click my computer and click "manage" or open the "manage" menu item in the control panel,
Open the "Computer Management" console. 2. Select "local users and groups" to add a user. For example, the user name is chenjialin.
Password 123. Select "Change Password Upon next login" and select "Password Never Expires. 3. Add the user chenjialin to the user groups DB2ADMNS and DB2USERS. 4. Expand
Open all databases> EXPRESS> Users and group objects> database users, right-click and choose create. In the displayed dialog box, select chenjialin ",
Select its permissions and click OK. Or run the SQL "GRANT DBADM, CREATETAB, BINDADD, CONNECT, CREATE _
NOT_FENCED
_ ROUTINE, IMPLICIT_SCHEMA, LOAD, CREATE_EXTERNAL _
ROUTINE, QUIESCE_CONNECT, SECADM ON DATABASE
User chenjialin; "However, you must have sufficient permissions to create a USER, such as DB2ADMIN.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.