Blog

View Blog

Okt 3

Written by: Wilfried Mausz
03.10.2006 13:38

During my last BizTalk workshop in Vienna I had to show how to use the Oracle database adapter. In all other BizTalk projects we have always used own C# applications or web services to read and write data from Oracle. This demo shows how to read data from an Oracle table using a SQL query with the help of the built-in Oracle DB adapter.

If you are not familiar with BizTalk-basics like creating and deploying an Orchestration or creating Receive Locations, you should have a look at a former article which shows how one can create a BizTalk workflow (http://www.cubido.at/Blog/tabid/176/EntryID/75/Default.aspx).

Installation

The Oracle adapter has to be installed separately after the installation of BizTalk server. There is an own setup for additional adapters. After the adapter was installed it has to be registered as adapter in the BizTalk Administration Console:

In the Adapters node in Plattform Settings, create a new adapter called Oracle DB which uses the formerly installed Oracle adapter.



After closing the adpater configuration dialog – when I remember it correctly – the BizTalk service has to be restarted before the new adapter can be used.

Using the adapter

At first one has to create a new Receive Port with a Receive Location which uses the Oracle adapter.



The Transport Type is set to Oracle DB (the name which was set in the adapter configuration), the used Receive Pipeline is default-XML. When opening the Address (URI) settings the transport properties of the Oracle adapter appear.



At first one has to specify the Oracle connection with service name, user and password. Then one has to configure the “Managing Events” which opens the following dialog (OracleDB Adapter uses ODBC to access the Oracle database. So to get the adapter working correctly, one has to create an ODBC connection first.):



To use a simple SQL query the event NativeSQL is chosen. Now after closing the “Managing Events” dialog the SQL statement is set (property “Poll SQL statement”) and a SQL statement which is executed after polling – for example deleting rows from an export-table or updating an exported-flag – can be set (property “Post Poll SQL Statement”).

A simple Orachestration …

For the demo I used a very simple Orchestration with just one Receive port and a Send port. Everything which is read from the Oracle adapter should be written to a file.



But before we create our fancy Orchestration, we have to add schemas for the messages created by the adapter. This is done by “Add Generated Items” to the BizTalk project. There is a selection for “Add Adapter Metadata”.



Then select the Oracle adapter and choose the formerly created Oracle receive location:



The schema wizard adds some schemas to the project. The only schema used in my demo is the “NativeSQLService_NativeSQL_x5d”



This "generic" schema is filled by the adapter. You will not get very useful field names, but the result can easily be used due to the fact that the elements in the "rowData" elements will have a certain order that can be used for parsing (for example a "Index"-functoid in a map).

I hope this article is useful to you and can save some time on getting started with the Oracle DB adapter.

Tags:

20 comments so far...

Re: A simple BizTalk 2006 Oracle Adapter demo

Thanks for posting this demo.
A little more details about adding receive pipeline and send pipeline ..In case we are writing the data to a flat file would be of great help.

NReddy

By Anonymous on   07.03.2008 12:56

AW: A simple BizTalk 2006 Oracle Adapter demo

Hi,
it is quite a while since I have written this blog, but I soppose I used the default-PassThrough pipeline on both sides.
by, Wilfried

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

It is helpful to first time face Oracle adapter.
A question about htis demo.Which node you chosed during schema wizard.Query or Native Sql ?
Thanks a lot.

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

Had enter the sql in "poll sql statement"when create the Receive Location.
why we select Database datatable or NativeSQL in OracleDB Adapter wizard?

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

Has anyone tried using post poll statements. We are having all kind of issues trying to do updates after the polling.

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

i want to call oracle stored procedure which returns cursor or multipul rows by using BizTalk Oracle Adapter.how i retirive cursor by using Oracle Adapter.

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

hi this post was useful, but i would like to know how i can generate a schema with the individual field of the string field in row data...ie i need data from oracle adapter,my schema needs to be having individual fields.

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

hi this post was useful, but i would like to know how i can generate a schema with the individual field of the string field in row data...ie i need data from oracle adapter,my schema needs to be having individual fields.

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

From where i can download oracle adapter for Biztalk 2006

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

How do you use the index functoids to map the SlqlEven rowData to an xml schema?

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

HI!

I would like to know if it's possible to call a stored procedure from the properties “Poll/Post Poll SQL statement” using an Oracle Adapter.

Could you help me please?

Thanks!
Mercedes.valverde@gmail.com

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

Good morning,
A developer of mine would like to know where and how you would trap an error condition here. e.g If you had an invalid password I would trap it on an On error condtion do; blah blah blah; end;
How does this manifestation apperae (and where) in Biztalk 2006?
regards,
david bell

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

Hi!

please, can some one describe the orchestration, and what ports that is necessary to create on the biztalkserver console... I am trying to do this example, but i do not have success...
Thanks!

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

Could anyone please help me to use Oracle stored procedure and create a schema based on that.

By Anonymous on   07.03.2008 12:56

Re: A simple BizTalk 2006 Oracle Adapter demo

Hi Mercedes.valverde@gmail.com,

I don't know whether you have the same problem as mine, but i have a workaround for polling, you can find it here.
http://bembengarifin-tech.blogspot.com/2008/04/biztalk-2006-oracle-adapter-odbc.html

Hi Wilfred,
I hope you don't mind i put the link in your post.
Thanks.

By Bembeng Arifin on   02.05.2008 04:06

Re: A simple BizTalk 2006 Oracle Adapter demo

Can you please tell me how can i use native query in 2 different project when i using giving error of mulitple schema as when i deploy one project with that it deploy schema then when i deploy other project it again deploy the native schema now when i try to rum one orchestration it gives me mulitple schema error

By Aun Ali siraj on   30.07.2008 13:55

Re: A simple BizTalk 2006 Oracle Adapter demo

Hi Aun,
Every schema deployed in BizTalk needs to have a unique namespace, that's why you are getting that multiple schema problem, when you're trying to run them both together in one server.
There are several workarounds but it depends on your situation :
1. You can share the schema, deployed one of them and have the other one to reference the first one.
2. You can generate a new native sql schema using different dns name, so you will have 2 dns settings which actually connect to the same database.
Hope it helps ;)

