A Dos connection remote DB2 database and its common operation

Source: Internet
Author: User

Connect a local or remote database with a DOS operation
The steps are as follows: 1, build catalog 2, create alias 3, execute SELECT statement

1, the doc input db2cmd, input DB2 catalog TCPIP node p600 remote 192.168.161.42 Server 50002 # Establish the alias of the database URL information p600
2, DB2 catalog db BPMKF as db_42 at node P600 # Establish the alias of the database BPMKF connection db_42
3. DB2 Connect to db_42 user bpmadmin using bpmadmin # connection BPMKF Database
4, DB2 get DB CFG # gets the base configuration information for the database
5. DB2 runstats on table Bpmadmin.archive_lob # UPDATE STATISTICS for tables
6. DB2 SELECT * FROM Bpm_comm_parameter # Execute SQL statement

A Dos connection remote DB2 database and its common operation

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.