Cx_Oracle.InterfaceError:unable to acquire envirnoment handle

Hi all,
I am facing this issue with cx_Oracle error like cx_Oracle.InterfaceError:unable to acquire envirnoment handle
using cx_Oracle for windows platform with python version 2.6 . i haved dowload the cx_Oracle with version cx_Oracle-5.0.4-10g win32 py26.msi which is in binary and installed.
Inside the python folder LIB/site packages i found cx_Oracle.pyd file was present with help of this i am able to import the cx_oracle from python prompt
>>import cx_Oracle
This is working fine and its is importing but whenl i am trying to connect to the database through this
>>cx_Oracle.connect()
also with >>cx_Oracle("abc/abc@ORCL")
Traceback <most recent call last>
file "<stdin">,line 1 in <module>
cx_Oracle.InterfaceError:unable to acquire envirnoment handle --> ii am facing this issue i have set the environment path of ORACLE_HOME but still i am facing this issue not able to connect to database
The same which works fine with instanclient version 10.2 without python i am able to connect to database with help of cx_Oracle.connect() but its not same in the python prompt
as i have set all path but still i am facing this issue.
i am using instantclient10g version
os:32bit machine both xp & server2003
location cx_Oracle i downloaded: http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-5.0.4-10g-unicode.win32-py2.6.msi?download
let me know if any more path or dll i have to include in the python folder
regards
pavanbabu
Edited by: user11419695 on Aug 4, 2010 5:02 AM

