software:db2:quick_tips
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| software:db2:quick_tips [2013/03/07 13:43] – seela | software:db2:quick_tips [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Quick Tips ====== | ||
| - | |||
| - | |||
| - | ====How to find the version number of DB2==== | ||
| - | < | ||
| - | |||
| - | ON any client host | ||
| - | You will have to source the client' | ||
| - | |||
| - | | ||
| - | eg: source ~db2leduc/ | ||
| - | |||
| - | Issue the following Command | ||
| - | |||
| - | % db2level | ||
| - | |||
| - | |||
| - | | ||
| - | uses " | ||
| - | " | ||
| - | | ||
| - | " | ||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | **Using client db2c64 (64 bit but version 9)** | ||
| - | |||
| - | < | ||
| - | |||
| - | DB21085I | ||
| - | level identifier " | ||
| - | | ||
| - | " | ||
| - | | ||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | ====db2ls ==== | ||
| - | |||
| - | **This will only work on the server** | ||
| - | |||
| - | < | ||
| - | |||
| - | To list the path where DB2 database products are installed on your system and | ||
| - | list the DB2 database product level, enter: | ||
| - | |||
| - | | ||
| - | This lists the installation path , level, fixpak, special install number , | ||
| - | | ||
| - | |||
| - | db2ls -q -p -b baseInstallDirectory | ||
| - | where q is querying a product or feature | ||
| - | p specifies that the listing displays products | ||
| - | b specifies the installation directory of the product | ||
| - | |||
| - | db2ls is installed in / | ||
| - | If the host server has to be rebuild with a new operating system | ||
| - | This link will have to be recreated | ||
| - | |||
| - | |||
| - | gold ~]$ db2ls | ||
| - | |||
| - | Install Path | ||
| - | ----------------------------------------------------------------- | ||
| - | |||
| - | / | ||
| - | / | ||
| - | |||
| - | </ | ||
| - | |||
| - | ====db2val==== | ||
| - | |||
| - | **This will only work on the server host** | ||
| - | |||
| - | < | ||
| - | The db2val tool verifies the core function of a DB2 copy by validating | ||
| - | installation files, | ||
| - | and the state of partitioned database environments. This validation can be helpful | ||
| - | if you have manually deployed a DB2 copy on Linux and UNIX operating systems using | ||
| - | tar.gz files. The db2val command can quickly ensure that all the configuration has | ||
| - | been correctly done and ensure that the DB2 copy is what you expect it to be. | ||
| - | You can specify instances and databases or you can run db2val against all of the instances. The db2val command can be found in the DB2-install- | ||
| - | path\bin and sqllib/bin directory | ||
| - | |||
| - | |||
| - | eg: | ||
| - | gold ~]$ db2val | ||
| - | | ||
| - | / | ||
| - | |||
| - | |||
| - | </ | ||
| - | |||
| - | ====DB2 Tools==== | ||
| - | |||
| - | * db2icrt | ||
| - | * db2iupdt | ||
| - | | ||
software/db2/quick_tips.1362681783.txt.gz · Last modified: by seela
