1- Install oracle 12.x 32 bit client including ODBC drivers
2- Validate the Oracle driver appears in the windows 32 bit ODBC administrator

3- Used the following code:
print("Start database connection 1")
-- Connect to the database
local oracle_server = "oracle server hostname or IP"
local oracle_user = "oracle user"
local oracle_pwd = "oracle user password"
local oracle_service = "oracle service name (as returned by "select * from global_name;")
local oracle_port = "1521"
local oracle_database= "CA_UIM"
local database_driver = "Oracle in OraClient12Home1_32bit"
if oracle_pwd ~= "" then
-- Build connection string
local cs = "Driver={"..database_driver.."};Dbq=//"..oracle_server..":"..oracle_port.."/"..oracle_service..";Uid="..oracle_user..";Pwd="..oracle_pwd..""
print (cs)
local rc = database.open(cs,false)
print(rc)
if rc == NIME_OK then
local rs = database.query ("SELECT * FROM CA_UIM.CM_COMPUTER_SYSTEM")
printf ("Number of QoS objects: %d",#rs)
for i=1,#rs do
print("Name Column has: " .. rs[i].NAME .. ", CS_ID Column has: " .. rs[i].CS_ID)
end
else
print ("Failed to open database using the provided connection string!")
end
database.close()
end
4- Run the following command against the name of your file:
C:\Program Files (x86)\Nimsoft\sdk\nsa>nsa -d 5 example-oracle-operations.txt
Mar 2 11:11:44:861 nsa: SNMP Initialize, version 223 (5.7a), build date Mar 17 2015Mar 2 11:11:44:861 nsa: SNMPInitialize - initializing critical sectionsMar 2 11:11:44:861 nsa: SNMPInitialize - initializing logginglogging:register: registering log type 5 with pri 7Log handling defined - disabling stderrMar 2 11:11:44:877 nsa: registering logging callback at address: 0x411320Mar 2 11:11:44:877 nsa: SNMPInitialize - calling init_snmpMar 2 11:11:44:893 nsa: ===> Starting: example-oracle-operations.txtStart database connection 1Driver={Oracle in OraClient12Home1_32bit};Dbq=//xxxxxxxx:1521/xxxxxxx;Uid=system;Pwd=nimsoftMar 2 11:11:44:893 nsa: [0x00837B90] Database provider is 'N/A', database 'N/A'0Number of QoS objects: 3Name Column has: lvntest009204, CS_ID Column has: 3Name Column has: lvntest009203, CS_ID Column has: 2Name Column has: primaryrobot, CS_ID Column has: 1Mar 2 11:11:45:158 nsa: ===> Completed: OKMar 2 11:11:45:174 nsa: nimEnd