Linux下OTL连接Oracle数据库
#include
using namespace std;
#define OTL_ORA10G //不可缺少
#include "otlv4.h" //注意OTL头文件位置
otl_connect db;
int main()
{
otl_connect::otl_initialize();
try
{
db.rlogon("user/passwd"); //连接本机数据库
if(db.connected)
cout