Enterprise Library UpdateDataSet Method...

Hi everybody:
We have a big software product with 3 layers, UI, BLL, DAL on C#, we have a LOT of classes for near to 1000 tables on SqlServer.
Trying to adapt the database provider to Oracle, but we have a serious problem with the UpdateDataSetMethod...
Heres my problem:
*1)* Typed DataSet named OfficeDS with Added/Modiefied/Deleted Rows
*2)* Have Stored Procedures for each Action:
create or replace
PROCEDURE "uspOfficeInsert"
OfficeId out NUMBER,
V_OFFICEDESCR IN VARCHAR2 DEFAULT NULL
AS
BEGIN
INSERT INTO OFFICE
( OFFICEDESCR)
VALUES ( V_OFFICEDESCR);
SELECT SQLSERVER_UTILITIES.IDENTITY
Into OfficeId
FROM DUAL ;
END;
*3)* Have Commands for each Action:
static DbCommand OfficeInsert(ref DataBase, OfficeDS ds)
//try catch not included in example but used with no errors...
DbCommand myCommand = myDatabase.GetStoredProcCommand("uspOfficeInsert");
myDatabase.AddOutParameter(myCommand, "OfficeId", DbType.Int16, 2);
myDatabase.AddInParameter(myCommand, "V_OFFICEDESCR", DbType.String, ds.Office.OfficeDescrColumn.ColumnName, DataRowVersion.Current);
return myCommand;
*4)* Have the call of the method..
//connection and transaction not included at example still used and working ok.
Database db=DatabaseFactory.CreateDatabase();
db.UpdateDataSet(OfficeDS,
OfficeDS.Area.TableName,
OfficeCommand.OfficeInsert(ref db, OfficeDS),
OfficeCommand.OfficeUpdate(ref db, OfficeDS),
OfficeCommand.OfficeDelete(ref db, OfficeDS),
transaction);
EXPECTED RESULTS:
The previous Added rows must have the real Identities after UpdateDataSet Method...
The rowstate is now Unchanged.
The rows are successful inserted at the Database.
CURRENT RESULT
The previous Added rows are intact... (same Identity DataSet values: 0,1,2 whatever.).
The rowstate is now Unchanged.
The rows are successful inserted at the Database.
Any Ideas?..
thanks for reading.

bump!

