Introduction to Databases

Fundamentals of database systems
29 Jun 201512:06

Summary

TLDRThis script introduces the fundamental concepts of database systems, aimed at computer science and technology students. It explains databases as interrelated data collections, emphasizing the importance of relationships between data points. The script covers the role of Database Management Systems (DBMS) in handling databases efficiently, ensuring data storage, visualization, querying, and manipulation. It also highlights the advantages of DBMS over traditional file systems, such as reducing redundancy and inconsistency, ensuring data integrity, supporting atomic operations, allowing concurrency, and providing security measures. The overview sets the stage for further exploration of the relational data model in subsequent modules.

Takeaways

  • 📚 The course is an introduction to Database Systems, primarily for Computer Science and Engineering students as part of their undergraduate curriculum.
  • 🔍 A database is defined as a collection of interrelated data, emphasizing the importance of the relationships between data points, not just the data itself.
  • 🏢 The script gives an example of how an institution might use a database to organize records of various entities such as teachers, students, courses, etc.
  • 💼 The Database Management System (DBMS) is described as a system that provides an environment to handle a database, with capabilities for data storage, visualization, querying, and manipulation.
  • 🔄 The DBMS addresses issues of data redundancy and inconsistency by ensuring data is stored in one place, thus avoiding multiple copies and potential discrepancies.
  • 🔒 Data isolation is highlighted as a feature of DBMS where data is stored in a binary format, accessible only through a database interface, protecting it from unauthorized direct access.
  • 🛡️ Data integrity is a key aspect of DBMS, where it enforces rules and constraints to ensure the accuracy and consistency of the data, such as valid ranges for academic grades.
  • 💰 The script uses the example of a bank transfer to illustrate the concept of atomicity in database operations, where a transaction is either fully completed or not done at all.
  • 👥 Concurrency is explained as the ability of a database to handle multiple operations simultaneously without conflict, ensuring that operations on the same data are coordinated.
  • 🔒 Security is a critical feature of DBMS, with mechanisms to protect data and control access at various levels, such as restricting unauthorized access to employee records or allowing students to update their own addresses but not their grades.
  • 🔑 The script concludes by emphasizing the importance of these DBMS features over a traditional file system, highlighting the benefits of using a DBMS in managing complex and sensitive data.

Q & A

  • What is the primary function of a database?

    -A database primarily serves as a collection of interrelated data, where data fields or points have some form of relationship with each other.

  • Why is the Database Management System (DBMS) essential?

    -DBMS is essential because it provides an environment to handle a database efficiently and conveniently, including programs and interfaces for data storage, visualization, querying, and manipulation.

  • What are the four main operations of a DBMS?

    -The four main operations of a DBMS are data storage, data visualization, data querying, and data manipulation.

  • How does a database differ from a simple file system in terms of data redundancy and inconsistency?

    -A database reduces redundancy and inconsistency by storing each piece of data in one place only, unlike a file system where the same data might be stored in multiple files, leading to potential inconsistencies.

  • What is data isolation and why is it important in a database?

    -Data isolation refers to the use of a standard format for data and a single interface for data access, which simplifies the process for end-users regardless of the underlying data format.

  • Why is data integrity crucial in a database?

    -Data integrity is crucial because it ensures that the data adheres to certain semantic rules or validity constraints, preventing incorrect or invalid data from being entered into the database.

  • What is the significance of atomicity in database operations?

    -Atomicity ensures that database operations are treated as a single unit, which either completely succeeds or completely fails, maintaining the consistency and reliability of the database.

  • What does concurrency in databases mean and why is it important?

    -Concurrency in databases means that multiple processes can occur simultaneously without interfering with each other, provided there is no conflict over specific data items, thus improving efficiency and performance.

  • How does a database system ensure security of data?

    -A database system ensures data security by implementing measures such as restricting access to authorized users only and providing attribute-level security to control access to specific data fields within records.

  • What are the six key advantages of a DBMS over a file system as discussed in the script?

    -The six key advantages are reducing redundancy and inconsistency, ensuring data isolation, maintaining data integrity, supporting atomic operations, allowing concurrency, and providing security.

  • Can you provide an example of how a database system might be used in an educational institution?

    -In an educational institution, a database system could be used to store and manage records of various units such as teachers, students, employees, courses, and other related information, all within a single, interconnected database.

