Hi
my program is accesing data from two db2 databases.what
is the bind card for this program to genarate plan? how to
specify the two owners and two qualifiers in bind card
Answer / Purushottam
In DB2, a bind card specifies the SQL statements and their associated parameters for compiling an executable module. To generate a plan for accessing data from two databases, you would need separate bind cards for each database connection. The bind card includes information such as the library (owner), qualifier (schema), and database name for the specific database being accessed. Here's an example of a bind card:nn```clnBIND DB2HYPERTEXT EXEC SQL BEGIN DECLARE SECTION ;n db1_user CHAR(30) VALUE 'username';n db1_password CHAR(30) VALUE 'password';n db1_host CHAR(30) VALUE 'host';n db1_port INTEGER VALUE 50000;n db2_user CHAR(30) VALUE 'username';n db2_password CHAR(30) VALUE 'password';n db2_host CHAR(30) VALUE 'host';n db2_port INTEGER VALUE 50001;nBIND DB2HYPERTEXT EXEC SQL END DECLARE SECTION ;```nIn the example above, `db1_user`, `db1_password`, and other variables are used to specify the credentials and connection details for the first database. Similarly, you would define separate variables and values for the second database.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the rollup operator?
How would you design a database for an online site, which would average a million hits a day?
What is bit datatype and what's the information that can be stored inside a bit column?
Where is dbms used?
Explain about relational operator join?
Can you have a nested transaction?
What are the three types of database design?
What is the database development process?
Any sample or model question of punjab national bank for deputy manger IT or any sample of PNB.any1 plz do send on
Explain about the storage and physical database design?
Explain the family trees and connection by clause.
hi in which phase of mload can i use .FILLER
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)