dbTalk Databases Forums  

ORA-01017 error only with qt

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss ORA-01017 error only with qt in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
labrach@gmail.com
 
Posts: n/a

Default ORA-01017 error only with qt - 01-04-2008 , 08:58 AM






Hi,

I'm using the cx_oracle python module to access an oracle database
It works fine but when I run within a qt environment it fails with the
following error:
ORA-01017: invalid username/password; logon denied

The script that works:

import cx_Oracle as Oracle
import qt
sql_query = "SELECT * FROM AC_DATATYPE"
dbUser = ...
dbPassword = ...
dbHostname = ...
dbInstance = ...
dbPort = ...
dbDSN = Oracle.makedsn(dbHostname, int(dbPort), dbInstance)
#### app = qt.QApplication([])
dbConnection =
Oracle.connect(user=dbUser,password=dbPassword,dsn =dbDSN)

The connection fails if the line
#### app = qt.QApplication([])
is uncommented

- It runs on Linux x86_64, with python 2.4, oracle OCI 9.2,
cx_oracle4.1, qt x11 free 3.3.4
- qt is compiled WITHOUT sql drivers
- This works fine (with the qt call) on another linux x86_64 (with
the whole binariesython,lib oracle,qt, ...)


Any tips ??

thanks

laurent
Toulouse, France

Reply With Quote
  #2  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: ORA-01017 error only with qt - 01-04-2008 , 01:21 PM






labrach (AT) gmail (DOT) com wrote:
Quote:
Hi,

I'm using the cx_oracle python module to access an oracle database
It works fine but when I run within a qt environment it fails with the
following error:
ORA-01017: invalid username/password; logon denied

The script that works:

import cx_Oracle as Oracle
import qt
sql_query = "SELECT * FROM AC_DATATYPE"
dbUser = ...
dbPassword = ...
dbHostname = ...
dbInstance = ...
dbPort = ...
dbDSN = Oracle.makedsn(dbHostname, int(dbPort), dbInstance)
#### app = qt.QApplication([])
dbConnection =
Oracle.connect(user=dbUser,password=dbPassword,dsn =dbDSN)

The connection fails if the line
#### app = qt.QApplication([])
is uncommented
Not into python, but suspecting processing is serial, try
to reverse the two last lines - you to try to
process something without being logged on - the
Oracle.connect must be doing that if everything works ok
without the app = qt.... line.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...


Reply With Quote
  #3  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: ORA-01017 error only with qt - 01-04-2008 , 01:21 PM



labrach (AT) gmail (DOT) com wrote:
Quote:
Hi,

I'm using the cx_oracle python module to access an oracle database
It works fine but when I run within a qt environment it fails with the
following error:
ORA-01017: invalid username/password; logon denied

The script that works:

import cx_Oracle as Oracle
import qt
sql_query = "SELECT * FROM AC_DATATYPE"
dbUser = ...
dbPassword = ...
dbHostname = ...
dbInstance = ...
dbPort = ...
dbDSN = Oracle.makedsn(dbHostname, int(dbPort), dbInstance)
#### app = qt.QApplication([])
dbConnection =
Oracle.connect(user=dbUser,password=dbPassword,dsn =dbDSN)

The connection fails if the line
#### app = qt.QApplication([])
is uncommented
Not into python, but suspecting processing is serial, try
to reverse the two last lines - you to try to
process something without being logged on - the
Oracle.connect must be doing that if everything works ok
without the app = qt.... line.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...


Reply With Quote
  #4  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: ORA-01017 error only with qt - 01-04-2008 , 01:21 PM



labrach (AT) gmail (DOT) com wrote:
Quote:
Hi,

I'm using the cx_oracle python module to access an oracle database
It works fine but when I run within a qt environment it fails with the
following error:
ORA-01017: invalid username/password; logon denied

The script that works:

import cx_Oracle as Oracle
import qt
sql_query = "SELECT * FROM AC_DATATYPE"
dbUser = ...
dbPassword = ...
dbHostname = ...
dbInstance = ...
dbPort = ...
dbDSN = Oracle.makedsn(dbHostname, int(dbPort), dbInstance)
#### app = qt.QApplication([])
dbConnection =
Oracle.connect(user=dbUser,password=dbPassword,dsn =dbDSN)

The connection fails if the line
#### app = qt.QApplication([])
is uncommented
Not into python, but suspecting processing is serial, try
to reverse the two last lines - you to try to
process something without being logged on - the
Oracle.connect must be doing that if everything works ok
without the app = qt.... line.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...


Reply With Quote
  #5  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: ORA-01017 error only with qt - 01-04-2008 , 01:21 PM



