SlideShare a Scribd company logo
vptaps@gmail.com
@johnxavierv—twitter
prathapkumarvemula@facebook.com
http://www.slideshare.net/xavierjohn4
07775991224
Database
Database is a permanentlocationtostore ourapplicationdata.itholdsthe data intabularformat.
ingeneral we will donormalizationtostore the data.
what is normalization?
decomposition of schemaintosubschemasiscallednormalization.innormalizationprimary
and foreignkeyplaysmainrole. we make relationbetweenparentandchildtablesusingPrimary
and ForeignKey's.
PrimaryKey - thiswe use on parenttable field,itwon'tallow duplicatesandNULL valuestoinsert.
ForeignKey - thiswe use in childtable field.itreferencestoparenttable.
simple example inthe formof Tables.myparentTable isEmpand childtable idDept.
Emp table
No (Primary Key) First Name Last Name Sal
1 Abc Xyz 10000
2 Abc1 Xyz1 20000
3 Abc Xyz2 30000
inthe above table if we tryto insertthe same numberinthe "No" field,itraise primarykeyviolation
exception.
inthe above table if we tryto insert"NULL" inthe "No"field,israise "NULLvaluesnotallowed"
exception.
Dept Table
NO (Primary Key) Name Type Emp No(ForeignKey
ReferencesEmpTable
"No" field)
1 A1 A1 1
2 B1 B1 1
3 A1 A1 2
4 A1 A1 3
one parentmay have 0 or manychild's.if we observe "EmpNo"fieldhasduplicate values.
foreignkeyalwaysreferencestoprimarykey,withoutprimarykeythere isnoforeignkey.
SQL ?
it isa querylanguage todo CRUD operationsonTables.CRUDstandsfor Create,Read,
Update and Delete. the followingare the querieswe use todoCRUD operations.
Select*fromEMP - it fetchesall the recordsfromTable.
Select*fromEMP where No=1 - itfetchesrecordsbasedoncondition,withthe "No"fieldvalues
equalsto"1".
vptaps@gmail.com
@johnxavierv—twitter
prathapkumarvemula@facebook.com
http://www.slideshare.net/xavierjohn4
07775991224
InsertintoEMP values() - itinsertsthe datain Table.like we have queriestoUpdate anddelete the
recordsin table.
Procedure in Database?
isusedto execute multipleSQLstatementinasingle request.inprocedure we write
multiple queries.if we execute the procedure,internallyitprocessall the queries.
DB Adapter
The purpose of DB adapterto execute SQLcommands andprocedures.Ingeneral we need
to write some javacode to execute SQLcommands.Buton behalf Adapter doingthattask.Justwe
needtoprovide some configurationlikeJNDIname of connectionpool andneedtoprovide SQL
operationwhatwe wantto do.
while workingonDBAdapterwe have to focuson followingsteps
 Creationof Data Source
 Configure DataSource inDB Adapter andUpdate DB Adapter
 UsingDB AdapterinApplication.