Outlines

00:00

📚 Introduction to Database Systems

The script introduces the fundamental concepts of database systems, typically a curriculum for computer science and technology students. It emphasizes the importance of databases as a collection of interrelated data, rather than just data points. The role of a Database Management System (DBMS) is highlighted as a system that provides an environment to handle a database, including data storage, visualization, querying, and manipulation. The script also poses a question about the advantages of a database system over a regular file system, setting the stage for a deeper exploration of database functionalities.

05:01

🔍 Benefits of DBMS Over File Systems

This paragraph delves into the advantages of Database Management Systems (DBMS) over traditional file systems. It discusses the reduction of data redundancy and inconsistency issues in DBMS, ensuring that data is stored in a single location to avoid multiple copies and potential discrepancies. The paragraph also touches on data isolation, where data is stored in a format that is independent of the user interface, allowing users to access data without understanding its underlying binary format. Furthermore, it covers data integrity, which involves maintaining the accuracy and consistency of data, and the atomicity of operations, ensuring that database transactions are processed in a complete and error-free manner. The paragraph concludes with a brief mention of concurrency, indicating that DBMS allows multiple operations to occur simultaneously without conflict.

10:01

🛡️ Security and Advanced Features of DBMS

The final paragraph of the script focuses on the security aspects and additional features of DBMS. It explains how DBMS ensures data security by preventing unauthorized access and providing attribute-level access privileges. The paragraph also discusses the concept of concurrency in more detail, describing how DBMS allows multiple transactions to occur at the same time without interfering with each other. Furthermore, it outlines the importance of atomicity in operations, where a transaction is treated as a single, indivisible process that either fully completes or does not occur at all. The script ends by summarizing the key points discussed, including redundancy, data isolation, data integrity, atomicity, concurrency, and security, and indicates that the next module will cover the relational data model.

Mindmap

Keywords

💡Database

A database is a systematically organized collection of data. It is central to the video's theme as it forms the basis of database systems. In the script, the concept of a database is introduced as a set of interrelated data points, emphasizing the importance of the relationships between data fields, which distinguishes it from a mere collection of data.

💡Database Management System (DBMS)

DBMS is a system that provides a way to handle a database. It is integral to the video's narrative as it explains the functionalities provided by DBMS for managing a database. The script mentions that DBMS should be efficient and user-friendly, typically including programs and interfaces for data storage, retrieval, visualization, querying, and manipulation.

💡Data Redundancy

Data redundancy refers to the storage of the same data in multiple places. The video discusses how DBMS helps in reducing redundancy and inconsistency problems. The script gives an example of how in a well-developed database, information such as a student's name or a staff member's role number is stored only in one place to avoid duplication and inconsistency.

💡Data Integrity

Data integrity ensures that the data is accurate and consistent. It is a key concept in the video, which explains the importance of maintaining the validity of data. The script illustrates this with examples like a student's CPI or grade point average, which should fall within a specific range, and the database system enforces these constraints to prevent invalid data entries.

💡Atomicity

Atomicity is a property of database transactions that ensures that each transaction is treated as a single 'unit', which either succeeds completely or fails completely. The video uses the example of a bank transfer to explain how atomicity prevents partial completion of transactions, thus maintaining database consistency.

💡Concurrency

Concurrency in the context of databases refers to the ability of the system to manage multiple operations or transactions at the same time without interference. The script explains how databases handle concurrent transactions, ensuring that they do not create conflicts or inconsistencies in the data.

💡Data Isolation

Data isolation is the concept of using a specific format for data and a single interface for data access. The video explains how this concept simplifies the handling of data by abstracting the complexity from the end-user. The script mentions that data is stored in a binary format, and the database interface allows users to access it in a specified format.

💡Security

Security in databases is about protecting data from unauthorized access and ensuring that only authorized users can view or manipulate the data. The script discusses the importance of security in databases, including attribute-level security and access privileges, which allow for fine-grained control over who can access or modify specific pieces of data.

💡Transaction

