- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
les13_管理约束
Maintaining Data Integrity Objectives After completing this lesson, you should be able to do the following: Implement data integrity constraints Maintain integrity constraints Obtain constraint information Data Integrity Types of Constraints Constraint States Constraint Checking Defining ConstraintsImmediate or Deferred Use the SET CONSTRAINTS statement to make constraints either DEFERRED or IMMEDIATE. The ALTER SESSION statement also has clauses to set constraints to DEFERRED or IMMEDIATE. Primary and Unique Key Enforcement Foreign Key Considerations Defining Constraints WhileCreating a Table Guidelines for Defining Constraints Primary and unique constraints: Place indexes in a separate tablespace. Use nonunique indexes if bulk loads are frequent. Self-referencing foreign keys: Define or enable foreign keys after the initial load. Defer constraint checking. Enabling Constraints No locks on table Primary and unique keys must use nonunique indexes Enabling Constraints Locks the table Can use unique or nonunique indexes Needs valid table data Renaming Constraints Using the EXCEPTIONS Table Create the EXCEPTIONS table by running the utlexpt1.sql script. Execute the ALTER TABLE statement with EXCEPTIONS option. Use subquery on EXCEPTIONS to locate rows with invalid data. Rectify the errors. Reexecute ALTER TABLE to enable the constraint. Obtaining Constraint Information Obtain information about constraints by querying the following views: DBA_CONSTRAINTS DBA_CONS_COLUMNS Summary In this lesson, you should have learned how to: Implement data integrity Use an appropriate strategy to create and maintain constraints Obtain constraint information Practice 13 Overview This practice covers the following topics: Creating constraints Enabling unique constraints Creating an EXCEPTIONS table Identifying existing constraint violations in a table, correcting the errors, and reenabling the constraints Data Integrity Data integrity means that data in a database adheres to business r
您可能关注的文档
最近下载
- 2025年高考真题全国二卷英语-解析.pdf VIP
- 通风系统工程技术方案(3篇).docx VIP
- 2019款比亚迪E5电动后视镜不工作故障检修方案设计 (1).docx VIP
- 雨课堂东南大学《领导力素养》课后习题及单元测试答案.docx VIP
- 慢性伤口护理实践与质量控制新进展题库答案 - 2025年华医网继续教育.docx VIP
- 四年级(上)英语必背知识点总结译林版(2).pdf VIP
- 牛人工授精技术.ppt VIP
- 一汽-大众-迈腾MAGOTAN-产品使用说明书-新一代迈腾330TSI DSG尊贵型-FV7187BBDBG-MagotanB8L-201606.pdf
- 2025重庆永川区永荣镇村(社区)专职干部本土人才后备干部入库招录20人笔试模拟试题及答案解析.docx VIP
- 2020年南海区第十二届初中综合能力大赛数学模拟考试试题.docx VIP
原创力文档


文档评论(0)