欢迎来到天天文库
浏览记录
ID:49479277
大小:123.50 KB
页数:20页
时间:2020-02-25
《les05_数据字典和性能视图.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、UsingDataDictionaryandDynamicPerformanceViewsObjectivesAftercompletingthislesson,youshouldbeabletodothefollowing:Identifybuilt-indatabaseobjectsIdentifythecontentsandusesofthedatadictionaryDescribehowdatadictionaryviewsarecreatedIdentifydatadictionaryviewcategoriesQuerythedatadictio
2、naryanddynamicperformanceviewsDescribeadministrativescriptnamingconventionsBuilt-InDatabaseObjectsOtherobjectscreatedwiththedatabase:DatadictionaryPerformancetablesPL/SQLpackagesDatabaseeventtriggersDataDictionaryCentraltoeveryOracledatabaseDescribesthedatabaseanditsobjectsContainsre
3、ad-onlytablesandviewsStoredintheSYSTEMtablespaceOwnedbytheuserSYSMaintainedbytheOracleserverAccessedwithSELECTControlfilesDatafilesRedoLogfilesDatabaseDataDictionarytablesBaseTablesandDataDictionaryViewsThedatadictionarycontainstwoparts:BasetablesStoresdescriptionofthedatabaseCreate
4、dwithCREATEDATABASEDatadictionaryviewsUsedtosimplifythebasetableinformationAccessedthroughpublicsynonymsCreatedwiththecatalog.sqlscriptCreatingDataDictionaryViewsScriptPurposecatalog.sqlCreatescommonlyuseddatadictionaryviewsandsynonymscatproc.sqlRunsscriptsrequiredforserver-sidePL/SQ
5、LDataDictionaryContentsThedatadictionaryprovidesinformationabout:LogicalandphysicaldatabasestructuresDefinitionsandspaceallocationsofobjectsIntegrityconstraintsUsersRolesPrivilegesAuditingHowtheDataDictionaryIsUsedPrimaryuses:OracleserverusesittofindinformationaboutUsersSchemaobjects
6、StoragestructuresOracleservermodifiesitwhenaDDLstatementisexecuted.UsersandDBAsuseitasaread-onlyreferenceforinformationaboutthedatabase.DataDictionaryViewCategoriesThreesetsofstaticviewsDistinguishedbytheirscope:DBA:WhatisinalltheschemasALL:WhattheusercanaccessUSER:Whatisintheuser’ss
7、chemaUSER_xxxObjectsownedbythecurrentuserALL_xxxObjectsaccessiblebythecurrentuserDBA_xxxAlloftheobjectsinthedatabaseDataDictionaryExamplesGeneraloverview:DICTIONARY,DICT_COLUMNSSchemaobjects:DBA_TABLES,DBA_INDEXES,DBA_TAB_COLUMNS,DBA_CONSTRAINTSSpaceallocation:DBA_SEGMENTS,DBA_EXTENT
8、SDatabasestr
此文档下载收益归作者所有