A transaction in the context of databases is a logical unit of work that consists of one or more operations. The video emphasizes the importance of transactions in maintaining the integrity of the database. The script uses the bank transfer example to illustrate how a transaction ensures that the debit and credit operations are completed successfully or not at all.

💡Inconsistency

Inconsistency in databases refers to the situation where the same data is stored in different places and may have different values. The video explains how DBMS helps to avoid data inconsistency by storing each piece of data in only one place, thus preventing discrepancies that can arise from multiple copies of the same data.

Highlights

Database systems are typically a curriculum for undergraduate students in computer science and technology.

A database is essentially a collection of interrelated data, not just any data.

Databases are used to store and manage data for various entities such as teachers, students, and courses within an institution.

A Database Management System (DBMS) provides an environment to handle a database, emphasizing ease of use and efficiency.

DBMS allows for data storage, visualization, querying, and manipulation.

File systems can store information but do not manage data redundancy and inconsistency issues as effectively as DBMS.

Data redundancy refers to the storage of the same data in multiple places, which is not allowed in well-designed databases.

Inconsistency in data can occur when the same information is stored in different places and not updated uniformly.

DBMS ensures data is stored once, reducing redundancy and inconsistency.

Data isolation is a feature of DBMS where data is stored in a binary format, inaccessible to end-users without a specific interface.

Data integrity in DBMS involves maintaining the accuracy and consistency of data according to defined rules and constraints.

DBMS provides atomicity, ensuring that database operations are completed fully or not at all, preventing partial updates.

Concurrency in DBMS allows multiple transactions to occur simultaneously without interfering with each other.

Security in DBMS is crucial, ensuring that data is protected and access is controlled based on user roles and permissions.

Attribute-level security in DBMS allows for fine-grained access control within a record.

DBMS offers significant advantages over file systems in terms of redundancy, data isolation, integrity, atomicity, concurrency, and security.

The next module will cover the relational data model, a fundamental concept in database systems.

Transcripts

play00:09

ডাটাবেস সিস্টেমের(Database Systems) মৌলিক বিষয়গুলো

play00:12

নিয়ে এই কোর্সে সবাইকে স্বাগতম।

play00:15

এটি প্রায়শই কম্পিউটার বিজ্ঞান এবং প্রযুক্তি

play00:19

শিক্ষার্থীদের জন্য একটি স্নাতক পাঠ্যক্রম।

play00:22

তাই চলুন আমরা শুরু করি, ডাটাবেস এর অর্থ

play00:27

কী তা বুঝতে।

play00:29

একটি ডাটাবেস মূলত একটি তথ্য সংগ্রহ

play00:33

বা সমাহার(collection of data) বলা যায়।

play00:37

তবে, এটি অত্যন্ত গুরুত্বপূর্ণ যে

play00:40

এটি কোন ডাটা নয়, এটি একটি সম্পর্কযুক্ত

play00:45

ডাটা সংগ্রহের সেট(collection of interrelated data)। অর্থাৎ,

play00:49

ডাটা ফিল্ড(data fields) বা ডাটা পয়েন্টগুলি(data

play00:52

points) তাদের সাথে কিছু সম্পর্ক থাকতে হবে।

play00:56

তাই এটি একটি সম্পর্কযুক্ত ডাটা সেট।

play00:59

আমাদের সবাইকে ডাটাবেস কী এবং তা কোথায়

play01:02

ব্যবহার করা যেতে পারে সে সম্পর্কে

play01:05

কিছু ধারণা আছে।

play01:07

উদাহরণস্বরূপ, একটি প্রতিষ্ঠানে সমস্ত

play01:09

রেকর্ড একটি ডাটাবেস গঠিত করে।

play01:12

তাই এটি বিভিন্ন একটি ইউনিটি যেমন

play01:15

শিক্ষক, ছাত্র, কর্মচারী ইত্যাদি এবং অন্যান্য

play01:18

কিছু জিনিস যেমন কোর্স ইত্যাদি থাকবে।

play01:21

এবং সবকিছু একটি ডাটাবেস গঠিত করে।

play01:24

তাই, এটি হল ডাটাবেস।

play01:26

ডাটাবেস ম্যানেজমেন্ট সিস্টেম(DataBase Management

play01:28

System) বা DBMS কী?

play01:30

