Http://hi.baidu.com/wader2006/blog/item/78406b60b51f8b47ebf8f8f0.html
DB2 Common Command Set----DB2 maintenance 2007-09-09 10:10 in the DB2 development process, the whole development process also has a very important part of the work is the maintenance of the database, for the maintenance of a huge information system i
Label:Go from DB2 script House: http://www.jb51.net/article/20497.html1. Open the Command Line window#db2cmd2. Open the control center# Db2cmd DB2CC3. Open the Command editorDb2cmd Db2ce===== Operation Database Command =====4. Start the DB instance#db2start5. Stop the DB instance#db2stopIf you cannot stop the database
Recently has been doing database optimization this business, found themselves a lot of DB2 commands are forgotten, and even useless, and sometimes become a bottleneck in the efficiency of the work, 工欲善其事, its prerequisite, so did the following summary:1. Open the Command Line window#db2cmd2. Open the control center# Db2cmd DB2CC3. Open the Command editorDb2cmd Db
The following article describes how to create a second DB2 instance in the command line status in the DB2 database under the linux operating system, the following describes the actual operation steps for creating a DB2 instance. We hope this will help you in your future stud
space, only for DB2 on the developer's own machine, and if it is a server, the parameters need to be modified.# DB2 UPDATE DB CFG for If the page size is 4KB, the above command creates 3 100M log files, taking up 300MB of hard disk space. 25600*4kb=102400kb.
39, create temporary table space
Copy Code code as follows:
#
Original address:Http://hi.baidu.com/wader2006/blog/item/78406b60b51f8b47ebf8f8f0.htmlDB2 Common Command Set----DB2 maintenance 2007-09-09 10:10 in the DB2 development process, the whole development process also has a very important part of the work is the maintenance of the database, for the maintenance of a huge information system is very necessary; Leave a sim
In the process of DB2 development, one of the most important tasks throughout the development process is the maintenance of the database, which is necessary to maintain a large information system; Leave a simple maintenance manual for a rainy year; The following parts of the maintenance order are collected to treat our maintenance engineers and project managers.
* update:2006-06-14
* Memo: Please use "
If the DB2 tablespace is in the silent State, some operations such as sql00005n or SQL0290N may cause the tablespace to be inaccessible due to the silent operation.
Take the DB2INST1. STAFF table in the table space of DB2INST1. USERSPAC1 as an example:
A) silent DB2 tablespace indicates the intention to update status:
Db2
Document directory
The first half of this article: connecting to a remote DB2 database using command lines
The second part of this article: Use coolsql to connect to the DB2 database configuration Diagram
The first half of this article: connecting to a remote DB2 database using
, followed by the 011 and bind commands: bind the application to the database. After each database restoration, we recommend that you perform one bind (1) db2 bind br8200.bnd (2) /btp/bin/bndall/btp/bnd/btp/bin/bndall/btp/tran/bnd 12. view the database parameters: db2 get dbm cfg db2 get db cfg for btpdbs XIII. After modifying the database parameters:
PS: Need to enter DB2 's account before executing the command: Su db2inst1Modify Password: Change the corresponding operating system password, Windows can change db2admin password, linux change db2inst1 password can be, DB2 's database password is tied to the operating system, as you can say, only need to modify the user's password on the operating system. You wa
1. Disable db2
Db2stop or db2stop force.
In the script, write both of them to avoid using the db2stop force command, for example:
Db2stop
Db2stop force
2. Start db2
Db2start
3. Create a database
Db2 create db
Or db2 create db using codeset GBK territory CN
4. delete a databa
Tags: int version su-ble command file copy Ace Eve calculation The database used by the company is Kanakura and DB2 To open the DB2 directly with the command window, you need to enter it in CMD: db2cmd 1: start DB2 database: Db2start 2: Connect to Database:
Tags: des style http io os using Java ar StrongThe command-line processor is the DB2 interface, which best embodies the power of DB2, as well as the simplicity and versatility of DB2. The author makes a detailed exposition of it through examples.0 Reviews:Blair Adamache, DB2
LNMP status management command and lnmp STATUS Command
LNMP status management command:
LNMP status management:/root/lnmp {start | stop | reload | restart | kill |
AuthenticationUser_exit_status-User Exit status indicatorUserExit-Enable user exitUTIL_HEAP_SZ-Utility Heap SizeVendoropt-Provider OptionsDB2 Management Server (DAS) configuration parametersAuthentication-Authentication Type DASContact_host-Location of the contact listDas_codepage-das code pageDas_territory-das RegionDasadm_group-das Administrative Permission Group nameName of the DB2SYSTEM-DB2 server syst
dataStatus = 0x0020Explanation:Backup pending:E: \ TEST> db2 select count (*) from staff1-----------701 record selected.E: \ TEST> db2 update staff set id = 335 where id = 340
DB21034E this command is processed as an SQL statement because it is not a valid "command line processor"
1, close DB2.
Db2stop or db2stop force.
Write two of the scripts in general, avoiding the use of Db2stop force commands, such as:
Db2stop
Db2stop Force
2, start DB2
Db2start
3, create the database
DB2 Create DB
or DB2 create DB using CodeSet GBK territory CN
4, delete the database
Be careful to do this.
Tags: ext com any hang TCO back mes parameter sofEnvironment preparation1. Create a new table[Email protected]:~> DB2 "CREATE TABLE TB1 (ID int,dt timestamp,name varchar (100))";db20000i the SQL command completed successfully.2. Inserting data[Email protected]:~> DB2 "INSERT into TB1 values (1,current timestamp, ' Jack ')";db20000i the SQL
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.