<?xml version="1.0" encoding="gbk"?>
			<?xml-stylesheet type="text/css" href="http://space.itpub.net/css/rss.css"?>
			<rss version="2.0">
			  <channel>
			    <title>赵宇的DBA记事本</title>
			    <link>http://space.itpub.net/175005</link>
			    <description>欢迎Oracle的朋友们,通过交流和学习,互相进步.我通过这个空间把自己的实践和测试都记录下来,与你们共同分享,请多指教

最近读完的书:

&lt;&lt;Sybex.OCP.Oracle.10g.Administration.I.Study.Guide&gt;&gt;

&lt;&lt;Sybex.OCP.Oracle.10g.Administration.II.Study.Guide&gt;&gt;

&lt;&lt;Version3.0-Oracle Database 10g-Administration Workshop I&gt;&gt;

&lt;&lt;Version3.0-Oracle Database 10g-Administration Workshop II&gt;&gt;

&lt;&lt;Oracle 9i 性能调整指南&gt;&gt;</description>
			    <copyright>Copyright(C) 赵宇的DBA记事本</copyright>
			    <generator>SupeSite/X-Space</generator>
			    <lastBuildDate>Mon, 13 Oct 2008 11:46:10 GMT</lastBuildDate><item>
								<title>基于datafile的不完全恢复</title>
								<link>http://space.itpub.net/175005/viewspace-440323</link>
								<description><![CDATA[测试的缘由：一直我们都对OCP的不完全恢复有着概念的理解，那就是不完全恢复只能针对数据库，不能对datafile,这个是没有问题，但是10g的闪回数据库是否给了我们一个概念，那就是可以往回查找数据。如果没有闪回功能，没有备份，只有归档，可以恢复吗，也是可以的。<BR>&nb...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Mon, 01 Sep 2008 10:31:14 GMT</pubDate>
							</item>
							<item>
								<title>重建控制文件之后，只读表空间的状态变化</title>
								<link>http://space.itpub.net/175005/viewspace-429391</link>
								<description><![CDATA[<P>SQL&gt; alter tablespace staging read only;</P>
<P>SQL&gt; alter database backup controlfile to trace;</P>
<P>Database altered.</P>
<P>SQL&gt; shutdown immediate;<BR>Database closed.<BR>Database dismounted.<BR>ORACLE instance shut down.<BR>SQL&gt...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Fri, 15 Aug 2008 13:38:12 GMT</pubDate>
							</item>
							<item>
								<title>打Oracle最新CPU patch与打临时补丁的区别</title>
								<link>http://space.itpub.net/175005/viewspace-420428</link>
								<description><![CDATA[<P><FONT size=2>Oracle最近推出CPU (Critical Patch Updated),别看错了，不是那个CPU，是关键更新补丁，修补了很多bug，这个CPU是patch一个集合，我们可以看一下：</FONT></P>
<P><FONT size=2>打补丁用Opatch工具，下载地址：</FONT></P>
<P class=MsoNormal style="M...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Wed, 06 Aug 2008 08:41:37 GMT</pubDate>
							</item>
							<item>
								<title>Oracle隐式参数</title>
								<link>http://space.itpub.net/175005/viewspace-417550</link>
								<description><![CDATA[The following is a list of undocumented parameters. <BR>1. _db_block_cache_protect <BR>&nbsp; &nbsp;&nbsp;&nbsp;On VMS, the DB_BLOCK_CACHE_PROTECT mechanism has been made much <BR>&nbsp; &nbsp;&nbsp;&nbsp;faster.&nbsp;&nbsp;During normal use, having it...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Sat, 02 Aug 2008 20:24:32 GMT</pubDate>
							</item>
							<item>
								<title>Outline (存储大纲)与analyze的统计分析关系</title>
								<link>http://space.itpub.net/175005/viewspace-410087</link>
								<description><![CDATA[<P>在emp2表的mgr列上建立了索引,建立后对表做了分析.</P>
<P>SQL&gt; alter session set use_stored_outlines=false;</P>
<P>会话已更改。</P>
<P>SQL&gt; analyze table emp2 compute statistics;</P>
<P>表已分析。</P>
<P>SQL&gt; select * from emp2 where mgr=...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Fri, 25 Jul 2008 11:22:03 GMT</pubDate>
							</item>
							<item>
								<title>alter index compute statistics与analyze index的比较</title>
								<link>http://space.itpub.net/175005/viewspace-407117</link>
								<description><![CDATA[<P>&nbsp; 今天分析数据时,把命令敲错了,本来想写analyze ,却写成了alter,后来发现了,以前还没有对alter和analyze分析和修改数据的过程进行比较,开了session跟踪比较了一下:</P>
<P>&nbsp; SQL&gt; alter index pk_emp compute statistics;</P>
<P>索引已更改。</P>
<P...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Wed, 23 Jul 2008 15:03:42 GMT</pubDate>
							</item>
							<item>
								<title>ASM磁盘分区或者设备文件删除后恢复的方法</title>
								<link>http://space.itpub.net/175005/viewspace-402150</link>
								<description><![CDATA[<FONT size=2>$ export ORACLE_SID=+ASM<BR>$ sqlplus / as sysdba<BR><BR>查看磁盘组的状态和磁盘组的类型,这里的磁盘组是外部<BR>SQL&gt; select name,type,state from v$asm_diskgroup;<BR><BR>NAME&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Wed, 16 Jul 2008 14:55:48 GMT</pubDate>
							</item>
							<item>
								<title>Alert_sid.log中出现Event 13740 Messages</title>
								<link>http://space.itpub.net/175005/viewspace-374706</link>
								<description><![CDATA[<P>检查alert_sid.log出现:</P>
<P>Starting ORACLE instance (normal)<BR>LICENSE_MAX_SESSION = 0<BR>LICENSE_SESSIONS_WARNING = 0<BR>Interface type 1 lan1 10.0.0.0 configured from OCR for use as a cluster interconnect<BR>Interface type 1 lan0 192.168.10.0...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Wed, 09 Jul 2008 11:03:52 GMT</pubDate>
							</item>
							<item>
								<title>关于_ksmg_granule_size与SGA大小的关系</title>
								<link>http://space.itpub.net/175005/viewspace-374472</link>
								<description><![CDATA[<P>SQL&gt; show parameter large<BR><BR>NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Tue, 08 Jul 2008 11:30:03 GMT</pubDate>
							</item>
							<item>
								<title>TNS-12535 Unable To Connect To Remote Database using certain Applications</title>
								<link>http://space.itpub.net/175005/viewspace-366139</link>
								<description><![CDATA[<P>今天到sqlnet.log看有一些这样的错误信息:</P>
<P>ORA/TNS-12535: TNS:operation timed out</P>
<P>Symptoms:</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TNSPING command fails with the TNS-12535 error:</P>
<P>C:\oracle\ora92\network\admin\sqlnet.ora<BR>Used ...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Fri, 27 Jun 2008 16:35:23 GMT</pubDate>
							</item>
							<item>
								<title>从OMF和备份角度看ASM的优点</title>
								<link>http://space.itpub.net/175005/viewspace-365964</link>
								<description><![CDATA[现在大多数数据库还是采用filesystem 和 raw device.大家都认为ASM不太可靠,包括我也这么认为.但是从维护这一年RAC+ASM来看,<BR>除了几次硬件故障,ASM还是比较稳定的,还有一些好处,当然我只是针对ERP这种生产库讲个人感觉,<BR>象电信和淘宝他们的业务太复杂,并发很大,库也...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Thu, 26 Jun 2008 09:06:57 GMT</pubDate>
							</item>
							<item>
								<title>用10.2.0.1RMAN全备恢复10.2.0.4数据库,通过RESTOREBACKUPPIECE,APPLYBACKUPPIECE解决</title>
								<link>http://space.itpub.net/175005/viewspace-365951</link>
								<description><![CDATA[1.升级备份服务器的数据库到10.2.0.4<BR><BR>2.通过FTP把生产数据库(10.2.0.1 RAC)的RMAN的full backupset全部copy 到备份数据库上。<BR><BR>3.rman target / nocatalog<BR><BR>4.startup nomount<BR><BR>5.restore controlfile from 'file_path';(从生产库考过来那个控制...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Thu, 26 Jun 2008 08:28:51 GMT</pubDate>
							</item>
							<item>
								<title>RMAN-DBMS_BACKUP_RESTORE</title>
								<link>http://space.itpub.net/175005/viewspace-364761</link>
								<description><![CDATA[<P>[转Metalink]</P>
<P>How to extract controlfiles, datafiles, and archived logs from SMR backupsets without using RMAN </P>
<P><FONT size=2></FONT></P><BR>
<TABLE cellSpacing=0 cellPadding=0 width="80%" border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSp...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Wed, 25 Jun 2008 09:32:25 GMT</pubDate>
							</item>
							<item>
								<title>解决UNIX下@符号报SP2-0734错误</title>
								<link>http://space.itpub.net/175005/viewspace-351961</link>
								<description><![CDATA[<P>今天重起备份服务器，发生数据库down了,检查发现,原来是一个磁盘没有自动挂载</P>
<P># ioscan -funCdisk<BR>Class&nbsp;&nbsp;&nbsp;&nbsp; I&nbsp; H/W Path&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Driver&nbsp;&nbsp;&nbsp;&nbsp; S/W State&nbsp;&nbsp; H/W Type&n...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Fri, 20 Jun 2008 13:27:38 GMT</pubDate>
							</item>
							<item>
								<title>呵呵,成功拍上Eygle的书</title>
								<link>http://space.itpub.net/175005/viewspace-344531</link>
								<description><![CDATA[<P><A href="http://space.itpub.net/12869741/viewspace-344522">http://space.itpub.net/12869741/viewspace-344522</A></P>
<P>由于拍卖系统出了问题,11号的拍卖结果没显示出来,发现今天又拍卖这本书,昨天要不是三思兄竞拍,能省一些space币,不过还是185元拍上,这本书在...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Thu, 12 Jun 2008 15:34:05 GMT</pubDate>
							</item>
							<item>
								<title>ORA-29368: 使用者组 DEVELOPERS 不存在</title>
								<link>http://space.itpub.net/175005/viewspace-324115</link>
								<description><![CDATA[<P>为了把scott用户转移到定义的资源群,但是出现这样的错误</P>
<P>第 1 行出现错误:<BR>ORA-29368: 使用者组 DEVELOPERS 不存在<BR>ORA-06512: 在 "SYS.DBMS_RMIN", line 432<BR>ORA-06512: 在 "SYS.DBMS_RESOURCE_MANAGER", line 498<BR>ORA-06512: 在 line 2</P>
<P>...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Thu, 29 May 2008 14:42:07 GMT</pubDate>
							</item>
							<item>
								<title>ASM磁盘(asm_disk),故障组(failgroup),磁盘组(diskgroup)之间的关联分析</title>
								<link>http://space.itpub.net/175005/viewspace-312636</link>
								<description><![CDATA[<BR><A href="http://www.itpub.net/attachment.php?aid=532522" target=_blank><IMG src="http://file.itpub.net/attachment/day_080527/20080527_5146e2d179660fe76cdd8cr9hs5rU58V.jpg" border=0><BR>1.jpg</A><BR><BR><FONT size=2><FONT face="Times New Roman">ASM<...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Tue, 27 May 2008 16:23:51 GMT</pubDate>
							</item>
							<item>
								<title>ASM文件别名的分析</title>
								<link>http://space.itpub.net/175005/viewspace-312584</link>
								<description><![CDATA[<P>今天用RMAN把一个本地磁盘的文件COPY到ASM,起了一样的名字:</P>
<P>RMAN&gt;copy datafile 6 to '+DISK_GROUP2/TEST/TEST.DBF';</P>
<P>我们都知道ASM文件名字的格式是固定的:</P>
<P><FONT color=#0000ff>+group/dbname/file type/tag.file.incarnation</FONT></P>...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Tue, 27 May 2008 11:43:54 GMT</pubDate>
							</item>
							<item>
								<title>ORA-30052 错误</title>
								<link>http://space.itpub.net/175005/viewspace-293573</link>
								<description><![CDATA[<P><FONT size=2><FONT color=#cc0033>ORA-30052</FONT>: invalid lower limit snapshot expression</FONT><BR></P>
<P>删除了一个表,没记住具体时间,结果闪回版本查询时,出现上面那个错误,原因是我的undo_rentention=900只记录了15分钟,可以能上限选择15分钟之前,或者下...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Fri, 23 May 2008 10:12:47 GMT</pubDate>
							</item>
							<item>
								<title>RMAN :  set newname for命令的一点研究</title>
								<link>http://space.itpub.net/175005/viewspace-293486</link>
								<description><![CDATA[<P>RMAN&gt; run<BR>2&gt; {<BR>3&gt; set until time '2008-05-22 09:10:31';<BR>4&gt; set newname for datafile 6 to 'D:\oracle\product\10.2.0\flash_recovery_area\test2.dbf';<BR>5&gt; restore database;<BR>6&gt; switch datafile all;<BR>7&gt; recover databas...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Thu, 22 May 2008 11:01:16 GMT</pubDate>
							</item>
							<item>
								<title>做restore时用datafilecopy恢复时,影响数据文件的大小</title>
								<link>http://space.itpub.net/175005/viewspace-293437</link>
								<description><![CDATA[<P><BR>SQL&gt; alter tablespace test read write;</P>
<P>表空间已更改。</P>
<P>SQL&gt; alter database datafile 6 offline;</P>
<P>数据库已更改。</P>
<P>SQL&gt; alter database datafile 6 online;<BR>alter database datafile 6 online<BR>*<BR>第 1 行出现错...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Wed, 21 May 2008 15:53:00 GMT</pubDate>
							</item>
							<item>
								<title>恢复目录视图调用的问题</title>
								<link>http://space.itpub.net/175005/viewspace-281132</link>
								<description><![CDATA[<P>我们在用RMAN做备份以后,可以通过目标数据库的视图和恢复目录的视图查看备份结果,也可以用list backup,report来查看.</P>
<P>SQL&gt; select count(*) from v$backup_files;</P>
<P>&nbsp; COUNT(*)<BR>----------<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 39...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Wed, 21 May 2008 10:41:04 GMT</pubDate>
							</item>
							<item>
								<title>ASM  Failure Group的一点理解</title>
								<link>http://space.itpub.net/175005/viewspace-281026</link>
								<description><![CDATA[<P>用perl创建了两个RAW的1G文件,准备做failure group</P>
<P><BR>SQL&gt; select GROUP_NUMBER,DISK_NUMBER,INCARNATION,MOUNT_STATUS,HEADER_STATUS,MODE_STATUS,STATE,REDUNDANCY,<BR>&nbsp; 2&nbsp; TOTAL_MB,FREE_MB,NAME,FAILGROUP from v$asm_disk;</P>
<P><BR>&...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Tue, 20 May 2008 11:32:30 GMT</pubDate>
							</item>
							<item>
								<title>10G传输表空间遇到发行版本问题</title>
								<link>http://space.itpub.net/175005/viewspace-269210</link>
								<description><![CDATA[<P>SQL&gt; conn / as sysdba<BR>已连接。<BR>SQL&gt; select * from&nbsp; v$tablespace;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TS# NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Thu, 15 May 2008 15:45:34 GMT</pubDate>
							</item>
							<item>
								<title>解决Xmanager连接HPUX显示乱码的问题</title>
								<link>http://space.itpub.net/175005/viewspace-265318</link>
								<description><![CDATA[<P>&nbsp;&nbsp; 当用Xmanager连接HPUX时,即使用当前用户登陆也通常不会显示.profile的信息,除非编辑 .dtprofile文件,vi以后存放这个文件到用户主目录的路径下,主目录可以到etc/passwd下查询:</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ more /etc/passwd |grep oracle<BR...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Tue, 13 May 2008 15:16:19 GMT</pubDate>
							</item>
							<item>
								<title>Shrink操作的注意事项</title>
								<link>http://space.itpub.net/175005/viewspace-261623</link>
								<description><![CDATA[<P>对大表做shrink之前应该分为两步:</P>
<P>&nbsp;</P>
<P>alter table "BAAN"."TTFGLD495200" shrink compact;</P>
<P>alter table "BAAN"."TTFGLD495200" shrink space;</P>
<P>这样会先调整数据块,然后再调整高水位线.</P>
<P>但昨天,出现这样一个小问题,我再做s...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Wed, 07 May 2008 07:11:01 GMT</pubDate>
							</item>
							<item>
								<title>坏块恢复的研究(二)</title>
								<link>http://space.itpub.net/175005/viewspace-261557</link>
								<description><![CDATA[<P>检查数据文件,发现坏块:</P>
<P>C:\Documents and Settings\oracle&gt;dbv file =D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST.DBF</P>
<P>DBVERIFY: Release 10.2.0.4.0 - Production on 星期二 5月 6 15:26:14 2008</P>
<P>Copyright (c) 1982, 2007, Oracle.&nbsp; Al...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Tue, 06 May 2008 16:40:12 GMT</pubDate>
							</item>
							<item>
								<title>坏块恢复的深入研究</title>
								<link>http://space.itpub.net/175005/viewspace-260443</link>
								<description><![CDATA[<P>用UE替换了datafile中的几个字符,注意个数要一致,否则会出现ORA错误,提示datafile大小与blocksize不匹配,或者提示实际块大小小于指定块大小等错误. </P>
<P>C:\Documents and Settings\oracle&gt;dbv file='D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST.DBF'</P>
<P>DBVER...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Mon, 05 May 2008 20:52:51 GMT</pubDate>
							</item>
							<item>
								<title>利用DBMS_REPAIR包检查以及COPY处理坏块:</title>
								<link>http://space.itpub.net/175005/viewspace-260371</link>
								<description><![CDATA[<P>用UE随便修改了几个字符:</P>
<P>SQL&gt; select distinct ename from emp3;<BR>select distinct ename from emp3<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Mon, 05 May 2008 15:55:48 GMT</pubDate>
							</item>
							<item>
								<title>restore point特色二&amp;闪回数据库特性(三)</title>
								<link>http://space.itpub.net/175005/viewspace-255694</link>
								<description><![CDATA[<P>之所以这个题目这么写,是因为可靠的还原点,隐式地打开数据库的闪回特性,启动闪回日志,但是只是针对这个还原点,即使不做alter database flashback on;也可以做flashback database操作,但又不能做flashback database to scn的指定闪回数据库操作,特色而已.</P>
<P>&nbsp...]]></description>
								<category>blog</category>
								<author>赵宇</author>
								<pubDate>Tue, 29 Apr 2008 12:22:13 GMT</pubDate>
							</item>
							
		</channel>
	</rss>