<?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>OracleOnLinux &#187; Oracle</title>
	<atom:link href="http://www.oracleonlinux.cn/category/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oracleonlinux.cn</link>
	<description>Oracle and Linux,I Love U.</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:37:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>调试存储过程：ORA-0131 Insufficient privileges 处理</title>
		<link>http://www.oracleonlinux.cn/2012/02/07/debug-procedures/</link>
		<comments>http://www.oracleonlinux.cn/2012/02/07/debug-procedures/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 09:28:03 +0000</pubDate>
		<dc:creator>Asher</dc:creator>
				<category><![CDATA[Experience]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[experiences]]></category>

		<guid isPermaLink="false">http://www.oracleonlinux.cn/?p=664</guid>
		<description><![CDATA[昨天，一开发同事反映说在PL/SQL Developer工具里无法调试存储过程，报错信息如下：
ORA-0131:Insufficient privileges.
Note:Debugging requires the DEBUG CONNECT SESSION system privileges. &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.oracleonlinux.cn/2012/02/07/debug-procedures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>impdp ORA-31655错误处理一例</title>
		<link>http://www.oracleonlinux.cn/2012/02/03/impdp-ora-31655/</link>
		<comments>http://www.oracleonlinux.cn/2012/02/03/impdp-ora-31655/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 07:37:43 +0000</pubDate>
		<dc:creator>Asher</dc:creator>
				<category><![CDATA[Experience]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[IMPDP]]></category>

		<guid isPermaLink="false">http://www.oracleonlinux.cn/?p=659</guid>
		<description><![CDATA[今天上午，收到开发同事发过来的邮件：
需要将从之前用EXPDP备份的dump文件中，将某张表还原到一个新的schema下。
电话沟通后，原来是想要将逻辑备份的dump文件中FR8_ZH这个用户下的SB_DATA_RIGHT，导入到同库下的FR8_TEST9这个schema下。
①&#160; 于是开始干活：
C:\Documents and Settings\Administrator&#62;impdp directory=my_dump dumpfile=2012-01
	-23.dmp logfile=fr8_test9.log remap_schema=fr8_zh:fr8_test9 tables=SB_DATA_RIGHT
Import: Release 10.2.0.5.0 &#8211; Production on 星期五, 03 2月, 2012 11:32:53
Copyright (c) 2003, 2007, Oracle.&#160; All rights reserved.
用户名: sys/oracle as sysdba
连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 &#8211; Production
	With the Partitioning, OLAP, Data Mining and Real Application Testing options
	ORA-31655: 尚未为作业选择数据或元数据对象
	已成功加载/卸载了主表 &#34;SYS&#34;.&#34;SYS_IMPORT_TABLE_01&#34;
	启动 &#34;SYS&#34;.&#34;SYS_IMPORT_TABLE_01&#34;:&#160; sys/******** AS SYSDBA directory=my_dump [...]]]></description>
		<wfw:commentRss>http://www.oracleonlinux.cn/2012/02/03/impdp-ora-31655/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决ORA-12516错误一则</title>
		<link>http://www.oracleonlinux.cn/2012/01/30/resolve-ora-12516/</link>
		<comments>http://www.oracleonlinux.cn/2012/01/30/resolve-ora-12516/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 04:01:42 +0000</pubDate>
		<dc:creator>Asher</dc:creator>
				<category><![CDATA[Experience]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[experiences]]></category>

		<guid isPermaLink="false">http://www.oracleonlinux.cn/?p=653</guid>
		<description><![CDATA[在上周五晚上通宵加班将一套10.2.0.5.0的Linux 虚拟机环境下的数据量为260GB 的双节点RAC数据库顺利迁移至一台物理机器的开发数据库后，这两天开发的同事反映说连不上物理机开发库了。
起初，我也没有太在意，的确是因为这两天公司内部网络不太正常，ping物理开发库延时比较严重，偶有timed out现象，就一直以为是网络的问题了。直到中午的时候，同事说网络基本正常了，用PL/SQL Developer客户端工具连数据库的时候报出Ora-12516的错误，这才引起了我的注意！
上Metalink查了一下，看了&#8220;Troubleshooting Guide TNS-12519 TNS-12516 ORA-12519 ORA-12516 [ID 552765.1]&#8221;的文章后，才知道了自己迁移数据库后粗心大意犯下的错误。原来的RAC数据库中每个实例中都将process初始化参数都设置了400，sessions=445，而现在是单台数据库对外提供服务，导致会话数不够用，最终导致的Ora-12516的错误！其实，对于这种开发库而言，公司的开发同事并不多，怎么可能导致445个会话还不够连接使用呢？其实，造成问题的最根本原因是开发人员的应用程序中的连接池配置的有问题，连接数配置过高导致的！！！！
找到了问题的基本原因后，就将process初始化参数从400改为600，进而sessions自动被置为665，transactions参数自动置为731。然后，重启数据库。
&#160;&#160;&#160;&#160;&#160;&#160;&#160; 在oracle数据库的初始化参数中，有一类参数是推倒参数，其中：
&#160;&#160;&#160;&#160;&#160;&#160;&#160; sessions=1.1*processes+5,transactions=1.1*sessions.
这样，问题得到了基本的解决。
事后，又出现了一些不痛不痒的问题。
这不，年后简单记录下发生在这个春节前的种种问题，及解决问题的方法：
① 会话数不够用，导致Ora-12516的错误。解决方法，加大process初始化参数，或者通知修改应用程序中的连接数；
② 通过在数据库端配置profile来控制每个会话的活动时间，过期由数据库自动断开会话；
③ 通过使用共享服务器模式来控制数据库服务器端的进程资源；
④ 最头大的问题就是，有个开发的同事将自己PC机器的IP地址设置了同数据库服务器相同的IP地址，导致其他开发人员一直连接不上数据库！！！这个问题可不是第一次遇见，解决办法，协同网络管理员将数据库服务器IP绑定到MAC。
&#160;
其实，这本来是去年春节前遇到的一则案例，后来由于太忙，赶着要回家，于是拖到了今天才发布出来！
点击阅读感兴趣的文章February 7, 2012 -- 调试存储过程：ORA-0131 Insufficient privileges 处理 (0)November 23, 2011 -- 如何从逻辑备份的dumpfile文件里获取头部详细信息？ (0)February 3, 2012 -- impdp ORA-31655错误处理一例 (0)December 14, 2011 -- Oracle OCP考试1z0-007系列2:学会使用WHERE和ORDER BY从句 (0)December 8, 2011 -- Oracle OCP考试1z0-007系列1:学会使用基本的SQL语句 (0)]]></description>
		<wfw:commentRss>http://www.oracleonlinux.cn/2012/01/30/resolve-ora-12516/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle OCP考试1z0-007系列2:学会使用WHERE和ORDER BY从句</title>
		<link>http://www.oracleonlinux.cn/2011/12/14/oracle-ocp-1z0-007-chap2/</link>
		<comments>http://www.oracleonlinux.cn/2011/12/14/oracle-ocp-1z0-007-chap2/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 14:28:43 +0000</pubDate>
		<dc:creator>Asher</dc:creator>
				<category><![CDATA[OCP]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[007]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.oracleonlinux.cn/?p=631</guid>
		<description><![CDATA[继上篇日志，Oracle OCP考试1z0-007系列1:学会使用基本的SQL语句后，本篇是系列2，学会使用WHERE和ORDER BY从句。
本篇是1z0-007课程的第二章，主要内容：
1 学会使用WHERE从句从结果集中过滤数据；
2 学会使用ORDER BY从句对结果集进行排序。
本篇内容比较简单，只涉及到WHERE从句和ORDER BY从句两个知识点。
附：具体文档和讲义。
 Lesson02 学会使用WHERE、ORDER BY子句 
 View more presentations from renguzi 

点击阅读感兴趣的文章December 8, 2011 -- Oracle OCP考试1z0-007系列1:学会使用基本的SQL语句 (0)December 2, 2011 -- Oracle OCP考试1z0-007题库 (0)February 7, 2012 -- 调试存储过程：ORA-0131 Insufficient privileges 处理 (0)February 3, 2012 -- impdp ORA-31655错误处理一例 (0)January 30, 2012 -- 解决ORA-12516错误一则 (0)]]></description>
		<wfw:commentRss>http://www.oracleonlinux.cn/2011/12/14/oracle-ocp-1z0-007-chap2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle OCP考试1z0-007系列1:学会使用基本的SQL语句</title>
		<link>http://www.oracleonlinux.cn/2011/12/08/oracle-ocp-1z0-007-chap1/</link>
		<comments>http://www.oracleonlinux.cn/2011/12/08/oracle-ocp-1z0-007-chap1/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 01:54:35 +0000</pubDate>
		<dc:creator>Asher</dc:creator>
				<category><![CDATA[OCP]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[007]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.oracleonlinux.cn/?p=622</guid>
		<description><![CDATA[在上一篇博文里提到Oracle OCP考试1z0-007考试的题库。从本篇开始，将带来Oracle OCP 1z0-007考试的相关文档和资料。
本篇是1z0-007课程的第一章，主要内容：
1  学会使用基本的SQL语句；
2  了解SQL语句的功能；
3  学会如何执行基本的SQL语句；
4  了解SQL语句与iSQL*PLUS命令的差别。
附：下述是具体文档和讲义。
 Lesson01 学会使用基本的SQL语句 
 View more presentations from renguzi 

点击阅读感兴趣的文章December 14, 2011 -- Oracle OCP考试1z0-007系列2:学会使用WHERE和ORDER BY从句 (0)December 2, 2011 -- Oracle OCP考试1z0-007题库 (0)February 7, 2012 -- 调试存储过程：ORA-0131 Insufficient privileges 处理 (0)February 3, 2012 -- impdp ORA-31655错误处理一例 (0)January 30, 2012 -- 解决ORA-12516错误一则 (0)]]></description>
		<wfw:commentRss>http://www.oracleonlinux.cn/2011/12/08/oracle-ocp-1z0-007-chap1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

