25
Chapters 14 & 15 Chapters 14 & 15 Internet Databases Internet Databases

Chapters 14 & 15 Internet Databases. E-Commerce Bringing new products, services, or ideas to market, supporting and enhancing business operations

Embed Size (px)

Citation preview

Page 1: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Chapters 14 & 15Chapters 14 & 15

Internet DatabasesInternet Databases

Page 2: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

E-CommerceE-Commerce

Bringing new products, services, or ideas to Bringing new products, services, or ideas to market, supporting and enhancing business market, supporting and enhancing business operationsoperations

Mainly identified with the use of the Internet Mainly identified with the use of the Internet as a medium to transact business and add as a medium to transact business and add value to an organization.value to an organization.

Changed Business EnvironmentChanged Business Environment

Page 3: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Benefits of E-CommerceBenefits of E-Commerce

Convenience Convenience Quick and Convenient Comparison Quick and Convenient Comparison

ShoppingShopping Reduced Cost / Increased CompetitionReduced Cost / Increased Competition 24 / 7 / 365 operations24 / 7 / 365 operations Global AccessGlobal Access Lower Entry BarriersLower Entry Barriers Increased Customer Market KnowledgeIncreased Customer Market Knowledge

Page 4: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Disadvantages of E-CommerceDisadvantages of E-Commerce

Hidden CostsHidden Costs– HardwareHardware– SoftwareSoftware

Technology is not perfectTechnology is not perfect Thin profit margins (must be competitive)Thin profit margins (must be competitive) SecuritySecurity Loss of PrivacyLoss of Privacy Low Levels of Customer ServiceLow Levels of Customer Service Legal IssuesLegal Issues

Page 5: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Major E-Commerce StylesMajor E-Commerce Styles

Business to Business (B2B)Business to Business (B2B) Business to Consumer (B2C)Business to Consumer (B2C)

– Consumer to BusinessConsumer to Business– Consumer to ConsumerConsumer to Consumer– Government to ConsumerGovernment to Consumer– Government to BusinessGovernment to Business

IntraBusiness (using Intranet)IntraBusiness (using Intranet)

Page 6: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

E-Commerce ArchitectureE-Commerce Architecture

3 Layered Organization of Services that 3 Layered Organization of Services that interact, using a common set of protocols. interact, using a common set of protocols. The Internet is the main transport medium.The Internet is the main transport medium.

Basic Internet ServicesBasic Internet Services Business Enabling ServicesBusiness Enabling Services E-Commerce Business ServicesE-Commerce Business Services

Page 7: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Basic Internet ServicesBasic Internet Services

Web BrowserWeb Browser HTMLHTML FTPFTP HTTPHTTP TCP/IPTCP/IP Web ServerWeb Server E-MailE-Mail

Page 8: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Business Enabling ServicesBusiness Enabling Services

SecuritySecurity PersonalizationPersonalization Database IntegrationDatabase Integration Usability TestingUsability Testing Web Site Monitoring and AnalysisWeb Site Monitoring and Analysis Transaction ProcessingTransaction Processing Search Search MessagingMessaging Wireless Device SupportWireless Device Support

Page 9: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

E-Commerce Business Services E-Commerce Business Services

InventoryInventory OrderingOrdering TrackingTracking Product SupportProduct Support Customer ServiceCustomer Service ShippingShipping Etc.Etc.

Page 10: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

SecuritySecurity Protect transaction data from unauthorized modifications during Protect transaction data from unauthorized modifications during

Internet travel – Transaction SecurityInternet travel – Transaction Security– Secure Socket LayerSecure Socket Layer– S-HTTPS-HTTP

Authentication - Warrantee identity of transaction participants (Buyers Authentication - Warrantee identity of transaction participants (Buyers and Sellers)and Sellers)

Protect Resources (data and computer)Protect Resources (data and computer) Customer’s personal dataCustomer’s personal data Privacy IssuesPrivacy Issues Property against Criminal ActivityProperty against Criminal Activity

– Digital CertificatedDigital Certificated– EncryptionEncryption

Private KeyPrivate Key Public KeyPublic Key

Resource SecurityResource Security– Protect against virus, hackers, DOS attacksProtect against virus, hackers, DOS attacks

Page 11: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Database Design for E-CommerceDatabase Design for E-Commerce

Don’t reinvent the wheelDon’t reinvent the wheel No need for ‘new’ design techniquesNo need for ‘new’ design techniques ScopeScope

– Facilitate sales of products and servicesFacilitate sales of products and services– Show products and servicesShow products and services– Conduct basic sales transactionsConduct basic sales transactions– Customer ServiceCustomer Service– Product Returns Web Customer ProfilingProduct Returns Web Customer Profiling

Page 12: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Basic Business RulesBasic Business Rules

Sell Products Sell Products Product and Customer Product and Customer TablesTables

Customer may place multiple ordersCustomer may place multiple orders– 1:M Relationship1:M Relationship

Order contains Multiple LinesOrder contains Multiple Lines– 1:M Relationship1:M Relationship

Order Lines refer to one ProductOrder Lines refer to one Product– 1:M Relationship1:M Relationship

Page 13: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

XML – Extensible Markup LanguageXML – Extensible Markup Language

Meta-LanguageMeta-Language Represents and Manipulates data elementsRepresents and Manipulates data elements Facilitates Exchange of structured documents over Facilitates Exchange of structured documents over

the webthe web– World Wide Web Consortium (W3C) published standard World Wide Web Consortium (W3C) published standard

