<?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; Oracle</title>
	<atom:link href="http://neal.bangpie.net/category/database/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://neal.bangpie.net</link>
	<description>老张的空中之家</description>
	<lastBuildDate>Fri, 06 Nov 2009 15:35:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>查询空闲等待事件</title>
		<link>http://neal.bangpie.net/2009/05/%e6%9f%a5%e8%af%a2%e7%a9%ba%e9%97%b2%e7%ad%89%e5%be%85%e4%ba%8b%e4%bb%b6/</link>
		<comments>http://neal.bangpie.net/2009/05/%e6%9f%a5%e8%af%a2%e7%a9%ba%e9%97%b2%e7%ad%89%e5%be%85%e4%ba%8b%e4%bb%b6/#comments</comments>
		<pubDate>Thu, 21 May 2009 03:27:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://neal.bangpie.net/?p=393</guid>
		<description><![CDATA[在9i和10g里，都可以从perfstat.stats$idle_event 里查看出数据库中定义的空闲等待事件。 select * from perfstat.stats$idle_event; 如果在数据库中没有perfstat这个用户，那么可以从$ORACLE_HOME/rdbms/admin/spctab.sql 里面查看。]]></description>
		<wfw:commentRss>http://neal.bangpie.net/2009/05/%e6%9f%a5%e8%af%a2%e7%a9%ba%e9%97%b2%e7%ad%89%e5%be%85%e4%ba%8b%e4%bb%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>oracle实现进制的转换</title>
		<link>http://neal.bangpie.net/2009/05/oracle%e5%ae%9e%e7%8e%b0%e8%bf%9b%e5%88%b6%e7%9a%84%e8%bd%ac%e6%8d%a2/</link>
		<comments>http://neal.bangpie.net/2009/05/oracle%e5%ae%9e%e7%8e%b0%e8%bf%9b%e5%88%b6%e7%9a%84%e8%bd%ac%e6%8d%a2/#comments</comments>
		<pubDate>Fri, 08 May 2009 04:39:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://neal.bangpie.net/?p=384</guid>
		<description><![CDATA[转自 http://www.eygle.com/archives/2004/06/oracle_howto_convert.html 1.16进制转换为10进制 可以通过to_number函数实现 SQL&#62; select to_number(&#8217;19f&#8217;,'xxx&#8217;) from dual; TO_NUMBER(&#8217;19F&#8217;,'XXX&#8217;) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- 415 SQL&#62; select to_number(&#8216;f&#8217;,'xx&#8217;) from dual; TO_NUMBER(&#8216;F&#8217;,'XX&#8217;) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- 15 2.10进制转换为16进制 可以通过to_char函数转换 SQL&#62; select to_char(123,&#8217;xxx&#8217;) from dual; TO_C &#8212;- 7b SQL&#62; select to_char(4567,&#8217;xxxx&#8217;) from dual; TO_CH &#8212;&#8211; 11d7 3.2进制转换为10进制 从Oracle9i开始,提供函数bin_to_num进行2进制到10进制的转换 SQL&#62; select bin_to_num(1,1,0,1) a,bin_to_num(1,0) b from dual; A B &#8212;&#8211; &#8212;&#8212;&#8212;- 13 2 SQL&#62; select [...]]]></description>
		<wfw:commentRss>http://neal.bangpie.net/2009/05/oracle%e5%ae%9e%e7%8e%b0%e8%bf%9b%e5%88%b6%e7%9a%84%e8%bd%ac%e6%8d%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何用RMAN检测数据库的物理或逻辑corruption</title>
		<link>http://neal.bangpie.net/2009/05/%e5%a6%82%e4%bd%95%e7%94%a8rman%e6%a3%80%e6%b5%8b%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84%e7%89%a9%e7%90%86%e6%88%96%e9%80%bb%e8%be%91corruption/</link>
		<comments>http://neal.bangpie.net/2009/05/%e5%a6%82%e4%bd%95%e7%94%a8rman%e6%a3%80%e6%b5%8b%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84%e7%89%a9%e7%90%86%e6%88%96%e9%80%bb%e8%be%91corruption/#comments</comments>
		<pubDate>Wed, 06 May 2009 02:35:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[rman]]></category>

		<guid isPermaLink="false">http://neal.bangpie.net/?p=376</guid>
		<description><![CDATA[*** This article is being delivered in Draft form and may contain errors. Please use the MetaLink "Feedback" button to advise Oracle of any issues related to this article. *** PURPOSE ------- To explain how RMAN can be used to check for both logical and physical corruption. SCOPE &#38; APPLICATION ------------------- This document is intended [...]]]></description>
		<wfw:commentRss>http://neal.bangpie.net/2009/05/%e5%a6%82%e4%bd%95%e7%94%a8rman%e6%a3%80%e6%b5%8b%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84%e7%89%a9%e7%90%86%e6%88%96%e9%80%bb%e8%be%91corruption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>powerdesigner 生成sql自动加引号的问题</title>
		<link>http://neal.bangpie.net/2009/04/powerdesigner-%e7%94%9f%e6%88%90sql%e8%87%aa%e5%8a%a8%e5%8a%a0%e5%bc%95%e5%8f%b7%e7%9a%84%e9%97%ae%e9%a2%98/</link>
		<comments>http://neal.bangpie.net/2009/04/powerdesigner-%e7%94%9f%e6%88%90sql%e8%87%aa%e5%8a%a8%e5%8a%a0%e5%bc%95%e5%8f%b7%e7%9a%84%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 06:47:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://neal.bangpie.net/?p=321</guid>
		<description><![CDATA[下午有同事问，为何在user_constraints 能查出来一个fk，但为何无法删除约束条件- 报错不存在的约束条件，无法删除。 原因： &#60;网友回复&#62;pd9 以上不版本在生成脚本的时候默认是带有引号的,你看看是不是引号导致的问题,假如是的话,删除那些表重新导下脚本,去掉引号的方法如下:在PDM中右键， 弹出菜单中选择Properties属性选项，然后选择General选项卡，点击DBMS标签右侧那个带小手的图表标记，查看DBMS属性，在弹出的窗 口中选择Script- &#62;SQL- &#62;Format，单击列表中的 &#8220;CaseSensitivityUsingQuote &#8221; ，它的值默认为Yes，把它的值更改为No，然后保存. 将fk的名字加上引号就搞定了。]]></description>
		<wfw:commentRss>http://neal.bangpie.net/2009/04/powerdesigner-%e7%94%9f%e6%88%90sql%e8%87%aa%e5%8a%a8%e5%8a%a0%e5%bc%95%e5%8f%b7%e7%9a%84%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>9.2.0.8 连接dblink,创建存储过程出错</title>
		<link>http://neal.bangpie.net/2009/04/9208-%e8%bf%9e%e6%8e%a5dblink%e5%88%9b%e5%bb%ba%e5%ad%98%e5%82%a8%e8%bf%87%e7%a8%8b%e5%87%ba%e9%94%99/</link>
		<comments>http://neal.bangpie.net/2009/04/9208-%e8%bf%9e%e6%8e%a5dblink%e5%88%9b%e5%bb%ba%e5%ad%98%e5%82%a8%e8%bf%87%e7%a8%8b%e5%87%ba%e9%94%99/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 09:48:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://neal.bangpie.net/?p=318</guid>
		<description><![CDATA[9.2.0.8 连接dblink,创建存储过程出错 SQL&#62; begin 2  select count(*) from t_table where rownum&#60;10; 3  end; 4  / select count(*) from t_table where rownum&#60;10; * ERROR at line 2: ORA-06550: line 2, column 1: PL/SQL: ORA-04052: error occurred when looking up remote object ANBPROD.T_TABLE@ORA9I_LINK ORA-00604: error occurred at recursive SQL level 1 ORA-03106: fatal two-task communication protocol error [...]]]></description>
		<wfw:commentRss>http://neal.bangpie.net/2009/04/9208-%e8%bf%9e%e6%8e%a5dblink%e5%88%9b%e5%bb%ba%e5%ad%98%e5%82%a8%e8%bf%87%e7%a8%8b%e5%87%ba%e9%94%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excel特殊字符导入Oracle 所带来的问题</title>
		<link>http://neal.bangpie.net/2009/04/excel%e4%ba%ba%e4%b8%ba%e8%be%93%e5%85%a5%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6%e5%af%bc%e5%85%a5oracle/</link>
		<comments>http://neal.bangpie.net/2009/04/excel%e4%ba%ba%e4%b8%ba%e8%be%93%e5%85%a5%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6%e5%af%bc%e5%85%a5oracle/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 06:36:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://neal.bangpie.net/?p=314</guid>
		<description><![CDATA[update table set fa=replace(fa,chr(13),&#8221;) ; &#8212; 除去回车符 update table set fa=replace(fa,&#8217; &#8216;,&#8221;) ; &#8212; 除去空格符 我们的例子 select user_nm,user_code,length(user_code),length(replace(replace(user_code,chr(9),&#8221;),&#8217; &#8216;,&#8221;)) from flow_user where length(replace(replace(user_code,chr(9),&#8221;),&#8217; &#8216;,&#8221;))!=length(user_code); ascii码 数值 8、9、10 和 13 可以分别转换为退格符、制表符、换行符和回车符。 用上的chr(13)，并没有解决问题，所以我们这里判断是用户在excel输入的时候，习惯性了使用了制表符，所带来的问题。 所以这里我们使用chr(9)，不出所料。]]></description>
		<wfw:commentRss>http://neal.bangpie.net/2009/04/excel%e4%ba%ba%e4%b8%ba%e8%be%93%e5%85%a5%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6%e5%af%bc%e5%85%a5oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle10g flash_recovery_area 与archive_log</title>
		<link>http://neal.bangpie.net/2009/04/oracle10g-flash_recovery_area-%e4%b8%8earchive_log/</link>
		<comments>http://neal.bangpie.net/2009/04/oracle10g-flash_recovery_area-%e4%b8%8earchive_log/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 10:29:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[10g]]></category>

		<guid isPermaLink="false">http://neal.bangpie.net/?p=311</guid>
		<description><![CDATA[来源  http://space.itpub.net/12361284/viewspace-166618 Oracle9i开始提供闪回查询，以便能在需要的时候查到过去某个时刻的一致性数据，这是通过Undo实现的。这个功能有很大的限制，就是相关事务的undo不能被覆盖，否则就无力回天了。oracle10g大大的增强了闪回查询的功能，并且提供了将整个数据库回退到过去某个时刻的能力，这是通过引入一种新的flashback log实现的。flashback log有点类似redo log，只不过redo log将数据库往前滚，flashback log则将数据库往后滚。为了保存管理和备份恢复相关的文件，oracle10g提供了一个叫做闪回恢复区(Flashback recovery area)的新特性，可以将所有恢复相关的文件，比如flashback log,archive log,backup set等，放到这个区域集中管理。 1.设置闪回恢复区 闪回恢复区主要通过3个初始化参数来设置和管理 db_recovery_file_dest：指定闪回恢复区的位置 db_recovery_file_dest_size：指定闪回恢复区的可用空间大小 db_flashback_retention_target：指定数据库可以回退的时间，单位为分钟，默认1440分钟，也就是一天。当然，实际上可回退的时间还决定于闪回恢复区的大小，因为里面保存了回退所需要的flash log。所以这个参数要和db_recovery_file_dest_size配合修改。 2.启动flashback database 设置了闪回恢复区后，可以启动闪回数据库功能。 首先，数据库必须已经处于归档模式 那么如何设置归档呢？很简单的步骤 1.关闭数据库 SQL&#62; shutdown immediate; 2.启动数据库为mount模式 SQL&#62; startup mount 3.显示和修改归档模式 SQL&#62; archive log list SQL&#62; alter database archivelog; SQL&#62; alter database open 4.设置归档日志的格式 SQL&#62;alter system set log_archive_format=&#8217;ARC%s%t%r.log&#8217; scope=spfile; 5.设置归档日志的存放路径 SQL&#62;alter system set [...]]]></description>
		<wfw:commentRss>http://neal.bangpie.net/2009/04/oracle10g-flash_recovery_area-%e4%b8%8earchive_log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dba_tablespaces 的plugged_in列是什么意思？</title>
		<link>http://neal.bangpie.net/2009/04/dba_tablespaces-%e7%9a%84plugged_in%e5%88%97%e6%98%af%e4%bb%80%e4%b9%88%e6%84%8f%e6%80%9d%ef%bc%9f/</link>
		<comments>http://neal.bangpie.net/2009/04/dba_tablespaces-%e7%9a%84plugged_in%e5%88%97%e6%98%af%e4%bb%80%e4%b9%88%e6%84%8f%e6%80%9d%ef%bc%9f/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 07:42:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://neal.bangpie.net/?p=307</guid>
		<description><![CDATA[select tablespace_name,plugged_in from dba_tablespaces; PLUGGED_IN column shows if the tablespace was &#8220;plugged in&#8221; to this database from another database using the transportable tablespace feature.]]></description>
		<wfw:commentRss>http://neal.bangpie.net/2009/04/dba_tablespaces-%e7%9a%84plugged_in%e5%88%97%e6%98%af%e4%bb%80%e4%b9%88%e6%84%8f%e6%80%9d%ef%bc%9f/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>veritas netbackup 遇到的一个错误</title>
		<link>http://neal.bangpie.net/2009/04/veritas-netbackup-%e9%81%87%e5%88%b0%e7%9a%84%e4%b8%80%e4%b8%aa%e9%94%99%e8%af%af/</link>
		<comments>http://neal.bangpie.net/2009/04/veritas-netbackup-%e9%81%87%e5%88%b0%e7%9a%84%e4%b8%80%e4%b8%aa%e9%94%99%e8%af%af/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 01:26:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://neal.bangpie.net/?p=300</guid>
		<description><![CDATA[参考  http://pradagu.itpub.net/post/216/12681 released channel: t1 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03009: failure of backup command on t1 channel at 12/30/2004 11:21:05 ORA-19506: failed to create sequential file, name=&#8221;cf_TJNPM_8_1_546261663&#8243;, parms=&#8221;" ORA-27028: skgfqcre: sbtbackup returned error ORA-19511: Error received from media manager layer, error text: VxBSAValidateFeatureId: Failed with error: Server Status:  [...]]]></description>
		<wfw:commentRss>http://neal.bangpie.net/2009/04/veritas-netbackup-%e9%81%87%e5%88%b0%e7%9a%84%e4%b8%80%e4%b8%aa%e9%94%99%e8%af%af/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>like 语句中的下划线</title>
		<link>http://neal.bangpie.net/2009/04/like-%e8%af%ad%e5%8f%a5%e4%b8%ad%e7%9a%84%e4%b8%8b%e5%88%92%e7%ba%bf/</link>
		<comments>http://neal.bangpie.net/2009/04/like-%e8%af%ad%e5%8f%a5%e4%b8%ad%e7%9a%84%e4%b8%8b%e5%88%92%e7%ba%bf/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 03:34:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[调优]]></category>

		<guid isPermaLink="false">http://neal.bangpie.net/?p=296</guid>
		<description><![CDATA[今天发现一条语句导致latch free，而该条语句之前没有任何问题。 语句如下： select * from t where  reverse(a.report_id) like &#8216;_9859009002623000209%&#8217;) 本来应该利用上该表上的反序索引。但是因为下划线在sql里面是特殊字符，所以选择了全表扫描。 如果要使用该index，select * from t where reverse(a.report_id) like &#8216;\_9859009002623000209%&#8217;) escape &#8216;\&#8217;; 进行转义。]]></description>
		<wfw:commentRss>http://neal.bangpie.net/2009/04/like-%e8%af%ad%e5%8f%a5%e4%b8%ad%e7%9a%84%e4%b8%8b%e5%88%92%e7%ba%bf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

