免费预览已结束,剩余52页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
,oracle database 基本知识-计量单位,赵元杰 中程在线(北京)科技有限公司 2009.8,2019/2/5,2/55,内容提要,存储容量单位 速度单位与oracle 系统数据字典 oracle 系统数据文件大小 oracle 系统在windows环境sga大小 oracle 系统在linux环境sga大小 oracle 系统在unix环境sga大小 实用程序与文件大小,2019/2/5,3/55,存储容量单位,计算机的存储单位: 1kb = 1024 b 1mb = 1024 kb 1gb = 1gigabyte byte = 1024 mb 1tb = 1terabyte = 1024 gb = 1024*1024mb 1pb = 1perabyte = 1024 tb = 1024 * 1024 * 1024 mb 1eb = 1exabyte = 1024 pb = 1024 * 1024 *1024 *1024 mb 1zb =1zettabyte =1024eb 1yb=1yottabytes =1024zb,存储容量单位-英语命名法,kb kilo kilobyte ( 103 ) mb mebi megabyte ( 106 ), million, 1mb=1000kb 兆 gb gibi gigabyte ( 109 ), billion, 1gb=1000mb 1000兆 tb tebi terabyte ( 1012), trillion, 1tb=1000gb 万亿兆兆 pb pebi petabyte ( 1015), 1pb=1000tb 1000万亿兆 eb exbi exabyte ( 1018), quintillion,1eb=1000pb 万万亿兆 1zb zettabyte =1000eb 1yb yottabytes=1000zb 100ty=100 triilion yottabytes,2019/2/5,5/55,存储容量单位-常用前缀及其意义,2019/2/5,6/55,存储容量单位-存储计量单位,2019/2/5,7/55,存储转换单位,unit abbr bytes bit b 1/8 byte b 1 kilobyte kb 1,024 megabyte mb 1,048,576 gigabyte gb 1,073,741,824 terabyte tb 1,099,511,627,776,2019/2/5,8/55,存储容量单位-新名词,1 megabyte = 一百万字节 一本短篇小说 1 gigabyte = 十亿字节 贝多芬的第五交响乐 1 terabyte = 一兆字节 一所大型医院里的所有x光片 1 petabyte = 1,000 terabytes 所有美国学术研究图书馆加起来的一半 1 exabyte = 1,000 petabytes 5 exabytes = 所有人类讲过的词汇 1 zettabyte = 1,000 exabytes 地球上所有沙滩上沙粒的数量?,zettabyte: 1,000,000,000,000,000,000,000 字节 现在出现“zettabyte file system ”产品-sun microsystems公司,2019/2/5,9/55,内容提要,存储容量单位 速度单位与oracle 系统数据字典 oracle 系统数据文件大小 oracle 系统在windows环境sga大小 oracle 系统在linux环境sga大小 oracle 系统在unix环境sga大小 实用程序与文件大小,2019/2/5,10/55,时间速度单位,2019/2/5,11/55,时间速度单位,oracle数据字典记录的时间单位: centiseconds-百分之一秒=1厘秒 milliseconds-千分之一秒=1毫秒 microseconds-百万分之一秒=1微秒 时间单位换算: 百分之一秒(centiseconds-厘秒)=1厘秒 千分之一秒(milliseconds-毫秒)=1毫秒 百万分之一秒(microseconds-微秒)=1微秒 1 centisecond = 10毫秒=10 milliseconds =10000微秒=10000 microseconds,2019/2/5,12/55,速度单位转换,speed unit abbr fraction of a sec = = = second sec 1 millisecond ms 1/1,000 microsecond ms 1/1,000,000 nanosecond ns 1/1,000,000,000 picosecond ps 1/1,000,000,000,000,2019/2/5,13/55,时间速度单位-oracle数据字典,oracle数据字典记录的时间单位: client_result_cache_lag 参数以毫秒(milliseconds)为单位=0.001秒 all_sqlset_plans 数据字典中的列以微秒(microseconds)为单位 =0.000,001秒 undo_retention specifies (in seconds) db_flashback_retention_target specifies the upper limit (in minutes) dba_feature_usage_statistics中的last_sample_period列以小时为单位,2019/2/5,14/55,时间速度单位-oracle动态视图,v$session_event的时间单位: sid 会话id event 等待事件名称 time_waited 等待事件会话总的时间-百分之一秒 average_wait 等待事件会话平均的时间-百分之一秒 time_waited_micro 等待事件中会话总时间-百万分之一秒,2019/2/5,15/55,时间速度单位-oracle动态视图,v$system_event的时间单位: event total_waits time_waited 百分之一秒 average_wait 百分之一秒 time_waited_micro 百万分之一秒,2019/2/5,16/55,内容提要,存储容量单位 速度单位与oracle 系统数据字典 oracle 系统数据文件大小 oracle 系统在windows环境sga大小 oracle 系统在linux环境sga大小 oracle 系统在unix环境sga大小 实用程序与文件大小,2019/2/5,17/55,数据文件大小,oracle 数据文件大小问题 与操作系统有关(32 bit或64 bit); 与oracle 版本有关; windows 32位系统的文件最大2gb,64位的unix系统系统文件最大128gb; oracle 数据文件大小=块的数量*块的大小: oracle一般只支持4194303 blocks; 与数据库的块大小(db_block_size)有关; 即使数据库的块很大,数据文件大小也要受os限制。,sql show parameter db_block_size name type value - - - db_block_size integer 8192,2019/2/5,18/55,数据文件大小,查看你的oracle 系统允许数据文件大小: 可用下面语句查询可得到(os不一定允许这么大),sql select to_char(4194303*value,999,999,999,999)| bytes max_file_size 2 from v$parameter where name=db_block_size; max_file_size - 34,359,730,176 bytes sql select to_char(4194303*value,999,999,999,999) max_bytes, 2 to_char(trunc(4194303*value/1024),999,999,999)| kb max_kb, 3 to_char(trunc(4194303*value/1024/1024),999,999)| mb max_mb 4 from v$parameter where name=db_block_size; max_bytes max_kb max_mb - - - 34,359,730,176 33,554,424 kb 32,767 mb,2019/2/5,19/55,9i数据文件大小,数据库大小与数据文件大小有关; 9i 版本允许每个数据库有 65534 个文件; 每个数据文件允许有4194303个块(因公式 222-1=4,194,303 blocks /每个文件) 最大块为32kb (不是所有平台都允许) 9i 数据库最大允许: 65534*4194303*32 kb8055 tb8 petabytes! 38000*4194303*16 kb2.5 petabytes( 8i ) 实际大小可能还要小,2019/2/5,20/55,10g/11g数据文件大小,oracle 10g支持的表空间大小 2k32k bytes 8 000 000 terabytes 数据库中最多有65535 个文件 块大小决定数据文件的大小 db_block_size=2k bytes文件可达8gb db_block_size=4k bytes文件可达16gb db_block_size=8k bytes文件可达32gb db_block_size=16k bytes 文件可达64gb db_block_size=32k bytes 文件可达128gb,2019/2/5,21/55,10g/11g数据文件大小,oracle 10g bigfile 创建带bigfile tablespace,允许只带一个数据文件,数据文件大小达4gb blocks 数据文件个数可达 64k个 如果块为8k,则单个数据文件可达 32tb 如果块为32k,则单个数据文件可达 128tb 创建 bigfile tablespace,create bigfile tablespace bigtbs datafile /u02/oracle/data/bigtbs01.dbf size 50g extent management local segment space management auto;,2019/2/5,22/55,10g/11g数据文件大小,oracle 10g /11g smallfile 10g 允许创建 smallfile tablespace 也可设置set default smallfile tablespace或set default bigfile tablespace 可包含1022 files,每个数据文件块数量为4m blocks 默认是smallfile,create database rbdb1 set default bigfile tablspace . smallfile default temporary tablespace tempts1 tempfile /u01/oracle/oradata/mynewdb/temp01.dbf size 20m reuse,2019/2/5,23/55,10g/11g数据文件大小,oracle 10g bigfile与smallfile 10g 默认是smallfile system与sysaux 不允许使用bigfile tablespace 一般的小型机服务器,建议采用默认的smallfile tablespace即可 只有大型环境(存储子系统与大型机)可采用bigfile tablespace,2019/2/5,24/55,oracle 11g 支持64bit,11g 支持64 bit: 表空间大小为exabytes,2019/2/5,25/55,数据文件大小限制,oracle 10g /11g 数据文件大小限制 10g /11g 数据文件大小限制 超过限制,则提示错误:,sql alter tablespace users add datafile f:user02.dbf size 8192m; alter tablespace users add datafile f:user02.dbf size 8192m * error 位于第 1 行: ora-01144: 文件大小 (4194304 块) 超出 4194303 块的最大数 sql alter tablespace users add datafile f:user02.dbf size 8191m reuse; 表空间已更改。,2019/2/5,26/55,数据文件大小限制,oracle 10g /11g 数据文件太大/太小限制 太小、太大都提示错误:,sql alter database 2 datafile /u01/app/oracle/oradata/rmanrep/users01.dbf resize 15m; database altered. sql alter database 2 datafile /u01/app/oracle/oradata/rmanrep/users01.dbf resize 10m; database altered. sql alter database 2 datafile /u01/app/oracle/oradata/rmanrep/users01.dbf resize 1m; alter database * error at line 1: ora-03297: file contains used data beyond requested resize value sql alter database 2 datafile /u01/app/oracle/oradata/rmanrep/users01.dbf resize 100t; alter database * error at line 1: ora-00740: datafile size of blocks exceeds maximum file size sql alter database 2 datafile /u01/app/oracle/oradata/rmanrep/users01.dbf resize 50g; alter database * error at line 1: ora-01144: file size (6553600 blocks) exceeds maximum of 4194303 blocks,2019/2/5,27/55,内容提要,存储容量单位 速度单位与oracle 系统数据字典 oracle 系统数据文件大小 oracle 系统在windows环境sga大小 oracle 系统在linux环境sga大小 oracle 系统在unix环境sga大小 实用程序与文件大小,oracle支持主要平台,cluster,single user,smp,desktop server,uniprocessor,windows linux solaris sparc hp-ux hp tru64 os/390 aix,blade servers,2019/2/5,29/55,11g 在 windows文件大小,11g在windows下支持文件大小 11g支持文件异步i/o文件 支持裸设备及ntfs 11g在windows 64 bit支持 文件大小没有2gb 或 4gb 限制 文件最大可达64gb 数据库大小最大为4pb,2019/2/5,30/55,windows 32-bit platform support,planned latest db patchset available at the time,10g/11g在windows 32bit下支持 支持的windows 32bit有:,2019/2/5,31/55,windows 64-bit platform support,tbd to be determined. will be announced later.,10g/11g在windows 64bit下支持 支持的windows 64bit有:,2019/2/5,32/55,32bit vs 64bit,10g 支持64 bit: 计算机位数 : 4 bit=(16 bytes) 8 bit=(65,536 bytes) 16-bit=(4,294,967,296 bytes) 32 bit=(4,294,967,296 bytes) 64 bit =(18,446,744,073,709,551,616 bytes) 64 bit可访问的内存地址 : 64bit allows directly addressing 16 exabytes of memory,2019/2/5,33/55,architecture: thread model,2019/2/5,34/55,10g 在windows内存大小,oracle 内存主要包括sga+pga : 32 bit 每个实例可分配3gb 大小内存 32 bit 的vlm可超过3gb大小 64 bit 每个实例可分配8tb大小内存,2019/2/5,35/55,32-bit: very large memory (vlm)支持,2019/2/5,36/55,32-bit: vlm 支持,rest of ram,sga minus db buffers,code,for o/s, other apps,3gb,window on db buffers in awe mem,extended memory available for db buffers via awe calls,2019/2/5,37/55,awe( address windowing extensions) 实现,awe 方法是修改 use_indirect_data_buffers 参数db_block_buffers被参数db_cache_size所代替 采用awe, 数据缓冲区可达 12 gb awe_window_memory 默认是 1 gb 详细见metalink note 225349.1,2019/2/5,38/55,32-bit 内存实践,使用automatic workload repository (awr) 监控数据缓冲区与shared_pool stats利用率. 确认这些值不太高 当use_indirect_data_buffers参数后sga_target就不能设置,2019/2/5,39/55,oracle 10g 在windows,10tb database in production,2019/2/5,40/55,32 bit vs 64bit memory limits,product names listed are for general reference only and do not reflect actual product names. 64-bit windows server standard edition will be available for x64 only.,2019/2/5,41/55,oracle 10g 在windows-文件大小,ntfs/raw ntfs支持 单个文件最大 64 gb. 数据库大小 4 petabytes. 现在数据库大小实现 10 tb.,2019/2/5,42/55,内容提要,存储容量单位 时间速度单位与oracle 系统时间单位 oracle 系统数据文件大小 oracle 系统在windows环境sga大小 oracle 系统在linux环境sga大小 oracle 系统在unix环境sga大小 实用程序与文件大小,2019/2/5,43/55,oracle rdbms 在 linux,进程: 后台任务包括 :dbwr, lgwr ,pmon 前台任务包括 :客户端连接 每个进程有自己的内存 64位os可访问地址为8 tb linux 文件系统 (ext2) & raw 文件支持 64-bit i/o 支持 最大数据库文件大小 64 gb 在16kb /块下,最大数据库可达 4 petabytes,2019/2/5,44/55,oracle 10g 在 red hat,虚拟内存子系统 linux 核心能力(在 intel 32-bit ) red hat advanced server 2.1 支持 4 gb ram; red hat enterprise kernel支持 64 gb ram 较大 sga 可达 62 gb oracle 10g 支持大文件(bigfile) 允许创建大文件(bigfile)的表空间 文件大小可达2的32次方或4g个数据库块 块大小为32k的话,单个文件最大可达128tb 块大小为8k,则单个文件最大可达32tb,2019/2/5,45/55,内容提要,存储容量单位 时间速度单位与oracle 系统时间单位 oracle 系统数据文件大小 oracle 系统在windows环境sga大小 oracle 系统在linux环境sga大小 oracle 系统在unix环境sga大小 实用程序与文件大小,2019/2/5,46/55,oracle 10g 在unix,在sun solaris系统 sga设置多少受shminfo_shmmax核心参数控制,2019/2/5,47/55,oracle 10g 在unix,在sun solaris系统 sga大小通过设置shminfo_shmmax参数 32 bit os 时间只能设置3.5-3.75gb内,2019/2/5,48/55,内容提要,存储容量单位 时间速度单位与oracle 系统时间单位 oracle 系统数据文件大小 oracle 系统在windows环境sga大小 oracle 系统在linux环境sga大小 oracle 系统在unix环境sga大小 实用程序与文件大小,2019/2/5,49/55,主要unix 文件大小-aix,ibm aix系统允许文件大小 默认aix允许的文件大小为2gb 修改文件大小不受2gb限制,登录root,修改:/etc/security/limits 文件中, default: fsize = -1 core = 2097151 cpu = -1 data = 262144 ,2019/2/5,50/55,主要unix 文件大小-hp-ux,hp-ux 11iv3系统文件大小,几乎不受限制: hp-ux 11iv3 支持最多 128 个处理器核 2tb 内存 2tb 的文件系统 16tb 的文件系统大小 1 亿 zb 的存储,2019/2/5,51/55,主要unix 文件大小-linux,linux系统允许文件大小 修改文件大小不受限制,则root登录,然后修改:/etc/security/limits.conf 文件,加:,#设置oracle对文件的要求: #编辑文件:vi /etc/security/limits.conf 加入以下语句: oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536,2019/2/5,52/55,主要unix 文件大小,实用程序处理的文件大小大小与2gb exp 实用程序导出超过2gb,会提示错误: 建议:如果文件大小到2gb大小限制,建议使用filesize 参数给出每个.dmp文件的大小。,. . exporting table bigexport exp-0
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年济源职业技术学院单招职业适应性测试题库附答案
- 技术研发团队绩效管理方法与工具
- 2026年江西旅游商贸职业学院单招职业技能测试题库新版
- 2026年江西陶瓷工艺美术职业技术学院单招职业倾向性测试题库附答案
- 2026年湘潭医卫职业技术学院单招职业倾向性考试题库新版
- 2026年淮南师范学院单招职业适应性测试题库必考题
- 2026年贵州航空职业技术学院单招综合素质考试必刷测试卷及答案1套
- 2026年重庆市攀枝花市单招职业适应性考试必刷测试卷及答案1套
- 小学六年级升初中语文复习资料集
- 园林古建筑施工进度管理方案
- 2025湖南怀化市市直企事业单位引进高层次及急需紧缺人才507人易考易错模拟试题(共500题)试卷后附参考答案
- 岩棉板外墙保温专项施工方案
- 广东省建筑设计研究院集团股份有限公司校园招聘职位信息笔试历年参考题库附带答案详解
- 2025年河北省保定市评审专家考试题库(一)
- 企业印章使用管理制度(2025年版)
- 科技公司新媒体策划方案
- 2025上海闵行区古美路街道招聘社区综合协管员18人备考考试题库附答案解析
- 品牌管理协议合同范本
- 军队文职新闻试卷及答案
- GB/T 46406-2025科研项目数据管理指南
- 钢围檩及钢支撑施工质量验收标准
评论
0/150
提交评论