Creationof Data Source
we needtocreate Data Source inweblogicconsole.loginintoweblogicconsoleusing
credentials(http://localhost:7001/console).
clickon Service ->Data Sources -> New -> GenericData Source
enterthe followingproperties
Name : we shouldprovide the name,butitshouldbe yourchoice
JNDINa me : we shouldprovide the name,butitshouldbe yourchoice,the followingisthe format
we have to maintain,itisnot Mandatory,but itis a specificationwe shouldfollow.
jdbc/name onyourchoice
Note : if we provide name as"SOADataSource",itisgood to provide JNDIname as
"jdbc/SOADataSource"
vptaps@gmail.com
@johnxavierv—twitter
prathapkumarvemula@facebook.com
http://www.slideshare.net/xavierjohn4
07775991224
Database Type : Selectthe Database fromthe listandthenclick"Next"
inthisscreenselectDatabase DriverandClickon Next.
vptaps@gmail.com
@johnxavierv—twitter
prathapkumarvemula@facebook.com
http://www.slideshare.net/xavierjohn4
07775991224
we have two differenttypesof Database drivers,XA andnon-XA.thisi will explainlaterwhile
explainingabouttransactionmanagement.
inthisscreen,justClickon Next
In thisscreenwe needtoprovide Database detailslike Database Name,HostName,Port,Database
User Name,Password,andConfirmPasswordandthenClick onNext
vptaps@gmail.com
@johnxavierv—twitter
prathapkumarvemula@facebook.com
http://www.slideshare.net/xavierjohn4
07775991224
the above detailsrelatedtomyDatabase.
In thisscreenclickon"Test Configuration" - itvalidatesourconfiguration,if everythingwentwell it
showssuccessmessage.
inthisserverselectthe servertodeploy datasource and clickon finish
Configure Data Source in DB Adapter and Update DB Adapter
DB Adapter in
Application
DB adapter
application in
server
Data Source Created
in server
vptaps@gmail.com
@johnxavierv—twitter
prathapkumarvemula@facebook.com
http://www.slideshare.net/xavierjohn4
07775991224
Whywe needto configure Data Source in DB Adapter?
if we are usingDB adapterin our application,whenwe runourapplication,DBAdapterin
our applicationcommunicatestoDBAdapteravailable inserver,DBAdapteravilable inserver
communicatestodata source to getthe connection.usingthatconnectionwe cancommunicate to
Database.
followingare the stepstoconfigure DataSource in DB Adapter...
Loginintoweb logicconsole ->Deployments
Thenclickon DbAdapteravailable inlist
vptaps@gmail.com
@johnxavierv—twitter
prathapkumarvemula@facebook.com
http://www.slideshare.net/xavierjohn4
07775991224
ThenSelectConfiguration ->OutboundConnectionPools ->New
selectjavax.resource.cci.ConnectionFactoryandclickon"Next"
vptaps@gmail.com
@johnxavierv—twitter
prathapkumarvemula@facebook.com
http://www.slideshare.net/xavierjohn4
07775991224
provide thenJNDIname andclickon "Finish",name ismandatory,butitshouldfollow the bellow
specification,itisnotmandatoryto maintainlike this,butwe shouldfollow, eis/DB/some name
eg:eis/DB/SOADataSource2
thenit navigatesthe followingscreen...thenextractthe javax.resource.cci.ConnectionFactory, we
foundJNDIname whatwe createdinpreviousstep
vptaps@gmail.com
@johnxavierv—twitter
prathapkumarvemula@facebook.com
http://www.slideshare.net/xavierjohn4
07775991224
thenclickon JNDIname,we will navigate tofollowingscreen, the defaultvalueinXA DataSource id
empty,we shouldprovide the datasource JNDIname whatwe createdinfirststep.
thenclickon "save".
Once Againclickon deployments - > selectDbAdapterCheckBox ->Clickon"Update",itnavigates to
followingpage.
vptaps@gmail.com
@johnxavierv—twitter
prathapkumarvemula@facebook.com
http://www.slideshare.net/xavierjohn4
07775991224
selectthe option"Redeploythisapplicationusingthe followingdeploymentfiles",thenclickon
"Next",innextScreenclickon"Finish".
UsingDB Adapter in Application
we needtodrag and drop intoexternal referenceorexposedservice area incomposite.
while workingwithDBpollingoptionwe draganddrop inExposedservicesarea,inremaining
scenarioswe place inexternal reference area.
OpenJDeveloperIDEandcreate project (forcreatingprojectinJdeveloper,please followthe
document" CreatingProject inJDeveloper.docx"),Draganddrop the Database Adapterfrom
service Adapterslocation.

More Related Content

DOCX
Database adapter
PDF
XSPARQL CrEDIBLE workshop
PPTX
Search and nosql for information management @nosqlmatters Cologne
TXT
Wsomdp
PDF
Getting Creative with WordPress Queries, Again
PPTX
Php mysq
PDF
Bio it 2005_rdf_workshop05
PPTX
Mdst 3559-03-01-sql-php
Database adapter
XSPARQL CrEDIBLE workshop
Search and nosql for information management @nosqlmatters Cologne
Wsomdp
Getting Creative with WordPress Queries, Again
Php mysq
Bio it 2005_rdf_workshop05
Mdst 3559-03-01-sql-php

What's hot (15)

ODP
Cena-DTA PHP Conference 2011 Slides
PDF
Big Data for Small Businesses & Startups
PDF
bioinfolec_20070706 4th
KEY
Jython: Python para la plataforma Java (JRSL 09)
PPTX
PHP Database Programming Basics -- Northeast PHP
PPTX
Isomorphic react in real life
PDF
JSON Array Indexes in MySQL
TXT
PDF
Idoc script beginner guide
KEY
Jython: Python para la plataforma Java (EL2009)
PDF
Php summary
DOCX
SQLiteWrittenExplanation
PPTX
Networkin II Estructuras con MongoDB y Javascript
PDF
Phylogenetics Analysis in R
Cena-DTA PHP Conference 2011 Slides
Big Data for Small Businesses & Startups
bioinfolec_20070706 4th
Jython: Python para la plataforma Java (JRSL 09)
PHP Database Programming Basics -- Northeast PHP
Isomorphic react in real life
JSON Array Indexes in MySQL
Idoc script beginner guide
Jython: Python para la plataforma Java (EL2009)
Php summary
SQLiteWrittenExplanation
Networkin II Estructuras con MongoDB y Javascript
Phylogenetics Analysis in R
Ad

Viewers also liked (9)

PDF
Vermont Living Trusts and Avoiding Probate
ODP
Correo electronico
PDF
Avoid This Estate Planning Mistakes: A Burlington Estate Planning Lawyer Expl...
PDF
Intestacy in Texas: Basic Questions and Answers
PDF
Win7 pocket guide
PDF
What Is California Medi-cal
PPTX
Sample presentation reyma
PPTX
Identidad y empoderamiento. Martín Martinez
PDF
Pennsylvania Common Employment Myths: What You Don't Know Might Hurt You
Vermont Living Trusts and Avoiding Probate
Correo electronico
Avoid This Estate Planning Mistakes: A Burlington Estate Planning Lawyer Expl...
Intestacy in Texas: Basic Questions and Answers
Win7 pocket guide
What Is California Medi-cal
Sample presentation reyma
Identidad y empoderamiento. Martín Martinez
Pennsylvania Common Employment Myths: What You Don't Know Might Hurt You
Ad

Similar to Database adapter (20)

DOCX
Java full stack1
PPTX
PostgreSQL Database Slides
PPT
Java Developers, make the database work for you (NLJUG JFall 2010)
PPTX
Database Basics
PPTX
Mastering-SQL-Your-Guide-to-Database-Development.pptx
PPTX
complete_DBMS_vtu_engineering presentation
PPTX
Sql introduction
PPT
Sql server T-sql basics ppt-3
PPT
Sql server building a database ppt 12
PPT
Sql1
PPT
DBMS - Introduction
PDF
Immediate download Concepts of Database Management System 1st Edition Shefali...
PDF
Session 1 - Databases-JUNE 2023.pdf
DOCX
Oracle 11g developer on linux training in bangalore
DOCX
Oracle 11g developer on linux training in bangalore
DOCX
PDF
4.Database Management System.pdf
PDF
Concepts of Database Management System 1st Edition Shefali Naik
PDF
Oracle Material.pdf
PDF
PostgreSQL Tutorial For Beginners | Edureka
Java full stack1
PostgreSQL Database Slides
Java Developers, make the database work for you (NLJUG JFall 2010)
Database Basics
Mastering-SQL-Your-Guide-to-Database-Development.pptx
complete_DBMS_vtu_engineering presentation
Sql introduction
Sql server T-sql basics ppt-3
Sql server building a database ppt 12
Sql1
DBMS - Introduction
Immediate download Concepts of Database Management System 1st Edition Shefali...
Session 1 - Databases-JUNE 2023.pdf
Oracle 11g developer on linux training in bangalore
Oracle 11g developer on linux training in bangalore
4.Database Management System.pdf
Concepts of Database Management System 1st Edition Shefali Naik
Oracle Material.pdf
PostgreSQL Tutorial For Beginners | Edureka

More from xavier john (20)

PPT
Unix day4 v1.3
PPT
Unix day3 v1.3
PPT
Unix day2 v1.3
TXT
Interview questions
DOCX
Xavier async callback_fault
DOCX
Custom faultpolicies
DOCX
All adapterscommonproperties
DOCX
Custom faultpolicies
DOCX
Oracle business rules
DOCX
Soap.doc
DOCX
Soa installation
PPT
DOCX
Webservices
DOCX
While.doc
DOCX
Xml material
DOC
DOC
X query
PPSX
Xsd basics
DOC
DOC
Unix day4 v1.3
Unix day3 v1.3
Unix day2 v1.3
Interview questions
Xavier async callback_fault
Custom faultpolicies
All adapterscommonproperties
Custom faultpolicies
Oracle business rules
Soap.doc
Soa installation
Webservices
While.doc
Xml material
X query
Xsd basics

Recently uploaded (20)

PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
AI in Product Development-omnex systems
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
ai tools demonstartion for schools and inter college
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
System and Network Administraation Chapter 3
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
history of c programming in notes for students .pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
AI in Product Development-omnex systems
VVF-Customer-Presentation2025-Ver1.9.pptx
How to Choose the Right IT Partner for Your Business in Malaysia
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
ai tools demonstartion for schools and inter college
Design an Analysis of Algorithms II-SECS-1021-03
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
System and Network Administraation Chapter 3
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
history of c programming in notes for students .pptx
Design an Analysis of Algorithms I-SECS-1021-03
Softaken Excel to vCard Converter Software.pdf
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Wondershare Filmora 15 Crack With Activation Key [2025
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PTS Company Brochure 2025 (1).pdf.......
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Internet Downloader Manager (IDM) Crack 6.42 Build 41

Database adapter