Note that there are some explanatory texts on larger screens.

plurals
  1. POcx_Oracle error ORA-24315 when connecting ... sometimes
    primarykey
    data
    text
    <p>I wrote a script and ran it on desktop 'A' which targeted an Oracle db (10g) and an app server on desktop 'B'. It ran without any problems.</p> <p>I then copied the script over to desktop 'B' and it spat out the following: 'ORA-24315: illegal attribute type' at the following snippet:</p> <pre><code>cx_dsn = cx_Oracle.makedsn(cx_hostname, cx_port, cx_SID) cx_connection = cx_Oracle.Connection(cx_username + '/' + cx_password + '@'+ cx_dsn ) </code></pre> <p>Both machines were configured as follows:</p> <ul> <li>Windows 7 (64-bit) </li> <li>32-bit version of Python (ActiveState) </li> <li>pypm install cx-oracle (Which resulted in version cx_Oracle.clientversion() = (11, 2, 0, 3, 0) - Yes this does indicate v11 but it worked against the 10g version from Desktop 'A')</li> </ul> <p>Desktop 'B' however had Oracle 10g and WebSphere 7 installed - Desktop 'A' did not</p> <p>I have searched and lots of people have encountered this problem or something similar but in general the only suggested solutions were:</p> <ol> <li>Ensure that the path doesn't reference Oracle libraries before the Python libraries - I guess the suggestion here is that the Oracle install on desktop B is inteferring. So I configured the path so that it only referenced Python (no mention of Oracle etc) - that didn't help</li> <li>Make sure you are using 32 bit version of everything or 64 bit version of everything - I did, 32 bit across the board as far as Python was concerned</li> <li>Ensure that the cx-Oracle matches the db you are targeting ... ok it looks like I have a problem but ... The strange thing is that the script does work on desktop 'A' so I imagine it must be something environmental on desktop 'B'. So off I go and install a dedicated 10g version of cx_Oracle. No success either. (This query <a href="https://stackoverflow.com/questions/10456598/cx-oracle-multiple-instances-of-oracle-10-and-11-plus-oracle-home">https://stackoverflow.com/questions/10456598/cx-oracle-multiple-instances-of-oracle-10-and-11-plus-oracle-home</a> wasn't answered but sounds similar in nature)</li> </ol> <p>So I am stuck - any suggestions?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload