DB2 V9.7 Linux installation record DB2 installation in Linux (RedHat Enterprise Linux 5.4) _ graphical user interfaces can be used or manually installed. First, we will introduce the simplest installation method. 1. Download DB2 9.7 express C from
This time, our DB2 is deployed on Windows. Windows has a client that is called a graphical interface. But it does not seem to work well, we have some problems, let's solve it.
First, add a database instance:
Instances of DB2 are independent of each
Target machine:192.168. 0.16 Local Machine: 192.168. 0.18 1 . Log in to the local database DB2 connect to DWMM user Dainst using Dainst# # Open Federated database parameter DB2 update dbm CFG using federated YES DB2 Force application all db2stop
First, add a database instance:
Instances of DB2 are independent of each other, and instances can be considered as containers for databases. When the default DB2 is installed, it builds an instance named DB2. We need to create a new one, and
Common DB2 commands
Common DB2 commandsI. Basics1. db2 connect to -- connect to the local database nameDb2 connect to user using -- connect to the remote database2. db2 force application all -- force all applications to disconnect the database3.
After several days, I have completed HADR. Next, let's share it with you.
System Environment:
OS: SUSE 11sp1-64bit
DB: db29.7.0.5
DB2server1: 192.168.5.151 db2inst1
DB2server2: 192.168.5.152 db2inst2
Steps:
Operations on DB2server1:
Db2inst1 @
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
Reposted from: longtang Bay
1.1.1 obtain the first N records
SQL Server: Select Top N * From xtable
ORACLE: Select * From xtable where rownum
DB2: Select * From xtable fetch first n rows only
1.1.2 obtain the current date
SQL Server: Select getdate
Introduction: In the DB2 databaseIsCatalogThis word is hard to understand. Specifically, cataloguing includes cataloguing nodes and cataloguing databases. If you want to understand the cataloguing, let me briefly introduce the architecture of the DB2
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.