上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页
摘要: 1.添加磁盘--添加完物理磁盘后在root用户下执行命令1 #devfsadm #对新加设备进行在线识别和加载2.分区 1 --显示磁盘的编号列表 2 # format 3 Searching for disks...done 4 5 6 AVAILABLE DISK SELECTIONS: 7 0. c1t0d0 <DEFAULT cyl 1302 alt 2 hd 255 sec 63> 8 /pci@0,0/pci15ad,1976@10/sd@0,0 9 1. c2t0d0 <DEFAULT cyl 1020 al... 阅读全文
posted @ 2013-04-20 19:43 PoleStar 阅读(1315) 评论(0) 推荐(0) 编辑
摘要: Drop Table会释放所占segment的空间,而数据文件占用OS空间不变一.创建表空间,表,插入300条数据 1 SQL> create tablespace tbs datafile '/opt/oracle/oradata/nwom/TEST_TBS.dbf' size 1m autoextend off; 2 3 Tablespace created. 4 5 SQL> create table t1 (a char(2000)) tablespace tbs; 6 7 Table created. 8 9 --插入300条数据10 SQL> be 阅读全文
posted @ 2013-03-29 14:36 PoleStar 阅读(2362) 评论(0) 推荐(0) 编辑
摘要: 一。基础演示:[nwom@WLAN-linux-3 ~]$ vmstat -n 2 10 ([nwom@WLAN-linux-3~]vmstat –n 2 10 以每2秒钟的频率执行10次取样)procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st19 0 192 1120896 386040 14156336 0 ... 阅读全文
posted @ 2013-03-11 18:15 PoleStar 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 一.ITL(Interested Transaction List): ITL(Interested Transaction List)是Oracle数据块内部的一个组成部分,位于数据块头(block header),itl由xid,uba,flag,lck和scn/fsc组成,用来记录该块所有发生的事务,一个itl可以看作是一条事务记录 当发出一条sql语句时,ORACLE会记录下这个时刻(SCN),然后在buffer cache中查找需要的BLOCK,或者从磁盘上读。当别的会话修改了数据,或者正在修改数据,就会在相应的block上记录ITL,此时ORACLE发现ITL中记录的SCN(S.. 阅读全文
posted @ 2013-03-11 11:47 PoleStar 阅读(916) 评论(0) 推荐(0) 编辑
摘要: 一.Data Block 物理结构图:二.一次对block的dump过程2.1.获取t表行所在的rowid,File id,Block number,Slot number in block 1 SQL> select 2 2 rowid, 3 3 dbms_rowid.rowid_relative_fno(rowid) REL_FNO,--File id 4 4 dbms_rowid.rowid_block_number(rowid) BLOCK_NO,--Block number 5 5 dbms_rowid.rowid_row_numbe... 阅读全文
posted @ 2013-03-11 10:29 PoleStar 阅读(1148) 评论(0) 推荐(0) 编辑
摘要: 1. 查看消耗内存最多的sql(v$sqlarea)1 select b.username ,2 a.buffer_gets , --所有子游标运行这条语句导致的读内存次数3 a.executions, --所有子游标的执行这条语句次数4 a.buffer_gets/decode(a.executions,0,1,a.executions),--这条语句执行一次读取内存次数5 a.sql_text SQL6 from v$sqlarea a,dba_users b7 where a.parsing_user_id = b.user_i... 阅读全文
posted @ 2013-03-06 14:46 PoleStar 阅读(662) 评论(0) 推荐(0) 编辑
摘要: Extents An extent is a logical unit of database storage space allocation consisting of a number ofcontiguous data blocks. One or more extents make up a segment. When the existing space in asegment is completely used, the Oracle server allocates a new extent for the segmentAdvantages of Large Extent. 阅读全文
posted @ 2013-02-28 11:14 PoleStar 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 数据块 In an Oracle database, the block is the smallest unit of data file I/O and the smallest unit ofspace that can be allocated. An Oracle block consists of one or morecontiguous operatingsystem blocks.标准块大小在创建数据库时使用DB_BLOCK_SIZE参数设置;除非重新创建该数据库,否则无法更改用于SYSTEM和TEMPORARY表空间DB_CACHE_SIZE指定标准块大小的DEFAU... 阅读全文
posted @ 2013-02-28 09:58 PoleStar 阅读(313) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始---一.RMAN实现不完全恢复步骤:a.加载数据到mount状态(建议恢复前先做备份);b.为高并发分配多个通道;c.还原所有(所需)的数据文件;d.使用until time,until sequence,until scn来恢复数据库;e.使用resetlogs打开数据库;f.全备数据库;演示RMAN基于until time的例子: 1 SQL> insert into user1.t select 9,'polestar' from dual; 2 1 row created. 3 SQL>... 阅读全文
posted @ 2013-02-23 10:33 PoleStar 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 在Oracle中,三大文件即控制文件,数据文件,日志文件的丢失与破坏都将需要使用还原或恢复来使数据库正常化。而RMAN还原与恢复是实现数据库完整性、可靠性必不可少的手段之一。还原简言之即是将所需的文件从备份中复制到原来文件所在的路径。还原通常可以包括数据库、表空间、数据文件级别的还原。通常还原后的内 阅读全文
posted @ 2013-02-22 17:25 PoleStar 阅读(685) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页