Similar Messages

  • Problems with loading native library/missing methods: no ttJdbcCS1121

    Hi guys,
    Im getting this problem in glassfish 2.1, but in glassfish 3 or in tomcat, i dont get this problem. (Windows)
    Any thoughts?
    java.sql.SQLException: Problems with loading native library/missing methods: no ttJdbcCS1121 in java.library.path
    at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnection.java:1750)
    at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:305)
    at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:161)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at com.summitinvt.mdaq.db.handler.DBConnector.getConnection(DBConnector.java:108)
    at com.summitinvt.mdaq.db.handler.DBConnector.initiateConnection(DBConnector.java:101)
    at com.summitinvt.mdaq.db.handler.DBConnector.<init>(DBConnector.java:34)
    at com.summitinvt.mdaq.db.handler.DBConnector.<init>(DBConnector.java:14)
    at com.summitinvt.mdaq.db.handler.DBConnector$DBConnectorUtil.<clinit>(DBConnector.java:24)
    at com.summitinvt.mdaq.db.handler.DBConnector.getInstance(DBConnector.java:28)
    at com.summitinvt.mdaq.rats.server.CommunicatorImpl.getPnLByCurrency(CommunicatorImpl.java:1074)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:382)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    regards
    John

    A similar problem was reported before on this Forum - see
    Re: not able create connection to timesten
    checking the Release Notes I can see 11.2.1.8.0 has been tested against Glassfish 3 but I
    can't see any mention about Glassfish 2 in the v7 or v11 Release Notes (albeit only on a quick
    search).
    In my full install on XP, ttJdbcCS1121.dll is in C:\TimesTen\tt1121_32\bin

  • Issue with Enterprise Library's Data Access Application

    I do not know if I have the correct forum for this post. I hve put it in what I believe is the most likely best forum, but please move this if there is a more germane forum for it.
    I have inherited a solution (C#) which uses the reference Microsoft.Practices.EnterpriseLibrary.Data. The reference was included with the codebase I inherited, there are no missing references.
    When the library is called with:
    Microsoft.Practices.EnterpriseLibrary.Data.ExecuteDataSet("configConfigurationKeysSelect", parameterValues);
    It complains with the runtime error:
    [InvalidOperationException: The stored procedure 'configConfigurationKeysSelect' doesn't exist.] (I have put the full trace below)
    This is true, there IS no stored procedure  'configConfigurationKeysSelect'  but there is a table named  'configConfigurationKeys.'  
    I assumed this stored procedure is built on the fly to select from that table? Must I do something regarding  Enterprise Library's Data Access Application so that this works on the system I am running it on? (I am simply accessing the references
    included with the sourced for this, nothing else). I am looking for some guidance here, and thanks in advance.
    Stack trace on error as:
    [InvalidOperationException: The stored procedure 'configConfigurationKeysSelect' doesn't exist.]    System.Data.SqlClient.SqlCommand.DeriveParameters() +5344249
       System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) +115
       Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase.DeriveParameters(DbCommand discoveryCommand) +72
       Microsoft.Practices.EnterpriseLibrary.Data.Database.DiscoverParameters(DbCommand command) +251
       Microsoft.Practices.EnterpriseLibrary.Data.ParameterCache.SetParameters(DbCommand command, Database database) +225
       Microsoft.Practices.EnterpriseLibrary.Data.Database.AssignParameters(DbCommand command, Object[] parameterValues) +53
       Microsoft.Practices.EnterpriseLibrary.Data.Database.GetStoredProcCommand(String storedProcedureName, Object[] parameterValues) +161
       Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteDataSet(String storedProcedureName, Object[] parameterValues) +70
    Enterprise Library's Data Access Application 

    This is true, there IS no stored procedure  'configConfigurationKeysSelect'  but there is a table named  'configConfigurationKeys.'  
    I assumed this stored procedure is built on the fly to select from that table? Must I do something regarding  Enterprise Library's Data Access Application so that this works on the system I am running it on? (I am simply accessing the references
    included with the sourced for this, nothing else). I am looking for some guidance here, and thanks in advance.
    Why do you assume that a stored procedure is create on the fly?  Looking at the documentation for this component, I don't see a mention of such.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Unable to install Enterprise Library 2007 on Windows 7

    I need Enterprise Library 2007 for my project. When i try installing, it throws the error : Microsoft .Net 2.0 needed . I try to install microsoft .Net 2.0, then it throws the error : .Net 2.0 is already part of the operating system. I uninstalled .net
    4.5.1 from my system and tried installing 2.0, yet it throws the same error. Is there any workaround for this. ( I have installed microsoft visual studio 2010 ultimate also in my system)

    .NET Framework 3.5 SP1 is an integral part of your Windows 7 OS. .NET 3.5 includes 2.0 and 3.0. That is why you cannot install 2.0, 3.0 or 3.5 on Windows 7 as a user.
    You can check for .NET 3.5 SP1 on your system as follows:
    Control Panel->Programs and Features... Turn Windows Features On and Off.
    You can check the integrity of .NET 3.5 with this tool:
    http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx
    Run the tool with .NET 2.0 selected, then post the LAST 15 lines of the tool log here.
    BTW .NET 4.0/4.5 are completely unrelated to .NET 3.5. They are separate versions. 4.0 is required by VS 2010.
    You should note that "Enterprise Library 2007", presuming you mean Enterprise Library 3.1 - May 2007, is an OLD version designed for use with VS 2005 (now out of support). That may be the reason for your issue.
    Read here about available versions:
    https://msdn.microsoft.com/library/cc467894.aspx

  • Enterprise library 3.1 installation issue on windows 7

    I am trying to install enterprise library 3.1 (May 2007), but it givesme the following error.      the installer requires the .NET framework ver 2.0 which is not present on this computer) i have also installed visual studio ultimate-
    2010 now, what should i do to resolve this error? should i install just .net 2.0? will it create any  issues if i do that.

    You can try to install the .NET Framework 2.0 on your computer:
    http://www.microsoft.com/en-gb/download/details.aspx?id=1639
    http://www.microsoft.com/en-US/download/details.aspx?id=6523 (64-bit)
    ..and then use this installer for the Enterprise Library 3.1:
    http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=9921
    Or you could download a later version of the Enterprise Library that is actually officially supported on Windows 7. The active and supported versions of the Enterprise Library are 5 and 6. The older ones have been retired as stated here:
    https://msdn.microsoft.com/en-us/library/ff648951.aspx
    Enterprise Library 6.0:
    http://www.microsoft.com/en-us/download/details.aspx?id=38789
    Enterprise Library 5.0:
    https://www.microsoft.com/en-us/download/details.aspx?id=15104
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

  • Using both Enterprise library and Entity framework as DAL for same application

    We have been using EF for large amount of data  retrieval in our current application. We faced performance related issues with using EF with large data retrieval and manipulation.
    We need to extend the same project with some additional functionality similar to what currently exists in the application and uses EF.
    For the new functionality, we do not want to use EF and want to use enterprise library for Data access.
    My question is if we use both entity framework for parts of the application data access mechanism and enterprise library for other parts of application data access, are there any known issues?
    if there are any best practices to be followed please share .

    We have been using EF for large dataset retrieval in our current application. We faced performance related issues with using EF for large data set's  .
    Dataset? What are you talking about?  If you are using the salad bowl, the dataset with datatables, then here is the reason not to use them.
    http://lauteikkehn.blogspot.com/2012/03/datatable-vs-list.html
    My question is if we use both entity framework for parts of the application data access mechanism and enterprise library for other parts of application data access, are there any known issues?
    What is Entlib going to buy you in performance? It's going to buy you nothing. You'll be better of going to the EF backdoor, use SQL command objects, inline T-SQL, sprocs, datareder and using custom objects or objects off of the virtual model returning a
    single object or objects in a collction., if you are concerned about performance.
    http://blogs.msdn.com/b/alexj/archive/2009/11/07/tip-41-how-to-execute-t-sql-directly-against-the-database.aspx
    You'll probably be better of going to Entity SQL, using a datareader, collection and using custom objects or objects off of the model, if you are concerned about query performance.
    https://msdn.microsoft.com/en-us/library/vstudio/bb738684(v=vs.100).aspx
    https://msdn.microsoft.com/en-us/library/vstudio/bb387145(v=vs.100).aspx
    https://msdn.microsoft.com/en-us/library/vstudio/bb399560(v=vs.100).aspx
    My question is if we use both entity framework for parts of the application data access mechanism and enterprise library for other parts of application data access,
    are there any known issues?
     A nightmare, no consistency and complete Helter Skelter is what I see. Been there and seen it in action with different technologies doing the same thing in a solution.

  • UpdateDataset Method on EnterpriseLibrary.

    Hi everybody:
    We have a big software product with 3 layers, UI, BLL, DAL on C#, we have a LOT of classes for near to 1000 tables on SqlServer.
    Trying to adapt the database provider to Oracle, but we have a serious problem with the UpdateDataSetMethod...
    Heres my problem:
    *1)* Typed DataSet named OfficeDS with Added/Modiefied/Deleted Rows
    *2)* Have Stored Procedures for each Action:
    create or replace
    PROCEDURE "uspOfficeInsert"
    OfficeId out NUMBER,
    V_OFFICEDESCR IN VARCHAR2 DEFAULT NULL
    AS
    BEGIN
    INSERT INTO OFFICE
    ( OFFICEDESCR)
    VALUES ( V_OFFICEDESCR);
    SELECT SQLSERVER_UTILITIES.IDENTITY
    Into OfficeId
    FROM DUAL ;
    END;
    *3)* Have Commands for each Action:
    static DbCommand OfficeInsert(ref DataBase, OfficeDS ds)
    //try catch not included in example but used with no errors...
    DbCommand myCommand = myDatabase.GetStoredProcCommand("uspOfficeInsert");
    myDatabase.AddOutParameter(myCommand, "OfficeId", DbType.Int16, 2);
    myDatabase.AddInParameter(myCommand, "V_OFFICEDESCR", DbType.String, ds.Office.OfficeDescrColumn.ColumnName, DataRowVersion.Current);
    return myCommand;
    *4)* Have the call of the method..
    //connection and transaction not included at example still used and working ok.
    Database db=DatabaseFactory.CreateDatabase();
    db.UpdateDataSet(OfficeDS,
    OfficeDS.Area.TableName,
    OfficeCommand.OfficeInsert(ref db, OfficeDS),
    OfficeCommand.OfficeUpdate(ref db, OfficeDS),
    OfficeCommand.OfficeDelete(ref db, OfficeDS),
    transaction);
    EXPECTED RESULTS:
    The previous Added rows must have the real Identities after UpdateDataSet Method...
    The rowstate is now Unchanged.
    The rows are successful inserted at the Database.
    CURRENT RESULT
    The previous Added rows are intact... (same Identity DataSet values: 0,1,2 whatever.).
    The rowstate is now Unchanged.
    The rows are successful inserted at the Database.
    Any Ideas?..
    thanks for reading.
    Edited for grammar..
    Edited by: user7958067 on 06-abr-2009 12:21

    Hi celerno,
    I'm having the same problem, were you able to find a solution, if so can you please explain it.
    Regards,
    Naveen

  • Using Enterprise library 2

    Hi every one,
    iam using .net2 enterprise library and oracle as my background db.
    can any one guide me in using the data access application block for .net2.
    i wrote a sample stored procedure which returns cursors as output parameter.
    is there any way to handle it.
    can any one provide me an example for this which will helpfull for me.
    thanks

    Microsoft's Petshop example application uses the Microsoft Database Access Application Block (DAAB) with Oracle 9i. This was the DAAB from before the Enterprise Library, when it was still separate.I am guessing they use the MS Oracle provider instead of ODP.
    http://msdn2.microsoft.com/en-us/library/ms954623.aspx
    I don't care for DAAB myself. It seems terribly inefficient. It's a late-bound architecture where they have to hit the DB first to get metadata before executing a query. It's true that they cache the metadata, but it's better in my mind if you know the types ahead of time. Their approach is fine for dynamic SQL in cases where you can't know the types ahead of time, but that's a rare situation. With most dynamic SQL you know the types of the columns you might access.
    The Enterprise Library is also pretty heavy. It's hard to use only part of it. Once you start using it, you're stuck with a bunch of blocks, like caching, logging, configuration, etc.
    Eric

  • Windows Service Enterprise Library Data Access Application Blocks Connection Pooling Issue

    Hello,
    We are developing a windows service using c# .net v 4.5.1 which communicates with SQL database (SQL 2008 R2 x64), communication with SQL server is done using Enterprise Library data access block v 6, The windows service does a file copy process in bulk &
    updates the database about the status of file copy, it is observed that as soon as we start the service the number of connections get max out & we start receiving a "Timeout expired.  The timeout period elapsed prior to obtaining a connection
    from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached."
    This issue is only observed when we run the code logic by deploying it as a windows service, When we run the exactly same code as a standalone exe (right click -> run as administrator) / non windows service, the connections on database are not exceeded
    & we do not receive the above mentioned error.
    The code block which makes calls to the database is under the c# "using" statement, hence connection pooling should be handled by default.
    Could you please recommend any suggestions on areas which I might have missed on to investigate this issue.
    Thanks in advance.

    Hi
    The issue got resolved after refresh the SCOM Data base access service  account in SQL 2012.
    Unable to launch the operations manager 2012 R2 console after extended the C drive of the SQl server ,getting error "The Data
    Access service is either not
    running or not yet initialized.
    Got to your SQL server -->databases-operationsmanager--security-users--locate the daa service account and refresh.issue fixed and am able to luanch.

  • Application Insights Trace Listener w/ Enterprise Library Logging

    Is it possible to use Application Insights with Enterprise Library Logging?
    I have not had much success in setting up the ApplicationInsightsTraceListener in place of the Azure DiagnosticMonitorTraceListener that I was using previously, but it isn't immediately clear as to why.
    Just wanted to make sure I wasn't completely off track!

    lukegriffin,
    I'm sorry to hear you are having trouble with getting the TraceListener setup in an Azure scenario. If you provide some more details perhaps I can help you out.
    We don't currently have an adapter to support Enterprise Library Logging. If you would like this could I ask you to log and vote for it at
    http://aka.ms/aiuservoice
    and we will track the priority.
    Thanks,
    Joshua Weber 

  • Is Enterprise Library still relevant?

    I am going to port an old C++ application to C# and intend to replace the C++ custom written cross-cutting libraries with third party cross-cutting frameworks/libraries.   In particular, I have been reviewing the Enterprise Library
    for the past week.   One issue that raises a significant red flag is that the version 6 of the Enterprise Library is not backwards compatible with version 5.   For example, a review of the developer guides from both versions shows that
    the security, cashing and cryptography blocks found in version 5 have been removed in version 6.  
    I have not used the Enterprise Library before.  But the lack of backwards compatibility alone seems to be a reason enough to avoid using Enterprise Library.  That is, significant changes between versions would seem to make this library very impractical
    to use.   So my question is the Enterprise Library still relevant/practical or would I be better off using other frameworks/libraries for crossing cutting issues (e.g.: FluentValidation, log4net)?

     Hi
    IB00,
    Based on your description,  you case related to Enterprise Library. I am afraid this is out of our support.
    Visual C# forum is discuss and ask questions about the C# programming language, IDE, libraries,
    samples, and tools.
    For your issue, I would recommend you to ask in CodePlex. Here is a special forum for Enterprise Library.
    https://entlib.codeplex.com/discussions
    Thanks for your understanding and effort.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • MARS with Enterprise Library

    Hi,
    How to get the result cursor from the Stored Procedure which is returing 3 cursors using Enterprise Library.
    Thanks in advance

    To return two SELECT statement results from a single command text, you can use anonymous PL/SQL. Here's a code snippet below.
    ODP.NET does not support asynch commands.
                   string cmdtxt = "BEGIN " +
                        "OPEN :1 for select ename, deptno from emp where deptno = 10; " +
                        "OPEN :2 for select ename, deptno from emp where deptno = 20; " +
                        "OPEN :3 for select ename, deptno from emp where deptno = 30; " +
                        "END;";
                   cmd.CommandText = cmdtxt;
                   //ODP.NET has native Oracle data types, such as Oracle REF
                   // Cursors, which can be mapped to .NET data types
                   //Bind REF Cursor Parameters for each department
                   //Select employees in department 10
                   OracleParameter p1 = cmd.Parameters.Add("refcursor1",
                        OracleDbType.RefCursor);
                   p1.Direction = ParameterDirection.Output;
                   //Select employees in department 20
                   OracleParameter p2 = cmd.Parameters.Add("refcursor2",
                        OracleDbType.RefCursor);
                   p2.Direction = ParameterDirection.Output;
                   //Select employees in department 30
                   OracleParameter p3 = cmd.Parameters.Add("refcursor3",
                        OracleDbType.RefCursor);
                   p3.Direction = ParameterDirection.Output;
                   //Execute batched statement
                   cmd.ExecuteNonQuery();
                   //Let's retrieve data from the 2nd and 3rd parameter without
                   // having to fetch results from the first parameter
                   //At the same time, we'll test MARS with Oracle
                   OracleDataReader dr1 =
                        ((OracleRefCursor)cmd.Parameters[2].Value).GetDataReader();          
                   OracleDataReader dr2 =
                        ((OracleRefCursor)cmd.Parameters[1].Value).GetDataReader();
                   //Let's retrieve both DataReaders at one time to test if
                   // MARS works
                   while (dr1.Read() && dr2.Read())
                        Console.WriteLine("Employee Name: " + dr1.GetString(0) + ", " +
                             "Employee Dept:" + dr1.GetDecimal(1));
                        Console.WriteLine("Employee Name: " + dr2.GetString(0) + ", " +
                             "Employee Dept:" + dr2.GetDecimal(1));
                        Console.WriteLine();
                   }

  • Problems with loading native library/missing methods:no ttJdbcCS in java.li

    Iam facing one problem while connecting the timesten client to the server The SQL Exception which Iam getting is pasted below:-
    Problems with loading native library/missing methods: no ttJdbcCS in java.library.path
    I am working with MAC OS X 10.7.2 and my timesten client version is 11.2.1.0
    I have also changed the Java Preferences from 64-bit to 32-bit but still whenever i tried to connect with the SQL Developer it gives me the above error.

    I just tried this out. My environment is OS X 10.7.4, Timesten (32-bit) client 11.2.1.9.0, SQL Developer 3.1.07, Oracle Java 1.7.0_04.
    The key things you need to be sure to do (in a terminal window) are:
    1. Be sure to . in the TimesTen environment script <tt_install_dir>/bin/ttenv.sh to set the full TT environment.
    2. Change directory to SQLDeveloper.app/Contents/Resources/sqldeveloper
    3. Run 'sh sqldeveloper.sh -J-d32'
    and all should be fine.
    Note that if you are using Java7 as I am then there is a step 1a. Change the CLASSPATH environment variable to specify ttjdbc6.jar not ttjdbc5.jar. For some reason running the app directly from Finder does not work even if you add -J-d32 into the sqldeveloper launch script. I'm still looking into that.
    Chris

  • Problems with loading native library missing methods ttJdbc1122.dll

    Problems with loading native library/missing methods: C:\TimesTen\tt1122_64\bin\ttJdbc1122.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
    Hi,
    I have installed TimesTen 11.2.2 64-bit version on 64-bit windows 7.
    I have TimesTen 7 64-bit as well installed on my machice
    When trying to connect to TimesTen (Direct connection) using jdbc from eclipse, I get the following error "Problems with loading native library/missing methods: C:\TimesTen\tt1122_64\bin\ttJdbc1122.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform".
    The JDK version is 1.6.25 - 64 bit version.
    Please help me resolving this error.
    Thanks in Advance,
    Balamurugan

    Are you using SQL Developer?
    There is or used to be a restriction of only being able to using 32 bit. A suggestion might be to try the 32 bit client.

  • Problems with loading native library/missing methods: no ttJdbc1121 in java

    Hi,
    Can anyone help me? I keep getting this error when trying to start my jboss server. I have no problem with this when i run my standalone java application. My jboss version is 4.2 and my timesten version is 11.2.1.6.1 . My oracle version is 10G express edition. Any ideas?
    Thank you very much.

    The TimesTen JDBC driver is not a pure Java driver. It requires to load several native code libraries. Most appservers have to be told what directories to search for those libraries (a bit like the O/S LD_LIBRARY_PATH variable). This error occures when you have not told the appserver where to look to find hte native code libraries (<tt_install_dir>/lib).
    I'm not a JBOSS expert so I can't advise you on this; you need to consult the JBOSS documentation to find out what parameter/setting you need to modify to fix this.
    Chris

