This article mainly introduces some similarities between DB2 database development and PostgreSQL development in actual operations. What's more, I recently used DB2 databases and wrote some differences between them. Not necessarily true. But you can
DB2 Common CommandsFirst, the basic article1. DB2 Connect to --Connect to local database nameDB2 Connect to user Using --connect to the remote database2. DB2 force application All--forcing all applications to disconnect from the database3. DB2
This article mainly introduces the DB2 database development and PostgreSQL development in the actual operation of some of the similarities, and the difference, recently used DB2, wrote a point of difference. Not necessarily exactly right. But you
Install the DB2 database in CentOS
System: CentOS 6.4x64
Database: DB2-V10.1
Prepare the environment
Vi/etc/hosts # It is best to change the hosts host name to be the same as the computer name.
Reboot
Yum install libaio-devel
Create accounts and
TurnRecently in see DB2, read while writing some, write down, although write a mess. For later use.These are all very simple to write. I think it is some simple operation, and some are excerpted from other people's blog specific is to cite which is
During the installation and JDBC development of DB2, you may encounter some common problems and make a record to be noted:
1. License
Whether the DB2 version is genuine or not depends on the license, but there is no prompt during the installation
DB2 Execute SQL Error: DB2 SQL error:sqlcode=-1585, sqlstate=54048The DB2 database you built doesn't have a temporary tablespace large enough to create a temporary table space large enough1. Create a databaseDB2 "CREATE DATABASE TestDB automatic
Recently, an exception occurred when connecting to DB2 v9.5 on another machine using JDBC:
Com. IBM. db2.jcc. B. disconnectexception: encoding not supported !!
DB2 server environment: Windows Server 2003, Sun jdk1.5.0 _ 22, DB2 v9.5
Connection
CentOS 6.4 x64 DB2 Database InstallationSystem: CentOS 6.4 x64Database: db2-v10.1Preparation Environment stepsVi/etc/hosts # modifying the hosts host name is best if it is the same as the computer name. RebootYum Install Libaio Libaio-develfor the
The following articles mainly introduce the basic tutorial of SQL coding optimization for the IBM DB2 database. The importance of such a specific query is that the more important the query is, you may need to optimize indexes by creating indexes. If
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.