labrach (AT) gmail (DOT) com wrote:
Quote:
Hi,

I'm using the cx_oracle python module to access an oracle database
It works fine but when I run within a qt environment it fails with the
following error:
ORA-01017: invalid username/password; logon denied

The script that works:

import cx_Oracle as Oracle
import qt
sql_query = "SELECT * FROM AC_DATATYPE"
dbUser = ...
dbPassword = ...
dbHostname = ...
dbInstance = ...
dbPort = ...
dbDSN = Oracle.makedsn(dbHostname, int(dbPort), dbInstance)
#### app = qt.QApplication([])
dbConnection =
Oracle.connect(user=dbUser,password=dbPassword,dsn =dbDSN)

The connection fails if the line
#### app = qt.QApplication([])
is uncommented
Not into python, but suspecting processing is serial, try
to reverse the two last lines - you to try to
process something without being logged on - the
Oracle.connect must be doing that if everything works ok
without the app = qt.... line.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...


Reply With Quote
  #6  
Old   
labrach
 
Posts: n/a

Default Re: ORA-01017 error only with qt - 01-04-2008 , 02:28 PM



thanks but
Unfortunately, this won't fix since the database connection and the
query must be executed from the Qt graphical user interface, that is
to say after the qt application is launched.
The script I've provided is just a simplify part of a big application,
and this application works fine on windows, solaris and even on some
other linux boxes !
bye
laurent

On 4 jan, 20:21, Frank van Bortel <frank.van.bor... (AT) gmail (DOT) com> wrote:
Quote:
labr... (AT) gmail (DOT) com wrote:
Hi,

I'm using the cx_oracle python module to access an oracle database
It works fine but when I run within a qt environment it fails with the
following error:
ORA-01017: invalid username/password; logon denied

The script that works:

import cx_Oracle as Oracle
import qt
sql_query = "SELECT * FROM AC_DATATYPE"
dbUser = ...
dbPassword = ...
dbHostname = ...
dbInstance = ...
dbPort = ...
dbDSN = Oracle.makedsn(dbHostname, int(dbPort), dbInstance)
#### app = qt.QApplication([])
dbConnection =
Oracle.connect(user=dbUser,password=dbPassword,dsn =dbDSN)

The connection fails if the line
#### app = qt.QApplication([])
is uncommented

Not into python, but suspecting processing is serial, try
to reverse the two last lines - you to try to
process something without being logged on - the
Oracle.connect must be doing that if everything works ok
without the app = qt.... line.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...




Reply With Quote
  #7  
Old   
labrach
 
Posts: n/a

Default Re: ORA-01017 error only with qt - 01-04-2008 , 02:28 PM



thanks but
Unfortunately, this won't fix since the database connection and the
query must be executed from the Qt graphical user interface, that is
to say after the qt application is launched.
The script I've provided is just a simplify part of a big application,
and this application works fine on windows, solaris and even on some
other linux boxes !
bye
laurent

On 4 jan, 20:21, Frank van Bortel <frank.van.bor... (AT) gmail (DOT) com> wrote:
Quote:
labr... (AT) gmail (DOT) com wrote:
Hi,

I'm using the cx_oracle python module to access an oracle database
It works fine but when I run within a qt environment it fails with the
following error:
ORA-01017: invalid username/password; logon denied

The script that works:

import cx_Oracle as Oracle
import qt
sql_query = "SELECT * FROM AC_DATATYPE"
dbUser = ...
dbPassword = ...
dbHostname = ...
dbInstance = ...
dbPort = ...
dbDSN = Oracle.makedsn(dbHostname, int(dbPort), dbInstance)
#### app = qt.QApplication([])
dbConnection =
Oracle.connect(user=dbUser,password=dbPassword,dsn =dbDSN)

The connection fails if the line
#### app = qt.QApplication([])
is uncommented

Not into python, but suspecting processing is serial, try
to reverse the two last lines - you to try to
process something without being logged on - the
Oracle.connect must be doing that if everything works ok
without the app = qt.... line.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...




Reply With Quote
  #8  
Old   
labrach
 
Posts: n/a

Default Re: ORA-01017 error only with qt - 01-04-2008 , 02:28 PM



thanks but
Unfortunately, this won't fix since the database connection and the
query must be executed from the Qt graphical user interface, that is
to say after the qt application is launched.
The script I've provided is just a simplify part of a big application,
and this application works fine on windows, solaris and even on some
other linux boxes !
bye
laurent

On 4 jan, 20:21, Frank van Bortel <frank.van.bor... (AT) gmail (DOT) com> wrote:
Quote:
labr... (AT) gmail (DOT) com wrote:
Hi,

