BizTalk - polling an Oracle database package - oracle

I need to poll an Oracle database in BizTalk. In the postPollStatement I need to add the package that has been created for me in the Oracle DB. Can anyone assist me with this?
I have created the schema in Visual Studio, the port is created and I have configured everything except the postPollStatement.
EDIT1:
I have done some research and followed Microsoft Docs but still not managed to get the postPollStatement working.
https://learn.microsoft.com/en-us/biztalk/adapters-and-accelerators/adapter-oracle-database/poll-oracle-db-using-stored-procedures-functions-or-packaged-procedures
This is the error I receive: System.TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

To get this working you need to do the following:
polledDataAvailableStatement: SQL Statement that returns '1' or '0'.
SELECT COUNT (*) FROM TABLE
pollingAction: Retrieve the polling action from the schema generated for the inbound message.
pollingStatement: For this binding property, specify the entire XML request message that you generate from the schema in Visual Studio.
(No parameter needed if not specified in schema).

Related

Visual Studio Sql Server project cannot compile (dacpac generation ) with External source of type 6

I am trying to do a Sql Project in visual studio (out of a Azure Sql Pool formerly SQL Datawarehouse ) . However I am getting an issue while the engine is parsing my external datasource with managed identity. The external data source code is the following :
SQL
CREATE EXTERNAL DATA SOURCE [data_toto_dfs_core_windows_net] WITH (LOCATION = N'abfss://data#toto.dfs.core.windows.net')
And the error code is the following :
Error An error occurred while attempting to reverse engineer elements
of type
Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlExternalDataSource:
Unsupported external data source type '6'.
Any idea how to deal with it ?
Regards
Vincent
You need to create a database scoped credential which helps to access the external data source.
Make sure your external data source have permission to Managed Identity for accessing the data.
Please go through this document Database-scoped credential with Managed Identity for more information.

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

AcquireConnection method call to the connection manager Oracle Connector failed

I have setup the connection manager from SSIS to Oracle as:
In the Oracle source:
I can preview the data successfully:
However, upon attempting to execute the packge, the erorr appears as:
SSIS package "C:\Users\kakah\Documents\Visual Studio 2015\Projects\TestExcel\TestExcel\INV_MTL_SYSTEM_ITEMS_TL.dtsx" starting.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x802092A7 at Data Flow Task, OLE DB Destination [17]: Truncation may occur due to inserting data from data flow column "DESCRIPTION" with a length of 600 to database column "DESCRIPTION" with a length of 150.
Warning: 0x802092A7 at Data Flow Task, OLE DB Destination [17]: Truncation may occur due to inserting data from data flow column "LONG_DESCRIPTION" with a length of 2000 to database column "LONG_DESCRIPTION" with a length of 150.
Error: 0x2C0 at INV_MTL_SYSTEM_ITEMS_TL: OCI error encountered. ORA-12154: TNS:could not resolve the connect identifier specified
Error: 0x20F at Data Flow Task, Oracle Source [62]: The AcquireConnection method call to the connection manager Oracle Connector failed with error code 0x80004005. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error: 0xC0047017 at Data Flow Task, SSIS.Pipeline: Oracle Source failed validation and returned error code 0x80004005.
Error: 0xC004700C at Data Flow Task, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at Data Flow Task: There were errors during task validation.
SSIS package "C:\Users\kakah\Documents\Visual Studio 2015\Projects\TestExcel\TestExcel\INV_MTL_SYSTEM_ITEMS_TL.dtsx" finished: Failure.
What could I be missing? How can this be resolved?
If you right click on the project and go to properties --> Configuration Properties --> Debugging, did you make sure Run64BitRuntime is False? Sometimes that gets toggles to True and will break it.
What exactly do you mean by executing the package? Execute it from BIDS/SSDT or SQL Server agent?
Are there any configuration files/dynamic configurations that you are using? From what it appears, the tnsnames.ora file that your connection manager is using at run time has bad connection information.
SSDT 2017 connecting to Oracle 9i.
Issue : on my windows 10 laptop I had installed 10G 32 Bit and 11G 64 bit client installed
Resolution : Remove all the clients and install only one version of Client 11G both 32 and 64 bit client and SSIS worked like a charm

jaspersoft reporting error user lacks privilege or object not found

My first attempt at JasperSoft Reports, community edition.Installed the necessary plugin to get it to work in Spring Tool Suite. Created a new report project and added the data adapter to connect to a sql database and the connection worked fine. Then tried to create a new report and select a datasource and design a query. This is where the error is produced:
user lacks privilege or object not found:
and the object in this case happens to be the DB table. I have been unable to retrieve any solution online and hoping someone can direct me here.
Appreciate your response.

Connect to Derby using IKVM, C#

I used IKVM (ikvm-7.2.4630.5) to convert derby-10.11.1.1.jar and derbyclient-10.11.1.1.jar to dll and add reference to my project.
I want to write an C# app that connect to Derby database and get data.
Here is code (work well with Java)
DriverManager.registerDriver(new org.apache.derby.jdbc.EmbeddedDriver());
Connection conn = DriverManager.getConnection("jdbc:derby:C:/sampleDb;create=true");
But it throw exception at line 1. See error.
An unhandled exception of type 'System.TypeInitializationException' occurred in app.exe
Additional information: The type initializer for
'org.apache.derby.jdbc.EmbeddedDriver' threw an exception.
How to solve it or another way to get data from it?

Resources