<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>用科技创造明天 &#187; 数据库</title>
	<atom:link href="http://www.cumt.org/blog/category/database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cumt.org</link>
	<description>Visual Studio, Oracle, Java, Visual Basic, PHP, Mac, Windows, Linux, FreeBSD</description>
	<lastBuildDate>Wed, 01 Feb 2012 02:41:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>清理 Oracle archivelog</title>
		<link>http://www.cumt.org/blog/585</link>
		<comments>http://www.cumt.org/blog/585#comments</comments>
		<pubDate>Tue, 23 Aug 2011 06:24:10 +0000</pubDate>
		<dc:creator>thunderw</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.cumt.org/?p=585</guid>
		<description><![CDATA[1、配置RMAN自动管理ARCHIVELOG。也可在RMAN中将数据备份到磁带上，然后将过期的ARCHIVELOG删除； 2、可以手工来处理，步骤如下 1）将/oracle下的相关ARCHIVELOG日志文件移到别的文件系统下（保留一段时间的ARCHIVELOG日志即可，其他的可移走，用系统命令mv移走）。然后打包、压缩，备份到介质上，此时可将这些移出的文件删除。注意：别在原来的/oracle打包了，否则空间占满了就有些麻烦了。 2）以oracle用户登录，执行rman target /。如有多个实例此时执行rman target 用户名/密码@实例名，进入rman 3）在rman中执行 RMAN>list archivelog all; /*列出所有的归档日志文件 RMAN>crosscheck archivelog all; /*与物理归档日志文件保持同步，之前移走了一部分文件，因此执行此命令后会在/oracle目录下找不到的归档日志标记为expired RMAN>list expired archivelog all; /*列出所有expired（过期）的归档日志文件，此时你就可看到移走的归档日志文件均被标记为expired RMAN>delete expired archivelog all; /*在oracle中删除所有过期的expired文件 RMAN>list archivelog all; /*再列出所有的归档日志文件，就可发现移走的日志文件被删掉了 RMAN>exit /*退出]]></description>
		<wfw:commentRss>http://www.cumt.org/blog/585/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle 崩溃后的简单修复</title>
		<link>http://www.cumt.org/blog/570</link>
		<comments>http://www.cumt.org/blog/570#comments</comments>
		<pubDate>Tue, 16 Aug 2011 08:31:51 +0000</pubDate>
		<dc:creator>thunderw</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.cumt.org/?p=570</guid>
		<description><![CDATA[sqlplus /nolog conn / AS sysdba startup mount recover database until cancel; ALTER database OPEN resetlogs;]]></description>
		<wfw:commentRss>http://www.cumt.org/blog/570/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>给 MySQL 的 root 用户赋予或取消权限</title>
		<link>http://www.cumt.org/blog/506</link>
		<comments>http://www.cumt.org/blog/506#comments</comments>
		<pubDate>Fri, 13 May 2011 09:19:19 +0000</pubDate>
		<dc:creator>thunderw</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.cumt.org/?p=506</guid>
		<description><![CDATA[[HOWTO] Grant and Revoke Remote root Access to MySQL To grant root access from all hosts (except for localhost): GRANT ALL PRIVILEGES ON *.* TO root@&#34;%&#34; IDENTIFIED BY 'topsecret'; To revoke root access from all hosts (except for localhost): DELETE FROM mysql.USER WHERE USER = 'root' AND Host = '%'; FLUSH PRIVILEGES; To enable MySQL [...]]]></description>
		<wfw:commentRss>http://www.cumt.org/blog/506/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>补齐被意外砍短的 Oracle .DBF 文件</title>
		<link>http://www.cumt.org/blog/479</link>
		<comments>http://www.cumt.org/blog/479#comments</comments>
		<pubDate>Sun, 20 Feb 2011 12:50:07 +0000</pubDate>
		<dc:creator>thunderw</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.cumt.org/?p=479</guid>
		<description><![CDATA[客户一个建在 Linux 上的 Oracle 系统意外崩溃了。 抢救出来的数据文件似乎被砍掉了一截，小于应有的尺寸。 ORA-01122: database file 4 failed verification check ORA-01110: data file 4: 'xxx/users01.dbf' ORA-01200: actual file size of 1569280 is smaller than correct size of 1569281 应急之下通过 Google 找到了一个临时的对付办法。 1。先造一个大小合适填满零的补丁： $dd if=/dev/zero of=/tmp/patch0 count=1 bs=16k 其中 bs 可以设成init.ora 里设置的 block_size。count 自然是设成 Oracle 抱怨少掉的块数。 2。应用补丁 $cat /tmp/path0 &#62;&#62; $ORACLE_BASE/oradata/$ORACLE_SID/users01.dbf 3。恢复数据文件 SQL&#62;recover [...]]]></description>
		<wfw:commentRss>http://www.cumt.org/blog/479/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-27101</title>
		<link>http://www.cumt.org/blog/90</link>
		<comments>http://www.cumt.org/blog/90#comments</comments>
		<pubDate>Wed, 03 Dec 2008 01:42:58 +0000</pubDate>
		<dc:creator>thunderw</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[ORA-27101]]></category>

		<guid isPermaLink="false">http://www.cumt.org/?p=90</guid>
		<description><![CDATA[客户端报 “ORA-27101: shared memory realm does not exist SVR4 Error: 2: No such file or directory”。 查了半天，竟然是因为服务器上这次起Oracle用的路径和上次不一样。虽然是link到同一目录的，但由于和 lisnter 里配置的不一致，所以导致连不上。重新改过 ORACLE_HOME 之后解决。 顺便记一下启动Oracle的方法： cd $ORACLE_HOME/bin ./sqlplus &#8216;/ as sysdba&#8217; SQL&#62;startup SQL&#62;quit ./lsnrctl start]]></description>
		<wfw:commentRss>http://www.cumt.org/blog/90/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一些关于 Oracle 的 Link</title>
		<link>http://www.cumt.org/blog/28</link>
		<comments>http://www.cumt.org/blog/28#comments</comments>
		<pubDate>Mon, 24 Nov 2008 14:52:26 +0000</pubDate>
		<dc:creator>thunderw</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://www.cumt.org/?p=28</guid>
		<description><![CDATA[一些很好用的script: http://vsbabu.org/oracle/ 关于 Oracle 的回收站 在Oracle 里访问Oracle: 计算机世界网-Oracle 异构服务实践]]></description>
		<wfw:commentRss>http://www.cumt.org/blog/28/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>备份 Oracle</title>
		<link>http://www.cumt.org/blog/15</link>
		<comments>http://www.cumt.org/blog/15#comments</comments>
		<pubDate>Mon, 24 Nov 2008 05:48:40 +0000</pubDate>
		<dc:creator>thunderw</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://www.cumt.org/?p=15</guid>
		<description><![CDATA[表单位 备份指定表 exp icdmain/icd rows=y indexes=n compress=n buffer=65536 feedback=100000 file=exp_icdmain_table_yyyymmdd.dmp log=exp_icdmain_table_yyyymmdd.log tables=icdmain.commoninformation,icdmain.serviceinfo,icdmain.dealinfo 恢复所有的表 imp icdmain/icd fromuser=icdmain touser=icdmain rows=y indexes=n commit=y buffer=65536 feedback=100000 ignore=y file=exp_icdmain_table_yyyymmdd.dmp log=imp_icdmain_table_yyyymmdd.log 恢复其中一部分表 imp icdmain/icd fromuser=icdmain touser=icdmain rows=y indexes=n commit=y buffer=65536 feedback=100000 ignore=y file=exp_icdmain_table_yyyymmdd.dmp log=imp_icdmain_table_yyyymmdd.log tables=commoninformation,serviceinfo 用户单位 备份指定用户的所有对象 exp icdmain/icd rows=y indexes=n compress=n buffer=65536 feedback=100000 owner=icdmain file=exp_icdmain_user_yyyymmdd.dmp log=exp_icdmain_user_yyyymmdd.log 恢复指定用户的所有对象 imp icdmain/icd fromuser=icdmain [...]]]></description>
		<wfw:commentRss>http://www.cumt.org/blog/15/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>缩小 Oracle 表空间</title>
		<link>http://www.cumt.org/blog/12</link>
		<comments>http://www.cumt.org/blog/12#comments</comments>
		<pubDate>Mon, 24 Nov 2008 05:43:10 +0000</pubDate>
		<dc:creator>thunderw</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://www.cumt.org/?p=12</guid>
		<description><![CDATA[&#8212;&#8212;&#8212;&#8211; maxshrink.sql &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- SET verify off COLUMN file_name format a50 word_wrapped COLUMN smallest format 999,990 heading &#34;Smallest&#124;Size&#124;Poss.&#34; COLUMN currsize format 999,990 heading &#34;Current&#124;Size&#34; COLUMN savings format 999,990 heading &#34;Poss.&#124;Savings&#34; break ON report compute SUM OF savings ON report &#160; COLUMN VALUE new_val blksize SELECT VALUE FROM v$parameter WHERE name = 'db_block_size' / &#160; SELECT file_name, [...]]]></description>
		<wfw:commentRss>http://www.cumt.org/blog/12/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>转移 Oracle 的表空间</title>
		<link>http://www.cumt.org/blog/9</link>
		<comments>http://www.cumt.org/blog/9#comments</comments>
		<pubDate>Mon, 24 Nov 2008 05:39:53 +0000</pubDate>
		<dc:creator>thunderw</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://www.cumt.org/?p=9</guid>
		<description><![CDATA[1.将表空间置于只读 只读状态可以使数据仍然可为用户访问. ALTER tablespace tablespace_name READ ONLY; 2.物理拷贝文件 3.将表空间offline ALTER tablespace tablespace_name offline; 4.rename数据文件 ALTER DATABASE RENAME file 'old_dir_file' TO 'new_dir_file'; 5.将表空间联机 ALTER tablespace tablespace_name online; 6.将表空间置于read write模式 ALTER tablespace tablespace_name READ WRITE;]]></description>
		<wfw:commentRss>http://www.cumt.org/blog/9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>转移 Oracle 的TEMP表空间</title>
		<link>http://www.cumt.org/blog/7</link>
		<comments>http://www.cumt.org/blog/7#comments</comments>
		<pubDate>Mon, 24 Nov 2008 05:38:06 +0000</pubDate>
		<dc:creator>thunderw</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://www.cumt.org/?p=7</guid>
		<description><![CDATA[CREATE tablespace TEMP2 datafile '/data1/ora9data/temp2_01.dbf'　 SIZE 100k TEMPORARY; Tablespace created. ALTER DATABASE DEFAULT TEMPORARY tablespace TEMP2; Database altered. DROP tablespace temp including contents AND datafiles; Tablespace dropped.]]></description>
		<wfw:commentRss>http://www.cumt.org/blog/7/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