By Bembeng Arifin on   02.08.2008 15:59

wow gold

Johnson & wow gold Johnson wow gold heiress Casey Johnson, sudden death, died wow power leveling at only 30 wow power leveling years old.

She recalled wow gold that wow gold in this life wow power leveling can only be wow power leveling used "Infamous" and "troubled" to describe.

09.01.07T

By wow gold on   07.01.2010 01:19

replica watches

As of replica watches September replica watches 30, rolex watches 2009, rolex watches breitling watches for breitling watches a total tag heuer of tag heuer Wenchuan tag heuer carrera earthquake tag heuer carrera in fake breitling China fake breitling raised fake rolex watches 79.703 fake rolex watches billion yuan of social replica rolex funds replica rolex and materials donated

A total replica breitling expenditure replica breitling of fake rolex watches the fake rolex watches fake watches country fake watches in which donated tag heuer funds tag heuer and breitling watches materials breitling watche 52.769 fake breitling billion fake breitling yuan, the replica watches balance replica watches of tag heuer carrera donated tag heuer carrera funds rolex watches and rolex watches materials rolex watches are still rolex watches 26.934 replica rolex billion replica rolex yuan.

The louis vuitton Audit louis vuitton Commission louis vuitton issued louis vuitton Notice replica gucci No. replica gucci 2010, replica chanel No. replica chanel 1, louis vuitton handbags announced louis vuitton handbags the Wenchuan earthquake in the community to louis vuitton bags donate louis vuitton bags funds and materials audit louis vuitton handbags found louis vuitton handbags no major replica lv disciplinary replica lv infractions.

The audit louis vuitton bags announcement louis vuitton bags shows louis vuitton that louis vuitton the louis vuitton balance louis vuitton is still 26.934 billion yuan replica gucci in donated replica gucci funds and materials, there is 11.926 billion yuan was allocated one after another with the progress of reconstruction projects, replica chanel 15.008 replica chanel billion yuan gucci bags will gucci bags be recovery gucci handbags and gucci handbags reconstruction lv handbags planning lv handbags arrangement.

09.01.07T

By replica watches on   07.01.2010 01:20

replica watches

Shangqiu replica watches Zoo,replica watches according rolex watches to rolex watches Wang Dong, breitling watches director breitling watches of tag heuer the tag heuer CMC, tag heuer carrera said tag heuer carrera that replica rolex the replica rolex zoo rolex watches animals, rolex watches a total fake rolex watches of fake rolex watches 400 (head), fake breitling animal fake breitling breeding is mainly funded from replica breitling ticket replica breitling sales

"15 replica watches tigers replica watches one rolex watches day rolex watches we breitling watches should breitling watches eat tag heuer more tag heuer than 80 tag heuer carrera kilograms tag heuer carrera of meat, replica breitling we replica breitling should fake breitling spend a fake breitling day alone fake rolex watches nearly fake rolex watches 3,000 yuan."

Although louis vuitton the louis vuitton zoo louis vuitton Shangqiu louis vuitton annual ticket replica gucci sales replica gucci of 35 replica chanel million replica chanel per, gucci bags but gucci bags the gucci handbags funding gucci handbags lv handbags is lv handbags louis vuitton bags quite louis vuitton bags replica lv replica lv louis vuitton handbags louis vuitton handbags tight

Wang said that during the tourist season, "when more ugg boots funding, give all the tigers to eat beef, ugg boots mutton," and usually only eat cheap chicken breasts

09.01.07T

By replica watches on   07.01.2010 01:21

Your name:
Title:
Comment:
Add Comment    Cancel  

Newsletter

Sie möchten im Newsletter über aktuelle technische Entwicklungen und Neuigkeiten rund um cubido informiert werden?

Newsletter abonnieren ...

Blog