According with the chapter 6 of the official book the url should be
the following:
oracle://username/password@test
There are no parameters for the server ip address in the example, then
I tried this:
oracle://myusername/mypassword@server_ip_address/database_name
and
oracle://myusername/mypassword@server_ip_address:1521/database_name
None of them worked.
What I need to do in order to access my oracle database remotely?
oracle://myusername:mypassword@server_ip_address:1521/database_name
I tested a connection with postgres (I needed to install psycopg2) and
it's working fine.
Ps. My OS is Windows 7 x64.
Ps2. I tried running the web2py binary and from the source.
oracle-instantclient is available for free from www.oracle.com/technetwork/index.html.
I'm using this on my linux machine to access a remote oracle server
using web2py. I believe this is also available for windows. I
installed three rpms, basic, sqlplus, and devel.
If you have the oracle client set up, you might want to test if you
can access oracle directly from python before trying it from web2py.
The cx_Oracle source has some good examples of how to do this.
If all this is already working, then post some of the specific errors
you are having and I'll try to help if I can.
- Tom
On Nov 24, 6:36 pm, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
<type 'exceptions.RuntimeError'>(Failure to connect, tried 5 times:
'NoneType' object has no attribute 'connect')At startup, do you see Oracle listed as one of the available database
engines?
On Nov 25, 4:48 am, Humberto Ferreira da Luz Junior
<humbfd...@gmail.com> wrote:
> I can access the remote database through SQL Developer and also from my
> local java applications.
>
> My db.py:
> db = DAL("oracle://user/passw...@server.ip:1521/dese")
import cx_Oracle
does it work? If no the problem is with the installation of cx_Oracle.
If it works, than make sure you use the same python interpreter with
web2py.
On Nov 25, 1:11 pm, Humberto Ferreira da Luz Junior
On Nov 28, 4:17 am, Humberto Ferreira da Luz Junior