Re: Oracle 9i (release 2) and COM+

"DeRemer, Bob" <[email protected]> Wed, 11 Sep 2002 08:14:54 -0700
Newsgroups gmane.comp.windows.devel.oledb.devel
Message-ID <[email protected]>
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C259A5.FBCF54E0
Content-Type: text/plain;
        charset="iso-8859-1"

I was able to get both working, but there were some differences.  Oracle's
driver required setting up an Oracle Service for MTS [a seperate service for
each database - I think it was].  Microsoft, instead, uses the XA protocol
to do the 2-phase commits from COM+ to Oracle.

I know I found some articles on the MS MSDN surrounding hooking up COM+ and
Oracle [using the MS Provider for Oracle], but again, this was 8i.  The
architecture may have been changed for 9i.  If you wanted to use Oracle's,
they deferred you to the Oracle docs.

-bob
-----Original Message-----
From: Alan Gamboa [mailto:[email protected]]
Sent: Wednesday, September 11, 2002 11:02 AM
To: [email protected]
Subject: Re: Oracle 9i (release 2) and COM+


Are you using the OLE DB driver from MS or Oracle?

-----Original Message-----
From: DeRemer, Bob [mailto:[email protected]]
Sent: Tuesday, September 10, 2002 4:20 PM
To: [email protected]
Subject: Re: [OLEDB_DEV] Oracle 9i (release 2) and COM+

I have done this using Oracle 8.1.7 and COM+ under Win2K SP1.  It was a real
pain, but was doable.  First off, I don't know what may have changed
architecturally from 8i to 9i, so take this with a grain of salt.

The key problem I had when configuring my COM+ server to work with Oracle
was that the various COM+/MTS related services needed to be running under
with a valid domain identity.  When running as localsystem, things would not
connect up.  I found quite a bit of information on the Oracle Partners site
[under the 8i Windows documentation].  I would imagine the 9i docs for
windows should be available.  Like most other things on the Oracle site,
however, you'll probably have to dig for a while to find it.

Hope this helps,
Bob DeRemer
-----Original Message-----
From: Alan Gamboa [mailto:[email protected]]
Sent: Tuesday, September 10, 2002 4:05 PM
To: [email protected]
Subject: Oracle 9i (release 2) and COM+
I am getting an XACT_E_NOENLIST error when using Oracle's OLE DB  driver to
access and Oracle 9iR2 database via a COM+ component. (WIth the  MS driver
for Oracle, I get XACT_E_TMNOTAVAILABLE).  Of course everything works great
with MS SQL Server.  Inquire type queries work fine, I only get the error
when I try modify anything (which, of course, is where transactions are
used)

I've been scanning the archives and searching for help on both the Oracle
and MS sites, but there is no definitive "This is how you set all this up"

Has anyone successfully setup COM+ using an Oracle OLE DB driver to access
an Oracle 9i database using transactions?

or does anyone know of a definitive resource that explains "exactly" how to
tie everything together?

TIA

Alan Gamboa
Senior Systems Engineer
CCG Systems, Inc.
612 Colonial Avenue
Norfolk, VA  23507-1806
voice:    757-623-1700  ext. 109
fax:       757-625-5114
email:   [email protected]
web:     www.ccgsystems.com


You can read messages from the OLEDB_DEV archive, unsubscribe from
OLEDB_DEV, or subscribe to other DevelopMentor lists at
http://discuss.develop.com.
You can read messages from the OLEDB_DEV archive, unsubscribe from
OLEDB_DEV, or subscribe to other DevelopMentor lists at You can read
messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
http://discuss.develop.com.

You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

------_=_NextPart_001_01C259A5.FBCF54E0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<META content=3D"Microsoft Word 10" name=3DOriginator><LINK=20
href=3D"cid:[email protected]" rel=3DFile-List><!--[if gte =
mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; =
mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; =
}
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply; =
mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: =
10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; =
mso-bidi-font-family: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=3DEN-US style=3D"tab-interval: .5in" vLink=3Dpurple =
link=3Dblue>
<DIV><SPAN class=3D628381115-11092002><FONT face=3DArial =
color=3D#0000ff size=3D2>I was=20
able to get both working, but there were some differences.&nbsp; =
Oracle's driver=20
required setting up an Oracle Service for MTS [a seperate service for =
each=20
database - I think it was].&nbsp; Microsoft, instead, uses the XA =
protocol to do=20
the 2-phase commits from COM+ to Oracle.</FONT></SPAN></DIV>
<DIV><SPAN class=3D628381115-11092002><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D628381115-11092002><FONT face=3DArial =
color=3D#0000ff size=3D2>I know=20
I found some articles on the MS MSDN surrounding hooking up COM+ and =
Oracle=20
[using the MS Provider for Oracle], but again, this was 8i.&nbsp; The=20
architecture may have been changed for 9i.&nbsp;&nbsp;If you wanted to =
use=20
Oracle's, they deferred you to the Oracle docs.</FONT></SPAN></DIV>
<DIV><SPAN class=3D628381115-11092002><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D628381115-11092002><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>-bob</FONT></SPAN></DIV>
<BLOCKQUOTE>
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Alan Gamboa=20
  [mailto:[email protected]]<BR><B>Sent:</B> Wednesday, September 11, =
2002=20
  11:02 AM<BR><B>To:</B> =
[email protected]<BR><B>Subject:</B> Re:=20
  Oracle 9i (release 2) and COM+<BR><BR></FONT></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Are you =
using the OLE=20
  DB driver from MS or Oracle?<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DTahoma =
size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original=20
  Message-----<BR><B><SPAN style=3D"FONT-WEIGHT: bold">From:</SPAN></B> =
DeRemer,=20
  Bob [mailto:[email protected]] <BR><B><SPAN=20
  style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, September 10, =
