How does DB2 view the current user mode and switch users?

Source: Internet
Author: User
Tags db2 connect db2 connect to

How does DB2 view the current user mode and switch users?

1. connect to the database: db2 connect to study

2. query the current user mode: select current schema from sysibm. sysdummy1 or select current schema from sysibm. dual

3. Switch user mode: set current schema toms

4. Switch user: db2 connect to cpsdb user Administrator using 111111

5. grant permissions to other users: db2 grant dbadm on database to user odsuser

6. view the permissions of the current user: db2 get authorizations


Db2 database query user

Do you mean to query the database creation user or?

How does db2 switch the current tablespace?

This should not work.
When creating a table, specify a few more words. in xxxxx tablespace.

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.