The PDO_IBM Data Source Name (DSN) is based on the IBM CLI DSN. The major components of the PDO_IBM DSN are:
The DSN prefix is ibm:.
The DSN can be any of the following:
a) Data source setup using db2cli.ini or odbc.ini
b) Catalogued database name i.e. database alias in the DB2 client catalog
c) Complete connection string in the following format:
DRIVER={IBM DB2 ODBC DRIVER};DATABASE=database;HOSTNAME=hostname;PORT=port;PROTOCOL=TCPIP;UID=username;PWD=password;
where the parameters represent the following values:
databaseThe name of the database.
hostnameThe hostname or IP address of the database server.
portThe TCP/IP port on which the database is listening for requests.
usernameThe username with which you are connecting to the database.
passwordThe password with which you are connecting to the database.