Anyone running ArcGIS arcpy Python scripts using Oracle 11g EM AGENT?

I have a Windows command file that successfully executes an ArcGIS arcpy Python script when run manually or via Task Scheduler . But when executed by the EM Agent, arcpy doesn't recognize the SDE connection string file as a workspace for connecting to the geodatabase. The manual execution on the server uses the same login as the EM Agent.
I have verified all the environment variables for the EM Agent are the same as those for running natively on the server. I then used arcpy to describe the file type using both execution methods.
DescribeFile.py
import os
import sys
import arcpy
desc arcpy.Describe("D:\\Test\\Compress\\database_login.sde")
print desc.dataElementType
Manual output of: python.exe DescribeFile.py >> DEWorkspace
EM Agent output of: python.exe DescribeFile.py >> DEFile
I have little experience with Python, but years of experience with the EM Agent. I have been unable to find anything related that was helpful on Oracle Support, ESRI support, or general internet searches.

I am a non arcpy user but should it not be desc =
Or is it a typo?
And maybe try using / instead of \\
Eric

Similar Messages

  • Issue Running a Dashboard on iPad using Oracle BI Mobile App 11.1.1.5

    Hi All,
    I have an Oracle BI dashboard (11g) which I'm trying to access through an iPad. I have Oracle Business Intelligence Mobile App (version 11.1.1.5) installed on the iPad and the version of the Oracle BI EE Server is 11.1.1.6.0
    Functionality of the Dashboard
    =============================
    The dashboard consists of 15 tabs. The first tab is an Overview tab from where a user is required to select the value for a scenario. Once the user selects a particular scenario and clicks on Apply button the charts on the Overview tab, as well as the data for all other tabs gets generated and the user can select different tabs and view their data.
    Results Obtained (till now)
    ================
    The above Dashboard is working perfectly fine when tested on
    i. Internet Explorer
    ii. Apple iPhone & iPad - Safari Browser
    ii iPhone - Oracle Business Intelligence Mobile App
    Problem Running the Dashboard on iPad ( using Oracle Business Intelligence Mobile App)
    ============================================================
    When I open the Dashobard, the initial Overview tab appears. As soon as I select a Scenario and click on Apply button, the Overview tab gets generated perfectly fine but the drop down list for selecting the other related reports (tabs) stops appearing.
    The Refresh, Properties, Mobile/ Original Layout and Favorites icon on iPad screen all stop functioning.
    However, if I do not select a Scenario in the Overview tab and simply click on the dropdown I'm able to view and select from the list of other available reports (tabs) in the Dashboard. The other tabs open up but do not display any components which completely or partially depend on the scenario chosen on the Overview page. Only the components which are independent of Scenario selection appear on the other tabs.
    Selecting the Scenario in the Overview tab and applying it is a mandate for getting results on other reports (tabs) but once this is done then the complete navigation stops as explained above.
    The same Dashboard is however working perfectly fine with the same App on iPhone.
    If anyone has any idea about how to resolve this issue, Please help.
    Thanks,
    Jyoti

    There are a number of issues w the Mobile app and Ipad...have to thoroughly reviewed this metalink note:
    Master Note For Oracle Business Intelligence Mobile Applications (iPhone/iPad) Issues in OBIEE [ID 1293391.1]
    If helpful, pls mark correct or helpful

  • Calling unix script using oracle forms

    we have to call unix script using oracle forms , a trigger in form calls stored procedure on database
    that stored procedure on database calls a oracle shared library
    but since the only listener account for oracle on our unix server is oralist , whenever a call is made to the unix script from the oracle form , the unix script is executed by oralist user
    but issue that we are having now is since oralist is specific for listening connections from orale we dont want to use this user to establish SFTP on it to avoid any issues with oralist
    we want the sftp to be established on soem other useraccount , so is it possible to do something so that the script is executed by an account other that oralist.

    I'm not a Linux/Unix specialist, but I think this may work: let your database call a shell script that does a su command before running the actual script:
    su - other_account
    your_script.sh

  • How to get DDL Script in Oracle 11g

    How can i get DDL Script in Oracle 11g database.
    I am using windows as OS
    Can anyone help me to get solution.
    Thanks in Advance

    parapr wrote:
    How can i get DDL Script in Oracle 11g database.
    I am using windows as OS
    Can anyone help me to get solution.
    Thanks in AdvanceHUH?
    might DBMS_METADATA.GET_DDL() provide what you desire?

  • JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..

    JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
    I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue with version of ojdbc6.jar that i am using??? I cant use thin driver since its an old application for which i dont have source files.
    Apr 6, 2013 1:00:59 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at PettyCash.SysDate.getSysSubSys(SysDate.java:232)
    at org.apache.jsp.PettyCash.index_jsp._jspService(org.apache.jsp.PettyCash.index_jsp:186)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Code is as follow for reference
    import oracle.jdbc.driver.*;
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,db_user, db_pass);
    eNVIRONMENT VARIABLES set are as follows:
    classpath
    C:\Program Files\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\classes12.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\ojdbc6.jar;
    JAVA_HOME
    C:\Program Files\Java\jdk1.5.0_04
    PATH
    C:\Program Files\Java\jdk1.5.0_04\bin
    ORACLE_HOME
    D:\Oracle11\product\11.2.0\client_1\BIN

    Apr 8, 2013 5:24:06 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
         at org.apache.jsp.abc.index_jsp._jspService(org.apache.jsp.abc.index_jsp:280)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

  • Connect to Oracle 9i server using oracle 11g client

    Hi,
    my oracle 9i server is on unix machine.
    I got new Window 7 64 bit machine for .NET code development(framework 4.0).It is having Oracle 11G installed.I am getting oracle connection error while running .NET application.
    what changes (connection string/tnsnames.ora/others) will I have to do to connect Oracle 9i server using oracle 11g client ?

    Hi,
    Please post the complete error stack you are getting.
    Regards
    Yoonas

  • Not able to debug procedure using oracle 11g & toad 9.0.1.8

    hi..
    i m using oracle 11g & toad 9.0.1.8 ..i want to debug procedure , i set parameter, but not able to debug procedure , there is 'debug' option, but that option is disable..
    can u plz help me regarding this..
    can u suggest me another tool where i can debug my procedure..
    thanx..
    Edited by: user10502250 on Jun 22, 2009 4:15 AM

    "Help, About" should list the installed options, and "Debugger" should be in the list otherwise you'll need an expensive upgrade or a change of IDE.
    In TOAD you have to open the source code editor, at which point the debugging options should be accessible. You can either set a breakpoint and hit the 'Execute' lightening symbol, or place the cursor at a suitable point in the code and press F12.
    I'm not completely sure how you are supposed to pass runtime parameters but it may be to do with right-click, Action Console, Execute, which brings up a 'Set Parameters' dialog. However this won't run in debug mode, it just runs and remembers the arguments. I don't really get it. As you can probably tell I'm not a great fan of the product. Have you looked at PL/SQL Developer?

  • Displaying Chinese Character in Oracle Form 6i using Oracle 11g Database

    Hi,
    Please, can anyone send me the solution for displaying the Chinese characters in Oracle Form 6i using Oracle 11g database and also
    the configuration that has to be implemented.Its urgent.
    Thank You,
    Sridhar.T

    displaying the Chinese characters in Oracle Form 6i using Oracle 11g database I'm afraid you might have problems... see Implementing Chinese language in Oracle 11g

  • Can I use Oracle 11g Developer tools with 10G and XE

    Hi, I want to use Oracle 11g ODAC 11.1.0.6.21 with Oracle Developer Tools for Visual Studio with 10g and Xe . Will there be any issues. I want to do so because I am not able to see Oracle Database project in Visual Studio when I install Oracle 10 g developer tools wherein I see that in Oracle 11g developer tools. Please suggest.

    No there are no issues. Just be sure to install ODT in a separate location than where XE is installed.

  • Using Oracle 11g How to change the Log mode from NoArchieve to Archieve Log

    Hi,
    I currently using oracle 11g How can I change database from NoArchivelog node to Archivelog node using spfile.
    And where exactly the spfile will be located?
    My instance is EPM11 in my local oracle is present in D folder where can i found the pfile?
    In this path i found 1 pfile in my Local Machine
    "D:/Oracle/Product/11g/admin/epm11/pfile" .I have added the following commands in this pfile
    # Archive Log Destinations -benr(10/15/04)
    log_archive_dest_1='location=/u02/oradata/cuddle/archive'
    log_archive_start=TRUE
    Then i have ran the shutdown command.
    Database instance is showtdown.
    After that i am not able to perform startup.
    So please suggest me how to change the mode using SPfile and tell me the path where spfile and pfile should be located?
    And also do i need to set the "Oracle_Home" path in my environment variables"
    Thanks In Advance,
    Chandana

    user11225122 wrote:
    Hi,
    I currently using oracle 11g How can I change database from NoArchivelog node to Archivelog node using spfile.
    And where exactly the spfile will be located?
    My instance is EPM11 in my local oracle is present in D folder where can i found the pfile?
    In this path i found 1 pfile in my Local Machine
    "D:/Oracle/Product/11g/admin/epm11/pfile" .I have added the following commands in this pfile
    # Archive Log Destinations -benr(10/15/04)
    log_archive_dest_1='location=/u02/oradata/cuddle/archive'
    log_archive_start=TRUE
    Then i have ran the shutdown command.
    Database instance is showtdown.
    After that i am not able to perform startup.
    So please suggest me how to change the mode using SPfile and tell me the path where spfile and pfile should be located?
    And also do i need to set the "Oracle_Home" path in my environment variables"
    Thanks In Advance,
    Chandanaremove log_archive_start=TRUE from pfile (it is depricated from 10g onwards)
    SQL>startup nomount pfile="D:/Oracle/Product/11g/admin/epm11/pfile/initYOUR_SID_NAME.ora"
    SQL>Create spfile from pfile="D:/Oracle/Product/11g/admin/epm11/pfile/initYOUR_SID_NAME.ora"
    SQL>SHUT IMMEDIATE;
    SQL>STARTUP MOUNT
    SQL>ALTER DATABASE ARCHIVELOG;
    SQL>ALTER DATABASE OPEN;
    SQL>ARCHIVE LOG LIST;
    SQL>SHOW PARAMATER SPFILE;
    YOU WILL FIND THE LOCATION OF SPFILE
    SQL>

  • Running sql or perl script using DBMS_JOB

    Hi,
    Is there a way to run a sql or perl script using DBMS_JOB procedures? I have a perl script which checks out the table usage and emails the report to specific users. I want to run this script in a job scheduler, where I am using dbms_job to add the job. Please help. Any suggestions are greatly appreciated. Thanks.
    -Kristine

    You cannot run sql or perl scrips using DBMS_JOBS. You can run only Oracle procedures, functions, packages with DBMS_JOBS. They have to be stored in the database. You will have to create a Pro*C program that is listening on the pipe and push data to that pipe by using dbms_pipe. Then you can execute anything you want.

  • Error running universall installer using Oracle 11g on Windows server 2003

    Hi,
    I want to uninstall Oracle 11g on Windows server 2003 and when I run universall installer I receive the following error
    Checking swap space: 0 MB available, 500 MB required.
    Please advise how to resolve this error and the procedure to uninstall Oracle 11g on Windows server 2003
    Thanks,
    Ant

    Hi;
    For swap problem, please check:
    Swap space problem on Windows XP
    http://www.pcnineoneone.com/howto/swpfile1.html
    For remove process please check:
    Oracle 11g on Windows Srv 2003
    WIN: Manually Removing all Oracle Components on Microsoft Windows Platforms [ID 124353.1]
    Regard
    Helios

  • Is it alright to use Oracle 11g DB for Oracle Service Registry 10.3 ?

    Hi,
    I have setup Oracle Service Registry 10.3 with Weblogic Server 10.3 and Oracle database 11g.
    I used the ojdbc6.jar as the jdbc driver.
    Installation went smoothly, and I have done the necessary post-installation modification to the startWeblogic.sh
    However when I start the weblogic server, it throws
    org.idoox.wasp.WaspInternalException: java.lang.RuntimeException: Updates to config files not supported
    at com.systinet.wasp.WaspImpl.boot(WaspImpl.java:399)
    at org.systinet.wasp.Wasp.init(Wasp.java:151)
    at com.systinet.transport.servlet.server.Servlet.init(Unknown Source)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    Truncated. see log file for complete stacktrace
    java.lang.RuntimeException: Updates to config files not supported
    at com.idoox.config.xml.XMLConfigurator.updateConfigFile(XMLConfigurator.java:720)
    at com.idoox.config.xml.XMLConfigurator.prepareConfigFile(XMLConfigurator.java:570)
    at com.idoox.config.xml.XMLConfigurator.init(XMLConfigurator.java:420)
    at org.idoox.config.Configurator.init(Configurator.java:64)
    at com.systinet.wasp.WaspImpl.boot(WaspImpl.java:357)
    Truncated. see log file for complete stacktrace
    When i tried to access the console (http://[host:port]/registry/uddi/web), it returns 500 error, along with the above error message.
    Did I miss something or OSR 10.3 cannot be used with 11g db?
    Thank you in advance,
    yee thian

    For questions like this you should always consult the certification matrix: http://www.oracle.com/technology/software/products/ias/files/fusion_certification.html

  • Image not displaying in pdf report using XSL-FO and using Oracle 11g databa

    Good Afternoon,
    I have created over 15 reports using XSL-fo, with the following syntax to display an image on the pdf:
    fo:block margin-left="0.24cm" margin-right="0.27cm" margin-top="0.0cm" ><fo:external-graphic content-width="scale-to-fit" content-height="scale-to-fit" width="1.73cm" height="1.57cm" >
    <xsl:attribute name="src">'url("http://readiness:7780/i/marforcom_symbol_rpts.gif")'</xsl:attribute></fo:external-graphic>
    </fo:block>
    This syntax works fine when using Oracle 10g, now my database has been upgraded to 11g and my image no longer displays in the reports. I have already upload the image into the database as a workspace image.
    I have tried to point the image @ the image by using url(#WORKSPACE_IMAGE#marforcom_symbol_rpts.gif)
    or <img src ="#IMAGE_PREFIX#marforcom_symbol_rpts.gif")
    and it still doesn't work.
    I have searched this forum trying to come up with a solution that will fix my problem and am unable to.
    Current config: Oracle 11g, using pl/sql gateway.
    I need to know how to point the xsl-fo file to the database, where the image now resides.
    Thanks,
    Mary
    Edited by: MaryM on Jul 25, 2012 3:15 PM
    Edited by: MaryM on Jul 25, 2012 3:51 PM

    Hi,
    I think you need load images to database XDB virtual directory /i/ and then use #IMAGE_PREFIX# substitution.
    This might help to access /i/
    http://www.apex-blog.com/oracle-apex/accessing-i-using-ftp-170.html
    Or use this to load images
    http://oracleinsights.blogspot.fi/2012/05/loading-images-into-oracle-xdb.html
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Can anyone help with a powershell script using the search-adaccount cmdlet to filter out accounts that have been created in the last 90 days?

    Hi,
    I have the following script that is supposed to search AD for all user accounts that haven't logged into the domain in more than 90 days.  I first did not have the where-object clause because I didn't realize the search-adaccount would provide results
    back of users that have never logged in, but were created less than 90 days ago.  So I tried to incorporate the logic to not include user accounts that were created in the last 90 days.
    #requires -version 4
    #This script creates a file of accounts that have not been logged into in the past 90 days, excluding accounts that have been created within the past 90 days since the -AccountInactive option does not factor for the whenCreated property of an AD object
    $DateThreshold = ((Get-Date).AddDays(-90))
    $ReportDate = Get-Date -Format yyyy-MM-dd
    #Create a folder according to the current date to be used for storing the report
    New-Item -Path ".\$ReportDate" -ItemType Directory
    $InactiveUsers = Search-ADAccount -UsersOnly -AccountInactive -TimeSpan "90" -SearchBase "OU=XXXX,DC=XXXX,DC=XXXX,DC=XXXX" | Where-Object {$_.whenCreated -gt $DateThreshold} | Export-Csv ".\$ReportDate\Inactive90_$ReportDate.csv"
    However, I can't ever get the whenCreated field to populate with data.  What gives?

    Hi,
    Search-ADAccount doesn't return a whenCreated property. If you want that, you'll need to use Get-ADUser as well. Here's a basic example you can build from:
    $dateThreshold = (Get-Date).AddDays(-90)
    Search-ADAccount -UsersOnly -SearchBase 'OU=Users,DC=domain,DC=com' -AccountDisabled | ForEach {
    $whenCreated = (Get-ADUser -Identity $_.SamAccountName -Properties whenCreated).whenCreated
    If ($whenCreated -gt $dateThreshold) {
    $_
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

Maybe you are looking for

  • Price date and Pr.Date Cat in Scheduling Agreement

    Hi Gurus, Anyone know what is the purpose of these 2 fields in SA? If I enter the price date with Pr.Date Cat = no control, what is the impact? Will system based on the Price Date to get the price in the info record? Thanks in advance.

  • How do I add keywords to my images using DW?

    How do I add keywords to my images using DW?

  • Trial Not Working (Mac)

    I just downloaded the free 30day trail from the adobe website but when I try open the program it comes up saying:  PremierePro_6_LS7.dm  invalid checksum What does this mean? I am using an iMac version 10.7.4 with Intel Core i7

  • I can't install a bluetooth keyboard

    I am trying to install a bluetooth keyboard using this guide (https://wiki.archlinux.org/index.php/Bluetooth_keyboard) but after entering bluetoothctl -a and getting the [bluetooth]# command line I cannot type anything else with the laptop's builtin

  • Yahoo Messenger problems after update

    The only problem I am having is that the Yahoo IM window does not automatically scroll. Any ideas besides reinstalling the operating system?