ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Advance Database Management Systems
    COMP3146
    Progress0 / 18 topics
    Topics
    1. Introduction to advance data models such as object relational, object oriented2. File organizations concepts3. Transactional processing4. Concurrency control techniques5. Recovery techniques6. Query processing and optimization7. Database Programming (PL/SQL)8. Database Programming (T-SQL)9. Database Programming (similar technology)10. Integrity and security11. Database Administration (Role management)12. Database Administration (managing database access)13. Database Administration (views)14. Physical database design and tuning15. Distributed database systems16. Emerging research trends in database systems17. MONGO DB18. NO SQL (or similar technologies)
    COMP3146›Integrity and security
    Advance Database Management SystemsTopic 10 of 18

    Integrity and security

    3 minread
    436words
    Beginnerlevel

    🔐 Integrity and Security in Databases


    1. What is Data Integrity?

    Data Integrity ensures that the data stored in a database is accurate, consistent, and reliable throughout its lifecycle.

    • It prevents data corruption and unauthorized modification.
    • Maintains correctness and validity of data.

    2. Types of Data Integrity

    Type Description Example
    Entity Integrity Ensures every table row has a unique, non-null primary key. Primary key constraint enforcement.
    Referential Integrity Ensures relationships between tables remain consistent. Foreign key constraints prevent orphan records.
    Domain Integrity Ensures data values fall within valid ranges or sets. Age column must be between 0 and 120.
    User-Defined Integrity Custom business rules specific to application logic. Employee salary must not be less than minimum wage.

    3. Integrity Constraints

    • Primary Key Constraint: Unique identifier for each record.
    • Foreign Key Constraint: Enforces valid references between tables.
    • Unique Constraint: Ensures uniqueness of a column’s values.
    • Check Constraint: Enforces domain-specific conditions.
    • Not Null Constraint: Ensures a column cannot have NULL values.

    4. What is Database Security?

    Database Security protects the database from unauthorized access, misuse, and threats, ensuring confidentiality, integrity, and availability (the CIA triad).


    5. Components of Database Security

    Aspect Description
    Authentication Verifies the identity of users or systems.
    Authorization Grants or denies permissions to users.
    Auditing Tracks user actions for accountability.
    Encryption Protects data privacy by converting data into unreadable format without a key.
    Backup and Recovery Ensures data can be restored after loss or corruption.

    6. Authentication Methods

    • Password-based authentication.
    • Multi-factor authentication (MFA).
    • Biometric authentication.
    • Integration with external systems (LDAP, Active Directory).

    7. Authorization and Access Control

    • Role-Based Access Control (RBAC): Users assigned roles with specific privileges.
    • Discretionary Access Control (DAC): Owners control access to their objects.
    • Mandatory Access Control (MAC): System-enforced policies based on security levels.

    8. SQL Security Mechanisms

    • GRANT and REVOKE commands to manage user privileges.
    • Example:
    GRANT SELECT, INSERT ON Employees TO user_john;
    REVOKE UPDATE ON Employees FROM user_john;
    

    9. Auditing

    • Monitors database activities such as logins, queries, and changes.
    • Helps detect suspicious or unauthorized actions.
    • Often required for compliance (HIPAA, GDPR, PCI DSS).

    10. Encryption in Databases

    • Data-at-Rest Encryption: Encrypts stored data files.
    • Data-in-Transit Encryption: Protects data moving over the network (SSL/TLS).
    • Column-Level Encryption: Encrypts specific sensitive columns (e.g., credit card numbers).

    11. Summary Table

    Topic Purpose
    Data Integrity Accuracy and consistency of data
    Integrity Constraints Enforce business and domain rules
    Authentication Verify user identity
    Authorization Control user access
    Auditing Track user actions
    Encryption Protect data confidentiality

    Why Are Integrity and Security Crucial?

    • Prevents data corruption and unauthorized changes.
    • Protects sensitive information from breaches.
    • Ensures compliance with legal and regulatory standards.
    • Maintains user trust and system reliability.

    Previous topic 9
    Database Programming (similar technology)
    Next topic 11
    Database Administration (Role management)

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time3 min
      Word count436
      Code examples0
      DifficultyBeginner