Maybe you are looking for

  • Encoding issue in importing file using myfaces

    Hi, I are trying to upload a XML file (with UTF-8 encoding) in our JSF UI using myfaces "inputFileUpload" option. But when I am trying to read the file using org.apache.myfaces.custom.fileupload.UploadedFile.getInputStream() API, looks like the encod

  • How do I save an image with an incremented filename?

    I am new to LabVIEW and am working on acquiring and saving many 12 bit images.  So far I have a File Dialog box to allow me to select the path to save the file. After I select the path, how can I make each image acquisition filename after that increm

  • Setting incorrect answers on a customised quiz

    Hi there. I'm setting up a customised quiz (not using question slides) and was wondering how you set the correct/incorrect answers. What I've done so far is included all answers in the quiz (via the reporting section), but only set the right answer t

  • My old internal drive now in FireWire enclosure, BC option dimmed at start

    This disk ran BC with xp as an internal drive and the Mac firmware was ok running Snow Leopard, but simply moving the drive outside made it hang. Are there firmware updates to be applied? The ones on there were done several years ago under Tiger.

  • Rendition using Indesign cs 5.5

    Hi all, How do I create a rendition using indesign cs 5.5? I would like my existing folios to be viewed on an iphone. I looked at the folio producer and did not find an option to change my resolutions. I also tried to find it in Indesign cs 5.5 with