এটি একটি সিস্টেম যা একটি ডাটাবেস

play01:33

হ্যান্ডল করতে একটি পরিবেশ সরবরাহ করে।

play01:36

তাই, এটি দক্ষ এবং সহজলভ্য হতে হবে

play01:40

এবং প্রায়শই এটিতে কিছু প্রোগ্রাম এবং

play01:43

ইন্টারফেস(interface) রয়েছে যা ডেটা সংরক্ষণ

play01:46

করতে ব্যবহার করা হয়।

play01:48

তাই, প্রথমত, ডেটা সংরক্ষণ করা; দ্বিতীয়ত,

play01:51

ডেটা ভিজ্যুয়ালাইজ(visualize data) করা উচিত যাতে

play01:54

ডেটা দেখা যায়, তারপর ডেটা অ্যাক্সেস করা

play01:58

উচিত অথবা ডেটা কুয়েরিং(querying the data) বা জানা হয় এবং

play02:03

চতুর্থতঃ ডেটা আপডেট বা ম্যানিপুলেট করা

play02:06

উচিত।

play02:07

তাই, এগুলি হল ডাটাবেস ম্যানেজমেন্ট সিস্টেমের

play02:09

চারটি কাজ।

play02:10

তাই, এটি ডাটাবেস সম্পর্কে।

play02:13

এরপর প্রশ্ন এসে যায় যে সাধারণ ফাইল

play02:16

সিস্টেমও এই সমস্ত কাজগুলি করতে পারে।

play02:19

এটি নিশ্চই তথ্য সংরক্ষণ করতে পারে।

play02:22

আমরা ফাইল ইত্যাদি সংরক্ষণ করি।

play02:25

তথ্য দর্শনযোগ্য করা যায়।

play02:27

সুতরাং, যা ভিজ্যুয়ালাইজেশন বলা হয়, সেটি পরবর্তীতে

play02:31

দেখা হবে, তবে আপনি কমপক্ষে ফাইল এবং

play02:34

ফোল্ডার এর জন্য কি দেখতে পারেন সেটি

play02:38

দেখতে পারেন।

play02:39

আপনি নিশ্চই তথ্যে অ্যাক্সেস করতে পারেন,

play02:42

আপনি একটি নির্দিষ্ট ফাইল বা নির্দিষ্ট

play02:45

ফোল্ডারের মধ্যে একটি নির্দিষ্ট ফাইলে

play02:48

অ্যাক্সেস করতে পারেন ইত্যাদি এবং এটি

play02:51

আপনাকে ফাইল বা ফোল্ডার এর সামগ্রিক বিষয়বস্তু

play02:54

আপডেট করতে দেয়।

play02:56

তবে, একটি ডাটাবেস ফাইল সিস্টেম থেকে

play02:59

কিভাবে বিভিন্ন সুবিধার উপভোগ করে তা নিয়ে

play03:03

কিছু উপকার আছে, আসুন সেগুলি দেখা যাক।

play03:06

ফাইল সিস্টেম এর উপর ডিবিএমএস(DBMS) এর

play03:09

সুবিধাগুলির প্রথমটি হল, এটি ডেটা রিডান্ডেন্সি(redundancy)

play03:13

এবং অসমতা সমস্যাগুলি(inconsistency problems) হ্রাস করে।

play03:16

তাই, আমি প্রতিটি পয়েন্ট একটু বিস্তারিত

play03:19

দেখাতে যাচ্ছি।

play03:20

তাই, ডেটা রিডান্ডেন্সি কি বোঝায়?

play03:22

প্রধানতা এর মানে হল একই ডেটা, একই তথ্য

play03:26

একাধিক জায়গায় সংরক্ষিত হয়।

play03:29

এবং একটি ভাল উন্নয়নযোগ্য ডেটাবেস এ এটি অনুমতি

play03:33

দেয় না।

play03:34

তাই যদি কোনও কর্মচারী বা কোনও ছাত্রের

play03:37

তথ্য থাকে, তার নাম, রোল নম্বর ইত্যাদি

play03:41

তথ্যগুলো সাধারণত শুধুমাত্র একটি জায়গায়

play03:44

সংরক্ষিত থাকবে।

play03:45

