Unix Technical Forum

Oracle 10 and C++

This is a discussion on Oracle 10 and C++ within the Oracle Miscellaneous forums, part of the Oracle Database category; --> he I try to connect to database but the name of it ('tra3') is wrong, however it exist in ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 08:19 AM
tomek
 
Posts: n/a
Default Oracle 10 and C++

he
I try to connect to database but the name of it ('tra3') is wrong, however
it exist in net manager and I can connect to it from enterprice manager or
QSL Plus Worksheet

t.


I use VC++6 and Oracle 10:
C++:
int sql_Test_3(CString strCnn_tmp)
{
ODatabase datab;
ODynaset dyn;
double sum=0.0;
double cursal;
datab.Open("tra3", "user", "password");
dyn.Open(datab, "select SYS.V_$SQLAREA.SQL_TEXT,
length(SYS.V_$SQLAREA.SQL_TEXT), SYS.V_$SQLAREA.SQL_ID from SYS.V_$SQLAREA
where SQL_ID='bty8k0wzhaqku'");
while (!dyn.IsEOF())
{
dyn.GetFieldValue("sql_id", &cursal);
dyn.MoveNext();
}
return 0;
}







TRA3 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 195.163.205.209)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = tra3)
)
)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com