WinRunner: How to connect to ORACLE Database without TNS?

WinRunner: How to connect to ORACLE Database without TNS?

The following code would help the above problem.<code>tblName = getvar(\"curr_dir\")&amp;table;ddt_close_all_tables();resConnection = \"\";db_disconnect(\"session\");rc = ddt_open(tblName, DDT_MODE_READ);if (rc != E_OK)pause(\"Unable to open file\");else{dvr = ddt_val(tblName,\"DRIVERNAME\");tnsName = ddt_val(tblName,\"SERVER\");user = tolower(ddt_val(tblName,\"UID\"));pass = tolower(ddt_val(tblName,\"PWD\"));host = ddt_val(tblName,\"HOSTNAME\");port = ddt_val(tblName,\"PORT\");pro = toupper(ddt_val(tblName,\"PROTOCOL\"));resConnection = db_connect(\"session\", 

By:UMANG
Date:2001-02-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related TESTING Subjective Links

TESTING Subjective interview questions and answers for experienced and fresher