ফাইল সিস্টেম এর মোটামুটি প্রতিটি

play03:47

ফাইল কপি করে রাখতে হয়।

play03:50

তাই ডেটাবেস সিস্টেম এবং ফাইল সিস্টেমের

play03:53

মধ্যে এটি বড় পার্থক্য।

play03:55

এর মানে হল, কপি করা একটি ফাইল অসমতুল্যতা

play03:59

সমস্যার সঙ্গে সম্পর্কিত।

play04:01

অসমতুল্যতা কী মানে?

play04:02

মূলত অসমতুল্যতা মানে হল নিম্নলিখিতটি।

play04:05

একই তথ্য একাধিক স্থানে সংরক্ষিত

play04:07

থাকে।

play04:08

এবং একটি ভাল উন্নয়নকৃত ডেটাবেস এটি অনুমতি

play04:11

দেয় না।

play04:12

ফাইল সিস্টেম সম্পর্কে বেশিরভাগ মানুষ ফাইলগুলি

play04:16

এখান থেকে সেখানে কপি করে, এখানে সেখানে

play04:19

থেকে কপি করে এবং এমন অনেক কারণে এটি

play04:23

সমস্যার সঙ্গে সম্পর্কিত হয়।

play04:25

তাই, এই দুটি ফাইলে তথ্য অসামঞ্জস্যপূর্ণ(inconsistent)

play04:28

হতে পারে।

play04:30

তার মানে হল, দুটি ফাইল একই তথ্য সম্পর্কে

play04:34

ভিন্ন হতে পারে।

play04:35

অর্থাৎ তাদের মধ্যে একটি সঠিক না থাকতে

play04:39

পারে, কারণ অন্য একটি ফাইল আপডেট করা হয়েছে

play04:43

এবং এই আপডেটটি এখানে এসেনি।

play04:46

তাই ডাটাবেস, প্রতিটি তথ্যকে শুধু একবার

play04:49

একটি জায়গায় এবং শুধু একবার সংরক্ষণ

play04:52

করে তথ্য অসংখ্য কপি না বানিয়ে এবং

play04:55

একটি স্থানে সংরক্ষণ করে।

play04:57

তাই এই অসংখ্য অপ্রয়োজনীয়তা(redundancy) এবং অসমতার(inconsistency)

play05:01

সমস্যা হ্রাস করে।

play05:02

এটি প্রথম পয়েন্ট।

play05:04

দ্বিতীয় পয়েন্ট হল ডেটা আইসোলেশন(data

play05:06

isolation) নামে একটি খুব সম্পর্কিত পয়েন্ট।

play05:09

এখানে ঘটে যায় যে ডেটা একটি সাধারণ

play05:13

ফরম্যাটে ব্যবহার হয় এবং কেবল একটি

play05:16

ইন্টারফেস ডেটা এক্সেস করার জন্য আছে।

play05:19

এর মানে হল ডেটা একটি বাইনারি ফরম্যাটে

play05:23

স্টোর হয় যা চূড়ান্ত ব্যবহারকারীদের

play05:25

মাথাব্যাথা না।

play05:26

ব্যবহারকারীটি তথ্য অংশটি চায়।

play05:28

এবং একটি ইন্টারফেস, ডেটাবেস ইন্টারফেস,

play05:31

তথ্যটি নির্দিষ্ট ফরম্যাটে ব্যবহারকারীকে

play05:33

অ্যাক্সেস করতে দেয়।

play05:35

সুতরাং এর অন্যতম গুরুত্বপূর্ণ উপকার

play05:37

হল, তথ্যটি বিভিন্ন ফরম্যাটে ফর্ম্যাট

play05:40

করার সমস্যা নেই।

play05:41

কারণ তথ্যটি আলাদা করা এবং ডেটাবেস

play05:44

ফরম্যাটে সংরক্ষিত করা হয়, যা ডেটাবেস

play05:48

হ্যান্ডেল করে।

play05:49

এবং ফাইল সিস্টেমে আমরা এটি সমস্যা

play05:52

হিসাবে সম্মিলিত হয়ে যাই।

play05:54

যেমন আপনি একটি এক্সেল ফাইল(excel file) দিয়ে কাজ

play05:58

করতে পারেন।

