<?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>xueyuanblog 的个人博客</title>
	<atom:link href="http://xueyuanblog.blogcn.com/feed" rel="self" type="application/rss+xml" />
	<link>http://xueyuanblog.blogcn.com</link>
	<description>又一个 WordPress 站点</description>
	<lastBuildDate>Thu, 07 Apr 2011 14:55:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Blog Has been temporary transmited</title>
		<link>http://xueyuanblog.blogcn.com/articles/blog-has-been-temporary-transmited.html</link>
		<comments>http://xueyuanblog.blogcn.com/articles/blog-has-been-temporary-transmited.html#comments</comments>
		<pubDate>Thu, 07 Apr 2011 14:54:11 +0000</pubDate>
		<dc:creator>xueyuanblog</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://xueyuanblog.blogcn.com/?p=64</guid>
		<description><![CDATA[Hi, guys I will temporary transmit this blog to http://miloluo.blog.chinaunix.net Pls kindly known that. Milo.]]></description>
			<content:encoded><![CDATA[<p>Hi, guys</p>
<p>I will temporary transmit this blog to <a title="http://miloluo.blog.chinaunix.net" href="http://miloluo.blog.chinaunix.net" target="_blank">http://miloluo.blog.chinaunix.net</a></p>
<p>Pls kindly known that.</p>
<p>Milo.</p>
]]></content:encoded>
			<wfw:commentRss>http://xueyuanblog.blogcn.com/articles/blog-has-been-temporary-transmited.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Penetrating...</title>
		<link>http://xueyuanblog.blogcn.com/articles/penetrating.html</link>
		<comments>http://xueyuanblog.blogcn.com/articles/penetrating.html#comments</comments>
		<pubDate>Mon, 11 May 2009 00:00:00 +0000</pubDate>
		<dc:creator>xueyuanblog</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://xueyuanblog.blogcn.com/diary,25392561.shtml</guid>
		<description><![CDATA[I love you, mom ! I love you, dad ! I love you all and I will always do ! No mater how hard we have been though and are being thought...No mater what kinds of situations our family meets... &#8230; <a href="http://xueyuanblog.blogcn.com/articles/penetrating.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span><br></span><br>
<span>I love you, mom !</span><br>
<span>I love you, dad !</span><br>
<span>I love you all and I will always do !</span></p>
<p><span><br>
No mater how hard we have been though and are being thought...<br></span><span>No mater what kinds of situations our family meets...</span><br>
<span>No mater how other people thinks...</span></p>
<p><span>I will always do what should be in my dreams...</span><br>
<span>I will try all my energies to solve problems...<br>
I will ingore all prejudices...</span></p>
<p><span>Anyway, all the fires and all the courages will penetrate all my life!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://xueyuanblog.blogcn.com/articles/penetrating.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Deeply Moved by the brave little boy</title>
		<link>http://xueyuanblog.blogcn.com/articles/deeply-moved-by-the-brave-little-boy.html</link>
		<comments>http://xueyuanblog.blogcn.com/articles/deeply-moved-by-the-brave-little-boy.html#comments</comments>
		<pubDate>Wed, 21 May 2008 00:00:00 +0000</pubDate>
		<dc:creator>xueyuanblog</dc:creator>
				<category><![CDATA[美丽照片]]></category>

		<guid isPermaLink="false">http://xueyuanblog.blogcn.com/diary,16046232.shtml</guid>
		<description><![CDATA[Clik here ,if you can't watch directly. The nine year's old boy named Lin Hao.He was at classroom when the big earthquake occured on PM 2:28 ,May 12,2008.His teacher told him and his classmates to run outside.While running outside,the boy &#8230; <a href="http://xueyuanblog.blogcn.com/articles/deeply-moved-by-the-brave-little-boy.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span>Clik</span> <a target="_blank" href="http://v.youku.com/v_show/id_ca00xmjgxmzqwoti=.html">here</a> <span>,if you can't watch directly.</span></p>
<p>The <span>nine year's old boy</span> named <span>Lin Hao</span>.He was at classroom when the big earthquake occured on PM 2:28 ,May 12,2008.His teacher told him and his classmates to run outside.While running outside,the boy found his two classmates fainted on the half way. The boy turned round immediate and carried his two classmates on his back and shoulder without hesitate.Because of these action,he got hurt on his arms. And the boy and his little sister and elder sister walked from Yin Xiu town to Du Jiangyan city,but he still have got any news about his parents. This little boy&nbsp; impressed&nbsp; me as brave ,kind-hearted and iron will.<br>
Hope all his families all good !</p>
<p>Let us pray for all the people in this big disaster !<br>
Let us thank those people for rescuing people and curing people that hurted　！<br>
Let us be a family !<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Milo Luo<br>
&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;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; May 21 2008</p>
]]></content:encoded>
			<wfw:commentRss>http://xueyuanblog.blogcn.com/articles/deeply-moved-by-the-brave-little-boy.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PL/SQL Studying (2)</title>
		<link>http://xueyuanblog.blogcn.com/articles/plsql-studying-2.html</link>
		<comments>http://xueyuanblog.blogcn.com/articles/plsql-studying-2.html#comments</comments>
		<pubDate>Sun, 04 May 2008 00:00:00 +0000</pubDate>
		<dc:creator>xueyuanblog</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://xueyuanblog.blogcn.com/diary,15593833.shtml</guid>
		<description><![CDATA[Well,firtst thing I wanna mention is that login.sql file in d racleora92bin. It works in white sqlplus but not sqlplus.It's not like what Eric said to me.To fixed this problem ,we can add a SYSTEM ENVIRONMENT VARIABLE called "SQLPATH",then add &#8230; <a href="http://xueyuanblog.blogcn.com/articles/plsql-studying-2.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well,firtst thing I wanna mention is that login.sql file in d <img src='http://xueyuanblog.blogcn.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley'> racleora92bin. It works in white sqlplus but not sqlplus.It's not like what Eric said to me.To fixed this problem ,we can add a SYSTEM ENVIRONMENT VARIABLE called "SQLPATH",then add that path in it.Then login.sql file works at the loading time while sqlplus login.</p>
<p>Here are some codes , i wrote in Eric's Assignments.</p>
<ul>
<li>The first one is used for caculating the area of circle.</li>
</ul>
<p><span>DECLARE</span><br>
<span>&nbsp;&nbsp; R NUMBER := &amp;radius;</span><br>
<span>&nbsp;&nbsp; PI CONSTANT NUMBER&nbsp; := 3.14;</span><br>
<span>BEGIN</span><br>
<span>&nbsp;&nbsp; DBMS_OUTPUT.PUT_LINE('The area of the circle is ' || PI * R * R );</span><br>
<span>END;</span><br>
<span>/</span></p>
<p>These is another way to do it:<br>
<span>DECLARE</span><br>
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r NUMBER(5,2);</span><br>
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PI CONSTANT number(5,2) := 3.1415;</span><br>
<span>BEGIN</span><br>
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DBMS_OUTPUT.put_line('The area of circle is : ' || PI * power(&amp;r,2) );</span><br>
<span>END;</span></p>
<p>I dont know which is more faster.May be it's too small calculation for cpu or for oracle software.I did some experiences and it haven't show me the very differeces.</p>
<p><span>SQL&gt; DECLARE</span><br>
<span>&nbsp; 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r NUMBER(5,2);</span><br>
<span>&nbsp; 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PI CONSTANT number(5,2) := 3.1415;</span><br>
<span>&nbsp; 4&nbsp; BEGIN</span><br>
<span>&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DBMS_OUTPUT.put_line('The area of circle is : ' || PI * power(&amp;r,2) );</span><br>
<span>&nbsp; 6&nbsp; END;</span><br>
<span>&nbsp; 7&nbsp; /</span><br>
<span>Enter value for r: 3.14</span><br>
<span>The area of circle is : 30.959144</span></p>
<p><span>PL/SQL procedure successfully completed.</span></p>
<p><span>Elapsed: 00:00:00.00</span><br>
<span>SQL&gt; DECLARE</span><br>
<span>&nbsp; 2&nbsp;&nbsp;&nbsp;&nbsp; R NUMBER := &amp;radius;</span><br>
<span>&nbsp; 3&nbsp;&nbsp;&nbsp;&nbsp; PI CONSTANT NUMBER&nbsp; := 3.14;</span><br>
<span>&nbsp; 4&nbsp; BEGIN</span><br>
<span>&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp; DBMS_OUTPUT.PUT_LINE('The area of the circle is ' || PI * R * R );</span><br>
<span>&nbsp; 6&nbsp; END;</span><br>
<span>&nbsp; 7&nbsp; /</span><br>
<span>Enter value for radius: 3.14</span><br>
<span>The area of the circle is 30.959144</span></p>
<p><span>PL/SQL procedure successfully completed.</span></p>
<p><span>Elapsed: 00:00:00.00</span><br>
<span>SQL&gt; /</span><br>
<span>Enter value for radius: 3.1415926536987932384626433832795028841971693993</span><br>
<span>The area of the circle is 30.99055782157106906641289334720356321367</span></p>
<p><span>PL/SQL procedure successfully completed.</span></p>
<p><span>Elapsed: 00:00:00.00</span></p>
]]></content:encoded>
			<wfw:commentRss>http://xueyuanblog.blogcn.com/articles/plsql-studying-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PL/SQL Studying (1)</title>
		<link>http://xueyuanblog.blogcn.com/articles/plsql-studying-1.html</link>
		<comments>http://xueyuanblog.blogcn.com/articles/plsql-studying-1.html#comments</comments>
		<pubDate>Fri, 18 Apr 2008 00:00:00 +0000</pubDate>
		<dc:creator>xueyuanblog</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://xueyuanblog.blogcn.com/diary,15207613.shtml</guid>
		<description><![CDATA[Author : Milo Here we introduce some basic skill of PL/SQL and its tools. First,I wanna introduce settings we wanna set before we coding. 1.set serveroutput on 2.set verify off Second,You should keep your code styles more readable. If you &#8230; <a href="http://xueyuanblog.blogcn.com/articles/plsql-studying-1.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Author : Milo</p>
<p>Here we introduce some basic skill of PL/SQL and its tools.</p>
<p><span>First,I wanna introduce settings we wanna set before we coding.</span><br>
1.set serveroutput on<br>
2.set verify off</p>
<p><span>Second,You should keep your code styles more readable.</span></p>
<p>If you want your output pretty neat,you should follow this rules:<br>
Oracle KEY WORDS should in UPCASE,such as DECLARE,BEGIN,END,IF and so on.<br>
Here is a example：</p>
<div style="font-family: Arial;font-weight: bold">
<pre>
<font size="2"><span>/*      </span><span>        Author: Milo </span><span>      Date: April,16th ,2008</span><span>        Specification:A script to calculate circle area.</span><span>*/</span><span>DECLARE   </span><span>       R NUMBER := &amp;radius;</span><span>   PI CONSTANT NUMBER  := 3.14;</span><span>BEGIN   </span><span>   DBMS_OUTPUT.PUT_LINE('The area of the circle is ' || PI * R * R );</span><span>END;</span><span>/</span><span style="font-style: italic"><br><br><br></span><span style="font-weight: normal">And also try to put some commends when necessary.<br><br><br><span>Third,We can use only three ways to assign values to pl/sql variable:</span><br><br><br><span style="font-weight: bold;text-decoration: underline">Assigning Values to Variables</span>You can use assignment statements to assign values to variables. For example, thefollowing statement assigns a new value to the variable bonus, overwriting its oldvalue:bonus := salary * 0.15;<br><br><br>Variables and constants are initialized every time a block or subprogram is entered. Bydefault, variables are initialized to NULL. Unless you expressly initialize a variable, itsvalue is undefined (NULL) as shown in Example 2–20.Example 2–20 Initialization of Variables and Constants<span>DECLARE</span><span>counter INTEGER;</span><span>BEGIN</span><span>-- COUNTER is initially NULL, so 'COUNTER + 1' is also null.</span><span>counter := counter + 1;</span><span>IF counter IS NULL THEN</span><span>DBMS_OUTPUT.PUT_LINE('COUNTER is NULL not 1.');</span><span>END IF;</span><span>END;</span><span>/</span>To avoid unexpected results, never reference a variable before you assign it a value.The expression following the assignment operator can be arbitrarily complex, but itmust yield a datatype that is the same as or convertible to the datatype of the variable.PL/SQL Expressions and ComparisonsFundamentals of the PL/SQL Language 2-19<br><br><br><span style="font-weight: bold;text-decoration: underline">Assigning BOOLEAN Values</span>Only the values TRUE, FALSE, and NULL can be assigned to a BOOLEAN variable asshown in Example 2–21. You can assign these literal values, or expressions such ascomparisons using relational operators.Example 2–21 Assigning BOOLEAN Values<span>DECLARE</span><span>done BOOLEAN; -- DONE is initially NULL</span><span>counter NUMBER := 0;</span><span>BEGIN</span><span>done := FALSE; -- Assign a literal value</span><span>WHILE done != TRUE -- Compare to a literal value</span><span>LOOP</span><span>counter := counter + 1;</span><span>done := (counter &gt; 500); -- If counter &gt; 500, DONE = TRUE</span><span>END LOOP;</span><span>END;</span><span>/</span><br><br><br><span style="font-weight: bold;text-decoration: underline">Assigning a SQL Query Result to a PL/SQL Variable</span>You can use the SELECT statement to have Oracle assign values to a variable. For eachitem in the select list, there must be a corresponding, type-compatible variable in theINTO list as shown in Example 2–22.Example 2–22 Assigning a Query Result to a Variable<span>DECLARE</span><span>emp_id employees.employee_id%TYPE := 100;</span><span>emp_name employees.last_name%TYPE;</span><span>wages NUMBER(7,2);</span><span>BEGIN</span><span>SELECT last_name, salary + (salary * nvl(commission_pct,0))</span><span>INTO emp_name, wages FROM employees</span><span>WHERE employee_id = emp_id;</span><span>DBMS_OUTPUT.PUT_LINE('Employee ' || emp_name || ' might make ' || wages);</span><span>END;</span><span>/</span>Because SQL does not have a BOOLEAN type, you cannot select column values into aBOOLEAN variable. For additional information on assigning variables with the DMLstatements, including situations when the value of a variable is undefined.</span></font>
</pre></div>
]]></content:encoded>
			<wfw:commentRss>http://xueyuanblog.blogcn.com/articles/plsql-studying-1.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[转]在linux中控制台下，怎么做才能禁用终端响铃</title>
		<link>http://xueyuanblog.blogcn.com/articles/%e8%bd%ac%e5%9c%a8linux%e4%b8%ad%e6%8e%a7%e5%88%b6%e5%8f%b0%e4%b8%8b%ef%bc%8c%e6%80%8e%e4%b9%88%e5%81%9a%e6%89%8d%e8%83%bd%e7%a6%81%e7%94%a8%e7%bb%88%e7%ab%af%e5%93%8d%e9%93%83.html</link>
		<comments>http://xueyuanblog.blogcn.com/articles/%e8%bd%ac%e5%9c%a8linux%e4%b8%ad%e6%8e%a7%e5%88%b6%e5%8f%b0%e4%b8%8b%ef%bc%8c%e6%80%8e%e4%b9%88%e5%81%9a%e6%89%8d%e8%83%bd%e7%a6%81%e7%94%a8%e7%bb%88%e7%ab%af%e5%93%8d%e9%93%83.html#comments</comments>
		<pubDate>Fri, 07 Mar 2008 00:00:00 +0000</pubDate>
		<dc:creator>xueyuanblog</dc:creator>
				<category><![CDATA[我的新得]]></category>

		<guid isPermaLink="false">http://xueyuanblog.blogcn.com/diary,14242104.shtml</guid>
		<description><![CDATA[转自http://www.gentoo.org/doc/zh_cn/faq.xml#beeping 因为最近在linux服务器做实验，没有GUI，只有CUI。在用TAB补全命令时，老是“嘀。。”响，声音太响，想关掉。终于搜索到这个方法，在Centos和ubuntu上都可以关掉终端响铃。 终端响铃声可以使用setterm关闭，如下所示: 代码 7.1: 使用setterm # setterm -blength 0 如果想在启动时就关闭终端响铃，你要把这条命令加入/etc/conf.d/local.start 之中。然而，这只是禁用掉了现在正在使用终端的响铃。想要在其他的终端上禁用响铃的话，把这条命令的输出重定向到目标终端去即可，如下所示: 代码 7.2: 使用setterm (bis) # setterm -blength 0 &#62;/dev/vc/1 你需要用想要禁用响铃的那个终端来替换/dev/vc/1.]]></description>
			<content:encoded><![CDATA[<p>转自http://www.gentoo.org/doc/zh_cn/faq.xml#beeping<br>
<br>
因为最近在linux服务器做实验，没有GUI，只有CUI。在用TAB补全命令时，老是“嘀。。”响，声音太响，想关掉。终于搜索到这个方法，在Centos和ubuntu上都可以关掉终端响铃。<br>
<br>
终端响铃声可以使用setterm关闭，如下所示:<br>
<br>
代码 7.1: 使用setterm<br>
<strong><font color="#FF0000"># setterm -blength 0</font></strong><br>
<br>
<br>
如果想在启动时就关闭终端响铃，你要把这条命令加入/etc/conf.d/local.start 之中。然而，这只是禁用掉了现在正在使用终端的响铃。想要在其他的终端上禁用响铃的话，把这条命令的输出重定向到目标终端去即可，如下所示:<br>
<br>
代码 7.2: 使用setterm (bis)<br>
<strong><font color="#FF0000"># setterm -blength 0 &gt;/dev/vc/1</font></strong><br>
<br>
<br>
你需要用想要禁用响铃的那个终端来替换/dev/vc/1.<br>
<br></p>
]]></content:encoded>
			<wfw:commentRss>http://xueyuanblog.blogcn.com/articles/%e8%bd%ac%e5%9c%a8linux%e4%b8%ad%e6%8e%a7%e5%88%b6%e5%8f%b0%e4%b8%8b%ef%bc%8c%e6%80%8e%e4%b9%88%e5%81%9a%e6%89%8d%e8%83%bd%e7%a6%81%e7%94%a8%e7%bb%88%e7%ab%af%e5%93%8d%e9%93%83.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using RMAN for Full Backup</title>
		<link>http://xueyuanblog.blogcn.com/articles/using-rman-for-full-backup.html</link>
		<comments>http://xueyuanblog.blogcn.com/articles/using-rman-for-full-backup.html#comments</comments>
		<pubDate>Wed, 05 Mar 2008 00:00:00 +0000</pubDate>
		<dc:creator>xueyuanblog</dc:creator>
				<category><![CDATA[实践所得]]></category>

		<guid isPermaLink="false">http://xueyuanblog.blogcn.com/diary,14188325.shtml</guid>
		<description><![CDATA[Tonight ,I tried to use RMAN to a full backup for my Oracle 10g database,here are the scripts: SQL&#62; set linesize 200 SQL&#62; create user rman identified by change_me 2 default tablespace users 3 temporary tablespace temp; User created. SQL&#62; &#8230; <a href="http://xueyuanblog.blogcn.com/articles/using-rman-for-full-backup.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Tonight ,I tried to use RMAN to a full backup for my Oracle 10g database,here are the scripts:<br>
<br>
SQL&gt; set linesize 200<br>
<br>
SQL&gt; create user rman identified by change_me<br>
2 default tablespace users<br>
3 temporary tablespace temp;<br>
<br>
User created.<br>
<br>
SQL&gt; alter user rman identified by passwd;<br>
<br>
User altered.<br>
<br>
SQL&gt; grant resource, connect to rman;<br>
<br>
Grant succeeded.<br>
<br>
<br>
<br>
SQL&gt; alter user rman quota unlimited on users;<br>
<br>
User altered.<br>
<br>
SQL&gt; grant recovery_catalog_owner to rman;<br>
<br>
Grant succeeded.<br>
<br>
=============<br>
<br>
[oracle@localhost ~]$ rman catalog rman@LOVEU<br>
<br>
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Mar 4 23:20:17 2008<br>
<br>
Copyright (c) 1982, 2005, Oracle. All rights reserved.<br>
<br>
recovery catalog database Password:<br>
connected to recovery catalog database<br>
<br>
RMAN&gt; create catalog;<br>
<br>
recovery catalog created<br>
<br>
RMAN&gt; exit<br>
Recovery Manager complete.<br>
<br>
SQL&gt; conn rman/passwd;<br>
Connected.<br>
SQL&gt; select table_name from user_tables;<br>
<br>
TABLE_NAME<br>
------------------------------<br>
DB<br>
NODE<br>
CONF<br>
DBINC<br>
CKP<br>
TS<br>
TSATT<br>
DF<br>
DFATT<br>
TF<br>
TFATT<br>
<br>
TABLE_NAME<br>
------------------------------<br>
OFFR<br>
RR<br>
RT<br>
ORL<br>
RLH<br>
AL<br>
BS<br>
BP<br>
BCF<br>
CCF<br>
XCF<br>
<br>
TABLE_NAME<br>
------------------------------<br>
BSF<br>
BDF<br>
CDF<br>
XDF<br>
BRL<br>
BCB<br>
CCB<br>
SCR<br>
SCRL<br>
CONFIG<br>
XAL<br>
<br>
TABLE_NAME<br>
------------------------------<br>
RSR<br>
FB<br>
ROUT<br>
RCVER<br>
<br>
37 rows selected.<br>
<br>
SQL&gt; select view_name from user_views;<br>
<br>
VIEW_NAME<br>
------------------------------<br>
RC_DATABASE<br>
RC_DATABASE_INCARNATION<br>
RC_RESYNC<br>
RC_CHECKPOINT<br>
RC_TABLESPACE<br>
RC_DATAFILE<br>
RC_TEMPFILE<br>
RC_REDO_THREAD<br>
RC_REDO_LOG<br>
RC_LOG_HISTORY<br>
RC_ARCHIVED_LOG<br>
<br>
VIEW_NAME<br>
------------------------------<br>
RC_BACKUP_SET<br>
RC_BACKUP_PIECE<br>
RC_BACKUP_DATAFILE<br>
RC_BACKUP_CONTROLFILE<br>
RC_BACKUP_SPFILE<br>
RC_DATAFILE_COPY<br>
RC_CONTROLFILE_COPY<br>
RC_BACKUP_REDOLOG<br>
RC_BACKUP_CORRUPTION<br>
RC_COPY_CORRUPTION<br>
RC_OFFLINE_RANGE<br>
<br>
VIEW_NAME<br>
------------------------------<br>
RC_STORED_SCRIPT<br>
RC_STORED_SCRIPT_LINE<br>
RC_PROXY_DATAFILE<br>
RC_PROXY_CONTROLFILE<br>
RC_RMAN_CONFIGURATION<br>
RC_DATABASE_BLOCK_CORRUPTION<br>
RC_PROXY_ARCHIVEDLOG<br>
RC_RMAN_STATUS<br>
RC_RMAN_OUTPUT<br>
RC_BACKUP_FILES<br>
RC_RMAN_BACKUP_SUBJOB_DETAILS<br>
<br>
VIEW_NAME<br>
------------------------------<br>
RC_RMAN_BACKUP_JOB_DETAILS<br>
RC_BACKUP_SET_DETAILS<br>
RC_BACKUP_PIECE_DETAILS<br>
RC_BACKUP_COPY_DETAILS<br>
RC_PROXY_COPY_DETAILS<br>
RC_PROXY_ARCHIVELOG_DETAILS<br>
RC_BACKUP_DATAFILE_DETAILS<br>
RC_BACKUP_CONTROLFILE_DETAILS<br>
RC_BACKUP_ARCHIVELOG_DETAILS<br>
RC_BACKUP_SPFILE_DETAILS<br>
RC_BACKUP_SET_SUMMARY<br>
<br>
VIEW_NAME<br>
------------------------------<br>
RC_BACKUP_DATAFILE_SUMMARY<br>
RC_BACKUP_CONTROLFILE_SUMMARY<br>
RC_BACKUP_ARCHIVELOG_SUMMARY<br>
RC_BACKUP_SPFILE_SUMMARY<br>
RC_BACKUP_COPY_SUMMARY<br>
RC_PROXY_COPY_SUMMARY<br>
RC_PROXY_ARCHIVELOG_SUMMARY<br>
RC_UNUSABLE_BACKUPFILE_DETAILS<br>
RC_RMAN_BACKUP_TYPE<br>
<br>
53 rows selected.<br>
<br>
SQL&gt; select table_name from user_tables;<br>
<br>
TABLE_NAME<br>
------------------------------<br>
DB<br>
NODE<br>
CONF<br>
DBINC<br>
CKP<br>
TS<br>
TSATT<br>
DF<br>
DFATT<br>
TF<br>
TFATT<br>
<br>
TABLE_NAME<br>
------------------------------<br>
OFFR<br>
RR<br>
RT<br>
ORL<br>
RLH<br>
AL<br>
BS<br>
BP<br>
BCF<br>
CCF<br>
XCF<br>
<br>
TABLE_NAME<br>
------------------------------<br>
BSF<br>
BDF<br>
CDF<br>
XDF<br>
BRL<br>
BCB<br>
CCB<br>
SCR<br>
SCRL<br>
CONFIG<br>
XAL<br>
<br>
TABLE_NAME<br>
------------------------------<br>
RSR<br>
FB<br>
ROUT<br>
RCVER<br>
<br>
37 rows selected.<br>
<br>
SQL&gt; select view_name from user_views;<br>
<br>
VIEW_NAME<br>
------------------------------<br>
RC_DATABASE<br>
RC_DATABASE_INCARNATION<br>
RC_RESYNC<br>
RC_CHECKPOINT<br>
RC_TABLESPACE<br>
RC_DATAFILE<br>
RC_TEMPFILE<br>
RC_REDO_THREAD<br>
RC_REDO_LOG<br>
RC_LOG_HISTORY<br>
RC_ARCHIVED_LOG<br>
<br>
VIEW_NAME<br>
------------------------------<br>
RC_BACKUP_SET<br>
RC_BACKUP_PIECE<br>
RC_BACKUP_DATAFILE<br>
RC_BACKUP_CONTROLFILE<br>
RC_BACKUP_SPFILE<br>
RC_DATAFILE_COPY<br>
RC_CONTROLFILE_COPY<br>
RC_BACKUP_REDOLOG<br>
RC_BACKUP_CORRUPTION<br>
RC_COPY_CORRUPTION<br>
RC_OFFLINE_RANGE<br>
<br>
VIEW_NAME<br>
------------------------------<br>
RC_STORED_SCRIPT<br>
RC_STORED_SCRIPT_LINE<br>
RC_PROXY_DATAFILE<br>
RC_PROXY_CONTROLFILE<br>
RC_RMAN_CONFIGURATION<br>
RC_DATABASE_BLOCK_CORRUPTION<br>
RC_PROXY_ARCHIVEDLOG<br>
RC_RMAN_STATUS<br>
RC_RMAN_OUTPUT<br>
RC_BACKUP_FILES<br>
RC_RMAN_BACKUP_SUBJOB_DETAILS<br>
<br>
VIEW_NAME<br>
------------------------------<br>
RC_RMAN_BACKUP_JOB_DETAILS<br>
RC_BACKUP_SET_DETAILS<br>
RC_BACKUP_PIECE_DETAILS<br>
RC_BACKUP_COPY_DETAILS<br>
RC_PROXY_COPY_DETAILS<br>
RC_PROXY_ARCHIVELOG_DETAILS<br>
RC_BACKUP_DATAFILE_DETAILS<br>
RC_BACKUP_CONTROLFILE_DETAILS<br>
RC_BACKUP_ARCHIVELOG_DETAILS<br>
RC_BACKUP_SPFILE_DETAILS<br>
RC_BACKUP_SET_SUMMARY<br>
<br>
VIEW_NAME<br>
------------------------------<br>
RC_BACKUP_DATAFILE_SUMMARY<br>
RC_BACKUP_CONTROLFILE_SUMMARY<br>
RC_BACKUP_ARCHIVELOG_SUMMARY<br>
RC_BACKUP_SPFILE_SUMMARY<br>
RC_BACKUP_COPY_SUMMARY<br>
RC_PROXY_COPY_SUMMARY<br>
RC_PROXY_ARCHIVELOG_SUMMARY<br>
RC_UNUSABLE_BACKUPFILE_DETAILS<br>
RC_RMAN_BACKUP_TYPE<br>
<br>
53 rows selected.<br>
<br>
SQL&gt;<br>
<br>
<br>
============<br>
<br>
[oracle@localhost ~]$ rman catalog rman@LOVEU target /<br>
<br>
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Mar 4 23:27:56 2008<br>
<br>
Copyright (c) 1982, 2005, Oracle. All rights reserved.<br>
<br>
connected to target database: LOVEU (DBID=891266886)<br>
recovery catalog database Password:<br>
connected to recovery catalog database<br>
<br>
RMAN&gt; register database;<br>
<br>
database registered in recovery catalog<br>
starting full resync of recovery catalog<br>
full resync complete<br>
<br>
RMAN&gt; report schema<br>
2&gt; ;<br>
<br>
Report of database schema<br>
<br>
List of Permanent Datafiles<br>
===========================<br>
File Size(MB) Tablespace RB segs Datafile Name<br>
---- -------- -------------------- ------- ------------------------<br>
1 480 SYSTEM YES /u01/app/oracle/oradata/LOVEU/system01.d bf<br>
2 30 UNDOTBS1 YES /u01/app/oracle/oradata/LOVEU/undotbs01. dbf<br>
3 260 SYSAUX NO /u01/app/oracle/oradata/LOVEU/sysaux01.d bf<br>
4 10 USERS NO /u01/app/oracle/oradata/LOVEU/users01.db f<br>
5 100 UNDO1 YES /u01/app/oracle/oradata/LOVEU/undo1<br>
<br>
List of Temporary Files<br>
=======================<br>
File Size(MB) Tablespace Maxsize(MB) Tempfile Name<br>
---- -------- -------------------- ----------- --------------------<br>
1 20 TEMP 32767 /u01/app/oracle/oradata/LOVEU/temp01 .dbf<br>
<br>
RMAN&gt; spool<br>
<br>
RMAN-00571: ===========================================================<br>
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============<br>
RMAN-00571: ===========================================================<br>
RMAN-00558: error encountered while parsing input commands<br>
RMAN-01009: syntax error: found "newline": expecting one of: "log, msglog, trace"<br>
RMAN-01007: at line 1 column 6 file: standard input<br>
<br>
RMAN&gt; show all;<br>
<br>
RMAN configuration parameters are:<br>
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default<br>
CONFIGURE BACKUP OPTIMIZATION OFF; # default<br>
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default<br>
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default<br>
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default<br>
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default<br>
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default<br>
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default<br>
CONFIGURE MAXSETSIZE TO UNLIMITED; # default<br>
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default<br>
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default<br>
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default<br>
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0/db_1/dbs/snapcf_LOVEU.f'; # default<br>
<br>
<br>
RMAN&gt; configure controlfile autobackup on;<br>
<br>
new RMAN configuration parameters:<br>
CONFIGURE CONTROLFILE AUTOBACKUP ON;<br>
new RMAN configuration parameters are successfully stored<br>
starting full resync of recovery catalog<br>
full resync complete<br>
<br>
<br>
RMAN&gt; backup database tag=FULL_BACKUP;<br>
<br>
Starting backup at 05-MAR-08<br>
using channel ORA_DISK_1<br>
channel ORA_DISK_1: starting full datafile backupset<br>
channel ORA_DISK_1: specifying datafile(s) in backupset<br>
input datafile fno=00001 name=/u01/app/oracle/oradata/LOVEU/system01.dbf<br>
input datafile fno=00003 name=/u01/app/oracle/oradata/LOVEU/sysaux01.dbf<br>
input datafile fno=00005 name=/u01/app/oracle/oradata/LOVEU/undo1<br>
input datafile fno=00002 name=/u01/app/oracle/oradata/LOVEU/undotbs01.dbf<br>
input datafile fno=00004 name=/u01/app/oracle/oradata/LOVEU/users01.dbf<br>
channel ORA_DISK_1: starting piece 1 at 05-MAR-08<br>
channel ORA_DISK_1: finished piece 1 at 05-MAR-08<br>
piece handle=/u01/app/oracle/flash_recovery_area/LOVEU/backupset/2008_03_05/o1_mf_nnndf_FULL_BACKUP_3wtwqbn5_.bkp tag=FULL_BACKUP comment=NONE<br>
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:36<br>
Finished backup at 05-MAR-08<br>
<br>
Starting Control File and SPFILE Autobackup at 05-MAR-08<br>
piece handle=/u01/app/oracle/flash_recovery_area/LOVEU/autobackup/2008_03_05/o1_mf_s_648518730_3wtwtf0g_.bkp comment=NONE<br>
Finished Control File and SPFILE Autobackup at 05-MAR-08<br>
<br>
RMAN&gt;<br>
<br>
<br>
<br>
<br></p>
]]></content:encoded>
			<wfw:commentRss>http://xueyuanblog.blogcn.com/articles/using-rman-for-full-backup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle数据库静默安装实践</title>
		<link>http://xueyuanblog.blogcn.com/articles/oracle%e6%95%b0%e6%8d%ae%e5%ba%93%e9%9d%99%e9%bb%98%e5%ae%89%e8%a3%85%e5%ae%9e%e8%b7%b5.html</link>
		<comments>http://xueyuanblog.blogcn.com/articles/oracle%e6%95%b0%e6%8d%ae%e5%ba%93%e9%9d%99%e9%bb%98%e5%ae%89%e8%a3%85%e5%ae%9e%e8%b7%b5.html#comments</comments>
		<pubDate>Mon, 04 Feb 2008 00:00:00 +0000</pubDate>
		<dc:creator>xueyuanblog</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://xueyuanblog.blogcn.com/diary,13641073.shtml</guid>
		<description><![CDATA[Oracle数据库静默安装实践 转自：http://www.oracle.com/technology/global/cn/pub/articles/10gdba/wininst_otn.html 作者：曲卓 2006 年 4 月 21 日 目录 前言 静默安装Oracle数据库10g篇 静默安装Oracle数据库9i篇 参考资料 前言 本文是作者进行Oracle数据库静默安装的实践过程记录及经验总结。其中10g的静默安装实践是在RHEL AS3U4上进行的，9i的静默安装实践是在Windows XP Professional(SP2)上进行的。9i的普通安装有3张光盘，Oracle专门为嵌入式安装定制了9i的一张安装光盘的版本9204e，可在OPN网站上下载该版本的安装文件。本文的9i安装实践所使用的版本即为9204e。 可通过本文了解Oracle数据库静默安装的主要步骤和过程，亦可将本文作为简明的静默安装指南进行参考。如果需要详细的静默安装过程和参数说明，请根据实际的操作系统和数据库版本参考OEIKit工具包中的相应文档。 返回主题列表 静默安装Oracle数据库10g篇 以下是在Linux系统上静默安装Oracle数据库10g的实践过程，主要分为以下两个步骤： Step 1．静默安装Oracle数据库10g软件1. 使用OUI录制响应文件，记录安装过程 执行以下命令，然后在OUI中根据提示执行安装数据库软件的操作 $./runInstaller -record -destinationFile /tmp/install_database.rsp 注意： 录制过程中选择只安装数据库软件不创建数据库 当安装界面到达最后一步时选择cancel 2. 回放响应文件静默安装Oracle数据库软件 执行以下命令静默安装Oracle数据库软件 $./runInstaller -silent -responseFile &#8230; <a href="http://xueyuanblog.blogcn.com/articles/oracle%e6%95%b0%e6%8d%ae%e5%ba%93%e9%9d%99%e9%bb%98%e5%ae%89%e8%a3%85%e5%ae%9e%e8%b7%b5.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Oracle数据库静默安装实践<br>
转自：http://www.oracle.com/technology/global/cn/pub/articles/10gdba/wininst_otn.html<br>
作者：曲卓<br>
<br>
2006 年 4 月 21 日<br>
目录 前言<br>
静默安装Oracle数据库10g篇<br>
静默安装Oracle数据库9i篇<br>
参考资料<br>
<br>
前言<br>
<br>
本文是作者进行Oracle数据库静默安装的实践过程记录及经验总结。其中10g的静默安装实践是在RHEL AS3U4上进行的，9i的静默安装实践是在Windows XP Professional(SP2)上进行的。9i的普通安装有3张光盘，Oracle专门为嵌入式安装定制了9i的一张安装光盘的版本9204e，可在OPN网站上下载该版本的安装文件。本文的9i安装实践所使用的版本即为9204e。<br>
<br>
可通过本文了解Oracle数据库静默安装的主要步骤和过程，亦可将本文作为简明的静默安装指南进行参考。如果需要详细的静默安装过程和参数说明，请根据实际的操作系统和数据库版本参考OEIKit工具包中的相应文档。<br>
<br>
<br>
返回主题列表<br>
静默安装Oracle数据库10g篇<br>
<br>
以下是在Linux系统上静默安装Oracle数据库10g的实践过程，主要分为以下两个步骤：<br>
<br>
Step 1．静默安装Oracle数据库10g软件1.<br>
使用OUI录制响应文件，记录安装过程<br>
<br>
执行以下命令，然后在OUI中根据提示执行安装数据库软件的操作<br>
$./runInstaller -record -destinationFile /tmp/install_database.rsp<br>
<br>
注意：<br>
<br>
录制过程中选择只安装数据库软件不创建数据库<br>
<br>
当安装界面到达最后一步时选择cancel<br>
2.<br>
回放响应文件静默安装Oracle数据库软件<br>
<br>
执行以下命令静默安装Oracle数据库软件<br>
<br>
$./runInstaller -silent -responseFile /tmp/install_database.rsp<br>
<br>
安装完成后执行以下脚本<br>
<br>
#. $ORACLE_BASE/oraInventory/orainstRoot.sh<br>
#. $ORACLE_HOME/root.sh<br>
<br>
<br>
可选参数：<br>
<br>
可使用$./runInstaller -help查看OUI的所有可选参数<br>
举例：$./runInstaller -silent -force -ignoreSysprereqs ORACLE_HOME=/oracle ORACLE_HOME_NAME=OHOME_1 -responseFile /tmp/install_database.rsp<br>
3.<br>
静默卸载Oracle数据库软件<br>
<br>
执行以下命令静默卸载Oracle数据库软件<br>
$./runInstaller -silent -deinstall -removeallfiles -removeAllPatches "REMOVE_HOMES={$ORACLE_HOME}" -responseFile /tmp/install_database.rsp<br>
<br>
<br>
Step 2．静默安装Oracle数据库1.<br>
用DBCA创建一个种子数据库――ISV实际需要使用的数据库<br>
<br>
(1) 创建初始数据库的时候选择Custom Database模板<br>
(2) 建议使用File System存储机制<br>
(3) 数据文件的存放地点建议选择<br>
<br>
Use Oracle-Managed Files<br>
Database Area: {ORACLE_BASE}/oradata<br>
<br>
<br>
(4) 内存建议选择Custom，指定SGA和PGA大小<br>
(5) 字符集根据实际需要设定<br>
(6) 数据库创建选项里面选择Create Database<br>
(7) 创建应用程序需要的表空间和用户，导入初始数据<br>
<br>
<br>
2.<br>
用DBCA根据种子数据库创建一个模板<br>
<br>
(1) 启动DBCA，选择Manage Templates<br>
(2) 按照提示创建一个模板<br>
3.<br>
将Oracle DB安装盘里面response目录下的dbca.rsp拷贝到本机上<br>
4.<br>
修改dbca.rsp文件，将模板名和DB名添加进去<br>
<br>
GDBNAME=<br>
SID=<br>
TEMPLATENAME=<br>
如果需要使用Oracle Enterprise Manager，则还需要修改以下参数如下：<br>
EMCONFIGURATION="LOCAL"<br>
SYSMANPASSWORD="password"<br>
DBSNMPPASSWORD="password"<br>
5.<br>
执行以下命令使用DBCA根据模板创建新数据库<br>
<br>
$./dbca -silent -createdatabase -responseFile /home/oracle/embed/dbca.rsp<br>
6.<br>
建议直接写.ora文件配置listener<br>
7.<br>
使用Netca配置listener的方法如下<br>
<br>
（1） 将Oracle DB安装盘里面response目录下的netca.rsp拷贝到本机上<br>
（2） 修改netca.rsp文件<br>
<br>
<br>
INSTALL_TYPE=""custom""<br>
LISTENER_NAMES={"LISTENER_EMBED"}<br>
LISTENER_PROTOCOLS={"TCP;1521"}<br>
LISTENER_START=""LISTENER_EMBED""<br>
<br>
<br>
（3） 执行以下命令静默配置Listener<br>
$./dbca /silent /responseFile /home/oracle/embed/netca.rsp<br>
<br>
<br>
<br>
<br>
返回主题列表<br>
静默安装Oracle数据库9i篇<br>
<br>
以下是在Windows系统上静默安装Oracle数据库9204e的实践过程，主要分为以下三个步骤：<br>
<br>
Step 1．静默安装Oracle数据库9i软件<br>
Step 2．静默安装Oracle数据库<br>
Step 3．静默升级ODBC Driver（可选）<br>
<br>
Step 1．静默安装Oracle数据库9i软件1.<br>
获取响应文件<br>
<br>
（1）方法一：在$MountPoint/install目录下执行以下命令录制响应文件： setup.exe -record -destinationFile destinationFile.rsp<br>
<br>
举例： D:SoftOracle_productrdbms_9204e_wininstall&gt;setup.exe -record -destinationFile D:Tmpinstall_oracle.rsp<br>
<br>
注意：<br>
<br>
(1) 需要在录制好的响应文件中添加INSTALL_TYPE="EE"以指定安装oracle数据库企业版 (2) 需要在录制好的响应文件中更改以下参数为： ACCEPT_LICENSE_AGREEMENT=true<br>
<br>
（2）方法二：根据实际需要修改$MountPoint/stage/Response/oracle.server.EE.rsp：<br>
<br>
其中以下参数是需要根据实际情况设定的：<br>
<br>
FROM_LOCATION="..stageproducts.xml"<br>
<br>
FROM_LOCATION_CD_LABEL="LABEL1"<br>
<br>
ORACLE_HOME= ORACLE_HOME_NAME="OHOME1"<br>
2.<br>
回放响应文件安装Oracle数据库软件<br>
<br>
执行以下命令静默安装Oracle数据库软件 setup.exe -silent -responseFile responseFile Name<br>
<br>
3.<br>
静默卸载Oracle数据库软件<br>
<br>
(1) 执行以下SQLPlus脚本关闭数据库：<br>
shutdown immediate<br>
exit;<br>
(2) 停止Oracle服务<br>
(3) 在$ORACLE_HOME/bin目录下执行以下命令删除Oracle数据库<br>
oradim -delete -sid %MY_ORACLE_SID%<br>
(4) 在OEIKit工具包的removeService.exe所在目录下执行以下命令删除Oracle网络服务<br>
removeService Oracle%ORACLE_HOME_NAME%TNSListener<br>
(5) 执行以下命令静默卸载Oracle数据库软件<br>
setup.exe -noconsole -silent -deinstall -waitforcompletion -monitorFile %monitorFile% ORACLE_HOME=%MY_ORACLE_HOME% ORACLE_HOME_NAME=%ORACLE_HOME_NAME% REMOVE_HOMES="{"%MY_ORACLE_HOME%"}" -responseFile %responseFileDir%oracle9iserver_singlecd.rsp<br>
举例：<br>
D:SoftOracle_productrdbms_9204e_wininstall&gt;setup.exe -noconsole -silent -deinstall -waitforcompletion ORACLE_HOME=d:OraHome_2 ORACLE_HOME_NAME=OUIHome2 REMOVE_HOMES="D:OraHome_2" -responseFile d:tmpinstall_test.rsp<br>
<br>
<br>
Step 2．静默安装Oracle数据库1.<br>
用DBCA创建一个种子数据库――ISV实际需要使用的数据库<br>
<br>
(1) 创建初始数据库的时候选择Custom Database模板<br>
(2) 字符集根据实际需要设定<br>
(3) 数据库创建选项里面选择Create Database<br>
(4) 创建应用程序需要的表空间和用户，导入初始数据<br>
2.<br>
2.2.2 DBCA根据种子数据库创建一个模板<br>
<br>
（1） 启动DBCA，选择Manage Templates<br>
（2） 按照提示创建一个模板<br>
（3） 将创建好的模板文件（.dbc及.dfj）复制到%ORACLE_HOME%assistantsdbcatemplates<br>
3.<br>
执行以下命令使用DBCA根据模板创建新数据库<br>
<br>
dbca -silent -createDatabase -templateName templateName -gdbname gdbname -sid sidName -sysPassword sysPassword -systemPassword systemPassword<br>
<br>
举例：<br>
D:OraHome_2BIN&gt;dbca -silent -createDatabase -templateName test.dbc -gdbname "zesl.cn.oracle.com" -sid "zesl" -sysPassword "oracle" -systemPassword "oracle"<br>
<br>
4.<br>
建议直接写.ora文件配置listener<br>
5.<br>
使用Netca配置listener的方法同1.2.7<br>
<br>
<br>
Step 3．静默升级ODBC Driver（可选）<br>
<br>
Oracle DB 9204e Windows版安装完成后，ODBC Driver的版本是9.02.00.00，鉴于9.02.00.02版本中的一些优化，有些用户需要将ODBC Driver升级为9.02.00.02，以下是静默升级过程：<br>
<br>
(1) 参考odbc.rsp创建一个响应文件，其中以下参数需要根据实际情况来设定： FROM_LOCATION，ORACLE_HOME，ORACLE_HOME_NAME；<br>
<br>
(2) 使用以下命令启动OUI，指定使用这个响应文件来完成静默升级： setup.exe -silent -responseFile responseFile Name 举例： D:SoftOracle_productrdbms_9204e_wininstall&gt;setup.exe -silent -responseFile D:SoftOracle_productODBCora9202odbc.rsp<br>
<br>
(3) 9202ODBC driver 的下载地址http://www.oracle.com/technology/software/tech/windows/odbc/htdocs/utilsoft.html<br>
<br>
<br>
返回主题列表<br>
参考资料<br>
<br>
(1) Website文件包<br>
(2) OEIKit工具包<br>
<br>
<br>
<br></p>
]]></content:encoded>
			<wfw:commentRss>http://xueyuanblog.blogcn.com/articles/oracle%e6%95%b0%e6%8d%ae%e5%ba%93%e9%9d%99%e9%bb%98%e5%ae%89%e8%a3%85%e5%ae%9e%e8%b7%b5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to  activate  the driver in JBuilder?</title>
		<link>http://xueyuanblog.blogcn.com/articles/how-to-activate-the-driver-in-jbuilder.html</link>
		<comments>http://xueyuanblog.blogcn.com/articles/how-to-activate-the-driver-in-jbuilder.html#comments</comments>
		<pubDate>Tue, 01 Jan 2008 00:00:00 +0000</pubDate>
		<dc:creator>xueyuanblog</dc:creator>
				<category><![CDATA[实践所得]]></category>

		<guid isPermaLink="false">http://xueyuanblog.blogcn.com/diary,12948054.shtml</guid>
		<description><![CDATA[Today when I have finished the data source and trying &#160;to connect oracle 9i with data pilot in JBuilder 2005.I found&#160;the data pilot can't find the oracle dirver or the characters　"oracle.jdbc.driver.OracleDriver" are in red. Why? I have already added the &#8230; <a href="http://xueyuanblog.blogcn.com/articles/how-to-activate-the-driver-in-jbuilder.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><br>
<br>
<br>
Today when I have finished the data source and trying &nbsp;to connect oracle 9i with data pilot in JBuilder 2005.I found&nbsp;the data pilot can't find the oracle dirver or the characters　"oracle.jdbc.driver.OracleDriver" are in red.<br>
<br>
<img alt="data pilot" src="http://images.blogcn.com/2008/1/1/6/xueyuanblog,20080101185216675.PNG" border="0"><br>
<br>
Why? I have already added the class12.jar and class12.zip to the&nbsp;library　on JBuilder.It 's very confused me.&nbsp;After I try a lot of methods,I made it.<br>
<img alt="data pilot works" src="http://images.blogcn.com/2008/1/1/6/xueyuanblog,20080101185217052.PNG" border="0"><br>
<br>
<br>
<img alt="hostname_sid" src="http://images.blogcn.com/2008/1/1/6/xueyuanblog,20080101185217276.PNG" border="0">　　　<img alt="oracle data in data pilot" src="http://images.blogcn.com/2008/1/1/6/xueyuanblog,20080101185528568.PNG" border="0"><br>
<br>
<br>
<br>
The solution is you should add the class12.jar in D:BorlandJBuilder2005jdk1.4jrelibext,then restart the data pilot.You will find the item of oralce is available now.<br>
Then you can change the hostname&nbsp; and the sid of you oracle database.then press ok.</p>
]]></content:encoded>
			<wfw:commentRss>http://xueyuanblog.blogcn.com/articles/how-to-activate-the-driver-in-jbuilder.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Learning Logs</title>
		<link>http://xueyuanblog.blogcn.com/articles/learning-logs.html</link>
		<comments>http://xueyuanblog.blogcn.com/articles/learning-logs.html#comments</comments>
		<pubDate>Mon, 10 Dec 2007 00:00:00 +0000</pubDate>
		<dc:creator>xueyuanblog</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://xueyuanblog.blogcn.com/diary,12494481.shtml</guid>
		<description><![CDATA[what I did tonight: create a tablespace for a user and set it to default tablespace. Enter user-name: system Enter password: ******** Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining &#8230; <a href="http://xueyuanblog.blogcn.com/articles/learning-logs.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold">what I did tonight:</span><br>
<span style="font-weight: bold">create a tablespace for a user and set it to default tablespace.</span></p>
<p>Enter user-name: system<br>
Enter password: ********</p>
<p>Connected to:<br>
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production<br>
With the Partitioning, OLAP and Data Mining options</p>
<p>SQL&gt; conn milo/milo;<br>
Connected.<br>
SQL&gt; create tablespace milo;<br>
create tablespace milo<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *<br>
ERROR at line 1:<br>
ORA-02199: missing DATAFILE/TEMPFILE clause</p>
<p>SQL&gt; create tablespace milo datafile '/home/milo/datafile/milo.dbf'<br>
&nbsp; 2&nbsp; size&nbsp; 10M;<br>
create tablespace milo datafile '/home/milo/datafile/milo.dbf'<br>
*<br>
ERROR at line 1:<br>
ORA-01119: error in creating database file '/home/milo/datafile/milo.dbf'<br>
ORA-27037: unable to obtain file status<br>
Linux Error: 13: Permission denied<br>
Additional information: 1</p>
<p>SQL&gt; select tablespace_name,file_name from dba_data_files;</p>
<p>TABLESPACE_NAME<br>
------------------------------<br>
FILE_NAME<br>
--------------------------------------------------------------------------------<br>
USERS<br>
/u01/app/oracle/oradata/LOVEU/users01.dbf</p>
<p>SYSAUX<br>
/u01/app/oracle/oradata/LOVEU/sysaux01.dbf</p>
<p>UNDOTBS1<br>
/u01/app/oracle/oradata/LOVEU/undotbs01.dbf</p>
<p>TABLESPACE_NAME<br>
------------------------------<br>
FILE_NAME<br>
--------------------------------------------------------------------------------<br>
SYSTEM<br>
/u01/app/oracle/oradata/LOVEU/system01.dbf</p>
<p>SQL&gt; create tablespace milo '/u01/app/oracle/oradata/LOVEU/milo.dbf' size 10M;<br>
create tablespace milo '/u01/app/oracle/oradata/LOVEU/milo.dbf' size 10M<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *<br>
ERROR at line 1:<br>
ORA-02180: invalid option for CREATE TABLESPACE</p>
<p>SQL&gt; create tablespace milo datafile '/u01/app/oracle/oradata/LOVEU/milo.dbf' size 10M;</p>
<p>Tablespace created.</p>
<p>SQL&gt; create tablespace snowball datafile '/home/oracle/snowball.dbf' size 10M;<br>
Tablespace created.</p>
<p>SQL&gt; alter user milo default tablespace milo;</p>
<p>User altered.</p>
]]></content:encoded>
			<wfw:commentRss>http://xueyuanblog.blogcn.com/articles/learning-logs.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

