oracle soa lab#14 configuring dbadapter
Post on 04-Jun-2018
262 Views
Preview:
TRANSCRIPT
-
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
1/24
Getting Started with Oracle SoA
Oracle SOA Configuring DbAdapter Lab#14
Description: BISP is committed to provide BEST learning material to the beginners
and advance learners. In the same series, we have prepared a complete
end-to end Hands-on Beginners Gide !or "racle So#. The docment
!ocses on $b#dapter throgh #dministration %onsole.&oin or pro!essiona
training program and learn !rom e'perts.
Histor()*ersion $escription %hange #thor Pblish $ate+. Initial $ra!t Shiva ant Pande( st #g ++. /eview0 #mit Sharma 1th#g +
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
2/24
Configuration of DbAdapter Through Adinistration Console
Stepwise procedure to Configure DbAdapter Through Adinistration console:
Step 1: %lic2 on 3ire!o' web Browser to open it
Step !:4rite either 5/6 7 http:""localhost:$$1"console 7 on web browser or simpl( clic2
on 4eblogic console to open 4eblogic #dministration console.
Step 8) 6og in to wor2 with the 4eblogic Server domain , se the !ollowing credential to login
into #dministration console )
%sernae9 weblogic
&assword9 welcome
%lic2 on login
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
3/24
Step 4::ow we have sccess!ll( entered into administration console now clic2
deplo'ents nder $omain Strctre.
Step () It will prompt to cstomi;e $eplo(ments table , now in this table all deplo(ed adapterscan be visible < so $b#dapter is one o! them to which we are going to con!igre .#lso note that
this $b#dapter !ile is a =ar !ile whose state is #ctive, Health is " , it is /esorce #dapter T(pe
< deplo(ment "rder is 8.
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page 8
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
4/24
Step ): %lic2 on Service nder $omain Strctre < e'pand it :ow %lic2 on $ata Sorces to
create to con!igre .
Data Sources : It is a name given to the connection set p
to a database!rom a server. The name is commonl( sed
when creating a >er( to the database. The database
sorce name?$S:@ does not have to be the same as the
!ilename !or the database.
Sun*s +ersion of DataSource) # !actor( !or connectionsto the ph(sical data sorce that this $ataSorce ob=ectrepresents. #n alternative to the $riverAanager !acilit(, a$ataSorce ob=ect is the pre!erred means o! getting aconnection. #n ob=ect that implements the $ataSorceinter!ace will t(picall( be registered with a naming servicebased on the&ava :aming and $irector( Inter!ace?&:$I@#PI.
The $ataSorce inter!ace is implemented b( a driver vendor. There are three t(pes o!
implementations)
Basic implementation prodces a standard %onnection ob=ect
%onnection pooling implementation prodces a %onnection ob=ect that willatomaticall( participate in connection pooling. This implementation wor2s with a middle-tierconnection pooling manager.
$istribted transaction implementation prodces a %onnection ob=ect that ma( be sed !ordistribted transactions and almost alwa(s participates in connection pooling.
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page C
http://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/Database_Source_Namehttp://en.wikipedia.org/wiki/Database_Source_Namehttp://en.wikipedia.org/wiki/Java_Naming_and_Directory_Interfacehttp://en.wikipedia.org/wiki/Connection_poolhttp://en.wikipedia.org/wiki/Distributed_transactionhttp://www.bispsolutions.com/http://www.bisptrainigs.com/http://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/Database_Source_Namehttp://en.wikipedia.org/wiki/Database_Source_Namehttp://en.wikipedia.org/wiki/Java_Naming_and_Directory_Interfacehttp://en.wikipedia.org/wiki/Connection_poolhttp://en.wikipedia.org/wiki/Distributed_transactionhttp://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
5/24
This implementation wor2s with a middle-tier transaction manager and almost alwa(s with aconnection pooling manager.
# $ata Sorce ob=ect has properties that can be modi!ied when necessar(. 3or e'ample, i!the data sorce is moved to a di!!erent server, the propert( !or the server can be changed. Thebene!it is that becase the data sorceDs properties can be changed, an( code accessing thatdata sorce does not need to be changed.
Step 7: %lic2 :ew to create new data sorce
Step ,) %hoose Generic $ata Sorce < clic2 it .
Step -:3ill all the entries to create new &$B% data sorce
:ame 9 demods &:$I :ame 9 =dbcdemods
$atabase t(pe 9 "racle
%lic2 :e't
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page F
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
6/24
Step 1$:Select $atabase driver
"racle $river?Thin # @ !or Instance connections *ersions)1.+. and later
%lic2 :e't
Step 11:%lic2 :e't
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
7/24
Step 1!) $e!ine connection Properties
database :ame 9 E
Host :ame 9 localhost
Port 9F
$atabase 5ser :ame 9hr
Password 9 hr
%on!irm Password 9 hr %lic2 :e't
Step 1.: %hec2 all details < write again !ollowing)
$atabase 5ser :ame 9hr
Password 9hr
%on!irm Password 9 hr
%lic2 on Test Configuration at the bottom.
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page J
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
8/24
Step 14: There is possibilit( to come error, :ow this error comes when the $atabase ser is
loc2ed so !irst nloc2 ser hr then again clic2 to Test %on!igration .
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page K
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
9/24
Step 1(: %lic2 on "racle $B Env Terminal in 6in' operating s(stem or open %A$ in windows
Step 1): Start s>l b( writing s>lpls now Enter ser :ame as 9s(s as s(sdba ,press enter 2e(
when password prompts , now connected to database , write !ollowing >er( to nloc2 hraccont
alter ser hr identi!ied b( hr accont nloc2
bash/.0! s>lpls
S2L3&lus: elease 110!0$0!0$ &roduction on Tue 5o+ 1- $!:1!:14 !$1.
Cop'right 6c7 1-,!8 !$118 Oracle0 All rights reser+ed0
9nter user/nae: s(s as s(sdba
9nter password:
Connected to:
Oracle Database 11g 9press 9dition elease 110!0$0!0$ / )4bit &roduction
S2L; alter ser hr identi!ied b( hr accont nloc2
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page 1
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
10/24
%ser altered0
S2L;
Step 1: :ow come bac2 to datasorce con!igration page < !ill all data again < clic2 Test
Configuration0
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page +
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
11/24
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
12/24
Connection Test Succeeded
Step 1,: Select #dmin Server < clic2 3inish
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
13/24
Step 1-: Aessage $ispa(s that 7#ll changes have been activated no starts are necessar( 7
:ow see data sorce table < observe demods is visible inside table .:ow come bac2 again into
deplo(ments table .
Step !$: Aar2 on $b#dapter =ar !ile < clic2 on Stop tab
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page 8
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
14/24
5OT9: Be!ore pdating an( adapter =ar !ile stop it then ma2e changes on it .
Step !1:%lic2 on 3orce Stop :ow
Aessage displa(ed 7selected $eplo(ments have been re>ested to stop 7
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page C
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
15/24
Step !!: %lic2 on $b#dapter =ar !ile to open it
Step !.:%lic2 on %on!igration
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page F
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
16/24
Step !4:%lic2 Outbound Connection &ools nder %on!igration < then E'plore
=ava'.resorce.cci.%onnection3actor( b( clic2ing L sign
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
17/24
Step !(:%lic2 on 5ewto create new connection !actor(
Step !)) Aar2 =ava.resorce.cci.%onnection3actor( < %lic2 5et
Step !: Give &:$I :ame 9 eisdbdemoc! then clic2 3inish
here c! stands !or connection !actor(
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page J
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
18/24
Aessage $ispla(ed
7#ll changes have been activated. :o start are necessar( 7
Step !,::ow we have sccess!ll( created eisddb democ! connection < clic2 on it twice to
con!igre it .
Step !-: write =dbcdemods inside Proper( *ale o! '#$ataSorce:ame < press Enter e(
:ow clic2 Sa+ebtton
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page K
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
19/24
Aessage $ispla(ed
7#ll changes have been activated. :o start are necessar( 7
7$eplo(ment plan has been sccess!ll( pdated 7
Step .$:#gain %ome bac2 to $eplo(ment Table B( clic2ing deplo(ment on le!t pane < mar2
$b#dapter =ar !ile < clic2 to Stop then 3orce Stop :ow
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page 1
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
20/24
Aessage $ispla(ed
7Selected $eplo(ments have been re>ested to stop 7
Step .1: %lic2 on 5pdate
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page +
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
21/24
Step .!: "pen $eplo(ment plan path to chec2 the con!igration done
oracle!mwhome"racleMS"#soa$B#dapterPlan.'ml
Step ..: "pen des2top < clic2 to %ompter
Step .4: %lic2 to 3iles(stemto open it
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
22/24
Step .(: "pen !olders according to :mbers !rom to F
Step .):"pen !older soa < then open Plan.'ml !ile with Te't Editor
Step .: %hec2 that whatever con!igration we have done is present inside variables or no
e'ample %onnection Inastance M&:$Iname 9 eisdbdemoc! < %on!ig propert(M'#$ataSorce
-
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
23/24
NvariableO
NnameO%onnectionInstanceMeisdbdemoc!M&:$I:ameM8KCJJ8J+C8+NnameO
NvaleOeisdbdemoc!NvaleO
NvariableO
NvariableO
NnameO%on!igPropert(M'#$ataSorce:ameM*aleM8KCJJ8K+111+NnameO
NvaleO=dbcdemodsNvaleO
NvariableO
Aessage $ispla(ed
7#ll changes have been activated. :o start are necessar( 7
7$eplo(ment plan has been sccess!ll( pdated 7
www.bispsoltions.com www.bisptrainigs.com www.h(periongr.com Page 8
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/ -
8/13/2019 Oracle SOA Lab#14 Configuring DbAdapter
24/24
Step .,: State o! $b#dapter is now #ctive < Health "
:ow we have completed conigration o! $atabase adapter
www bispsoltions com www bisptrainigs com www h(periongr com Page C
http://www.bispsolutions.com/http://www.bisptrainigs.com/http://www.bispsolutions.com/http://www.bisptrainigs.com/
top related