odac

SSMA for Oracle “Connect to Oracle” error

北城以北 提交于 2019-12-11 06:24:37
问题 i tried to connect to Oracle using Sql server migration assistant for oracle(SSMA for oracle). and specified parameters like this provider: Oracle Client Provider mode: standard mode and connection info(servername, port ...) but i got a error message "Unable to find specified provider. Compatible Oracle Data Access Connectivity libraries were not found on the machine. You can install them from Oracle product media or download it from Oracle web site." so i installed Oracle Data Access

SSL/wallet error trying to access Oracle DB from SSRS

落爺英雄遲暮 提交于 2019-12-10 19:24:21
问题 I'm trying to access a third party Oracle database from SQL Server Reporting Services. I had it working on previous versions of SQL Server and Oracle ODAC, but it's been several years. I'm now being forced into an upgrade, and when I try to create the data source in SSRS, I get the following error: Network Transport: SSL failure in parsing wallet location I created an ODBC connection and am able to successfully test the connection, so I know all of the settings in tnsnames.ora and sqlnet.ora

asp.net core Oracle.DataAccess System.BadImageFormatException: Could not load file or assembly Oracle.DataAccess

醉酒当歌 提交于 2019-12-10 12:15:45
问题 I've added Oracle.DataAccess as reference to asp.net core project. I've only installed Oracle Data Provider for .Net when installed ODAC. I would like to make a simple example with Dapper on the project. public class Program { const string connectionString = "xxxxx"; public static void Main(string[] args) { IDbConnection connection = new OracleConnection(connectionString); string sql = "SELECT * FROM People WHERE Name='JOHN'"; var r = connection.Query<People>(sql); } } The application wasn't

Entity Data Model Wizard Gets Exception When Trying to Add a New Oracle Connection

谁都会走 提交于 2019-12-10 11:09:24
问题 I'm trying to generate/update an edmx model from an oracle database and I need to create a new connection to that oracle database. When I click "Test Connection" it succeeds but when I click "OK" it gives the following error: Operation is not valid due to the current state of the object VS 2017 error when adding new connection to update edmx model 回答1: I had the exact same issue after a brand new installation of VS2017. Installed VS2017 (enterprise edition, in my case). Previously ODT didn't

Oracle in C#, bind variables, and queries like ID IN (1, 2, 3)

岁酱吖の 提交于 2019-12-06 07:44:57
问题 I'm looking for a C# ODAC adaptation of the following Java technique, where code is able to bind an array of numbers (the array size can vary) into a non-PL/SQL SELECT statement and then use the resulting array in a WHERE ID IN (...) style check. http://rafudb.blogspot.com/2011/10/variable-inlist.html Here's another example of this technique used in OCI-based C programs: Oracle OCI, bind variables, and queries like ID IN (1, 2, 3) Specifically, we want to execute a query like SELECT * FROM

Oracle in C#, bind variables, and queries like ID IN (1, 2, 3)

左心房为你撑大大i 提交于 2019-12-04 12:32:22
I'm looking for a C# ODAC adaptation of the following Java technique, where code is able to bind an array of numbers (the array size can vary) into a non-PL/SQL SELECT statement and then use the resulting array in a WHERE ID IN (...) style check. http://rafudb.blogspot.com/2011/10/variable-inlist.html Here's another example of this technique used in OCI-based C programs: Oracle OCI, bind variables, and queries like ID IN (1, 2, 3) Specifically, we want to execute a query like SELECT * FROM MyTable WHERE ID IN (SELECT * FROM TABLE(:1)) And pass in an array of Numbers into :1 . Talloran Code:

DeleteDatabase is not supported by the provider, Oracle with Entity Framework

那年仲夏 提交于 2019-12-04 06:00:55
问题 I'm using Model-First approach and Oracle database. Update2: Fixed Now On including seed data, I'm getting this error "DeleteDatabase is not supported by the provider" UPDATE1 If I change seed data type from public class MySeedData : DropCreateDatabaseAlways<ToolContext> to public class MySeedData : DropCreateDatabaseIfModelChanges<ToolContext> this error is replaced by another error: Exception Model compatibility cannot be checked because the DbContext instance was not created using Code

DeleteDatabase is not supported by the provider, Oracle with Entity Framework

做~自己de王妃 提交于 2019-12-02 09:10:30
I'm using Model-First approach and Oracle database. Update2: Fixed Now On including seed data, I'm getting this error "DeleteDatabase is not supported by the provider" UPDATE1 If I change seed data type from public class MySeedData : DropCreateDatabaseAlways<ToolContext> to public class MySeedData : DropCreateDatabaseIfModelChanges<ToolContext> this error is replaced by another error: Exception Model compatibility cannot be checked because the DbContext instance was not created using Code First patterns. DbContext instances created from an ObjectContext or using an EDMX file cannot be checked

Oracle Data Access components 64 bit not working in IIS express 7.5

╄→尐↘猪︶ㄣ 提交于 2019-12-02 08:35:27
问题 I have installed ODAC (Oracle data Access Components 64 bit ) odp.net 4. But unfortunately it does not work with IIs Express. IIS express documentation says it supports both 32bit and 64bit systems. Is it possible that it can work with odp.net 4 (64 bit), or must we work with odac 32 bit components in development machines. thanks in advance! 回答1: Probably too late now, but IIS Express 7.5 is 32-bit and cannot host a 64-bit process. I'm assuming that's what your problem is/was because I had a

Entity Framework wildcards & Linq

岁酱吖の 提交于 2019-12-01 23:41:32
Is it possible to construct a valid Linq query which contains wildcard characters? I've seen various answers to this question which suggest using: .Where(entity => entity.Name.Contains("FooBar")) .Where(entity => entity.Name.EndsWith("Bar")) .Where(entity => entity.Name.StartsWith("Foo")) OR constructing RawSql: var commandText = @"SELECT field FROM table WHERE field LIKE @search"; var query = new ObjectQuery<Profile>(commandText, context); query.Parameters.Add(new ObjectParameter("search", wildcardSearch)); The first solution wouldn't work if the wildcard was not at the beginning or end of a