Using Oracle ODBC HS to Sybase get cursors exceeded max

Oracle 11 g 2

Linux RHEL 6.5

-----------------------

When you use Oracle ODBC HS to connect to Sybase via dblink SYB get the following error:

ORA-01000: cursors open maximum exceeded

ORA-02063: preceding line of SYB

When you run the same SQL locally, getting no error.  (The same tables in Sybase are replicated in Oracle).

Increased the max sliders and even restarted Oracle - no difference.  SQL on system tables do not show more than 250 sliders in use yet max cursors defined at 2500.

This error above suggests a problem of cursor max with Sybase?  Or something else?

It can also be a problem with the HS_OPEn_CURSORS. By default, the gateway allows only 50 open cursors will be open to the foreign database. What happens when you set in the gateway HS_OPEN_CURSORS init file = 200?

If it fails again, could you upload to a public file share a gateway (HS_FDS_TRACE_LEVEL = DEBUG) DEBUG trace level?

-Klaus

Tags: Database

Similar Questions

  • Using Oracle ODBC connection to a remote Oracle database gateway

    Oracle 11 g 2

    RHEL 6.4

    Someone at - it use the Oracle ODBC gateway to connect to a different Oracle database?  Problems with this configuration?  Where can I get the drivers for Linux ODBC?

    (I know, "why not use a dblink?" -Well that would be against the strategies of enterprise security)

    Thanks for your reply.  What I wanted was 'just' a dblink of 1 db Oracle to another Oracle db w/o the use of the ODBC bridge.

  • How to use driver ODBC Oracle

    I am a user non - I.T...  We have a database on Oracle 11 G server.  I have the interface with her using an ODBC for MS Access 2010 link under windows.  Now, I would like to work with CLOB fields, causing errors in my queries.  Some research shows that Microsoft's ODBC driver does not support these, but only to Oracle.  I.T. says they can help me to install the driver if I can find it.  This is where my confusion begins.

    ODBC Oracle drivers

    is a page on the Oracle website.  It has links to a page of drivers:

    ODBC Oracle driver download

    But this has only versions 9.x and 10.x.

    Some googling has not helped things further.  How can I work with CLOB fields in MS Access?

    I'm confused.  Using odbc to access or for the Oracle?  Make your decisions and clarify.

    The oracle drivers are based on the standard oracle client.  You download the drivers by installing the software oracle client.  For sure the customer "run time" will get it.  'Snapshot' customer can... I don't really know on the subject.

    A word of caution.  Upward to Oracle 11, the customer do not have default ODBC drivers.  You must choose to do a custom Setup when you start the installation of the client.  If you install the client of 12 c (which you should) then the odbc drivers will install by default.

    Another complexity is going to deal with 32 - bit and 64 - bit.  The oracle client and the odbc driver must be of the same architecture as the front end, which is the use.  Who'd be a 32-bit application, even if your OS is 64-bit.

    I don't know that I would trust your guy I.T. to install it if they don't know even where to get it.

  • How to get the webservices project customer specific use Oracle.

    I have a Web services project I developed in VS2005 where I use the Oracle.DataAccess.dll provided by Oracle 10 g ODAC to connect to an Oracle 8.1.7.4 database. I add a reference to the dll in the folder c:\oracle\product\10.2.0\client_1\ODP.NET\bin\2.x. I create and publish Web services and checked that Web services are working correctly. I ran into problems when I installed the latest version of the ODAC for Oracle 11, where the webservice Gets the following error ORA-03134 - this version of the server connections are more supported. Based on what I read here and ther panels, it seems that when I installed the ODAC for Oracle 11 he installed a policy file that redirects all calls to use Oracle 11 components data access rather than that I've specified explicitly in my project.

    Is it possible for me to always have the components of Oracle 11 working side by side with Oracle 10 g and forced my project to always use the components of Oracle 10 g?

    Published by: lordharlock on March 3, 2010 07:17

    Hello

    I just did a quick test with binding in an app.config file redirection, and has precidence over policy in the gac file.

    Here's my app.config. I compiled with 2.102.2.20, the app ran with 2.111.7.0, despite the 2.111.7.20 policy in the gac file.

    It will be useful,
    Greg

    
    
      
        
          
            
            
           
          
        
      
    
    
  • IIS to DSN Oracle using Oracle Instant Client 12.1

    Hello

    I hope someone here can help me, because it turns out to be a real chore.

    I need a web application of .NET in order to connect to an Oracle database.

    I use IIS 7.5 on a Web of Windows 2008R2 server 0 x 64 and ASP.NET framework 4.0

    I know very little about Oracle, I'm afraid (I'm a dedicated man of SQL Server - sorry!), so I duly donwloaded and installed the 12.1 client instant 0 x 64.

    I followed all the instructions, created the environment variables PATH and TNS_ADMIN (located at c:\instantclient_12_1, where are installed the Oracle), I had some problems with a missing 0 x 64 DLL (visual .net distribution mfc100.dll) delivered with the instant client (since this is a production almost Virgin Web server, and I don't want to install anything I don't need) , but I finally managed to make the system ODBC DSN to connect successfully.

    The tnsnames.ora file has been provided by the DBA and is as follows;

    xxx =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SID = xxxx)

    (SERVER = DEDICATED)

    )

    )

    Great, I thought. Now for IIS.

    My IIS connection string is of the form;

    Dim conn As New Odbc.OdbcConnection("DSN=xxx;) UID = xxx; Pwd = xxx; »)

    However, whenever I try to open the said connection, I get the ubiquitous;

    "ERROR [08004] [Oracle] [ODBC] [Ora] ORA-12154: TNS: could not resolve the connection identifier specifiedERROR [IM006] [Microsoft] [ODBC Driver Manager] driver's SQLSetConnectAttr failed.

    After much research, I came to realize that I'm not the only person with the above error. He seems to be everywhere.

    This means that my IIS application is probably not rethink research tnsnames.ora reference?

    OK, I thought, let's add all accounts of IIS to the c:\instantclient_12_1 (read and execute). It's IIS do not have access to the tnsnames.ora file permissions, but still no joy.

    I also tried to set the identity of the application pool to run under a domain with privalidges account additional IIS, but still the same error.

    I tried to play with various permutations of connection string. I tried it;

    Dim conn As New Odbc.OdbcConnection ("Driver = {Oracle in instantclient_12_1}; ("Source = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST=xx.xx.xx.xx) (PORT = 1521))) (CONNECT_DATA = (SID = xxxx) (SERVER = DEDICATED))); uid = xxx; pwd = xxx") data

    and this one...

    Dim conn As New Odbc.OdbcConnection ("Driver = {Oracle in instantclient_12_1}; Data Source = (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=xx.xx.xx.xx) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = xxxx))); uid = xxx; pwd = xxx")

    The two caused a completely different error, but all too ubiquitous, it seems;

    "ERROR [HY000] [Oracle] [ODBC] [Ora] ORA-12560: TNS:protocol adapter interneErreur [IM006] failedERROR SQLSetConnectAttr in the [Microsoft] [ODBC Driver Manager] [HY000] [Oracle] [ODBC driver] [Ora] ORA-12560: TNS:protocol adapter error.

    In order to try the House on it, I tried to write a small VB SCript file to access the DSN using the same connection string, I first tried;

    Set adoConnection = CreateObject ("ADODB. Connection")

    adoConnection.ConnectionString = "DSN = xxx; UID = xxx; Pwd = xxx; »

    It worked a treat, and I was able to connect perfectly. To try to drill down to the problem, I run this file as the domain user, I put IIS to run as, and it worked a treat with IIS authentication information too.

    So I'm at the end of my mind. I don't understand why IIS can simply use the system DSN.


    Thanks to everyone in advance for their help. It is much appreciated.

    Ok. I spent some time on this and managed to get to the bottom of all this.

    Here's what the problem was, in the case where everyone faces a similar problem.

    By deliberately that gives a bad name DSN (another mistake) and an incorrect password (resulted in the same error), I was able to determine that the problem is really that the tnsnames.ora file is not get referenced. No traffic left the server at all, and so the password was not relevant.

    Next step was to check that relax TNS_ADMIN variable has been read by IIS.

    I used the command System.Environment.GetEnvironmentVariable ("TNS_ADMIN") to prove it was empty. That explains pretty much everything that. The recently set the environment variable has not been picked up by IIS. It was nothing to do with permissions to the location of the file tnsnames.ora to all. It's a Kipper.

    It would seem that, surprisingly, server restart is necessary for the work process IIS pick up new environment variables. Basically this simple problem cost me a lot of time and bother. NOT BELIEVE messages that say the restart of IIS or the application will pick up any changes to the environment variables - IT WILL NOT.

    There is a problem more annoying, and it's to make sure that you remove the spaces trrailing on behalf of the Service TNS odbc name box, but it was easier to drill down reletatively for, compared to having to restart the production server.

    Thanks ReubenC for your help. I didn't need to go down the road ODP.NET, but thanks for your suggestion. I wish only Oracle would be to write some notes about it, because I'm sure others will hit / have this problem too. It would also be too much to expect Oracle to include all DLLS in the download as well (!)

    In any case, I'm glad I'm on the right track.

  • [Oracle] [ODBC SQL Server driver] String truncation on the right {01004} data

    When importing data from SQL Server 2005 to Oracle 11 g Release2 gateway, I get following error:

    insert into CSDescr select * from CSDescr@sqlserver
    *
    ERROR on line 1:
    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    [Oracle] [ODBC SQL Server driver] string data, right truncation + {01004} +.
    ORA-02063: preceding 2 lines from SQLSERVER

    Oracle database characterset is AL32UTF8
    SQLServer database characterset is SQL_Latin1_General_CP1_CI_AS

    Here is the configuration file for the gateway settings:

    HS_KEEP_REMOTE_COLUMN_SIZE = LOCAL
    HS_NLS_LENGTH_SEMANTICS = CHAR

    I think that the definition of the parameter HS_LANGUAGE must correct the error, but I want to know what should be the value of this setting?

    HS_LANGUAGE must be set to a character set used by the foreign database

    Try: HS_LANGUAGE = american_america. WE8MSWIN1252
    Also specify HS_NLS_NCHAR = UCS2 nvarchars of SQl Server are stored in the UCS2 character set

  • [Oracle] [ODBC SQL Server driver] [libssclient22] General network error

    I use the oracle gateway (11.1) to sqlserver on Linux platform with the Oracle 10 g server.

    I'm getting following error when I run a select query:

    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    [Oracle] [ODBC SQL Server driver] [libssclient22] General network error. Check your network documentation. [Oracle] [ODBC SQL Server driver] [libssclient22] ConnectionOpen(connect()) (connect()). [Oracle] [ODBC SQL Server driver] Invalid connection string attribute
    ORA-02063: preceding 2 lines from SQLSERVER

    Another thing is, I've created an ODBC DSN named "sqlserver" as well. This configuration works well when the parameter "program" dg4odbc in Listener.ora. But with dg4msql, it gives an error.

    Here are the configuration files:

    -----------------
    initsqlserver.ora
    -----------------
    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = database_machine:1433 / / test_master
    HS_FDS_TRACE_LEVEL = OFF
    HS_FDS_RECOVERY_ACCOUNT = RECOVERY
    HS_FDS_RECOVERY_PWD = RECOVERY

    ------------
    Listener.ora
    ------------

    SID_LIST_sqlserver =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = sqlserver)
    (ORACLE_HOME = u01/app/oracle/product/11.1.0.6.0/gateway)
    (PROGRAM = dg4msql)
    )
    )

    SqlServer =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = Server_Machine)(PORT = 1522))
    (ADDRESS = (PROTOCOL = CIP)(KEY = PNPKEY))
    )
    )


    ------------
    tnsnames.ora
    ------------

    SQLSERVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = Server_Machine)(PORT = 1522))
    (CONNECT_DATA =
    (SID = sqlserver)
    )
    (HS = OK)
    )

    Hello

    The error you are getting is because your HS_FDS_CONNECT_STRING is not correct:
    Don't forget you can ping the SQL SERVER name of the Oracle server command, or use the TCP/IP address
    Check the port, it is not necessary 1433.
    You can use the name of the instance instead of the port:
    HS_FDS_CONNECT_STRING = server_ip_address/instance_name/database_name

    Be careful, in the LISTENER. ORA, you must specify the gateway machine and not the SQL SERVER machine:
    SqlServer =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = Gateway_Machine)(PORT = 1522))<====you must="" specify="" oracle="" gateway="">
    (ADDRESS = (PROTOCOL = CIP)(KEY = PNPKEY))
    )
    )

    Ditto for TNSNAMES. ORA:
    SQLSERVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = Gateway_Machine)(PORT = 1522))
    (CONNECT_DATA =
    (SID = sqlserver)
    )
    (HS = OK)
    )

    Concerning

    Mireille

  • Use Oracle oci in CVI 2010

    Does anyone have experience using Oracle oci in CVI 2010 on Windows 7? Should I install 64-bit or 32-bit Oracle Instant Client? It is sufficient to compile the program that accesses Oracle data, do I need to have the Oracle database and the ODBC Manager put in place?

    Marg SZ wrote:

    Does anyone have experience using Oracle oci in CVI 2010 on Windows 7? Should I install 64-bit or 32-bit Oracle Instant Client? It is sufficient to compile the program that accesses Oracle data, do I need to have the Oracle database and the ODBC Manager put in place?

    you didn't have to buy the Toolbox, even think it makes your job easier

    http://orclib.sourceforge.NET/

    http://www.orafaq.com/wiki/Oracle_Call_Interfaces

  • Oracle odbc dll-pointing wrong

    I just moved to windows 7 from xp.   I have a query that uses an ODBC driver for oracle.  He seeks the msorcl32.dll in \windows\system32 and it isn't there anymore, but it is in \windows\sysWOW32\ how to change the path for the data sources work correctly.   I see the incorrect path in the registry, but I was hoping that there is an easier way.

    Hello William,.

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the link below.

    http://social.msdn.Microsoft.com/forums/en-us/categories/

    Hope this information helps.

  • Connection to the database to Oracle using Oracle Apex 5.0.1

    Hi all

    Is it possible to connect to the Oracle (Oracle SQL Developer 4.1.1) database using Oracle Apex 5.0.1 instead of using the object browser. As he was more workspace after you have downloaded the data we have on CSV Excel.

    For example: regardless of the tables I've created in the Application Builder is created in the object browser. We have limited the workspace of 500 MB. This is the reason why we cannot use this method to load the data and retrieve it. (Note: can I ask 2 GB of space to work on the approval of the Director, who is still not sufficient)

    Is it possible that I will create an apex.oracle.com application by using the application builder and I will create in the database tables. When I load the file in application, data will be stored in the database Oracle instead of the object browser.

    Well let me know is possible, if yes, how can I proceed.

    If this isn't the case, please let me know how I can get more workspace.

    According to my understanding, other possibilities are: 1) taking backup of old files and free up space, 2) create another workspace and get extra work space.

    Thanks for your help!

    Kind regards

    Vinod

    Hello

    When you load data using APEX SQL Workshop utilities for example, the data is stored in your database tables.

    Object browser is just seen tool your schema as the table objects and the data in the tables, just as SQL Developer.

    If you have no good reason to keep these files that you downloaded in the workspace, delete those. Data is stored in database tables.

    Kind regards

    Jari

  • Deployment of application using Oracle EM failed

    Hello

    I use Jdeveloper 11.1.1.1.6, we previously deployed same EAR with V2.0, and now I'm trying to redeploy new EAR using Oracle EM, I get the error below. Any body has any idea what could go wrong?

    Archive selected ' Test.ear' is not versioned. You cannot redeploy application "Test_application1" without version. The application has been deployed previously versioned "V2.0."

    How to version an EAR before deployment?

    Thank you

    Please read Andrejus Baranovskis Blog: how to set the EAR Version for ADF Application on WebLogic which shows how to set up.

    Timo

  • Connection to the remote database using Oracle 11 g Builder

    Hi all

    This could me stupid question, but I have installed Oracle Forms and reports 11g on Win 7 machine. I copied the file "tnsnames.ora' on the record ' ORACLE_HOME/Network/Admin". We use Oracle EBS R12 and I want to create a new report using 11 g.

    Using the report wizard after providing a simple query, we need to connect to the database. And even after the entry of TNS, I am getting error connecting to the database, following
    "REP-0501: the specified database can be connected.
    "ORA-12154: TNS: could not resolve the connect identifier specified.

    I am able to connect to the same database using the Report Builder (10.1.2.0). Is there another place where I need to set the TNS entry? How can I solve this error? Please guide...

    Kind regards
    Priyanka

    Hello

    In forms and reports 11g, default defined in tnsnames.ora is: ORACLE_INSTANCE\config.
    Please note that the ORACLE_INSTANCE is not the same as ORACLE_HOME.
    Example:
    ORACLE_HOME = D:\Oracle\Middleware\as_1
    ORACLE_INSTANCE = D:\Oracle\Middleware\instances\asinst_1

    If you set the admin TNS_ADMIN variable in the registry, you can point to a new location for tnsnames.ora

    Kind regards
    Alex

    If someone useful or appropriate please mark accordingly.

  • Clustered using Oracle ADF - CHECK_STATE_SERIALIZATION = all

    We use Oracle ADF 11.1.1.6. We have started to test our Oracle ADF application for cluster compatibility and used according to the document. We coded all recommendations figure in the document including allowing all classes of java there is place of serialization and also configure adf_config.xml < adfc:adf - scope-ha-support > true < / adfc:adf - scope-ha-support > and < adf:adf - scope-ha-support > true < / adf:adf - scope-ha-support > exactly as in in the document.

    http://docs.Oracle.com/CD/E12839_01/core.1111/e10106/ADF.htm

    Now, to verify the high availability on a stand-alone server of web logic for debugging use we have configured the Java Option '-Dorg.apache.myfaces.trinidad.CHECK_STATE_SERIALIZATION = all "in accordance with the recommendation.

    After the definition of this indicator system started throwing loads of mistakes similar to the below given error.

    [2012 07-26 T 14: 17:43.602 - 04:00] [OPERA_ADF1] [ERROR] [] [org.apache.myfaces.trinidadinternal.config.CheckSerializationConfigurator$ MutatedBeanChecker] [tid: [ASSETS].] [ExecuteThread: '17' for queue: "(self-adjusting) weblogic.kernel.Default"] [userId: edozer] [ecid: 64915ee7c1860d85:40a983d1:138bf4550b2:-7ffd - 0000000000005fcb, 0] [APP: OperaApplications_o90_smoke #V9.0.0] failover error: attribute: Serialization of the Session data is increased from oracle.adf.model.servlet.HttpBindingContext@365f8709 to oracle.adf.model.servlet.HttpBindingContext@36b6565b without the attribute being dirtied

    The question here is what are we missing?

    Please note that our application is still missing ControllerContext.getInstance () .markScopeDirty (pageFlowScope); but when I tried to create a sample application and deliberately left the 'markScopeDirty' using code below the above error was not reproducible.

    public class myBackingBean
    {
    public void changeValueButton (ActionEvent ae)
    {
    Map < String, Object > pageFlowScope = AdfFacesContext.getCurrentInstance () .getPageFlowScope ();
    pageFlowTestBean obj = (pageFlowTestBean) pageFlowScope.get ('pageFlowTestBean');
    System.out.println ("Old value" + obj.getYVar ());
    obj.setYVar ("new value");
    / * ControllerContext.getInstance () .markScopeDirty (pageFlowScope); */
    }
    }

    Anyone can shade more light on this subject?

    Also, I would like to know that someone can guide me what is the best practice to perform a ControllerContext.getInstance () .markScopeDirty (pageFlowScope); Because developers can easily miss this statement and I have not found any easy way to find code that is missing from this statement (I've already tried the Audit of Jdeveloper feature and it works for very rare cases).

    Hello

    Only when you do a Session.put (), the framework will know something has changed in the session Object and mark its scope as dirty and and he will try to replicate this object in another server...

    If change you it by reference. He won't try to reproduce the object in another server.
    For example, if you make below by changing something by reference, you must explicitly mark scopedirty. otherwise, the framework will not replicate the object to the failover server.

    In your code

    Card pageFlowScope = AdfFacesContext.getCurrentInstance () .getPageFlowScope ();
    pageFlowTestBean obj = (pageFlowTestBean) pageFlowScope.get ('pageFlowTestBean');
    System.out.println ("Old value" + obj.getYVar ());
    obj.setYVar ("new value");
    you change the value above by reference. So, unless you set the dirty scope this change in the PageFlowscope will not be replicated to another server.
    At this stage when a failover occurs, obj.getYVar () in the new server will always be the old value.

  • License for the Oracle ODBC database gateway

    Hello world!

    I am using Oracle Database Gateway for ODBC (Oracle 11 g Gateway) to create dblink Oracle 10.2.0.4

    According to this price list, I do not see the price details for the database gateway for ODBC Oracle

    http://www.Oracle.com/us/corporate/pricing/technology-price-list-070617.PDF
    Please refer to page 3 and 4

    and according to the guidelines of it, I don't need a separate license. Could someone shed some light. I have the database and the gateway in the same machine

    http://download.Oracle.com/docs/CD/E11882_01/license.112/e10594.PDF

    Please refer to page 1-7, which says

    Gateway for ODBC Oracle database
    Database gateway for ODBC Oracle can be installed and used on a different machine
    the machine where the database Oracle is installed and used. Should not be
    to obtain a separate license for the machine running Oracle Gateway for ODBC

    Please shed some light.

    Thanks in advance.

    Hello
    As it is said, as long as you have a license of RDBMS, you need not a separate license for DG4ODBC. If confusion is where it says "Oracle Database Gateway for ODBC can be installed and used on a different machine," then it is just to clarify that you run the gateway on a machine completely separated from the performer the RDBMS under license, but you can also run DG4ODBC on the same machine where the RDBMS is installed.
    If you install 11g DG4ODBC on the same machine where you have a 10g RDBMS then it must be installed in an another ORACLE_HOME.

    If this still isn't clear, so please come back and let us know exactly what you need to clarify.

    Kind regards
    Mike

  • Cannot create new Data Source - Oracle ODBC doesn't show any system DSN

    On Windows 7 x 64, installed Oracle 10 g using ODBC to connect to the Oracle database, but I am not able to create a new data source as Oracle ODBC doesn't show... illustrious system DSN only SQL server etc etc...

    If you have installed the 32-bit database Client, try the 32-bit ODBC administration tool: C:\Windows\SysWOW64\odbcad32.exe

    Note that 10.2.0.5 is the oldest version of "10g" supported on Windows 7.
    http://download.Oracle.com/docs/CD/B19306_01/Relnotes.102/b15680/TOC.htm#BABEBBJF

    As an alternative, try the customer Instant 11.2.
    For 32-bit applications: http://www.oracle.com/technetwork/topics/winsoft-085727.html
    64-bit / x 64: http://www.oracle.com/technetwork/topics/winx64soft-089540.html

Maybe you are looking for