




已阅读5页,还剩20页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1 OracleDatabase SQLAdvance Tuning 亚信联创管理学院聂耿青 目录 Oracle数据库体系结构与SQL开发环境简介数据查询语言DQL介绍数据操纵语言DML介绍数据定义语言DDL介绍SQL优化原则与工具简介SQL优化技巧与实例讲解 3 Oracle数据库体系结构与SQL开发环境简介 Database OracleDatabaseServerArchitecture Overview Instance SGA BGP2 BGP1 BGPn BGP3 ConnectingtotheDatabaseInstance SQL Select Connection User Userprocess Serverprocess Session Specificconnecteddatabaseuser S000 Userprocess Userprocess DedicatedServer SharedServer D000 Dispatcher SGA Listenerprocess Serverhost Connection BidirectionalnetworkpathwaybetweenauserprocessonaclientormiddletierandanOracleprocessontheserverSession Representationofaspecificloginbyauser OracleDatabaseMemoryStructures Overview Backgroundprocess Serverprocess Serverprocess SGA Redologbuffer Databasebuffercache Javapool Streamspool Sharedpool Largepool AggregatedPGA DatabaseBufferCache Databasewriterprocess Databasebuffercache SGA Datafiles DBWn Serverprocess IsapartoftheSGAHoldscopiesofdatablocksthatarereadfromdatafilesIssharedbyallconcurrentprocesses RedoLogBuffer Logwriterprocess Redologbuffer SGA Redologfiles LGWR Serverprocess IsacircularbufferintheSGA basedonthenumberofCPUs Containsredoentriesthathavetheinformationtoredochangesmadebyoperations suchasDMLandDDL SGA SharedPool Librarycache Datadictionarycache rowcache Controlstructures Resultcache Serverprocess Sharedpool IspartoftheSGAContains LibrarycacheSharedpartsofSQLandPL SQLstatementsDatadictionarycacheResultcache SQLqueriesPL SQLfunctionsControlstructuresLocks ProcessingaDMLStatement Example Database Datafiles Controlfiles Redologfiles Userprocess Sharedpool Redologbuffer Serverprocess 3 5 1 Librarycache 2 4 Databasebuffercache DBWn SGA 2 COMMITProcessing Example Database Datafiles Controlfiles Redologfiles Userprocess SGA Sharedpool Redologbuffer Serverprocess 1 3 Librarycache Databasebuffercache DBWn 2 LGWR SGA ProgramGlobalArea PGA Serverprocess PGAisamemoryareathatcontains SessioninformationCursorinformationSQLexecutionworkareas SortareaHashjoinareaBitmapmergeareaBitmapcreateareaWorkareasizeinfluencesSQLperformance Workareascanbeautomaticallyormanuallymanaged BackgroundProcessRoles PMON SMON ARCn DBWn LGWR CKPT Databasebuffercache Sharedpool SGA Redologbuffer MMON CJQ0 QMNn RCBG MMAN SQLStatementImplementation SGA SharedSQLarea Librarycache Datadictionarycache Resultcache SharedSQLarea Other SHARED POOL Userprocess Serverprocess PrivateSQLarea Userprocess Serverprocess Userprocess Serverprocess Userprocess Serverprocess Userprocess Serverprocess PrivateSQLarea PrivateSQLarea PrivateSQLarea PrivateSQLarea Javapool Streamspool Buffercache Redologbuffer Client Server AggregatedPGA Syntacticandsemanticcheck SQLStatementParsing Overview Privilegescheck AllocateprivateSQLArea ExistingsharedSQLarea AllocatesharedSQLarea Executestatement No Hardparse Yes Softparse Parsecall Parseoperation Optimization PrivateSQLarea SharedSQLarea Parsedrepresentation DatabaseStorageArchitecture Onlineredologfiles Passwordfile Parameterfile Archivedredologfiles Controlfiles Datafiles Alertlogandtracefiles Backupfiles LogicalandPhysicalDatabaseStructures Database Logical Physical Tablespace Datafile OSblock Segment Extent Oracledatablock Schema 0 1 ormany Only1withbigfiletablespaces Undotablespacesneverhave0 Segments Extents andBlocks Segmentsexistinatablespace Segmentsarecollectionsofextents Extentsarecollectionsofdatablocks Datablocksaremappedtodiskblocks Segment Extents Datablocks Diskblocks SQL PLSQL编程环境简介 InstantClient SQL PlusSQLDeveloper 11g内置 推荐并介绍 PLSQLDeveloper 第三方 推荐并介绍 iSQL Plus 通过浏览器访问 Reports Forms etc其他第三方工具 InstallOracleClient OracleSQLDevTools exe 仅限用于教学和练习 未经授权 安装 复制文件OracleSQLDevTools exe到C C盘根目录 点击并回车即可 文件会自解压到C 即缺省目录 不要更改 其中内置OracleClient SQL PLUS PL SQLDeveloper LoggingIntoSQL Plus FromWindowsenvironment Fromcommandline sqlplus username password database conn HostString或Database conn是指连接字符串 在tnsnames ora寻找 若连接有问题 注意检查Server端的sqlnet ora及lsnrctlstatus tnsping NetServices ApplicationOracleNet RDBMSOracleNet Client Databaseserver TCP IPnetwork Listener
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 精准扶贫考试题及答案
- 谈判法律服务合同范本
- 软件追加开发合同范本
- 进口钢琴租售合同范本
- 活动硬架租赁合同范本
- 2025至2030甜红葡萄酒行业发展分析及前景趋势与投资报告
- 2025至2030中国能量棒行业项目调研及市场前景预测评估报告
- 环境专业笔试试题及答案
- 电力线路部分安全题库及答案解析
- 术后护理观察患者题库及答案解析
- 合规风险管理制度
- 2024年四川省成都市中考作文“赢”与“迎”写作指导
- GB/T 21220-2024软磁金属材料
- 2.1 地表形态变化的内外力作用-内力作用 中图版(2019)地理选择性必修一高二上学期
- 数字化印花工艺智能化
- 成人鼻肠管的留置与维护
- 专题02 概率与统计解答题综合(解析版)
- 多格列艾汀使用指南2024课件
- MOOC 创业基础-暨南大学 中国大学慕课答案
- (2024年)面神经炎课件完整版
- GB/T 41666.4-2024地下无压排水管网非开挖修复用塑料管道系统第4部分:原位固化内衬法
评论
0/150
提交评论