Mobile dbms

13,824 views

Published on

Published in: Technology, Business
0 Comments
20 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
13,824
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1,206
Comments
0
Likes
20
Embeds 0
No embeds

No notes for slide

Mobile dbms

  1. 1. Mobile Database Management System DATABASE HIT THE ROADS…..9/3/2012 1
  2. 2. WHAT IS MOBILE DATABASE? A mobile database is a database that can be connected to by a mobile computing device over a mobile network. A database that is portable and physically separate from the corporate database server. But Mobile Database is capable of communicating with that corporate database server from remote sites allowing the sharing of corporate database.9/3/2012 2
  3. 3. It can also be defined as a system with the following structural and functional properties• Distributed system with mobile connectivity ( A mode in which a client or a server can establish communication with each other whenever needed )• Full database system capability• Complete spatial mobility• Wireless and wired communication capability9/3/2012 3
  4. 4. ABILITY OF MOBILE DBMS SHOULD BE TO… communicate with centralized database server through modes such as wireless or Internet access; replicate data on centralized database server and mobile device; synchronize data on centralized database server and mobile device; capture data from various sources such as Internet; manage/analyze data on the mobile device; create customized mobile applications.9/3/2012 4
  5. 5. Communication Corporate Corporate Link Laptop DB Mobile DBMS Server Corporate Mobile DB DBMS Mobile DBMS PDA Mobile DB9/3/2012 5
  6. 6. NEED FOR MOBILE DATABASE Need for data to be collected as it happens Business Today Means Anytime, Anywhere, Any Device Mobile users must be able to work without a wireless connection due to poor or even non-existent connections. Need to access data while the mobile user is disconnected from the network—wireless or otherwise. This capability is best implemented by incorporating persistent data storage using a mobile database in your application.9/3/2012 6
  7. 7. FEATURES OF MOBILE DATA BASE Provide relational database services but require little memory Analyze and manipulate data on a mobile device Handle SQL queries on the road Users can choose to - Work online with a central DBMS server - Download data & work on them - Capture real-time data & Synchronize later Are customized for mobile applications9/3/2012 7
  8. 8. APPLICATIONS OF MOBILE DATABASES  BUSINESS  information on customers, competitors, and market trends – anytime, anywhere….  Salespersons can update sales & customer data on the move.  PUBLIC SECTOR  US Army uses mobile database technology to get current inventory and readiness info that can save them logistical costs.9/3/2012 8
  9. 9.  HEALTH SECTOR  Used by Physicians to store and retrieve information while making their rounds.  Used by doctors & Para medics to retrieve vital patient history & treatment info while attending to patients in battle fields & remote accident locations..9/3/2012 9
  10. 10. DBMS FOR MOBILE DEVICES • DBMS’s for mobile device should be dedicated to optimizing at least one of the following, preferably both: power optimization memory management9/3/2012 10
  11. 11. POWER OPTIMIZATION • Mobile devices such as laptops, cell phones, PDA’s, and radios have a limited power supply. • So we needed to optimize our DBMS to use as few resources as possible while providing the necessary functionality MEMORY MANAGEMENT • Memory is an important criteria as far as mobile database systems are concerned. • It is important to decide how much of the devices internal memory should be dedicated to the DB9/3/2012 11
  12. 12. MOBILE DATABASE ARCHITECTURE For any mobile architecture, things to be considered are: Users are not attached to a fixed geographical location Mobile computing devices: low-power, low-cost, portable Wireless networks Mobile computing constraints9/3/2012 12
  13. 13. THREE PARTIES• Mobile databases typically involve three parties: FIXED HOSTS MOBILE UNITS BASE STATIONS9/3/2012 13
  14. 14. Fixed hosts perform the transaction and data management functions with the help of database servers. Mobile units are portable computers that move around a geographical region that includes the cellular network (or "cells") that these units use to communicate to base stations. (Note that these networks need not be cellular telephone networks.) Base stations are two-way radios, installations in fixed locations, that pass communications with the mobile units to and from the fixed hosts. They are typically low-power devices such as mobile phones, portable phones, or wireless routers.9/3/2012 14
  15. 15. When a mobile unit leaves a cell serviced by a particular base station,that station transparently transfers the responsibility for the mobileunits transaction and data support to whichever base station coversthe mobile units new location9/3/2012 15
  16. 16. MDS MARKET SHARE• Sybase SQL Anywhere dominates the mobile database field with over 68%.• IBM’s DB2 Everyplace is second market share holder.• Third place is shared by Microsoft’s SQL Server Compact and Oracle9i Lite.• Apple’s IOs use DataGlass mobile database by Impathic.9/3/2012 16
  17. 17. SQL Anywhere• Developed By - Watcom• Initial Name - Watcom SQL• Operating System - Cross-Platform• Type - RDBMS• Website: http://www.sybase.com/products/databasemanagement/sqlany where9/3/2012 17
  18. 18. • SQL Anywhere is a relational database management system(RDBMS) product from the company Sybase iAnywhere, a subsidiary of Sybase.• SQL Anywhere can be run on Windows, Windows CE, Mac OS X, and various UNIX platforms.• Database files are independent of the operating system, allowing them to be copied between supported platforms.• The engine supports stored procedures, and it can also function as a mobile database.9/3/2012 18
  19. 19. • Stored procedures may return result sets, i.e. the results of a SELECT statement such result sets can be processed using cursors.• SQL Anywhere is used in several contexts, including as an embedded database, particularly as an application data store.• It can be used as a database server for work groups or for small or medium-sized businesses.• World Vision Canda - World Vision Canada, with Sybase partner FieldWorker Products Limited, has developed and prototyped an innovative solution – Last Mile Mobile Solutions— based on SQL Anywhere, that allows the organization to efficiently aid in emergency situations. 9/3/2012 19
  20. 20. Scimore DB• Developed By - Scimore UAB• Stable Release - 4.0.2581.222 / Jan 2• Operating System - Windows• Type - RDBMS• License - Proprietary• Website - www.scimore.com9/3/2012 20
  21. 21. SQLite• Developed By - D. Richard Hipp• Initial Release - August 2000• Stable Release - 3.7.10 Jan 16 2012• Written in - C• Operating System - Cross-Platform• Size - 275kB• Type - RDBMS(Embeded)• License - Public Domain• Website - www.sqlite.org9/3/2012 21
  22. 22. Max DB size 128 TB Max table size Limited by file size Max row size Limited by file size Max columns per row 32767 Max CHAR size 2 GB Max NUMBER size 64 bits Min DATE value No DATE type Max DATE value No DATE type Max column name size Unlimited9/3/2012 22
  23. 23. What is SQLite? Is an ACID compliant embedded RDBMS. Implements most of the SQL standard. Uses dynamically and weakly typed SQL syntax. Can read and write sequentially. Most widely used browsers, operating system, embedded system and many others.9/3/2012 23
  24. 24. When to use SQLite? Is different from most other SQL database engines in this• Simple to administer.• Simple to operate.• Simple to embed in a larger program.• Simple to maintain and customize.• Small and fast.• But MAINLY Very Reliable as it is so simple.9/3/2012 24
  25. 25. WHEN NOT TO USE SQLite? Its should not be used where simplicity is not the main criteria and where restriction to the common user are more.• Simplicity of administration• Simplicity of Implementation• Maintenance are more important than the countless complex features that enterprise database engines provide.• SQLite is not designed to replace Oracle. It is designed to replace fopen().9/3/2012 25
  26. 26. COMMANDS IN SQLite?• To Create Database : $ sqlite3 test.db• To Create Table With Structure: $ sqlite3 test.db “create table t1 (t1key INTEGER PRIMARY KEY,data TEXT,num double);”9/3/2012 26
  27. 27. INSERTING DATA IN SQLite?• The insert command is similar to the other SQL command INSERT COMMAND. $ sqlite3 test.db "insert into t1 (data,num) values (This is sample data,3);“ $ sqlite3 test.db "insert into t1 (data,num) values (More sample data,6);“ $ sqlite3 test.db "insert into t1 (data,num) values (And a little more,9);"9/3/2012 27
  28. 28. WHAT ABOUT SELECT STATEMENT? As expected the select statement is not different from the other SQL SELECT statement. The syntax remains the same. $ sqlite3 test.db "select * from t1"; 1|This is sample data|3| 2|More sample data|6| 3|And a little more|9|9/3/2012 28
  29. 29. HOW TO EXIT SQLite? To exit out from the SQLite is very easy as 1,2,3… There are three small commands you need to use to exit. SQLite version 3.0.8 Enter ".help" for instructions sqlite> .q sqlite> .quit sqlite> .exit $9/3/2012 29
  30. 30. FAMOUS CLIENTS OF SQLITE You would have never thought that these would be!!!!!!!!!!!!!!!!!!!!!!!!9/3/2012 30
  31. 31. MOBILE DATABASE SYSTEM LIMITATIONS• Limited wireless bandwidth• Wireless communication speed• Limited energy source (battery power)• Less secured• Vulnerable to physical activities• Hard to make theft proof.9/3/2012 31
  32. 32. HOW TO SELECT A SUITABLE MOBILE DATABASEOS Platform a Likely Requirement PointBase , IBM DB2 Everyplace and Oracle9i Lite also have broad platform supportSession Persistence Increases Usability Wired systems generally provide continuous connectivity between client devices and the server. The synchronization process between a PDA and a PC over a USB connection, for example, seldom fails. Oracle9i Lite incorporates client-side representation of server data and applications.9/3/2012 32
  33. 33.  Even if your PDA loses connection with the server database, use of the application continues with the most up-to-date information in the database. After the client device regains the connection, Oracle9i Lite automatically updates the central server database. If session persistence features are not available in your database of choice, then ponder including wireless middlewareSecurity Provisions Protect Data Security is very important for mobile applications, especially wireless and public solutions. This is paramount when disclosure of information results in potential damage or loss to a company. For mobile applications, be sure to implement complete end-to-end security iAnyWhere, for example, includes 128-bit encryption between the client device and the server. This ensures that any transfer of data is not left open to hackers.9/3/2012 33
  34. 34. Memory Footprint Matters Because client devices have limited memory, the mobile database software should fit within a relatively small footprint. Look for databases requiring less than 500KB of memory. The Sybase iAnywhere UltraLite database, for instance, only needs 150KB of space. PointBase does even better with needs for only 45KB.9/3/2012 34

×