I'm using the cx_oracle python module to access an oracle database
It works fine but when I run within a qt environment it fails with the
following error:
ORA-01017: invalid username/password; logon denied

The script that works:

import cx_Oracle as Oracle
import qt
sql_query = "SELECT * FROM AC_DATATYPE"
dbUser = ...
dbPassword = ...
dbHostname = ...
dbInstance = ...
dbPort = ...
dbDSN = Oracle.makedsn(dbHostname, int(dbPort), dbInstance)
#### app = qt.QApplication([])
dbConnection =
Oracle.connect(user=dbUser,password=dbPassword,dsn =dbDSN)

The connection fails if the line
#### app = qt.QApplication([])
is uncommented

Not into python, but suspecting processing is serial, try
to reverse the two last lines - you to try to
process something without being logged on - the
Oracle.connect must be doing that if everything works ok
without the app = qt.... line.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...




Reply With Quote
  #9  
Old   
labrach
 
Posts: n/a

Default Re: ORA-01017 error only with qt - 01-04-2008 , 02:28 PM



thanks but
Unfortunately, this won't fix since the database connection and the
query must be executed from the Qt graphical user interface, that is
to say after the qt application is launched.
The script I've provided is just a simplify part of a big application,
and this application works fine on windows, solaris and even on some
other linux boxes !
bye
laurent

On 4 jan, 20:21, Frank van Bortel <frank.van.bor... (AT) gmail (DOT) com> wrote:
Quote:
labr... (AT) gmail (DOT) com wrote:
Hi,

I'm using the cx_oracle python module to access an oracle database
It works fine but when I run within a qt environment it fails with the
following error:
ORA-01017: invalid username/password; logon denied

The script that works:

import cx_Oracle as Oracle
import qt
sql_query = "SELECT * FROM AC_DATATYPE"
dbUser = ...
dbPassword = ...
dbHostname = ...
dbInstance = ...
dbPort = ...
dbDSN = Oracle.makedsn(dbHostname, int(dbPort), dbInstance)
#### app = qt.QApplication([])
dbConnection =
Oracle.connect(user=dbUser,password=dbPassword,dsn =dbDSN)

The connection fails if the line
#### app = qt.QApplication([])
is uncommented

Not into python, but suspecting processing is serial, try
to reverse the two last lines - you to try to
process something without being logged on - the
Oracle.connect must be doing that if everything works ok
without the app = qt.... line.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...




Reply With Quote
  #10  
Old   
labrach
 
Posts: n/a

Default Re: ORA-01017 error only with qt - 01-08-2008 , 03:13 AM



I reply to myself because I've found the problem:
I've replaced NLS_LANG=ENGLISH with NLS_LANG=
and now it's ok

thanks
laurent

On 4 jan, 21:28, labrach <labr... (AT) gmail (DOT) com> wrote:
Quote:
thanks but
Unfortunately, this won't fix since the database connection and the
query must be executed from the Qt graphical user interface, that is
to say after the qt application is launched.
The script I've provided is just a simplify part of a big application,
and this application works fine on windows, solaris and even on some
other linux boxes !
bye
laurent

On 4 jan, 20:21, Frank van Bortel <frank.van.bor... (AT) gmail (DOT) com> wrote:



labr... (AT) gmail (DOT) com wrote:
Hi,

I'm using the cx_oracle python module to access an oracle database
It works fine but when I run within a qt environment it fails with the
following error:
ORA-01017: invalid username/password; logon denied

The script that works:

* * * * *import cx_Oracle as Oracle
* * * * *import qt
* * * * *sql_query * * * * * * *= "SELECT * FROM AC_DATATYPE"
* * * * *dbUser * * * * * * * * = ...
* * * * *dbPassword * * * * * * = ...
* * * * *dbHostname * * * * * * = ...
* * * * *dbInstance * * * * * * = ...
* * * * *dbPort * * * * * * * * = ...
* * * * *dbDSN *= Oracle.makedsn(dbHostname, int(dbPort), dbInstance)
* * * * *#### app = qt.QApplication([])
* * * * *dbConnection =
Oracle.connect(user=dbUser,password=dbPassword,dsn =dbDSN)

The connection fails if the line
* * * *#### app = qt.QApplication([])
is uncommented

Not into python, but suspecting processing is serial, try
to reverse the two last lines - you to try to
process something without being logged on - the
Oracle.connect must be doing that if everything works ok
without the app = qt.... line.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...- Masquer le texte des messages précédents -

- Afficher le texte des messages précédents -


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.