Use the CONNECT statement to connect to the database instance, and specify the user name and password for the database session.
In the SQL mode INTERNAL, you have specified the name of the chosen database instance and server in the SET SERVERDB statement.
You can do without the SET SERVERDB statement if you choose the database instance and server by specifying a KEY in the CONNECT statement.
CONNECT Statement in the SQL Mode INTERNAL
CONNECT Statement in the SQL Mode ORACLE
· When you run the precompiler, you can use the precompiler option –u to override the user name and password specified in the CONNECT statement for the first database session. The values for all subsequent database sessions of the application program are, if possible, taken from the source code when the precompiler runs. A warning appears if these values are missing, and the embedded SQL statements of the subsequent database sessions are not checked.
· When you run the precompiler, you can use the precompiler option –U to override the KEY specified in the CONNECT statement of the first database session.