play05:59

যা একটি স্প্রেডশীট(spreadsheet) হয় এবং এটি লিনাক্স

play06:03

সিস্টেম বা ম্যাক সিস্টেমে(Linux system or Mac

play06:05

system) নিয়ে যাওয়া সময়, এক্সেল ফাইলটি

play06:09

সঠিকভাবে খোলা না যায়।

play06:12

কারণ, এটি ওপেন ডকুমেন্ট ফরম্যাটে নেই এবং

play06:16

এর জন্য ওপেন করতে ব্যবহৃত প্রোগ্রামগুলি

play06:20

সংগতিপূর্ণভাবে কাজ করে না।

play06:23

কিন্তু ডেটাবেস এটি আলাদা করে দেয়।

play06:26

তৃতীয় গুরুত্বপূর্ণ জিনিসটি হলো ডেটা

play06:30

ইন্টেগ্রিটি (Data Integrity)। তবে ডেটা ইন্টেগ্রিটি

play06:33

মূলত এরকম কিছু ডেটার জন্য প্রয়োজন যেখানে

play06:38

সেম্যান্টিক্স বা সঠিকতা শর্ত রয়েছে।

play06:41

যেমন, একজন ছাত্রের সিপিআই (CPI) বা কোনো

play06:46

মার্কস, গ্রেড পয়েন্ট অ্যাভারেজ ইত্যাদি

play06:49

ভারতীয় শিক্ষাবোর্ডে সাধারণত 0 থেকে 10 এর

play06:53

মধ্যে হওয়া উচিত।

play06:55

কিন্তু, ধরুন আপনি এই সমস্ত তথ্য একটি

play06:59

ফাইলে বা একটি এক্সেল স্প্রেডশিটে সংরক্ষণ

play07:03

করছেন।

play07:04

এখন কোনো চেক নেই।

play07:06

সুতরাং, উদাহরণস্বরূপ, আপনি যদি কারও সিপিআই

play07:10

-1 বা 12 হিসাবে প্রবেশ করেন তবে আপনি যখন

play07:16

সেই ডেটা রাখার চেষ্টা করেন তখন কোনও চেক

play07:21

নেই।

play07:22

যাইহোক, একটি ডাটাবেস আপনাকে কিছু অখণ্ডতা

play07:26

সীমাবদ্ধতা(integrity constraints) রাখতে দেবে।

play07:28

সুতরাং যখনই আপনি সিপিআই ক্ষেত্রটি

play07:31

সংজ্ঞায়িত করেন, আপনি বলতে পারেন

play07:34

যে, এটি 0 থেকে 10 এর মধ্যে এবং তাই, আমাদের

play07:41

ডেটা মান প্রবেশের যে কোনও প্রচেষ্টা,

play07:45

উদাহরণস্বরূপ -1, একটি ত্রুটি হবে এবং এটি

play07:49

আপনাকে প্রবেশ করতে দেবে না।

play07:52

যুক্তিটি ডাটাবেস সিস্টেমে অ্যাক্সেস

play07:55

দ্বারা নয়।

play07:56

সুতরাং, একবার আপনি সেই সিপিআই এর ডাটাবেস

play08:01

সংজ্ঞায়িত করলে, আপনি বলতে পারেন

play08:04

যে, এটি 0 থেকে 10 এর মধ্যে রয়েছে এবং

play08:09

সেই যুক্তিটি ডাটাবেস সিস্টেমের মধ্যে

play08:13

রয়েছে।

play08:14

সুতরাং, এটি তৃতীয় পয়েন্ট।

play08:16

চতুর্থ বিন্দুকে অপারেশনের পারমাণবিকতা

play08:18

বলা হয়।

play08:20

সুতরাং, এটি সম্ভবত ডাটাবেসের সবচেয়ে

play08:23

বিখ্যাত ব্যবহারগুলির মধ্যে একটি এবং উদাহরণস্বরূপ,

play08:27

আসুন আমরা ব্যাংক ট্রান্সফার কেসটি

play08:30

গ্রহণ করি।

play08:31

সুতরাং, নির্দিষ্ট পরিমাণ অর্থ, তাই

play08:34