definition in 1998definition in 1998 Allow definition of meta-tags to describe data Allow definition of meta-tags to describe data

elementselements Case SensitiveCase Sensitive Not A Replacement for HTMLNot A Replacement for HTML

Page 14: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

XML – Document Type DefinitionXML – Document Type Definition

Files with .dtd extension to describe XML Files with .dtd extension to describe XML elementselements

Provides composition of database’s logical Provides composition of database’s logical modelmodel

Defines syntax rules for each XML Defines syntax rules for each XML documentsdocuments

Defines Valid tagsDefines Valid tags

Page 15: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

XML SchemaXML Schema

Advances data definition language used to Advances data definition language used to describe structure of XML documentsdescribe structure of XML documents

Closely maps database terminology and Closely maps database terminology and featuresfeatures

Checks for database typesChecks for database types Validates data for out-of-range valuesValidates data for out-of-range values XML Schema Definition (XSD) files use XML Schema Definition (XSD) files use

syntax like SML documentsyntax like SML document

Page 16: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Web DatabasesWeb Databases

Stateless Environment – The web is a Stateless Environment – The web is a stateless system.stateless system.

Data processing requires additional softwareData processing requires additional software– JavaJava– Java ScriptJava Script– VB ScriptVB Script

Page 17: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Web Database ConnectivityWeb Database Connectivity

Allows rapid response to competitive Allows rapid response to competitive pressurespressures– New ServicesNew Services– New ProductsNew Products

Enhanced Customer SupportEnhanced Customer Support Fast Effective Information DisseminationFast Effective Information Dissemination

Page 18: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Characteristics / Benefits of Internet Characteristics / Benefits of Internet TechnologyTechnology

Hardware / Software IndependenceHardware / Software Independence– Cost SavingsCost Savings– Uses Existing EquipmentUses Existing Equipment– Platform IndependencyPlatform Independency

Common Simple User InterfaceCommon Simple User Interface– Reduced Training and SupportReduced Training and Support

Location IndependenceLocation Independence– Global AccessGlobal Access– Reduced Costs for Dedicated ConnectionsReduced Costs for Dedicated Connections

Rapid Development at Manageable CostRapid Development at Manageable Cost– Development Tools (Plug and Play)Development Tools (Plug and Play)– Low Entry Costs (Often Free Web Servers)Low Entry Costs (Often Free Web Servers)– Available Software and Access ToolsAvailable Software and Access Tools

Page 19: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Web Server InterfacesWeb Server Interfaces

CGI – Common Gateway InterfacesCGI – Common Gateway Interfaces– Uses Script files to connect to databaseUses Script files to connect to database– Perl, C++, VBPerl, C++, VB

API – Application Programming InterfaceAPI – Application Programming Interface– NewerNewer– More EfficientMore Efficient– Uses DLL’sUses DLL’s– Memory ResidentMemory Resident

Netscape APINetscape API Internet Server API (Microsoft)Internet Server API (Microsoft)

Cold Fusion – Web Application ServerCold Fusion – Web Application Server

Page 20: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Web Server ApplicationWeb Server Application

Middleware applicationMiddleware application Expands functionality of Web servers by Expands functionality of Web servers by

connecting them to wide range of servicesconnecting them to wide range of services– DatabasesDatabases– Directory SystemsDirectory Systems– Search EnginesSearch Engines

Provides a Consistent Run-Time Environment for Provides a Consistent Run-Time Environment for Web-ApplicationsWeb-Applications

Allows Client to Interact with Databases and Allows Client to Interact with Databases and Present Database-Driven Data in a Web PagePresent Database-Driven Data in a Web Page

Page 21: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Server Side ExtensionServer Side Extension

Part of Web Server ApplicationPart of Web Server Application Interacts directly with web serverInteracts directly with web server Handles specific requestsHandles specific requests

Page 22: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Middleware Connectivity to Middleware Connectivity to DatabasesDatabases

Native SQLNative SQL ODBC (most common)ODBC (most common) OLC DB – Object Linking and Embedding OLC DB – Object Linking and Embedding

Database Interface Database Interface – WindowsWindows

Page 23: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Web Browser – Client MachineWeb Browser – Client Machine

End User Web InterfaceEnd User Web Interface Interprets HTMLInterprets HTML Client-Side ExtensionsClient-Side Extensions

– Plug InsPlug Ins– Java / Java ScriptJava / Java Script– Active X and VB ScriptActive X and VB Script

Page 24: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Special Considerations for Internet Special Considerations for Internet DatabasesDatabases

Involved more than just database-enabled Involved more than just database-enabled applicationsapplications

Data TypesData Types– Integrate from Multiple SourcesIntegrate from Multiple Sources– How to store and extract dataHow to store and extract data– OverheadOverhead– Browser SupportBrowser Support

Page 25: Chapters 14 & 15 Internet Databases. E-Commerce  Bringing new products, services, or ideas to market, supporting and enhancing business operations

Special Considerations for Internet Special Considerations for Internet DatabasesDatabases

Data SecurityData Security– Web Server LevelWeb Server Level– RMDBS VendorRMDBS Vendor– Web to Database MiddlewareWeb to Database Middleware– Must Support E-CommerceMust Support E-Commerce

Transaction Management (stateless env.)Transaction Management (stateless env.) Client Side Data ValidationClient Side Data Validation Cannot Use Multiple Table Data Entry – Requires Cannot Use Multiple Table Data Entry – Requires

Denormalization of TablesDenormalization of Tables Other Operational and Management ChallengesOther Operational and Management Challenges