Sie sind auf Seite 1von 4

Lab: Configure Data Source to get the Data Source Object using JNDI Lookup methods

Note: weblogic server 10.3.4.0 installed in windows box location: c:\Oracle\Middleware Create a new domain Here the atabase Name is xe

atabase server is r!nning on "ort N!mber 1#$1 Step 1 %!n the scri"t: con&ig.cmd &rom C:\Oracle\Middleware\wlserver'10.3\common\bin (nd com"lete the wi)ard with details* give domain name as: ,sername and "assword as: weblogic - weblogic1 Step 2 +tart (dmin server b. r!nning the scri"t: start/eb0ogic.cmd &rom the location: C:\Oracle\Middleware\!ser'"ro1ects\domains\ ata+o!rce' omain\bin Ma2e s!re the server is !" and is in %,NN3N4 mode. (ccess the admin console &rom a web browser htt":--localhost:5001-console Step 6rom admin console navigate and clic2 on Ser!ices in the tree select the Data Source 3n the %ight "ane clic2 on New in that 4eneric ata +o!rce ata+o!rce' omain

"ro!ide the fo##o$ing detai#s Name JNDI Name Database %&pe clic2 on Next b!tton Database Dri!er : se#ect the Database Dri!er t&pe from the dri!ers drop do$n bo' : oraDs : suman : Orac#e

clic2 on Next b!tton Se#ect %ransaction Options : (#read& check bo' is se#ected the t&pe g#oba# %ransaction

Logging Last Resource Emulate Two-Phase Commit One-Phase Commit


clic2 on Next b!tton Database Name )ost Name "ort : xe

: localhost : 1521 ame : s!stem : tiger : tiger

Database User Passwor"

Con#irm Passwor" Clic$ on e%t button

Clic2 on 7est Con&ig!ration and it &ollows +elect the targets Here the targets are (dmin+erver

Clic2 on &inish b!tton the dataso!rce is created with the name oraDs +te" &or creating M!lti Step 1 3n the same domain create one more dataso!rce Create oraDs1 li2e oraDs Step 2 +elect the +ervices &orm the 3n the %ight "ane &rom New Name : m!l s 8N 3 Name : m!lti : 6ailover-0oad 9alancer omain str!ct!re in that select the ro" own 0ist select the M!lti ata+o!rces ata so!rce

ata +o!rce

(lgorithm 7."e :ress Next Step

+"eci&. the 7argets here onl. one server is here we are targeting that server ;(dmin+erver< :ress Next

Step *

&elect Data &ource T!'e () Dri*er on-() Dri*er Press e%t Step 5 +ere all the on-() Dri*er "ata sources are "is'la! ,rom the Available List we can select data source and press on the > that datasource moved to

chosen and press Finish button it creates the multi data source.

Das könnte Ihnen auch gefallen