ধরা যাক 100 টাকা, ব্যক্তি A এর অ্যাকাউন্ট থেকে

play08:40

ব্যক্তি B এর অ্যাকাউন্টে স্থানান্তরিত হয়।

play08:42

সুতরাং, লেনদেনের পারমাণবিকতা সংজ্ঞায়িত

play08:43

করে যে হয় অর্থ সম্পূর্ণরূপে স্থানান্তরিত হয়

play08:45

বা কোনও অর্থ স্থানান্তরিত হয় না।

play08:47

সুতরাং, এর দ্বারা আমি কী বোঝাতে চাইছি

play08:49

যে, এটি হতে পারে না যে A এর অ্যাকাউন্ট

play08:52

থেকে 100 টাকা কেটে নেওয়া হয়েছে, কিন্তু

play08:56

এটি B এর অ্যাকাউন্টে জমা হয়নি বা অন্যভাবে,

play09:01

100 টাকা B এর অ্যাকাউন্টে জমা হয়েছে, কিন্তু

play09:04

এটি A এর অ্যাকাউন্ট থেকে ডেবিট করা হয়নি।

play09:06

এবং আপনি দেখতে পারেন, অসামঞ্জস্যপূর্ণ

play09:08

ক্রেডিট এবং ডেবিট হতে পারলে কী সমস্যা

play09:11

হবে।

play09:12

সুতরাং, একটি ডাটাবেস সিস্টেম A এর অ্যাকাউন্ট

play09:14

থেকে ডেবিট করা এবং B এর অ্যাকাউন্টে

play09:17

ক্রেডিট করার পুরো অপারেশনটিকে একটি

play09:20

অপারেশন বা একটি লেনদেন(transaction) হিসাবে

play09:23

এনকোড(encode) করে।

play09:25

আমরা কোর্সে পরে লেনদেন সম্পর্কে

play09:28

আরও দেখব।

play09:29

এটি এর পারমাণবিকতা(atomicity) বাধ্যতামূলক করে।

play09:32

সুতরাং, হয় এটি সম্পূর্ণরূপে ঘটেছে।

play09:35

সুতরাং, হয় 100 ডেবিট করা হয়েছে এবং উভয়ই

play09:40

ক্রেডিট করা হয়েছে বা এটি ডেবিট করা

play09:44

হয়নি।

play09:45

সুতরাং, এটি আরেকটি গুরুত্বপূর্ণ অংশ।

play09:48

আসুন আমরা ৫ম পয়েন্টে আসি।

play09:51

৫ম পয়েন্ট হলো কনকারেন্সি(concurrency)। সুতরাং, খুব সহজভাবে,

play09:55

কনকারেন্সি মানে ডাটাবেসে একাধিক

play09:58

ক্রিয়াকলাপ একসাথে ঘটতে পারে; ডাটাবেস

play10:01

সাধারণত সেই জিনিসগুলির যত্ন নেয় যতক্ষণ

play10:04

না সেই নির্দিষ্ট ডেটা আইটেমে কোনও

play10:08

দ্বন্দ্ব না থাকে।

play10:10

সুতরাং, যদি A B-এ অর্থ স্থানান্তর করে এবং

play10:14

C D-এ অর্থ স্থানান্তর করে, তবে তাদের একে

play10:17

অপরের জন্য অপেক্ষা করার দরকার নেই এবং

play10:21

উভয় লেনদেন একসাথে ঘটতে পারে।

play10:23

ফাইল সিস্টেমগুলিতে, যদি সমস্ত লেনদেন

play10:25

একই ফাইলে খোলা হয় তবে এটি ঘটতে পারে

play10:29

না।

play10:30

সুতরাং, একই ফাইলটি প্রথমে A থেকে B এর

play10:33

জন্য সেভ করা দরকার, তারপরে সংরক্ষণ করা

play10:37

উচিত এবং তারপরে C থেকে D হওয়া উচিত,

play10:40

তবে এটি ব্যবহৃত ফাইল সিস্টেমের উপরও

play10:42

নির্ভর করে।

play10:43

সম্ভবত ডাটাবেস সম্পর্কে সর্বশেষ গুরুত্বপূর্ণ

play10:44

জিনিস বা কেন এটি ফাইল সিস্টেমের উপর

