270 likes | 473 Views
Oracle 11g Database Architectures. Learning Objectives. Understand the client / server system. Understand the DBMS role in that system. Explain the architecture of the modern DBMS. A Simple Client / Server System. Components Client Server Network LAN WAN Internet
E N D
Learning Objectives Understand the client / server system. Understand the DBMS role in that system. Explain the architecture of the modern DBMS.
A Simple Client / Server System Components • Client • Server • Network • LAN • WAN • Internet • Way more clients than servers.
Example of C/S Architecture Server w/ Web Server Client w/ Web Browser • Typing http://www.syr.edu in client web browser sends GET request to web server • Web server processes GET request by finding file on server and sending it back to 128.230.11.84 as a stream of HTML • Client parses the HTML and draws the web page in the browser window. TCP/IP Network GET /index.html Data Stream: <html><head>…. HTTP protocol implementedby both browser and web server www.syr.edu 128.230.11.84
Client/Server Architectures The application consists of: • 2 Tier – client and server • 3-Tier – client, application, database • N-Tier – client, application(s), database(s)
Two-Tier Client/Server Client talks directly to server Eg’s: SQL Management Studio in IST359
Middleware The application layer protocol and its implementation which facilities communication among client and server. Web HTTP / SOAP / REST Database ODBC / JDBC
Three-Tier Client/Server Middleware exists between each tier. More Complex than Two-tier More Scalable than Two-tier
Three-Tier Web • Middleware: • Client – Web Server HTTP • Web Server – Database Server ODBC / Pipes / JDBC • Web / Db Servers in data center on same network.
N-Tier 3 Tier plus • Caching Frameworks • Load Balancers • Multiple Application Tiers • Cryptographic Accelerators • Heterogeneous DBMS’s • Web Scale: • Varnish, Memcached, Ngnix, Tomcat, AppFabric
Sample N-Tier Setup Web Server 1 Reverse Proxy +Cache +Load Balancer Web Server 2 Internet Web Server 3 DBMS 2 DBMS 1 Replication Clients
Service-Oriented Architecture • You can do business with a company: • Via their user interface. • Programmatically using their API’s • Think Twitter, Foursquare, Amazon, Netflix, Google Maps, Twilio, etc… • Customers and business partners can build applications using the company’s APIs as a “service” • Allows for a greater level of integration than is otherwise possible
General Architecture of the Modern DBMS SERVER- computer hosting the database service. INSTANCE – Install of the product. Most products can install multiple instances. LISTENER – Background process that manages the listener. CATALOG – Unique named set of schemas. This is a database at the MySQL, SQL Server and Oracle products. SCHEMA – Logical Grouping of objects within the CATALOG OBJECTS – Tables, Keys, Constraints, Views, Procedures.
General Architecture of the Modern DBMS Server Instance Catalog (db) Catalog (db) Schema Schema Objects Instance Catalog (db) Catalog (db) Schema Schema Objects
Oracle vs. SQL Server – Architecture Comparison Oracle SQL Server All instances use same listener. SQL Server designed to only work on Windows. SQL Server does not have tablespaces. Users given access to Database to achieve same result. • Instances can use separate listeners. • Oracle designed to work independently from the OS. • Oracle uses Tablespaces (storage independent of database) • Users given access to Tablespace.
Oracle Enterprise Manager • User account must have DBA role • Oracle Enterprise Manager (OEM) • Three-tier architecture • Console • Oracle Management Server (OMS) • Interacts with repository • Makes it easier for DBAs to administer multiple databases in organization’s network
Walk-Through 1/2 • Connect to ITELL via vSphere Client • Logon to Virtual Machine • Administrator / SU2orange • Takes a while for Oracle to load (Taskmgr) • Oracle Enterprise Manager • SYS / SU2orange (as SYSDBA)
Walk-Through 2/2 Database Login Listener • SQL Plus – Command line utility • Two ways to log in: • Logon, connect to a database • SYS@localhost.orcl as SYSDBA • Logon, do not connect to a database • SYS as SYSDBA
Database Architectures Questions? Comments?