[Database middleware] Adds a user to the DB2 group authorization

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

1. Add the user Oracle to the DB2 user group with the following command:

Usermod-a-G Db2iam    # adding users to a group does not change the group that is currently owned

Note: The following are not related to the topic, just list some commands about the user

ID user                     # View information such as user-owned group Cat/etc/group         # View all groups groups                    # View the group to which the current user belongs

2, switch to the DB2 instance user Db2inst1, to the user Oracle authorization.

DB2 Connect to sample        # connects to database DB2 GRANT dbadm,createtab,bindadd,connect,create_not_fenced_ Routine,implicit_schema,load,create_external_routine,quiesce_connect on DATABASE to USER Oracle        #  Authorized

3. Copy the following portions of the. BASHRC in Db2inst1 into the. BASHRC in Oracle:

if [-f/home/db2inst1/sqllib/db2profile];     Then /home/db2inst1/sqllib/Db2profilefi

[Database middleware] Adds a user to the DB2 group authorization

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.