![]() |
|
|
|
|
|||||||
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Querying database from unix | ragavhere | Shell Programming and Scripting | 3 | 06-02-2008 06:48 AM |
| Querying a database using open source voice control software | iBot | UNIX and Linux RSS News | 0 | 05-16-2008 01:50 AM |
| Connecting and Querying DB2 database from Unix Script? | developncode | Shell Programming and Scripting | 2 | 05-02-2008 09:47 AM |
| Connecting to Oracle Database | dreams5617 | Shell Programming and Scripting | 4 | 05-02-2008 09:37 AM |
| Connecting to a database via UNIX | penfold | UNIX for Advanced & Expert Users | 1 | 03-05-2005 10:37 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
I am trying to develop a script that can connect to a DB2 database mainframe and Query the database and display the results. I've been researching, but I have yet to find a definitive solution where I can enter in the Mainframe DB2 address db2:// and query the database and return the results. If anyone has any information that can help me it will be greatly appreciated. Thanks All.
|
| Forum Sponsor | ||
|
|
|
|||
|
Connecting from Unix to z/OS is not free. You need a license for this.
You need to install and configure DB2 client to do that. Once you have DB2 installed on your UNIX box you will need to catalog the z/OS system and database if you run DB2 Connect locally. If you don't run DB2 Connect locally then you will need to catalog the node to point to the DB2 Connect server. The script does not point to the server directly here is a simple example #!/bin/ksh db2 connect to yourdb db2 "select * from your blah.table" db2 terminate |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|