




已阅读5页,还剩40页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Copyright2001GlobalBusinessSolutions,Inc.,DefineDatabaseObjects,Copyright2001GlobalBusinessSolutions,Inc.,DefineDatabaseObjects,OBJECTIVESDefineTablespacesDefineTablesandIndexesDefineSegments,Extents,andBlocks,Copyright2001GlobalBusinessSolutions,Inc.,DefineDatabaseObjectsOverview,Database,Tablespace,Tables,indexes,etc.,Datafiles,Blocks,Copyright2001GlobalBusinessSolutions,Inc.,Tablespaces,LargestlogicalunitofspaceConsistofoneormoredatafilesSYSTEMtablespacemustexist,Tablespace,Copyright2001GlobalBusinessSolutions,Inc.,TypesofTablespaces,System/NonsystemOnline/OfflineRead-Write/Read-OnlyTransportable,Copyright2001GlobalBusinessSolutions,Inc.,SystemandNonsystemTablespaces,SystemAtleastoneDataDictionaryRollbackNonsystemFacilitatesAdministrationUser/ApplicationData,IndexesRollbackandTemporarySegments,Copyright2001GlobalBusinessSolutions,Inc.,OnlineandOfflineTablespaces,OnlineAvailabletoapplicationsTypicallytablespacesonline,OfflineNotavailabletousers,evenifdatabaseisavailableUseformaintenance,troubleshooting,orhistoricaldatanolongerneeded,Online,Offline,Copyright2001GlobalBusinessSolutions,Inc.,Read-WriteandRead-OnlyTablespaces,Read-WriteCreate,alter,anddropdatabaseobjectsDefault,Read-OnlyCannotcreateoralterdatabaseobjectsCandropcertainobjectsCanresideonWormdeviceorCDROMEliminateredundantdatabackupsIdealforDataWarehouseapplicationsandLookuptables,Read-Write,Read-Only,Copyright2001GlobalBusinessSolutions,Inc.,TipsforRead-OnlyTablespaces,OrganizebymodificationrequirementsFrequencyofdatachangeBackuprequirementSecurityrequirementUserrequirementAssociateddatafilecannotbe:ResizedorhaveautoextendsettoonRenamedtoanewdatafilenameordirectoryOffline,Copyright2001GlobalBusinessSolutions,Inc.,TransportableTablespaces,SystemTablespace,TransportableTablespace,SystemTablespace,ExportImport,CopyUtility,TransportableTablespace,SourceDatabase,TargetDatabase,Copyright2001GlobalBusinessSolutions,Inc.,UsesofTransportableTablespaces,ArchiveOLTPanddatawarehousesystemsTransferdatafromOLTPtodatawarehousestagingsystems,LoadingdatamartsfromcentraldatawarehousesPublishdataMoveindexdataandavoidrebuilds,Copyright2001GlobalBusinessSolutions,Inc.,Tables,StoredinTablespacesOrganizedinrowsandcolumnsContaindata,Tablespace,Tables,indexes,etc.,Datafiles,Blocks,Copyright2001GlobalBusinessSolutions,Inc.,TableDatatypes,CHARVARCHAR2NUMBERDATALOB,CustomersNameAddressPhone.George.123Cherry555-5555,Copyright2001GlobalBusinessSolutions,Inc.,LargeObjectDatatype,StoreUnstructuredInformationTextdocumentsStaticimagesVideoAudio,CustomersNameAddress.PhotoGreetingGeorge.123Cherry,Copyright2001GlobalBusinessSolutions,Inc.,LOBTypes,CLOBstorescharacterdataNCLOBstoresdouble-bytecharacterdata,BLOBstoresbinarydata:graphics,video,soundBFILEstorespointerstoexternalfiles,ExternalFileSystem,CustomersNameHistoryPhotoGreetingGeorge,Copyright2001GlobalBusinessSolutions,Inc.,ExternalFileSystem,LOBLocators,LOBdatastoredseparatefromnon-LOBdata,BFILEdatastoredseparatefromdatabase,TablespaceA,TableNameAdd,*(LocatorspointtoLOBandBFILELocations),TablespaceB,Copyright2001GlobalBusinessSolutions,Inc.,TemporaryTables,Storesession/transactionspecificdataShowdataonlytocreatingsession,Discarddataoncommitorpreservedatauntilsessionends,TablespaceA,Temp01,Temp02,Copyright2001GlobalBusinessSolutions,Inc.,CustomersIndex#Name1AcmeInc.2Zacharys3Maries4Chimney,Indexes,OptimizequeriesROWID(Block#.Row#.File#)Storedindependentoftables,ConsumeminimalspaceReduceI/OIndexonWHEREclausecolumns,CustomersTable#NameAddre.3Maries4456Si1AcmeInc.1236Ch4Chimney9024F2Zacharys1234Br,Copyright2001GlobalBusinessSolutions,Inc.,IndexTypes,UniqueDuplicatesnotallowedNon-uniqueDuplicatesallowed,X,Copyright2001GlobalBusinessSolutions,Inc.,IndexTypes,SingleColumn,Copyright2001GlobalBusinessSolutions,Inc.,IndexTypes,Multi-ColumnConcatenated,composite,IndexRowid,OrderNoItemNoCust.,007000001USA007000002GBSI007000003TEST007234005WEST006989001ABC006989002XYZ,ORDERTABLE,Copyright2001GlobalBusinessSolutions,Inc.,BalancedIndexTree(B*Tree),ROOT,BRANCH,ROWIDPOINTER,DATASEGMENT,0,000020004000,00002000,200124993000,300140014999,500070009000,50005999,700072008100,90009999,ROWID|1/4”RolledSheet|100Feet|5Days|C.O.D.,LEAF,Copyright2001GlobalBusinessSolutions,Inc.,BitmapIndex,BitmapcreatedforeachcolumnvalueCommonUsageVeryLargeTablesLow-CardinalityColumnsFeaturesRequiresminimalstorageImprovesperformance,F,BILLLISAANNTED,10010110,M,GENDER,Copyright2001GlobalBusinessSolutions,Inc.,FunctionBasedIndex,CreateonfunctionsorexpressionsUsergeneratedPL/SQLSQLfunctions(non-aggregate)Externalprogram(Ccallout),600500300250900,660550330275990,SALARY*1.10,SALARY,Function-Based,Single,SQLSELECTsalary,salary*1.10FROMemployees;,Copyright2001GlobalBusinessSolutions,Inc.,PartitionData,Decomposetablesandindexes,Eachpartitioncanbestoredindifferenttablespace,CustomerCustNoCustNameState1KodakNYOracleCAUSSteelPA6QuestWA7MotorolaTX,CustomersALIN,CustomersKSNY,CustomersOHWY,Copyright2001GlobalBusinessSolutions,Inc.,AdvantagesofPartitions,ReducetimefordataloadsandindexcreationIncreaseavailabilityofmission-criticaldatabasesCreatepartitionindependenceEnableconcurrentoperationsonseparatepartitionsExecutequeriesonpartitionsinsteadoffulltablescan,Copyright2001GlobalBusinessSolutions,Inc.,AdvantagesofPartitions,ControldatastorageacrossphysicaldevicesMaintainpartitiontransparencyProgramsdonotneedtoreferencepartitionsProgramscantakeadvantageofpartitions,Copyright2001GlobalBusinessSolutions,Inc.,Equipartitions,Databaseobjectshavesamelogicalpartitions,ExamplesMasteranddetailtableTableandindex,OrderTable,ItemTable,CustomerTable,CustomerbyState,Copyright2001GlobalBusinessSolutions,Inc.,GlobalPartitionedIndexes,CanimproveperformanceCancontainkeysfromallpartitionsofcorrespondingtable,CustomerSalesIndex,CustomersALIN,CustomersKSNY,CustomersOHWY,Copyright2001GlobalBusinessSolutions,Inc.,IndexOrganizedTables,DatastoredwithB*TreeindexTablemusthaveprimarykey,whichactsasindex,AppropriateforcomplexorunstructureddataSpatialOLAP,Copyright2001GlobalBusinessSolutions,Inc.,TablespaceandDatafileRelationship,Tablespace,Tables,indexes,etc.,Datafiles,Segment,Extent,Atablespaceiscreatedwithoneormoredatafiles,Datafilesaremadeupofblocks,Blocks,Copyright2001GlobalBusinessSolutions,Inc.,StorageObjectandSegmentRelationship,Createastorageobjectintablespace,Tables,indexes,etc.arepreallocatedtosegments,SegmentMySegment,Blocks,Copyright2001GlobalBusinessSolutions,Inc.,DatabaseSegments,Setofextentscontainingspecifictypesofdata,BootstrapSegment,TemporarySegment,RollbackSegment,IndexSegment,DataSegment,Copyright2001GlobalBusinessSolutions,Inc.,DataSegments,StoresrowsforTablesTablefeaturesContainsuserdataContainsDataDictionarydataRowFeaturesContainunlimitednumberofrowsSpanblocks(chaining)Columnsstoredsidebyside,BootstrapSegment,RollbackSegment,IndexSegment,DataSegment,Copyright2001GlobalBusinessSolutions,Inc.,IndexSegments,CreatedforeveryindexExistasseparatephysicalsegmentsfromdatasegmentUsuallymuchsmallerthanassociateddatasegment,BootstrapSegment,RollbackSegment,IndexSegment,IndexSegment,Copyright2001GlobalBusinessSolutions,Inc.,RollbackSegments,RecordbeforeimageofmodifieddataAllowchangestobeundonebeforecommitSupportreadconsistencySupportdataconcurrencySupportdatabaserecoveryASYSTEMrollbacksegmentisrequired,BootstrapSegment,RollbackSegment,IndexSegment,RollbackSegment,Copyright2001GlobalBusinessSolutions,Inc.,RollbackSegmentTypes,PrivateMustincludesegmentnameinROLLBACK_SEGMENTSparameterPublicApoolofrollbacksegmentsthatmaybeacquiredbyanyinstancemountingdatabaseDeferredCreatedinSYSTEMtablespacewhentablespacetakenofflineandtransactionscannotberolledback,Copyright2001GlobalBusinessSolutions,Inc.,RollbackSegmentUsage,UndodataiswrittentosegmentEachextentsupportsmultipletransactionsEachtransactionwritestoitsownblock(s)Ifextentfills,automaticallyextendsIfallextentsfill,segmentwrapsIfsegmentwraps,undodataoverwrittenIfundodatanotavailable,erroroccurs,“Snapshottooold”“Cannotallocateextent”,Copyright2001GlobalBusinessSolutions,Inc.,ReadConsistency,Whenqueryexecutes:CurrenttimedeterminedBlockswithsametimereadNewerblocksreconstructedwithrollbacksegments,Customers#NameAddress1AcmeInc.123Ch2Zacharys1234Br3Maries4456Si4Chimney9024F,SELECT*FROMcustomer,UPDATEcustomer.,Copyright2001GlobalBusinessSolutions,Inc.,TemporarySegments,ProvidetemporaryworkspaceCreatedautomaticallyforjoins,indexes,sortsCreatedondiskwhenmemoryfullSizedbyDEFAULTSTORAGEclauseoftablespaceReclaimedbySMON,BootstrapSegment,RollbackSegment,IndexSegment,TemporarySegment,Copyright2001GlobalBusinessSolutions,Inc.,BootstrapSegment,ContainsdictionarydefinitionsloadedonopenIsnotuseraccessibleResidesinSYSTEMtablespaceRequiresnoDBAmaintenance,BootstrapSegment,RollbackSegment,IndexSegment,Bootstrap
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 离婚协议书范本针对离婚后子女医疗问题的协议
- 婚姻解除协议书范本:共同子女抚养及监护权分配
- 金融控股公司债权债务三方转让与集团化运营协议
- 创意离婚协议书:财产分割与子女抚养权纠纷处理方案
- 精准对接个人对个人直升机租赁及观光服务协议
- 物流行业生产经营信息保密与物流服务质量协议
- 离婚协议书范本:子女教育及监护问题
- 公共停车场物业经营权及收益分成合作协议
- 班组级安全培训内容课件
- 《公共关系原理与实务》 第四版 练习与答案 朱崇娴 第6-11章
- 小学二年级上册体育教案
- 别墅装修施工工艺
- 《手术室护理实践指南》专项测试题附答案
- 医务科依法执业自查表
- 部编版小学音乐五年级上册教案
- 综合实践活动(2年级下册)第3课时 自动浇水器的设计与制作-课件
- 2023年江苏省盐城公证处招聘公证人员5人笔试参考题库(共500题)答案详解版
- 保密室及保密要害部位搬迁发案
- 恐龙灭绝介绍课件
- 核赔经典疑难案例解析
- 尿道损伤的分类与治疗
评论
0/150
提交评论