play10:46

দরকারী, তা হল সুরক্ষা(security)। সুতরাং, ডাটাবেসে

play10:47

ডেটার নিরাপত্তা সর্বাধিক এবং ডাটাবেস

play10:49

বা ডেটা ক্ষেত্রগুলি একাধিক উপায়ে সুরক্ষিত

play10:50

করা যেতে পারে।

play10:51

সুতরাং, প্রথমত, উদাহরণস্বরূপ, কর্মচারী ডাটাবেস

play10:53

নিরাপদ, এই অর্থে যে, কোনও অননুমোদিত

play10:54

ব্যবহারকারী এর কোনওটিতে অ্যাক্সেস পেতে পারে

play10:56

না।

play10:57

সুতরাং, এটি নিরাপত্তার একটি অংশ।

play10:58

সুরক্ষার অন্য এবং সম্ভবত আরও গুরুত্বপূর্ণ

play10:59

অংশটি হ'ল, বিভিন্ন ক্ষেত্র এবং বিভিন্ন

play11:01

ভূমিকার জন্য ডাটাবেসে বিভিন্ন অ্যাক্সেস

play11:03

নিয়ন্ত্রণ স্তর রয়েছে।

play11:04

উদাহরণস্বরূপ, একজন কর্মচারী তার নিজের

play11:05

রেকর্ড দেখতে সক্ষম হতে পারে।

play11:06

তবে অন্যদের রেকর্ড নয়।

play11:07

এভাবেই ঘটতে পারে।

play11:08

এটিও ঘটতে পারে যে শিক্ষার্থী নিজের

play11:10

একটি সিপিআই দেখতে পারে।

play11:11

তবে অন্যদের নয়, তবে একজন শিক্ষার্থী

play11:13

তার বাড়ির ঠিকানা পরিবর্তন করতে পারে,

play11:14

তবে তার সিপিআই নয়।

play11:15

সুতরাং, রেকর্ডটি শিক্ষার্থী সম্পর্কে

play11:17

হলেও, এমনকি একটি রেকর্ডের মধ্যেও

play11:18

অ্যাট্রিবিউট লেভেল সিকিউরিটি(attribute level

play11:19

security), অ্যাট্রিবিউট লেভেল অ্যাক্সেস

play11:22

সুবিধা(attribute level access privileges) ইত্যাদি থাকতে

play11:25

পারে।

play11:26

এবং নিরাপত্তা আদেশ দেয় যে ডাটাবেস

play11:28

সিস্টেম দ্বারা অনুমোদিত না হওয়া পর্যন্ত

play11:31

(এবং ডাটাবেসের ক্ষেত্রগুলি সংজ্ঞায়িত করার

play11:33

সময় এই ভূমিকাগুলি খুব সতর্কতার সাথে

play11:36

সংজ্ঞায়িত করতে হবে) কাউকে এটি পরিবর্তন

play11:39

করার অনুমতি দেওয়া হবে না।

play11:41

ফাইল সিস্টেমের উপর ডিবিএমএসের(DBMS) সুবিধার

play11:43

জন্য এই ছয়টি গুরুত্বপূর্ণ পয়েন্ট।

play11:46

প্রথমটি হল রিডান্ডেন্সি(redundancy) বা অসামঞ্জস্যতা(inconsistency),

play11:48

তারপরে এটি ডেটা বিচ্ছিন্নতা(data isolation),

play11:50

তারপরে এটি ডেটা অখণ্ডতা(data integrity), চতুর্থটি

play11:53

অপারেশনের পারমাণবিকতা(atomicity), পঞ্চমটি কনকারেন্সি(concurrency)

play11:55

এবং ষষ্ঠটি নিরাপত্তা(security)। সুতরাং, ঠিক আছে, এটি

play11:58

মডিউলের প্রথম অংশটি শেষ করে, পরবর্তী

play12:00

মডিউলে, আমরা রিলেশনাল ডেটা মডেলটি(relational

play12:03

data model) কভার করব।

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
Database SystemsData ManagementEducational ScriptData IntegrityAtomicityConcurrencySecurityRedundancyInconsistencyData Isolation
هل تحتاج إلى تلخيص باللغة الإنجليزية؟