Command: database

Syntax

database <name>

Description

Create a database identifier and link it to an external database.

Parameters

Switches

Notes

The connection to the external database is made behinf the scenes via an Embedded SQL statement, e.g.

Database identifiers can have global or application scope.

A database can be closed by deleting the identifier via a delid command, or by the database.close() function.

Examples

Link to an external database. This assumes a dbif entry called informix is present in the configuration file.

database stores,-prop=informix

Link to an external Oracle database.

database gdb,-prop=oracle/8i,-con=scott/tiger@zeus

Link to a network database service.

database gdb,-req='//zeus/xmarc/Broker?service=ZSVC'

Link to an external database, via a known interface program.

database myorac,-dbif=$BINDIR/fxoracle

See Also

Commands:

db, dbdelete, dbrefresh, dbstructure, dbinsert, dbtrans, dbupdate

Identifiers:

scope (atable)

Structures:

database