Page 1 of 1

[?] Remote Oracle DB

Posted: Sun Jun 30, 2013 10:16 pm
by Machiavelli
What do I have:
Oracle DB located in the network,
Oracle FORMS 6i with which i can connect to the database (using only login / password / db name)
I've found out that OF6i connects to 192.168.1.11:1521 to access the DB

Can I access the same DB with PB commands? Or UseODBCDatabase() / OpenDatabase() works only with local DB?

Re: [?] Remote Oracle DB

Posted: Sun Jun 30, 2013 10:25 pm
by infratec
Hi Machiavelli,

ODBC can also connect to 'remote' databases.
So if you have an ODBC driver for your Oracle database it is no problem.

Than you can use UseODBCDatabase()
and the PB database commands.

Bernd

Re: [?] Remote Oracle DB

Posted: Sun Jun 30, 2013 10:35 pm
by Machiavelli
Well, i do have the driver. But i cant find anything about connecting to remote DB in the help and OpenDatabase() receives only db name, login and password as parameters, nothing about the DB host.

Re: [?] Remote Oracle DB

Posted: Mon Jul 01, 2013 7:42 am
by infratec
Hi Machiavelli,

if you use ODBC, than you have to setup your connection inside your OS:

http://docs.oracle.com/cd/E17952_01/ref ... ndows.html

If you want to create the DSN 'on the fly' look here:
http://www.purebasic.fr/english/viewtop ... hilit=ODBC
and here
http://www.connectionstrings.com/oracle#p17

Bernd