I met this issue too and I fixed it.
The issue is that there were several copy of "OCI.dll" exist in different plance and they belong to different Oracle version. I remove the other version's OCI and the app works fine.
Also I use the following setup.py
from distutils.core import setup
import py2exe, sys
sys.argv.append('py2exe')
setup(
options = {'py2exe': {
'bundle_files': 2,
'compressed': True,
'dll_excludes': ["oci.dll"]
console = [{'script': "test.py"}],
zipfile = None
)

Similar Messages

  • New inst: HP-UX: db2icrt fails: CLP frontend unable to get request handle

    We are migrating our installations from the beautiful AIX to ... HP-UX.  I am told I will learn to love it, but probably not until they update df to at least 1988 levels. 
    This is the pilot install.  We have never seen this work before (and maybe no-one has...?)
    sapinst runs correctly up to the "Create database instance" phase.  At that point it dies with the following:
    FUNCTION: DB2 UDB, command line process, clp_start_bp, probe:3
    MESSAGE  : CLP frontend unable to get REQUEST handle
    DATA #1: Hexdump etc.
    DBI1281E: The database manager configuration file could not be read initialized.
    No further useful information is provided.
    In db2<sid> I have a bunch of dot files (.profile and the like) and the db2_software directory containing the database installation.
    During the create database instance phase, I can see that directory sqllib is created, but it is deleted when the phase fails.
    There is no litter of any kind in the /db2/<SID> directories, - nothing has been done at all.
    I have done the following: <<imagine nice bullets below - they dont seem to be available here>>
    checked that the permissions on /tmp and the installation direcctory (redirected by setenv  TEMP  /usr/sap/install) are 777: they are;
    checked the OS parameters with db2osconf - they are good
    checked the host name resolution with a perl script - gethostbyname and gethostbyaddr agree.
    the ip address, simple hostname and FQDN are on a line in the hosts file
    there is no litter from previous installations - this is a clean machine
    I could not find any reference to required environment variables (such as LD_LIBRARY_PATH) in the install guide or the install note - so I have not set any.
    I have been hacking away at this for days.  I have put in a call to SAP, who will get back to me after dark (of course...)
    This seems to be a massively popular problem, and the helpful error message ("Sorry, Sport, just can't bring myself to do it") seems to have people jumping from tall buildings and in front of busses all over Google-world.  Furthermore there also seems to be a near-infinite number of possible causes and none of them seem to apply here.
    H-PUX version is 11.31.  DB2 is 9V5 patch 4.  sapinst is latest available.  Weekend is fading fast...
    Edited by: Russell Day on Mar 5, 2010 7:46 AM

    >
    Paul Power wrote:
    > Hi Russell,
    >
    > Apologies if some of this has been already tried but please check the following points:
    >
    > Make sure the machine name is listed in its hosts file.
    >
    > Make sure to log on directly to root. ie: do not su to root from another without '-'        
    >
    > Make sure there is no instance created already (find / -name sqllib) for that user 
    >
    > Using ps -aef and ipc -a, no old db2 ressources should be displayed for db2 instance owner. If there are any, kill/remove it  
    >
    > You should make sure, that LIBPATH and LD_LIBRARY_PATH of root and db2 instance owner does not point to an path of another db2 version
    >
    > Regards,
    > Paul
    No need to apologise for assisting, Paul, but I have dealt with most of these.
    The host file contains the unqualified and fully qualified hostnames, on the same line, unqualified first.
    I am logging in as root (because there were no other users, and I'm old school, from when everyone logged on as root to do everything.
    There is no instance, and in fact there is no sqllib except when the "create database instance" step is running.
    The only detectable db2 process running is db2fcmd
    I have not been able to find any instructions regarding LD_LIBRARY_PATH and LIBPATH for HP-UX.  They are not mentioned in the installation guide at all.  I cannot find it in any of the installation notes.   I presume sapinst is setting them itself before they are needed.  Neither are set in the enviroment of db2<sid> or <sid>adm.  I have gnawed my fingernails to the elbow over this one, but I cannot see any indication that either should be set for HP-UX.  Anyway, they are definitely not set anywhere, to anything.  This was a clean machine before I started chopping it up to do this install.
    I figure it must be complicated - I have been trying to get an answer for 10 days already.  I will absolutely hate myself when it turns out to be something obvious, documented in 10 places, mostly in bold italics.  I shoulda taken my dads advice and been a riverboat gambler or a piano player in a cathouse - its a lot less complicated,

  • Unable to get Window Handle for the 'AxCrystalActivXViewer' control.

    Hi,
    I have Operating System : Windows 7 and Application developed in VS 2005 and I am using Crystal Report XI licenced version.
    But when I am trying to use TTX(Field Defination) based reports it gives me "Unable to get Window Handle for the 'AxCrystalActivXViewer' control. Windowless ActivX Controls are not supported."
    Please provide me solution for this ASAP as I am stucked on this from long lomg time.
    -Regards
    Swapnil

    Appears you are installing an upgrade version.
    Use these links:
    http://downloads.businessobjects.com/akdlm/crystalreports/crxir2_sp4_full_bld_0-20008684.exe
    http://downloads.businessobjects.com/akdlm/crystalreports/CRYSTALREPORTS06_0-20008684.EXE

  • Comes With Music - "Unable to acquire license" err...

    I have a N97 with Comes With Music. Since the past week, I have been unable to download tracks from the Music Store. I log in to my CWM account as usual, but everytime i click on the download button after selecting a track, it just gives me the error message "Unable to acquire license". 
    Anyone else experience this problem? How do I fix this?

    missmiami wrote:
    Can anyone help please.  I have a new nokia 5310 CWM but I can't xfer my music off my laptop onto it.  I lost all my original downloads cos my original CWM phone broke.  My subscription has expired but I am still entitled to the tracks on my laptop, plus I pay insurance on my phone, which surely means I should be able to have my old music on my new phone, at the moment I'm worse off
    Provided that your new device is a Comes With Music-compatible device, you can have your account transferred to the new device, you need to contact your local Nokia Care helpline and ask for the registered device to be changed. You will need to provide your music store username, the old IMEI number and the new IMEI number.
    If this or any post answers your question, please remember to help others by pressing the 'Accept as solution' button.

  • Modifying a column caused PMON unable to acquire latch

    I was modifying a varchar2 column on a table by increasing its size from 32 to 1024. (153 rows in the table.)
    It caused a hang within the database and in the alert log saw the message: PMON unable to acquire latch
    I have been told this can happen if the tables are accessed by PL/SQL, if that is the case is there any way that tables can be modified without causing this issue?
    Has anyone else ever experienced this and did they find any usable solution to it?

    the only errors in the alert log were:
    Wed Apr 22 09:49:40 2009
    PMON failed to acquire latch, see PMON dump
    Wed Apr 22 09:54:41 2009
    PMON failed to acquire latch, see PMON dump
    Wed Apr 22 09:55:45 2009
    PMON failed to acquire latch, see PMON dump
    a trace file was produced and the first few lines say:
    PMON unable to acquire latch 600edc80 Child shared pool level=7 child#=2
    Location from where latch is held: kghfrunp: alloc: session dur:
    Context saved from call: 0
    state=busy, wlstate=free

  • Unable to get timer handles for containerId: jboss.j2ee:jndiName=

    im trying to access my database thru ejb.......... im using jboss server.......... but while starting the server im getting an error like --"Unable to get timer handles for containerId: jboss.j2ee:jndiName=Statustable,service=EJB" ---- where Statustable is an oracle database table created by me....
    what could be the problem? can anybody help me?

    You might have better luck posting to the JBoss forum.
    --ken                                                                                                                                                                                               

  • NSMMReplicationPlugin - Unable to acquire replica

    10/Mar/2003:16:54:56 -0500] NSMMReplicationPlugin - Unable to acquire replica "cn=ims, cn=replica, cn="o=ims.com", cn=mapping tree, cn=config (host sun172.ims.deco.com, port 389)": permission denied. The bind dn "cn=Replication Manager,cn=config"
    does not have permission to supply replication updates to the replica. Will retry later.
    That is the error iam getting when ever i intialise the Master. Is any body know what is this error means. I followed the document as it specified.
    Is there any permission do i need to specify while iam creating agreements?
    Thanks in advance

    [11/Mar/2003:09:49:52 -0500] conn=23 fd=28 slot=28 connection from 162.9.101.132 to 162.9.101.133
    [11/Mar/2003:09:49:52 -0500] conn=23 op=0 BIND dn="cn=Replication Manager,cn=config" method=128 version=3
    [11/Mar/2003:09:49:52 -0500] conn=23 op=0 RESULT err=0 tag=97 nentries=0 etime=0 dn=""
    [11/Mar/2003:09:49:52 -0500] conn=23 op=1 SRCH base="" scope=0 filter="(objectClass=*)" attrs="supportedControl supportedExtension"
    [11/Mar/2003:09:49:52 -0500] conn=23 op=1 RESULT err=0 tag=101 nentries=1 etime=0
    [11/Mar/2003:09:49:52 -0500] conn=23 op=2 EXT oid="2.16.840.1.113730.3.5.3"
    [11/Mar/2003:09:49:52 -0500] conn=23 op=2 RESULT err=0 tag=120 nentries=0 etime=0
    [11/Mar/2003:09:49:52 -0500] conn=23 op=3 UNBIND
    this is my access log.
    When i initailize consumer the error iam getting is "The error received by the replica is: '3 Replication error acquiring replica: permission denied'.
    I re-doing every thing including installtion software. i guess i did some thing wrong when i first setup. I really appriciate your help on this thank you very much. I will keep posting if i have any errors.

  • "unable to acquire rendered frame" error message with AE CS6 Motion Tracker

    Hi Everyone,
    I am having issues with the built in tracking software in After Effects CS6. Everytime I hit "analyze" I receive the error message "unable to acquire rendered frame" or it simply remains at "0% (frame 1 of 70)". Sometimes I get the message "unable to obtain dynamiclink server connection". I've tried different types of footage, re-started, re-installed the software, deleted (emptied) the database and caches, started a fresh composition, and even did a fresh install of OSX but nothing works. Any ideas? I've searched a lot of forums on this and I've seen the problem in similiar situations (same error message with Warp Stabilizer analysis) but nobody seem to have found any resolution.
    I'm running AfterEffects CS6 on Mac OS 10.8.
    Processor  2.93 GHz Quad-Core Intel Xeon
    Memory  8 GB 1066 MHz DDR3 ECC
    Graphics  ATI Radeon HD 4870 512 MB
    Downloaded all the latest updates.
    Done all the usual emptying of caches, repaired disk permissions, re-installation of software, etc.
    Any help would be very much appreciated.
    Thank you.

    What firewall/antivirus software are you using?
    After Effects communicates with the background camera tracker process using TCP, and some overly aggressive firewall/antivirus software can block this communication. That may be the problem in your case.
    See this document for a closely related issue:
    http://helpx.adobe.com/x-productkb/multi/startup-screen-hangs-premiere-after.html

  • Warp Stabilizer error: Unable to acquire rendered frame

    Hi,
    I am trying to apply Warp Stabilizer to a clip. Analyze process starts but then halts after 15-20 frames and a pop-up appears "Unable to acquire rendered frame".
    I have previously used Warp without any hitches.
    Any ideas?
    Thanks,
    Richard

    I too get this, sometimes not and the analyze just drops without a word, but most of the time I get the error. I tried on material such as: Red r3d, uncompressed fullHD/SD, mp4, canon 7D etc. pretty much all formats there is, so there isn't a problem with what type of files or what GOP structure it got. I cannot solve this even by creating a new project or reboot, I even reinstalled AE and the Matrox drivers, I tried unplugging the MXO2 mini but got the same result, so I'm pretty much done testing, I tried everything I can think of. I allocated RAM differently, shut of multiprocessing, enabled it, more RAM to few cores and then less RAM to more cores, increased cashe, disabled it.
    Sometimes when I let the footage play out with RAM preview, the analyze gets to the end in the background, but whenever I just let it work for itself it drops.
    So I tried everything and the error still persist. What should I do?

  • ~QOCIResult: unable to free statement handle

    Good morning
    I have a problem with an application. First of all I use oracle db 10 and qt 4.6 with c++ and I have written this code:
    void DBConnector::releaseConnection(const dbConnection& dbc)
            QMutexLocker locker(&mt_connections);
            QString conn_id = dbc.getId();    //here I obtain my connection name
            cout << "Release Connection: " << qPrintable(conn_id) << endl;
            QSqlDatabase myDB = QSqlDatabase::database( conn_id );
            myDB.close();
            QSqlDatabase::removeDatabase( conn_id );
    }The code compiles and works but it returns a warning: ~QOCIResult: unable to free statement handle
    So I've lost two days to understand where the problem is but I wasn't able to find a solution. I've also opened the qsql_oci.cpp file and I've found this:
    QOCIResult::~QOCIResult()
        if (d->sql) {
            int r = OCIHandleFree(d->sql, OCI_HTYPE_STMT);
            if (r != 0)
                qWarning("~QOCIResult: unable to free statement handle");
        delete d;
    }I think the problem is in the OCIHandleFree method. Do you know how to solve it? Is this a bug between qt and oracle?
    Thanks

    If there's a problem between a 3rd party product and Oracle,you better consult the 3rd party (because the 3rd party vendor prepares the API).
    Werner

  • Unable to acquire a Task Programmatically

    Hi All,
    I got the following error when I tried to update a Task programmatically.
    I tried to acquire a task
    getTaskService().acquireTask() method.
    The stack trace is provided below.
    <2009-03-18 14:43:51,765> <ERROR> <oracle.bpel.services.workflow> <::> marshalle
    r is unable to marshal the object.
    javax.xml.bind.JAXBException: marshaller is unable to marshal the object.
    at oracle.xml.jaxb.JaxbMarshaller.marshal(JaxbMarshaller.java:311)
    at oracle.bpel.services.workflow.query.impl.QueryUtil.getElementFromJAXB
    Object(QueryUtil.java:107)
    at oracle.bpel.services.workflow.verification.impl.VerificationService.g
    etWorkflowContextElement(VerificationService.java:1976)
    at oracle.bpel.services.workflow.task.client.AbstractDOMTaskServiceClien
    t.createBaseType(AbstractDOMTaskServiceClient.java:1645)
    at oracle.bpel.services.workflow.task.client.AbstractDOMTaskServiceClien
    t.updateTaskOutcome(AbstractDOMTaskServiceClient.java:677)
    at oracle.retail.collab.service.impl.WorkListAPIHelper.completeTask(Work
    Could anybody tell me how i can resolve this issue.
    Regards
    Harish

    This is the french speaking part of the forum, maybe you'd get better luck to obtain a good answer in the general section.
    To answer your question directly, I'd say check the options/parameters you're using because the error message clearly states that the way you're setting the physical channels / routing is not supported.
    Never used the C API so I can't really help you more than this.
    Hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Unable to delete the Handling Unit

    Hi Friend,
    I wanted to delete the delivery document, when i unpack and delete the Handling unit i am getting the following error "Handling Unit 2000679441 contains item that cannot be deleted" in the Log" Handling Unit 2000679441 is packed - only entire HUs can be reassigned"
    Need assistance.
    Thanks in advance.
    Regards,
    Kannan M

    Try using packing station functionality tcode HUPAST.
    Select delivery from the dropdown and give delivery number in the next screen.
    System will populate the HU content of the delivery.
    Give negative quantity of material and material number and save the transaction.

  • HT1369 My iPhone 5S is connected to the computer thru the USB port.  I have transferred the must to this phone, but am unable to acquire my apps from my iPhone 3.

    I recently purchased a new iPhone 5S, previous phone was an iPhone 3.  I am unable to copy my apps to the new phone.  The music transferred, photos and contacts.  Can anyone figure out why I can't recover my apps?

    Why not?
    Any errors when attempting to sync the apps?

  • Unable to acquire 4 channels (2048 samples to be read).PCI 7030/6040E

    I am using the PCI 7030/6040E DaQ card (Labview 6.1, Windows 2000,Pentium).I want to acquire 4 channel data (2048 samples from each channel)at 6.5kS/s Sampling Rate.When I do this using AI Acquire Waveforms.vi the program gets stuck.When I use continuous buffered acquisition using intermediate VIs, then data over write error occurs.(I am taking FFT of the data and plotting the data as four Waterfalls using Intensity Chart.).It says that you are not reading data from the buffer as fast and so overwriting occurs.How can I solve this problem.Can I get data at this rate using this card ?If so,what should be the buffer size etc? (I want continuous acquisition).

    thanks.i am attaching the code,Buffered.vi and non_buffered_ni.vi.both does not work.the second one gets stuck and the first one gives some overwrite error.Actually what I want is the first one,buffered.vi,because I want continuous acquisition.the second one i have tried to see whether it will work.as i have told,i want a sampling rate of 6500 samples/sec and i want to take 2048 samples from each channel to take FFT and plot waterfall.hope this gives a clear picture.
    Attachments:
    Buffered.vi ‏183 KB
    non_buffered_ni.vi ‏148 KB

  • Unable to acquire all the points in LabView screen

    Hi All,
    I am using Agilent 54642A Oscilloscope to acquire a waveform to be displayed in the output screen of a LavView program. But the Oscilloscope has the maximum no. of points capacity as 2000(From the manual described in the command WAVOIN. So if I give 2000 points as my input I get the output graph in a second but miss most of my positive peaks (As shown in the attached file). Anf if I give suppose 5000 points, the oscilloscope loads the Factory setting (Not the setting, ex trigger level, time period etc. which I have given at the input) and gives the correct graph but takes a lot of time to load.
    Can anyone tell me, either how to increase the no. of points or what are the specifications of the factory set up so that I can incorporate those in the program and get some good result.  Please have a look at the attached files, RECO0008 shows the wave of the Osclliscope and RECO0007 shows the output graph of the Lav View program. Kindly note that the positive peaks are missing in the second file.
    Thanks in advance,
    Neelesh.
    Attachments:
    RECO0008.JPG ‏252 KB
    RECO0007.JPG ‏293 KB

    Hi,
    I have check the access details everything is Ok. Would like to know do they have any  issues with "User defined dimension".
    Regards

Maybe you are looking for