2002 4:20=20
  PM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B>=20
  [email protected]<BR><B><SPAN=20
  style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [OLEDB_DEV] =
Oracle 9i=20
  (release 2) and COM+</SPAN></FONT></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
color=3Dblue=20
  size=3D2><SPAN style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: =
Arial">I have=20
  done this using Oracle 8.1.7 and COM+ under Win2K SP1.&nbsp; It was a =
real=20
  pain, but was doable.&nbsp; First off, I don't know what may have =
changed=20
  architecturally from 8i to 9i, so take this with a grain of=20
  salt.</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
color=3Dblue=20
  size=3D2><SPAN style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: =
Arial">The key=20
  problem I had when configuring my COM+ server to work with Oracle was =
that the=20
  various COM+/MTS related services needed to be running under with a =
valid=20
  domain identity.&nbsp; When running as localsystem, things would not =
connect=20
  up.&nbsp; I found quite a bit of information on the Oracle Partners =
site=20
  [under the 8i Windows documentation].&nbsp; I would imagine the 9i =
docs for=20
  windows should be available.&nbsp; Like most other things on the =
Oracle site,=20
  however, you'll probably have to dig for a while to find=20
  it.</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
color=3Dblue=20
  size=3D2><SPAN style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: =
Arial">Hope=20
  this helps,</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
color=3Dblue=20
  size=3D2><SPAN style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: =
Arial">Bob=20
  DeRemer</SPAN></FONT><o:p></o:p></P></DIV>
  <BLOCKQUOTE style=3D"MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt">
    <P class=3DMsoNormal=20
    style=3D"MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 0.5in; MARGIN-RIGHT: =
0in; mso-margin-top-alt: 0in"><FONT=20
    face=3DTahoma size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original=20
    Message-----<BR><B><SPAN style=3D"FONT-WEIGHT: =
bold">From:</SPAN></B> Alan=20
    Gamboa [mailto:[email protected]]<BR><B><SPAN=20
    style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, September 10, =
2002 4:05=20
    PM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B>=20
    [email protected]<BR><B><SPAN=20
    style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> Oracle 9i (release =
2) and=20
    COM+</SPAN></FONT><o:p></o:p></P>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am getting an =
XACT_E_NOENLIST=20
    error when using Oracle's OLE DB&nbsp; driver to access and Oracle =
9iR2=20
    database via&nbsp;a COM+ component. (WIth the&nbsp; MS driver for =
Oracle, I=20
    get XACT_E_TMNOTAVAILABLE).&nbsp; Of course everything works great =
with MS=20
    SQL Server.&nbsp; Inquire type queries work fine, I only get the =
error when=20
    I try modify anything (which, of course, is where transactions are=20
    used)</SPAN></FONT><o:p></o:p></P></DIV>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3D"Times New Roman"=20
    size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I've been scanning =
the archives=20
    and searching for help on both the Oracle and MS sites, but there =
is no=20
    definitive "This is how you set all this=20
    up"</SPAN></FONT><o:p></o:p></P></DIV>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3D"Times New Roman"=20
    size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Has anyone =
successfully setup=20
    COM+ using an Oracle OLE DB driver to access an Oracle 9i database =
using=20
    transactions?</SPAN></FONT><o:p></o:p></P></DIV>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3D"Times New Roman"=20
    size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">or does anyone know =
of a=20
    definitive resource that explains "exactly" how to tie everything=20
    together?</SPAN></FONT><o:p></o:p></P></DIV>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3D"Times New Roman"=20
    size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">TIA</SPAN></FONT><o:p></o:p></P></DIV>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3D"Times New Roman"=20
    size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Alan=20
    Gamboa</SPAN></FONT><o:p></o:p></P>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Senior Systems=20
    Engineer</SPAN></FONT><o:p></o:p></P>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><B><FONT =
face=3DArial=20
    size=3D2><SPAN=20
    style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">CCG Systems,=20
    Inc.</SPAN></FONT></B><o:p></o:p></P>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">612 Colonial=20
    Avenue</SPAN></FONT><o:p></o:p></P>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Norfolk, VA&nbsp;=20
    23507-1806</SPAN></FONT><o:p></o:p></P>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">voice:&nbsp;&nbsp;&nbsp;=20
    757-623-1700&nbsp; ext. 109</SPAN></FONT><o:p></o:p></P>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
    757-625-5114</SPAN></FONT><o:p></o:p></P>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">email:&nbsp;&nbsp;=20
    [email protected]</SPAN></FONT><o:p></o:p></P>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3DArial size=3D2><SPAN=20
    style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">web:&nbsp;&nbsp;&nbsp;&nbsp;=20
    www.ccgsystems.com</SPAN></FONT><o:p></o:p></P>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3D"Times New Roman"=20
    size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
    <DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3D"Times New Roman"=20
    size=3D3><SPAN=20
    style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
    <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT =
face=3D"Times New Roman"=20
    size=3D3><SPAN style=3D"FONT-SIZE: 12pt">You can read messages from =
the=20
    OLEDB_DEV archive, unsubscribe from OLEDB_DEV, or subscribe to =
other=20
    DevelopMentor lists at http://discuss.develop.com.=20
    <o:p></o:p></SPAN></FONT></P></BLOCKQUOTE></DIV>You can read =
messages from the=20
  OLEDB_DEV archive, unsubscribe from OLEDB_DEV, or subscribe to other=20
  DevelopMentor lists at You can read messages from the OLEDB_DEV =
archive,=20
  unsubscribe from OLEDB_DEV, or subscribe to other DevelopMentor lists =
at=20
  http://discuss.develop.com.=20
http://discuss.develop.com.</BLOCKQUOTE></BODY></HTML>
You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

------_=_NextPart_001_01C259A5.FBCF54E0--