create_oracle_connection
Description
Declaration
char create_oracle_connection(char connectionName, char tnsName, char userName, char userPassword);Return Value
Parameters
Example
void connection_not_found(char connectionName) {
char connResult;
connResult = create_oracle_connection('default', 'XE', 'sys', 'password');
/* or
connResult = create_oracle_connection('default', 'hello.world', 'sys', 'password');
*/
}
void cb_oracle.logon2oracle() {
char connResult;
connResult = create_oracle_connection('default', :cb_oracle.tnsname, :cb_oracle.user, :cb_oracle.password);
if (connResult is null) then
show_page('oracle.frmx');
else
message('Error occured: ' || connResult);
end if;
}
void cb_postgresql.logon2postgresql() {
char connResult;
connResult = create_postgresql_connection('default', :cb_postgresql.database, :cb_postgresql.user, :cb_postgresql.password);
if (connResult is null) then
show_page('postgresql.frmx');
else
message('Error occured: ' || connResult);
end if;
}Last updated