Microsoft OLE DB Provider for Oracle: Data type is not supported.
I got the error:
Microsoft OLE DB Provider for Oracle: Data type is not supported.
Shortly after upgrading from Oracle 8 to Oracle 9. I was advised to download more up to date oracle drivers, but I was wondering if there was a way to tell what version of the 'OLE DB Provider for Oracle' is already at. Is there a command I can use via SQL Plus or something?
I have found Microsoft ODBC for Oracle to be more stable than the Microsoft OLEDB for Oracle driver. I have also found both Microsoft ODBC and OLEDB drivers to be more stable than the drivers from Oracle.
You could always get the latest MDAC (Microsoft Data Access Components) from Microsoft's MSDN Download site and then get the ODAC (Oracle Data Access Components) from Oracle's OTN Download site. ODAC requires MDAC. And ODAC has the latest drivers.
I suppose it would help to have the latest patches for your Oracle client software too. Maybe Oracle MetaLink would have these?
It may even help to have the latest service pack for Visual Studio 6 (Visual C++ 6 and Visual Basic 6) too.
Similar Messages
-
Need OLAP Server Type 'Microsoft OLE DB Provider for Analysis Services 9.0'
We have two Crystal Developer machines (CR2008 - SP1 installed on both). We need to connect to an OLAP datasource
One machine has these three Server Types available to select from:
Hyperion Essbase (7.0,7.1)/IBM DB2 OLAP(8.2) Enhanced
Microsoft OLE DB Provider for Analysis Services 9.0
Microsoft OLE DB Provider for OLAP Services 8.0
The other machine has the following as the only available Server Type:
Hyperion Essbase (7.0,7.1)/IBM DB2 OLAP(8.2) Enhanced
We need access to the Microsoft Server Types for this machine as well.
The Data Access components installed (from CR2008 - SP1) on both
machines appear to be the same.
How do we get these installed so we can access them from Crystal?
Thank youDo I need the SQL Client tools on my machine? I though I had read this on a website somewhere, but now am unable to locate it. Can someone please confirm if this is the issue why I am not seeing this server type? Thank you.
-
SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server 2012 Analysis Services." Hresult: 0x80004005
Description: "Internal error: An unexpected error occurred (file 'pcxmlacommon.cpp', line 43, function 'PCFault::RaiseError').
I'm getting above error in the pre- execute phase of a DFT when I'm trying to fetch data from a SSAS cube using mdx query.
I'm using OLE DB provider for connecting to cube.
I got one resolution for Error Code 0X8004005, which asked me to add 'Format= Tabular' in cube's connection string. It does not seem to work either. Can any one help me out on this???You are probably missing an update.
I saw a MS Connect post https://connect.microsoft.com/SQLServer/feedback/details/250920/error-using-oledb-or-datareader-to-get-analysis-services-data where that suggestion was proposed as a fix, but is for an older SQL Server version.
So do there is a question if you pull data from SQL Server 2012 SSAS using SSIS 2012 (so no other build is involved).
Arthur My Blog -
Microsoft OLE DB Provider for SQL Server 2012 Analysis Services Error Code = 0x80040E05
I've been running a package for 6 months without any issues that pulls data from a cube via MDX and moves it to a database.
We've recently moved to a new server x64 and the connections all succeed but at runtime (in 64 = T&F) I get the following error:
[SRC AdExchange [87]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E05.
An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server 2012 Analysis Services." Hresult: 0x00000001 Description: "Error Code = 0x80040E05, External Code = 0x00000000:.".
[SSIS.Pipeline] Error: SRC AdExchange failed the pre-execute phase and returned error code 0xC0202009.
I've installed SQL_AS_OLEDB, SQL_AS_ADOMD from Microsoft® SQL Server® 2012 SP1 Feature Pack
Why is my connection failing?The server has a 10Gbps network connection.
I've installed CU6 for SQL Server 2012 SP1
http://support.microsoft.com/kb/2874879/en-us#hfi
I'm still getting the same error at runtime in BIDS:
[SRC AdExchange [87]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E05.
An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server 2012 Analysis Services." Hresult: 0x00000001 Description: "Error Code = 0x80040E05, External Code = 0x00000000:.".
[SSIS.Pipeline] Error: SRC AdExchange failed the pre-execute phase and returned error code 0xC0202009.
Looking at the errorlog, everything looks normal until:
Launched startup procedure 'sp_ssis_startup'.
Attempting to load library 'xpsqlbot.dll' into memory. This is an informational message only. No user action is required.
Using 'xpsqlbot.dll' version '2011.110.2100' to execute extended stored procedure 'xp_qv'. This is an informational message only; no user action is required.
Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required.
Using 'xpstar.dll' version '2011.110.3000' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required.
Attempting to load library 'xplog70.dll' into memory. This is an informational message only. No user action is required.
Using 'xplog70.dll' version '2011.110.2100' to execute extended stored procedure 'xp_msver'. This is an informational message only; no user action is required.
AppDomain 2 (SSISDB.dbo[runtime].1) created.
Unsafe assembly 'microsoft.sqlserver.integrationservices.server, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil' loaded into appdomain 2 (SSISDB.dbo[runtime].1).
Unsafe assembly 'microsoft.sqlserver.integrationservices.server, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil' loaded into appdomain 2 (SSISDB.dbo[runtime].1).
AppDomain 3 (master.sys[runtime].2) created.
Software Usage Metrics is enabled.
SQL Server is terminating because of a system shutdown. This is an informational message only. No user action is required.
Service Broker manager has shut down.
Error: 17054, Severity: 16, State: 1.
The current event was not reported to the Windows Events log. Operating system error = (null). You may need to clear the Windows Events log if it is full.
.NET Framework runtime has been stopped.
SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
The SQL Server Network Interface library could not deregister the Service Principal Name (SPN) [ MSSQLSvc/XXXXXXXXXX.com ] for the SQL Server service. Error: 0xffffffff, state: 63. Administrator should deregister this SPN manually to avoid client authentication
errors.
The SQL Server Network Interface library could not deregister the Service Principal Name (SPN) [ MSSQLSvc/XXXXXXXXXX.com:1433 ] for the SQL Server service. Error: 0xffffffff, state: 63. Administrator should deregister this SPN manually to avoid client authentication
errors.
Wondering about the unsafe assembly in SSIS and deregistering the SPN..
Anyone have any ideas on how to resolve this?
Thanks! -
I configured MySQL in TestStand and making a query in TestStand like this:
Command :=> "SELECT * FROM crc_table ; " or "SELECT CRC_Value FROM crc_table ; " returns the total number of records without any errors.
But when I add the "where" clause
"SELECT crc_table.CRC_Value FROM crc_table where crc_table.File_ID= Locals.File_ID and crc_table.Version_ID = Locals.Version_ID and crc_table.Link_ID = Locals.Link_ID; "
I get the error as:
Error, The following SQL command failed: 'SELECT crc_table.CRC_Value FROM crc_table where crc_table.File_ID= Locals.File_ID and crc_table.Version_ID = Locals.Version_ID and crc_table.Link_ID = Locals.Link_ID; ...' Native error code -2147217887 0x80040e21 Microsoft OLE DB Provider for ODBC Drivers: ODBC driver does not support the requested properties. [Error Code: -10, User-defined error code.]
I tried the same syntax in MySQL Query Browser and got the correct result:
SELECT crc_table.CRC_Value FROM crc_table where crc_table.File_ID= "FID1" and crc_table.Version_ID = "VID1" and crc_table.Link_ID = "L1";
I would appreciate your help.
Thank you,
VidulaVidula,
I am not completely sure if this is the cause of the error but it is something that will cause problems if it is not fixed. In your SQL statement you must properly concatenate your strings with your variables. In the statement you posted you were simply putting the variable names in the string, not actually pulling their values. To do so properly your query should look something like this:
"SELECT crc_table.CRC_Value FROM crc_table where crc_table.File_ID='"+Locals.File_ID+"' and crc_table.Version_ID = '"+ Locals.Version_ID+"' and crc_table.Link_ID = '"+Locals.Link_ID+"' ;"
This way we are using the values of the variables in conjunction with the text strings. In this case the usage of single quotes (') casts the variables as strings so you may need to change this character sequence, but from the second example you gave I think that your variables are of type string so this should work fine.
Message Edited by herosphro on 04-01-2008 03:52 PM
John B.
Applications Engineer
National Instruments -
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
Getting the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC driver for Oracle]Wrong number of parameters
I have a Stored Procedure within a package that has no input parameter and 2 output parameters..
oConnEngineer.CursorLocation = 3
oConnEngineer.Open sConnectionString
oCmdEngineer.ActiveConnection = oConnEngineer
oCmdEngineer.CommandText = "{Call ENG_TAILORMADE.USER_PKG.GET_ENGINEER_LIST(?,{resultset 100, out_ENGINEER_ID, out_ENGINEER_NAME})}"
oCmdEngineer.CommandType = 1
Set rsEngineers = oCmdEngineer.Execute()
Any suggestions?Getting the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC driver for Oracle]Wrong number of parameters
I have a Stored Procedure within a package that has no input parameter and 2 output parameters..
oConnEngineer.CursorLocation = 3
oConnEngineer.Open sConnectionString
oCmdEngineer.ActiveConnection = oConnEngineer
oCmdEngineer.CommandText = "{Call ENG_TAILORMADE.USER_PKG.GET_ENGINEER_LIST(?,{resultset 100, out_ENGINEER_ID, out_ENGINEER_NAME})}"
oCmdEngineer.CommandType = 1
Set rsEngineers = oCmdEngineer.Execute()
Any suggestions? -
Oracle Version 10.1.0: Data type is not supported
Hi,
I am getting "Data Type is not supported" whenever I try to access tables with lob column in Toad.
Oracle server version is 10.1.0 and using toad version 7.6. Sql net version 9.2.0
Any pointers towards the resolution?
Thanks in advance.
BhaveshYou could take this opportunity to upgrade your Toad to version 10 of sqlplus.
Failing that there are mail lists for those less productive souls struggling with the amphibious software at which can be found at.
http://www.toadsoft.com/maillist.htm -
Hi,
Can anyone help me out please.
I have written one stored Procedure to create a views using Openrowset(openquery) but for tables which contains xml data types throwing error while executing the SP. Error
" Xml data type is not supported in distributed queries. Remote object 'OPENROWSET' has xml column(s)."
Please refer the Stored Procedure & error message below.
USE [Ice]
GO
/****** Object: StoredProcedure [dbo].[Pr_DBAccess] Script Date: 08/14/2014 16:08:20 ******/
SET
ANSI_NULLS ON
GO
SET
QUOTED_IDENTIFIER ON
GO
ALTER
PROCEDURE [dbo].[ Pr_DBAccess](@SERVERTYPE
NVARCHAR(50),@SERVERNAME
NVARCHAR(100),@DATABASENAME
NVARCHAR(100),@SCHEMANAME
NVARCHAR(100),@TABLENAME
NVARCHAR(100),@USERNAME
NVARCHAR(100),@PASSWORD
NVARCHAR(100))
AS
BEGIN
DECLARE @openquery
NVARCHAR(4000),
@ETL_CONFIG_IDN
NVARCHAR(100);
IF @SERVERTYPE='SQL'
BEGIN
SET @openquery=
'CREATE VIEW '+@TABLENAME+
' WITH ENCRYPTION AS SELECT * FROM OPENROWSET(''SQLNCLI'',''SERVER='+@SERVERNAME+';TRUSTED_CONNECTION=YES;'',''SELECT * FROM '+@DATABASENAME+'.'+@SCHEMANAME+'.'+@TABLENAME+''')'
SELECT @openquery
END
EXECUTE
sp_executesql @openquery
END
----While running the SP manually below error occuredHI ,
1. You cannot use a table or view that contains xml or clr type as 4-part name in your query
2. You need to cast the column to either nvarchar(max) or varbinary(max) or other appropriate type to use
3. If you have a table that has xml type for example then you need to create a view that contains all columns other than xml and query it instead. Or you can issue a pass-through query using OPEN QUERY with the appropriate columns only.
Here is a work around:
SELECT
Cast(a.XML_Data as XML) as XML_Data
FROM
OPENQUERY([LINKED SERVER NAME HERE],'
SELECT
Cast(XML_Data as Varchar) as XML_Data
FROM
[DATABASE NAME].[SCHEMA].[TABLE NAME]'
) a
Basically, the data is queried on the remote server, converts the XML data to a varchar, sends the data to the requesting server and then reconverts it back to XML.
You can take help from below link;
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c6e0f4da-821f-4ba2-9b01-c141744076ef/xml-data-type-not-supported-in-distributed-queries?forum=transactsql
Thanks -
SQL Server 2014 Express (32 bit) issues with Microsoft OLE DB Provider for Visual FoxPro
Hello, I am trying to create a sample data warehouse and some reports etc to demonstrate SQL server and subsequent automation to a company I am working for. I am trying to import data from the company's VFP based software into a new SQL Server database.
(please note, this is not custom developed software, so i am unable to push the data from VPF)
I keep getting errors and SQL server crashes when i try to access the Microsofl OLE DB Provider for Visual Fox Pro similar to this thread https://social.msdn.microsoft.com/Forums/en-US/88296548-553e-4402-93e3-6f26f5de343d/dtswizard-importexport-utility-error-trying-to-use-vfp-oledb-provider?forum=sqldataaccess
however, the solution outlined in that thread will not work, as i cannot create an SSIS package in Express.
I have also attempted to use the OLE DB in Excel as well to test it, and it crashes Excel the same way.
results of the following query Exec master.dbo.xp_msver
Index Name
Internal_Value Character_Value
1 ProductName
NULL Microsoft SQL Server
2 ProductVersion
786432 12.0.2000.8
3 Language
1033 English (United States)
4 Platform
NULL NT INTEL X86
5 Comments
NULL SQL
6 CompanyName
NULL Microsoft Corporation
7 FileDescription
NULL SQL Server Windows NT
8 FileVersion
NULL 2014.0120.2000.08 ((SQL14_RTM).140220-1752)
9 InternalName
NULL SQLSERVR
10 LegalCopyright
NULL Microsoft Corp. All rights reserved.
11 LegalTrademarks
NULL Microsoft SQL Server is a registered trademark of Microsoft Corporation.
12 OriginalFilename
NULL SQLSERVR.EXE
13 PrivateBuild
NULL NULL
14 SpecialBuild
131072008 NULL
15 WindowsVersion
131072008 6.1 (7601)
16 ProcessorCount
8 8
17 ProcessorActiveMask
255 000000ff
18 ProcessorType
586 PROCESSOR_INTEL_PENTIUM
19 PhysicalMemory
4055 4055 (4252094464)
20 Product ID
NULL NULL
Any guidance is appreciated. thanks!No, I attempted to use the Microsofl OLE DB Provider for Visual Fox Pro to access the .dbf from Excel,
and it behaved identically to the way it did in SQL Server.
I can use the Microsoft Excel Data source in SQL Server to link an excel file to SQL Server perfectly fine. -
The link is to the forum page within the members login area. I have no trouble with anything else on this site and others do not have problems accessing the forum. They suggest it is an internet issue
OK, well you usually need to wrap reserved words in double quotes. But I see that you are already using another reserved work "user" and wrapping that in square brackets so you could try that.
MM_fldUserAuthorization = "[group]"
If the person that built the data model is still there, let them know they've been using very common reserved words. Any word that is part of the SQL language itself should never be used. -
Cannot get data of the row from OLE DB provider "OraOLEDB.Oracle" for linked server
I have created a stored procedure in SQL Server for a report that uses parameters. In the report I am linking an Oracle table. I use a subquery like this to query the Oracle table: (select * from openquery(oracle_linked_server, 'select
partno, description from oracletable')). If I run the subquery it works fine every time. The linked server uses an oracle account which has access to the oracle table. When I first created the Stored Procedure it worked fine for me. When
I test the report, it worked fine. Then I asked another user to test it and it broke with the below error message.
OLE DB provider "OraOLEDB.Oracle" for linked server "XXXX_ORACLE" returned message "ORA-01403: no data found".
Msg 7346, Level 16, State 2, Procedure usp_report_XXXXXX, Line 15
Cannot get the data of the row from the OLE DB provider "OraOLEDB.Oracle" for linked server "XXXX_ORACLE".
Now when I try the report or the stored procedure, I get the same error. I tested the oracle subquery in the stored procedure and it still works. The report uses a service account to execute the stored procedure.
I am using SQL Server 2012 Developer Edition 64 bit (11.0.5058) Management Studio to develop the stored procedure. The SQL Server I am accessing and running the stored procedure is SQL Server 2008R2 Developer Edition 64bit (10.50.2550). The user
that tested the report for me has SQL Server 2008R2 but that shouldn't matter since he is running the report in Internet Explorer.
What is changing that it works for a while and then stops?
Fred
Fred SchmidI found the answer. It was in the query. I put the TRIM statement on the part# field in the Oracle subquery and took the LTRIM function out of the ON clause that joined my SQL Server table with the Oracle linked server table. Now everything
works. The query looks like this:
SQL_Server_Table sst
LEFT OUTER JOIN
(SELECT * FROM OPENQUERY(OracleLinkedServer, 'SELECT TRIM(partNo) AS partNo, partDesc FROM OracleTable')) ols
ON sst.partNo = ols.partNo
Thanks for pointing me in the right direction.
Fred Schmid -
Our setup is that we have two databases; a SQL Server 2008 database and an Oracle database (11g). I've got the oracle MTS stuff installed and the Oracle MTS Recovery Service is running. I have DTC configured to allow distributed transactions. All access to the Oracle tables takes place via views in the SQL Server database that go against Oracle tables in the linked server.
(With regard to DTC config: Checked-> Network DTC Access, Allow Remote Clients, Allow Inbound, Allow Outbound, Mutual Authentication (tried all 3 options), Enable XA Transactions and Enable SNA LU 6.2 Transactions. DTC logs in as NT AUTHORITY\NetworkService)
Our app is an ASP.NET MVC 4.0 app that calls into a number of WCF services to perform database work. Currently the web app and the WCF service share the same app pool (not sure if it's relevant, but just in case...)
Some of our services are transactional, others are not.
Each WCF service that is transactional has the following attribute on its interface:
[ServiceContract(SessionMode=SessionMode.Required)]
and the following attribute on the method signatures in the interface:
[TransactionFlow(TransactionFlowOption.Allowed)]
and the following attribute on every method implementations:
[OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = true)]
In my data access layer, all the transactional methods are set up as follows:
using (IDbConnection conn = DbTools.GetConnection(_configStr, _connStr))
using (IDbCommand cmd = DbTools.GetCommand(conn, "SET XACT_ABORT ON"))
cmd.ExecuteNonQuery();
using (IDbCommand cmd = DbTools.GetCommand(conn, sql))
... Perform actual database work ...
Services that are transactional call transactional DAL code. The idea was to keep the stuff that needs to be transactional (a few cases) separate from the stuff that doesn't need to be transactional (~95% of the cases).
There ought not be cases where transactional and non-transactional WCF methods are called from within a transaction (though I haven't verified this and this may be the cause of my problems. I'm not sure, which is part of why I'm asking here.)
As I mentioned before, in most cases, this all works fine.
Periodically, and I cannot identify what initiates it, I start getting errors. And once they start, pretty much everything starts failing for a while. Eventually things start working again. Not sure why... This is all in a test environment with a single user.
Sometimes the error is:
Unable to start a nested transaction for OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLSERVERNAME". A nested transaction was required because the XACT_ABORT option was set to OFF.
This message, I'm guessing is happening when I have non-transactional stuff within transactions, as I'm not setting XACT_ABORT in the non-transactional code (that's totally doable, if that will fix my issue).
Most often, however, the error is this:
System.Data.SqlClient.SqlException (0x80131904): The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server "ORACLSERVERNAME" was unable to begin a distributed transaction.
Now, originally we only had transactions on SQL Server tables and that all worked fine. It wasn't until we added transaction support for some of the Oracle tables that things started failing. I know the Oracle transactions work. And as I said, most of the time, everything is just hunky dorey and then sometimes it starts failing and keeps failing for a while until it decides to stop failing and then it all works again.
I noticed that our transactions didn't seem to have a DistributedIdentifier set, so I added the EnsureDistributed() method from this blog post: http://www.make-awesome.com/2010/04/forcibly-creating-a-distributed-net-transaction/
Instead of a hardcoded Guid (which seemed to cause a lot of problems), I have it generating a new Guid for each transaction and that seems to work, but it has not fixed my problem. I'm wondering if the lack of a DistribuedIdentifier is indicative of some other underlying problem. I've never dealt with an environment quite like this before, so I'm not sure what is "normal".
I've also noticed that the DistributedIdentifier doesn't get passed to WCF. From the client, I have a DistributedIdentifier and a LocalIdentifier in Transaction.Current.TransactionInformation. In the WCF server, however there is only a LocalIdentifier set and it is a different Guid from the client side (which makes sense, but I would have expected the DistributedIdentifier to go across).
So I changed the wait the code above works and instead, on the WCF side, I call a method that calls Transaction.Current.EnlistDurable() with the DummyEnlistmentNotification class from the link above (though with a unique Guid for each transaction instead of the hardcoded guid in the link). I now havea DistributedIdentifier on the server-side, but it still doesn't fix the problem.
It appears that when I'm in the midst of transactions failing, even after I shut down IIS, I'm unable to get the DTC service to shutdown and restart. If I go into Component Services and change the security settings, for example, and hit Apply or OK, after a bit of a wait I get a dialgo that says, "Failed ot restart the MS DTC serivce. Please examine the eventlog for further details."
In the eventlog I get a series of events:
1 (from MSDTC): "The MS DTC service is stopping"
2 (From MSSQL$SQLEXPRESS): "The connection has been lost with Microsoft Distributed Transaction Coordinator (MS DTC). Recovery of any in-doubt distributed transactions
involving Microsoft Distributed Transaction Coordinator (MS DTC) will begin once the connection is re-established. This is an informational
message only. No user action is required."
-- Folowed by these 3 identical messages
3 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
4 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
5 (from MSDTC Client 2): 'MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system GCOVA38.'
6 (From MSDTC 2): MSDTC started with the following settings: Security Configuration (OFF = 0 and ON = 1):
Allow Remote Administrator = 0,
Network Clients = 1,
Trasaction Manager Communication:
Allow Inbound Transactions = 1,
Allow Outbound Transactions = 1,
Transaction Internet Protocol (TIP) = 0,
Enable XA Transactions = 1,
Enable SNA LU 6.2 Transactions = 1,
MSDTC Communications Security = Mutual Authentication Required, Account = NT AUTHORITY\NetworkService,
Firewall Exclusion Detected = 0
Transaction Bridge Installed = 0
Filtering Duplicate Events = 1
This makes me wonder if there's something maybe holding a transaction open somewhere?The statement executed from the sql server. (Installed version sql server 2008 64 bit standard edition SP1 and oracle 11g 64 bit client), DTS enabled
Below is the actual sql statement issued
SET XACT_ABORT ON
BEGIN TRAN
insert into XXX..EUINTGR.UPLOAD_LWP ([ALTID]
,[GRANT_FROM],[GRANT_TO],[NO_OF_DAYS],[LEAVENAME],[LEAVEREASON],[FROMHALFTAG]
,[TOHALFTAG] ,[UNIT_USER],[UPLOAD_REF_NO],[STATUS],[LOGINID],[AVAILTYPE],[LV_REV_ENTRY])
values('IS2755','2010-06-01',
'2010-06-01','.5', 'LWOP' ,'PERSONAL' ,'F', 'F', 'EUINTGR',
'20101',1,1,0,'ENTRY')
rollback TRAN
OLE DB provider "ORAOLEDB.ORACLE" for linked server "XXX" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
Msg 7391, Level 16, State 2, Line 3
The operation could not be performed because OLE DB provider "ORAOLEDB.ORACLE" for linked server "XXX" was unable to begin a distributed transaction.
Able to execute the above statement successfully without using transaction.We need to run the statement with transaction. -
Unable to insert and retrieve Unicode data using Microsoft OLE DB Provider
Hi,
I have an ASP.NET web application that uses OLEDB connection to Oracle database.
Database: Oracle 11g
Provider: MSDAORA
ConnectionString: "Provider=MSDAORA;Data Source=localhost;User ID=system; Password=oracle;*convertNcharLiterals*=true;"
When I use SQL Develeoper client and add convertNcharLiterals=true; in sqldeveloper.conf then I am able to store and retrieve Unicode data.
The character sets are as follows:
Database character set is: WE8MSWIN1252
National Language character set: AL16UTF16
Select * from nls_database_parameters where parameter in ('NLS_CHARACTERSET','NLS_LENGTH_SEMANTICS','NLS_NCHAR_CHARACTERSET');
PARAMETER VALUE ---------------------------------------
NLS_CHARACTERSET WE8MSWIN1252
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CHARACTERSET AL16UTF16
I have a test table:
desc TestingUni
Name Null Type
UNI1 VARCHAR2(20)
UNI2 VARCHAR2(20)
UNI3 NVARCHAR2(20)
I execute the below mentioned query from a System.OleDb.OleDbCommand object.
Insert into TestingUni(UNI3 ) values(N'汉语漢語');
BUT when retrieving the same I get question marks (¿¿¿¿) instead of the Chinese characters (汉语漢語)
Is there any way to add the above property(convertNcharLiterals) when querying the Oracle database from OLEDB connection?
OR is there any other provider for Oracle which would help me solve my problem?
OR any other help regarding this?
Thanksusing OraOLEDB Provider.
set the environment variable ORA_NCHAR_LITERAL_REPLACE to TRUE. Doing so transparently replaces the n' internally and preserves the text literal for SQL processing.
http://docs.oracle.com/cd/B28359_01/server.111/b28286/sql_elements003.htm#i42617 -
Hi All,
I am trying to execute a stored procedure and store its result in an excel.
My query to execute stored proc and store sresults in excel
INSERT INTO
openrowset('Microsoft.ACE.OLEDB.15.0',
'Excel 8.0;Database=C:\TC\DataAnalysisFiles\DataAnalysisResult.xls;OLE DB Services=-4','select * from [Sheet1$]')
EXEC UspUnitTest_Test_CheckDuplicateModelNumberSerialNumber
I am getting error
The requested operation could not be performed because OLE DB provider "Microsoft.ACE.OLEDB.15.0" for linked server "(null)" does not support the required transaction interface.
I have enabled below things by running scripts
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ad Hoc Distributed Queries', 1;
GO
RECONFIGURE;
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.15.0', N'AllowInProcess', 1
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.15.0', N'DynamicParameters', 1
GO
Please help and let me know if this can be resolved
Supriya Thigalebecause OLE DB provider "Microsoft.ACE.OLEDB.15.0" for linked server "(null)" does not support the
required transaction interface.
Hello,
When you insert data from SQL Server into a linked server, then a distributed transaction should be started and here it seems this fails.
See
Distributed Transactions (Database Engine) for more Details +
Distributed Queries
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracl
I have created a linked server in a SQL Server 2005 connecting to either an Oracle Database and a SQL Server 6.5 database and getting the following error for both links when trying to query using provider OraOLEDB.Oracle, please help.
OLE DB provider "OraOLEDB.Oracle" for linked server "finprod3" returned message "ORA-12154: TNS:could not resolve the connect identifier specified".
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "finprod3".What version of Oracle client software are you using? 32 bit or 64 bit? Is the OS 32 bit or 64 bit?
12154 generally means the client can't figure out what TNSNames.ora entry you're referring to, which is the part you passed as "data source" in the oledb connection. Did you configure the client? Does SQLPlus connect without issue?
There's also a known issue where running 32 bit client software on a 64 bit OS can result in that error in some versions, due to parenthesis in the path of the executable - 32 bit apps go in Program Files (x86) on a 64 bit OS. Applying the latest patch level to the client software will resolve that issue.
Greg
Maybe you are looking for
-
Building to building Bridge link using Aironet 1300's
We have a requirement to link two adjacent buildings that are about 20-metres apart over a public road. I need some advice on what the best solution will be. Initial thoughts are a pair of Aironet 1300's configured as Wireless Bridges but the antenna
-
How to create a long video only consisting of noise effect?
Hello, this goal might seem strange, but the purpose is to fight a "burn-in" effect on a plasma tv. The only way I found to apply the noise effect is to use an adjustment layer in combination with a video file, but this limits the duration of the eff
-
I am running Acrobat 9, Outlook 2003 and Windows XP. I can create a pdf document and have it open in Acrobat 9.0 Pro. I click on the File / Attach to Email. A blank email document opens, with the pdf attached. I put in an email addy and click send bu
-
Cannot view captivates in IE 7
I am having trouble viewing the Captivates I recorded in IE 7. i can view on firefox though. I have a number of different recording that are 45 seconds to 2-3 minutes long. when I click on the link all that appears is a white screen. what would be th
-
Re-installed PRA on Win 64-bit machine after it ran perfectly for a while but it keeps crashing when trying to run a risk analysis or linking a risk register to activities. Have uninstalled, cleaned out the registry and re-installed – no luck. Have c