|
-
Feb 24th, 2010, 04:07 PM
#1
Thread Starter
Fanatic Member
Oracle conexion problem
Hi
I must to connect in database oracle ,different database are in same Server (same IP) , but with different SID(Data source) , see tnsname below
, I tried to connect using in VB
See my connectstring
Code:
Provider=MSDAORA.1;Password="mypass";User ID=user1;Data Source=islq;Persist Security Info=True
work fine , but when use
Code:
Provider=MSDAORA.1;Password="mypass";User ID=user1;Data Source=lbpiq;Persist Security Info=True
Not work
my tnsnames.ora
PHP Code:
islq =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.176.13.25)(PORT = 1548))
)
(CONNECT_DATA =
(SID = islq)
(SERVER = DEDICATED)
)
)
islp.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.176.13.31)(PORT = 1558))
)
(CONNECT_DATA =
(SID = islp)
(SERVER = DEDICATED)
)
)
lbpiq.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.176.13.25)(PORT = 1545))
)
(CONNECT_DATA =
(SID = lbpiq)
(SERVER = DEDICATED)
)
)
lbpiq =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.176.13.25)(PORT = 1545))
)
(CONNECT_DATA =
(SID = lbpiq)
(SERVER = DEDICATED)
)
)
Using external tools (PLSQL DEVELOPER, TOAD ...ETC ) work fine boths connections using same user and password ( user1 and mypass)
Is there some other way to connect , using IP and PORT ?
Tia
-
Feb 24th, 2010, 05:29 PM
#2
Re: Oracle conexion problem
Thread moved to 'Database Development' forum (the 'VB6' forum is only meant for questions which don't fit in more specific forums)
-
Feb 24th, 2010, 05:39 PM
#3
Re: Oracle conexion problem
 Originally Posted by mutley
See my connectstring
Code:
Provider=MSDAORA.1;Password="mypass";User ID=user1;Data Source=islq;Persist Security Info=True
work fine , but when use
Code:
Provider=MSDAORA.1;Password="mypass";User ID=user1;Data Source=lbpiq;Persist Security Info=True
Not work
Ummm.. what's the difference between those two connection strings? I don't see any difference.
-
Feb 24th, 2010, 05:41 PM
#4
Re: Oracle conexion problem
okk.. So data source is changed. So have you checked that those two data sources are correct?
-
Feb 24th, 2010, 05:44 PM
#5
Re: Oracle conexion problem
-
Feb 25th, 2010, 07:00 AM
#6
Thread Starter
Fanatic Member
Re: Oracle conexion problem
Thank you I put in my Datasource
Code:
Source="(DESCRIPTION=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST =IPSERVER)(PORT = 1545)))(CONNECT_DATA=(SID = lbpiq)(SERVER = DEDICATED)))"
AND work , but is there other way ?, Because the DataSoruce is in INI file, and size max section in inifile is 20, then I musto change de code VB
I want to connect in same SERVER , but in different PORT
Last edited by mutley; Feb 25th, 2010 at 08:03 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|