上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页
摘要: 本实验主要介绍将数据库迁移到ASM的过程,并不介绍ASM实例的搭建。实验环境:solaris10+oracle 10R1.迁移前期准备1.1 ASM实例搭建(略)1.2 磁盘分区使用说明 RDBMS 实例ASM实例/dev/dsk/c1t0d0s0/u01/oracle /dev/rdsk/c2t0d0s1 data01:数据文件,控制文件,联机日志/dev/rdsk/c2t1d0s1 /dev/rdsk/c2t2d0s1 data02:控制文件,recovery area/dev/rdsk/c2t3d0s1 2.RDBMS迁移到ASM2.1备份RDBMS至data01bash-3.0... 阅读全文
posted @ 2013-04-20 23:47 PoleStar 阅读(493) 评论(0) 推荐(0)
摘要: 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 阅读(1380) 评论(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 阅读(2423) 评论(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 阅读(508) 评论(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 阅读(981) 评论(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 阅读(1224) 评论(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 阅读(831) 评论(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 阅读(280) 评论(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 阅读(339) 评论(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 阅读(371) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页