Error while retrieveing BLOB field from database? - visual-studio

I'm trying to retrieve a BLOB field from Oracle and show it in a crystal report.
While viewing the report, I've that error:
Failed to open a rowset.
Details: ADO Error Code: 0x
Source: Microsoft OLE DB Provider for oracle
Description: Unspecified error
I use a View as report datasource, its script
SELECT COMPANY_ID, COMPANY_LOGO FROM ID_COMPANY_SETUP;
I'm using CrystalReport embedded with VS.NET 2005.
Any suggestions?

I got where was the problem. It was "Connection Type".
I were using OLE DB(ADO) for connection to database, while I changed it to
Oracle Server connection, blob field retrieved properly.

Related

Hw to get rid of ORA-01008

While trying to code in VS 2019 (making utility to select data from Oracle DB) I got stuck.
I created DataSet with TableAdapter to it Pic0
In a query I must enter value for APPLICATION_NUMBER field, and when I "Execute Query" everything works fine and I get result (see Pic1)Pic1
But when I try to "Preview Data", I got error "ORA-01008: not all variables bound"
(see Pic2)
Just for info: it is Oracle 9i I am trying to connect to, I am using .NET Framework Data Provider for OLE DB because if I use .NET Framework Data Provider for Oracle it says "Connections to this server version are no longer supported".
Would appreciate much any useful info.
I tried to replace :PARAM2 with '&PARAM2' but with no luck.

Why can't I get the list of tables when connecting to oracle in SSIS?

When I connect to Oracle from SSIS through OLE DB, and try to locate the tables, I get a huge list. Why don't I get only the database tables?
My connection is:
Provider = Native OLE DB\Oracle Provider for OLE DB.
Server or file name = localhost:1521/orcl
Reference image on the listing I get

SSIS project not working when reading from Oracle

I've been trying to create an SSIS project to read from an Oracle 11.x database to an SQL Server database.
When I set this up in Visual Studio 10 Shell, I do not receive any logs . It gives me a successful message but nothing happens.
I tried to connect to an Oracle 12c database and the same happened.
I tried to get data from an Oracle 11.x project and dump it into an excel file. I also tried to get data from an Oracle 11.x table and dump it into a new Oracle 11.x table (in the same database) and in both cases I got the following error:
> TITLE: Microsoft Visual Studio
Failed to start project
------------------------------ ADDITIONAL INFORMATION:
Exception deserializing the package "The package failed to load due to
error 0xC0011008 "Error loading from XML. No further detailed error
information can be specified for this problem because no Events object
was passed where detailed error information can be stored.". This
occurs when CPackage::LoadFromXML fails. ".
(Microsoft.DataTransformationServices.VsIntegration)
The package failed to load due to error 0xC0011008 "Error loading from
XML. No further detailed error information can be specified for this
problem because no Events object was passed where detailed error
information can be stored.". This occurs when CPackage::LoadFromXML
fails. (Package)
------------------------------ BUTTONS:
OK
Can anyone help me please?
Thank you
You haven't posted how you are trying to get data from oracle exactly so can say much about the error. I can only give my solution in 2008 r2:
create an oracle linked server in your sql server and then use an open query in the SSIS package to pull anything you need

SSIS oracle DB connectivity Issue

I am getting the below mentioned error in one of the task in SSIS package.
Exception from HRESULT: 0xC0202040
Error at Populate data combined data [OLE DB Destination [81]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21.
An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80040E21 Description: "Multiple-step
OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".
Error at Task_Name [OLE DB Destination [81]]: Failed to open a fastload rowset for Table_Name.Check that the object exists in the database.
I have Microsoft visual studio 2010 shell, server management studio 2012 installed in my machine and also I have installed ODTwithODAC121012 and attunitySSISOraAdapters for the DB connectivity.
enter image description here
I tested the connection to the oracle DB and it is success.
Please let me know if there is something wrong with the connection setups.
Thanks in Advance!!

Update a row in oracle using OLEDB command(SSIS)

I am trying to update some rows in an oracle Database, using an OLEDB Command
but whenever i try specifying the Sql Command this is what i get
An OLEDB record is available. Source: "OraOLEDB" Hresult:0x80040E51 Description:
"Provider cannot derive parameter information and
SetParameterInfo has not been called."
I have tried using
"Native OLE DB\Oracle Provider for OLE
DB" provider
and i tried changing to
"Native OLE DB\Microsoft OLE BD Provider for Oracle" provider
but i get the same error, please help,
I am using ssis 2008
Here is the setup : The Connection Manager is as below
When i test it, it succeeds
Now when i come to configuring the OLEDBCommand., I pass in the Connenction Manager
specify the command
now when i move to configure the parameters, nothing is displayed and i receive this error
thanks for the help
Under Input and Output Properties you need to add the column names under OLE DB Command Input > External columns, they will then appear in the column mappings page.

Resources