﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-Samuel Learning-文章分类-10 Database</title><link>http://www.blogjava.net/nobody_am/category/2023.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 08 Feb 2010 20:18:25 GMT</lastBuildDate><pubDate>Mon, 08 Feb 2010 20:18:25 GMT</pubDate><ttl>60</ttl><item><title>简单备份数据库的脚本</title><link>http://www.blogjava.net/nobody_am/articles/214641.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Sun, 13 Jul 2008 16:14:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/214641.html</guid><description><![CDATA[set date=%DATE:~0,10%<br />
md D:\sam\BACKUP\%date%<br />
exp app/app@orcl_182 owner=app file=D:\sam\BACKUP\%date%\app.dmp<br />
"C:\Program Files\WinRAR\WinRAR.exe" a -r e:\sam\BACKUP\blog.rar e:\sam\webapps\blog<br />
"C:\Program Files\WinRAR\WinRAR.exe" a -r e:\sam\BACKUP\bbs.rar e:\sam\webapps\lxbbs<br />
"C:\Program Files\WinRAR\WinRAR.exe" a -r e:\sam\BACKUP\app.rar D:\webapps\app <br />
<p>-------------------------------------------------------------------<br />
备注：备份Oracle数据库<br />
</p>
<p>@echo off<br />
Rem remove files 3 days before ...<br />
echo wscript.echo dateadd("d",-3,date) &gt; %tmp%\tmp.vbs<br />
for /f "tokens=1,2,3* delims=-" %%i in ('cscript /nologo %tmp%\tmp.vbs') do (<br />
&nbsp;set y=%%i<br />
&nbsp;set m=%%j<br />
&nbsp;set d=%%k<br />
)<br />
if %m% LSS 10 set m=0%m%<br />
if %d% LSS 10 set d=0%d%<br />
set before3days=%y%-%m%-%d%<br />
del /Q /F D:\BACKUP\backfiles\USERMYGPS_%before3days%.dmp<br />
</p>
<p>Rem backup files.....<br />
set date=%DATE:~0,10%<br />
rem exp system/shmsa@orcl owner=USERMYGPS file=D:\BACKUP\backfiles\USERMYGPS_%date%.dmp<br />
<br />
------------------<br />
备份sql server2000&nbsp;<br />
<br />
</p>
<p>@echo off<br />
Rem remove files 3 days before ...<br />
echo wscript.echo dateadd("d",-3,date) &gt; %tmp%\tmp.vbs<br />
for /f "tokens=1,2,3* delims=-" %%i in ('cscript /nologo %tmp%\tmp.vbs') do (<br />
&nbsp;set y=%%i<br />
&nbsp;set m=%%j<br />
&nbsp;set d=%%k<br />
)<br />
if %m% LSS 10 set m=0%m%<br />
if %d% LSS 10 set d=0%d%<br />
set before3days=%y%-%m%-%d%<br />
del /Q /F d:\backup\backfiles\EquipManage_%before3days%.dmp<br />
<br />
Rem backup files<br />
isql -U sa -P shmsa -S SHMSA-SQL20001 -i local.sql<br />
</p>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><span style="color: #008080">--</span><span style="color: #008080">--&nbsp;backup&nbsp;files</span><span style="color: #008080"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">DECLARE</span><span style="color: #000000">&nbsp;</span><span style="color: #008000">@datestr</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #000000">NVARchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">200</span><span style="color: #000000">)&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">set</span><span style="color: #000000">&nbsp;</span><span style="color: #008000">@datestr</span><span style="color: #000000">&nbsp;</span><span style="color: #808080">=</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">convert</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #000000">NVARchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">),</span><span style="color: #ff00ff">getdate</span><span style="color: #000000">(),</span><span style="font-weight: bold; color: #800000">120</span><span style="color: #000000">)&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">DECLARE</span><span style="color: #000000">&nbsp;</span><span style="color: #008000">@filepath</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #000000">nvarchar</span><span style="color: #000000">(</span><span style="font-weight: bold; color: #800000">200</span><span style="color: #000000">)<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">set</span><span style="color: #000000">&nbsp;</span><span style="color: #008000">@filepath</span><span style="color: #000000">&nbsp;</span><span style="color: #808080">=</span><span style="color: #000000">&nbsp;</span><span style="color: #ff0000">'</span><span style="color: #ff0000">d:\backup\backfiles\EquipManage_</span><span style="color: #ff0000">'</span><span style="color: #000000">&nbsp;</span><span style="color: #808080">+</span><span style="color: #000000">&nbsp;</span><span style="color: #008000">@datestr</span><span style="color: #000000">&nbsp;</span><span style="color: #808080">+</span><span style="color: #000000">&nbsp;</span><span style="color: #ff0000">'</span><span style="color: #ff0000">.dmp</span><span style="color: #ff0000">'</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">BACKUP</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">DATABASE</span><span style="color: #000000">&nbsp;</span><span style="color: #ff0000">[</span><span style="color: #ff0000">EquipManage</span><span style="color: #ff0000">]</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;</span><span style="color: #0000ff">DISK</span><span style="color: #000000">&nbsp;</span><span style="color: #808080">=</span><span style="color: #000000">&nbsp;</span><span style="color: #008000">@filepath</span><span style="color: #000000">&nbsp;&nbsp;</span><span style="color: #0000ff">WITH</span><span style="color: #000000">&nbsp;NOINIT&nbsp;,&nbsp;NOUNLOAD&nbsp;,&nbsp;NOSKIP&nbsp;,&nbsp;STATS&nbsp;</span><span style="color: #808080">=</span><span style="color: #000000">&nbsp;</span><span style="font-weight: bold; color: #800000">10</span><span style="color: #000000">,&nbsp;NOFORMAT<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span></div>
<p><br />
&nbsp;</p>
<p>&nbsp;</p>
<img src ="http://www.blogjava.net/nobody_am/aggbug/214641.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2008-07-14 00:14 <a href="http://www.blogjava.net/nobody_am/articles/214641.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle 创建用户和表空间脚本</title><link>http://www.blogjava.net/nobody_am/articles/211562.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Sun, 29 Jun 2008 16:34:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/211562.html</guid><description><![CDATA[Oracle 创建用户<br />
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><span style="color: #0000ff">DROP</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">USER</span><span style="color: #000000">&nbsp;USER1&nbsp;</span><span style="color: #0000ff">CASCADE</span><span style="color: #000000">;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">CREATE</span><span style="color: #000000">&nbsp;</span><span style="color: #ff00ff">USER</span><span style="color: #000000">&nbsp;"USER1"&nbsp;&nbsp;PROFILE&nbsp;"</span><span style="color: #0000ff">DEFAULT</span><span style="color: #000000">"&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;IDENTIFIED&nbsp;</span><span style="color: #0000ff">BY</span><span style="color: #000000">&nbsp;"USER1"&nbsp;</span><span style="color: #0000ff">DEFAULT</span><span style="color: #000000">&nbsp;TABLESPACE&nbsp;"TT_1"&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">TEMPORARY</span><span style="color: #000000">&nbsp;TABLESPACE&nbsp;"</span><span style="color: #0000ff">TEMP</span><span style="color: #000000">"&nbsp;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;ACCOUNT&nbsp;UNLOCK;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"CONNECT"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"DELETE_CATALOG_ROLE"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"EXECUTE_CATALOG_ROLE"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"EXP_FULL_DATABASE"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"HS_ADMIN_ROLE"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"IMP_FULL_DATABASE"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"OLAP_USER"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"RECOVERY_CATALOG_OWNER"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"RESOURCE"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"SCHEDULER_ADMIN"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">GRANT</span><span style="color: #000000">&nbsp;"SELECT_CATALOG_ROLE"&nbsp;</span><span style="color: #0000ff">TO</span><span style="color: #000000">&nbsp;"USER1";</span></div>
<br />
Oracle创建表空间<br />
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /><span style="color: #0000ff">drop</span><span style="color: #000000">&nbsp;tablespace&nbsp;TT_1&nbsp;including&nbsp;contents&nbsp;&nbsp;</span><span style="color: #808080">and</span><span style="color: #000000">&nbsp;datafiles&nbsp;</span><span style="color: #0000ff">cascade</span><span style="color: #000000">&nbsp;constraints;<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" /></span><span style="color: #0000ff">create</span><span style="color: #000000">&nbsp;tablespace&nbsp;TT_1<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;datafile&nbsp;&nbsp;</span><span style="color: #ff0000">'</span><span style="color: #ff0000">/u02/oradata/tt/tt_1.DBF</span><span style="color: #ff0000">'</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />size&nbsp;50M<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;autoextend&nbsp;</span><span style="color: #0000ff">on</span><span style="color: #000000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff">next</span><span style="color: #000000">&nbsp;10M<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top"  alt="" />&nbsp;&nbsp;&nbsp;&nbsp;maxsize&nbsp;UNLIMITED;</span></div>
<img src ="http://www.blogjava.net/nobody_am/aggbug/211562.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2008-06-30 00:34 <a href="http://www.blogjava.net/nobody_am/articles/211562.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务　问题解决</title><link>http://www.blogjava.net/nobody_am/articles/159225.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Thu, 08 Nov 2007 16:41:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/159225.html</guid><description><![CDATA[修改文件：D:\oracle\product\10.1.0\db_1\NETWORK\ADMIN\listener.ora<br />
<br />
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008000;">#</span><span style="color: #008000;">&nbsp;listener.ora&nbsp;Network&nbsp;Configuration&nbsp;File:&nbsp;D:\oracle\product\10.1.0\db_1\network\admin\listener.ora<br />
#&nbsp;Generated&nbsp;by&nbsp;Oracle&nbsp;configuration&nbsp;tools.</span><span style="color: #008000;"><br />
</span><span style="color: #000000;"><br />
SID_LIST_LISTENER&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;"><br />
&nbsp;&nbsp;(SID_LIST&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;"><br />
&nbsp;&nbsp;&nbsp;&nbsp;(SID_DESC&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;"><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(SID_NAME&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;PLSExtProc)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(ORACLE_HOME&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;D</span><span style="color: #000000;">:\</span><span style="color: #000000;">oracle</span><span style="color: #000000;">\</span><span style="color: #000000;">product</span><span style="color: #000000;">\</span><span style="color: #800000;">10.1</span><span style="color: #000000;">.</span><span style="color: #800000;">0</span><span style="color: #000000;">\</span><span style="color: #000000;">db_1)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(PROGRAM&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;extproc)<br />
&nbsp;&nbsp;&nbsp;&nbsp;)<br />
<strong>&nbsp;&nbsp;&nbsp;&nbsp;(SID_DESC&nbsp;</strong></span><strong><span style="color: #000000;">=</span><span style="color: #000000;"><br />
&nbsp;&nbsp;&nbsp;&nbsp;(GLOBAL_DBNAME&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;orc)<br />
&nbsp;&nbsp;&nbsp;&nbsp;(ORACLE_HOME&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;D</span><span style="color: #000000;">:\</span><span style="color: #000000;">oracle</span><span style="color: #000000;">\</span><span style="color: #000000;">product</span><span style="color: #000000;">\</span><span style="color: #800000;">10.1</span><span style="color: #000000;">.</span><span style="color: #800000;">0</span><span style="color: #000000;">\</span><span style="color: #000000;">db_1)&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;(SID_NAME&nbsp;</span><span style="color: #000000;">=</span></strong><span style="color: #000000;"><strong>&nbsp;orc)<br />
&nbsp;&nbsp;&nbsp;&nbsp;)</strong><br />
<br />
&nbsp;&nbsp;)<br />
<br />
LISTENER&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;"><br />
&nbsp;&nbsp;(DESCRIPTION_LIST&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;"><br />
&nbsp;&nbsp;&nbsp;&nbsp;(DESCRIPTION&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;"><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(ADDRESS_LIST&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;"><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(ADDRESS&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;(PROTOCOL&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;IPC)(KEY&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;EXTPROC))<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(ADDRESS_LIST&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;"><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(ADDRESS&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;(PROTOCOL&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;TCP)(HOST&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;localhost)(PORT&nbsp;</span><span style="color: #000000;">=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000;">1521</span><span style="color: #000000;">))<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br />
&nbsp;&nbsp;&nbsp;&nbsp;)<br />
&nbsp;&nbsp;)</span></div>
<br />
<br />
<img src ="http://www.blogjava.net/nobody_am/aggbug/159225.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2007-11-09 00:41 <a href="http://www.blogjava.net/nobody_am/articles/159225.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>解決EXP-00091的方法</title><link>http://www.blogjava.net/nobody_am/articles/147982.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Tue, 25 Sep 2007 02:05:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/147982.html</guid><description><![CDATA[<span style="color: red">對一個DBA或需使用exp,imp的普通用戶來說，在我們做exp的過程中可<font color="#ff0000">能經常會遇到EXP－00091 Exporting questionable statistics.這樣</font><font color="#ff0000">的EXP信息，其實它就是exp的error message，它產生的原因是因為我</font><font color="#ff0000">們exp工具所在的環境變量中的NLS_LANG與DB中的NLS_CHARACTERSET不</font><font color="#ff0000">一致。但需說明的是，exp-91這個error message對所生成的dump檔沒</font><font color="#ff0000">有影響，生成的dump檔還可以正常的imp（個人體會，不知道有沒有<br />
錯），雖然它對我們的dump檔沒有影響，我個人還是不想它出現，大家也有同感吧， 。。下面我們就讓它消失吧</font><font color="#ff0000"><br />
<br />
<strong>step 01</strong> 查看DB中的NLS_CHARACTERSET的值（提供兩種方法）： </font><br />
select * from nls_database_parameters t where <br />
t.parameter='NLS_CHARACTERSET' <br />
or <br />
select * from v$nls_parameters&nbsp; where <br />
parameter='NLS_CHARACTERSET'; <br />
SQL&gt; select * from v$nls_parameters where <br />
parameter='NLS_CHARACTERSET'; <br />
PARAMETER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VALUE <br />
-----------------------&nbsp; -------------------------<br />
--------------------- <br />
NLS_CHARACTERSET&nbsp;&nbsp;&nbsp; ZHT16BIG5 <br />
<br />
<strong>step 02</strong> 根據step 01查出的NLS_CHARACTERSET（ZHT16BIG5）來設定<br />
exp的環境變量： <br />
&nbsp;<br />
WINNT&gt; set NLS_LANG=AMERICAN_AMERICA.ZHT16BIG5 <br />
LINUX&gt; export NLS_LANG=AMERICAN_AMERICA.ZHT16BIG5 </span>
<img src ="http://www.blogjava.net/nobody_am/aggbug/147982.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2007-09-25 10:05 <a href="http://www.blogjava.net/nobody_am/articles/147982.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>缩小回滚表空间</title><link>http://www.blogjava.net/nobody_am/articles/144068.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Mon, 10 Sep 2007 10:37:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/144068.html</guid><description><![CDATA[&nbsp;
<p><span style="font-size: 15pt; font-family: 华文中宋">问题描述：</span></p>
<p><span style="font-family: 宋体">客户的数据库文件保存在</span><span style="font-family: Arial">/u02</span><span style="font-family: 宋体">磁盘分区下，整个分区的大小是</span><span style="font-family: Arial">2G</span><span style="font-family: 宋体">，但只剩余</span><span style="font-family: Arial">30M</span><span style="font-family: 宋体">空间。这样很有可能导致数据库无法正常运行。</span></p>
<p><span style="font-size: 15pt; font-family: 华文中宋">解决方法：</span></p>
<p><span style="font-family: 宋体">经查明，其中一个数据库文件</span><span style="font-family: Arial">UNDOTBS01.dbf</span><span style="font-family: 宋体">大小是</span><span style="font-family: Arial">18G</span><span style="font-family: 宋体">，这个文件里包含了回滚段的数据，解决办法就是缩小这个文件的大小。</span></p>
<p><span style="font-family: Arial">Step1 </span><span style="font-family: 宋体">：查询这个表空间里的回滚段有哪些。</span></p>
<p><span style="background: yellow; font-family: Arial">select owner,segment_name,tablespace_name, status from dba_rollback_segs</span></p>
<p><span style="font-family: Arial">Step2</span><span style="font-family: 宋体">：在另外一个磁盘分区上创建一个回滚数据库。</span></p>
<p><span style="background: yellow; font-family: Arial">CREATE UNDO TABLESPACE "UNDOTBS2" DATAFILE </span></p>
<p><span style="background: yellow; font-family: Arial">'/o01/oradata/orcl920/undotbs01.dbf' SIZE 500M REUSE AUTOEXTEND OFF;</span></p>
<p><span style="background: yellow; font-family: Arial">(</span><span style="background: yellow; font-family: 宋体">附：</span><span style="background: yellow; font-family: Arial">DROP TABLESPACE UNDOTBS INCLUDING CONTENTS and datafiles;)</span></p>
<p><span style="font-family: Arial">Step3: </span><span style="font-family: 宋体">编辑</span><span style="font-family: Arial">init.ora</span><span style="font-family: 宋体">文件，末尾加入下面的内容。</span></p>
<p><span style="background: yellow; font-family: Arial">undo_tablespace=UNDOTBS2 </span></p>
<p><span style="background: yellow; font-family: Arial">_OFFLINE_ROLLBACK_SEGMENTS=("_SYSSMU16$", "_SYSSMU17$", "_SYSSMU18$","_SYSSMU19$", "_SYSSMU20$", "_SYSSMU21$", "_SYSSMU22$","_SYSSMU23$","_SYSSMU24$","_SYSSMU25$")</span></p>
<p><span style="background: yellow; font-family: Arial">_CORRUPTED_ROLLBACK_SEGMENTS=("_SYSSMU16$", "_SYSSMU17$", "_SYSSMU18$","_SYSSMU19$", "_SYSSMU20$", "_SYSSMU21$", "_SYSSMU22$","_SYSSMU23$","_SYSSMU24$","_SYSSMU25$")</span></p>
<p><span style="font-family: Arial">Step4: </span><span style="font-family: 宋体">关闭数据库。</span></p>
<p><span style="background: yellow; font-family: Arial">shutdown immediate</span></p>
<p><span style="font-family: Arial">Step5: </span><span style="font-family: 宋体">用配置文件启动数据库。</span></p>
<p><span style="background: yellow; font-family: Arial">startup pfile=/u01/app/oracle/admin/hello/pfile/init.ora.39200721655</span></p>
<p><span style="font-family: Arial">Step6: </span><span style="font-family: 宋体">删除大表空间里的回滚段。</span></p>
<p><span style="background: yellow; font-family: Arial">DROP ROLLBACK SEGMENT "_SYSSMU16$";</span></p>
<p><span style="background: yellow; font-family: Arial">DROP ROLLBACK SEGMENT "_SYSSMU17$";</span></p>
<p><span style="background: yellow; font-family: Arial">DROP ROLLBACK SEGMENT "_SYSSMU18$";</span></p>
<p><span style="background: yellow; font-family: Arial">DROP ROLLBACK SEGMENT "_SYSSMU19$";</span></p>
<p><span style="background: yellow; font-family: Arial">DROP ROLLBACK SEGMENT "_SYSSMU20$";</span></p>
<p><span style="background: yellow; font-family: Arial">DROP ROLLBACK SEGMENT "_SYSSMU21$";</span></p>
<p><span style="background: yellow; font-family: Arial">DROP ROLLBACK SEGMENT "_SYSSMU22$";</span></p>
<p><span style="background: yellow; font-family: Arial">DROP ROLLBACK SEGMENT "_SYSSMU23$";</span></p>
<p><span style="background: yellow; font-family: Arial">DROP ROLLBACK SEGMENT "_SYSSMU24$";</span></p>
<p><span style="background: yellow; font-family: Arial">DROP ROLLBACK SEGMENT "_SYSSMU25$";</span></p>
<p><span style="font-family: Arial">Step7: </span><span style="font-family: 宋体">缩小表空间的大小。</span></p>
<p><span style="background: yellow; font-family: Arial">ALTER DATABASE DATAFILE '/u02/oradata/hello/undotbs01.dbf' RESIZE&nbsp;1000M;</span></p>
<p><span style="font-family: Arial">Step8: </span><span style="font-family: 宋体">控制表空间的最大容量。</span></p>
<p><span style="background: yellow; font-family: Arial">ALTER DATABASE </span></p>
<p><span style="background: yellow; font-family: Arial">&nbsp;&nbsp;&nbsp; DATAFILE '/u02/oradata/hello/undotbs01.dbf '</span></p>
<p><span style="background: yellow; font-family: Arial">&nbsp;&nbsp;&nbsp; AUTOEXTEND </span></p>
<p><span style="background: yellow; font-family: Arial">&nbsp;&nbsp;&nbsp; ON NEXT&nbsp;1000M MAXSIZE&nbsp;5000M</span></p>
<img src ="http://www.blogjava.net/nobody_am/aggbug/144068.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2007-09-10 18:37 <a href="http://www.blogjava.net/nobody_am/articles/144068.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>修改一个Sequence</title><link>http://www.blogjava.net/nobody_am/articles/133864.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Wed, 01 Aug 2007 12:43:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/133864.html</guid><description><![CDATA[<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #0000ff;">alter</span><span style="color: #000000;">&nbsp;sequence&nbsp;TCIN_ID&nbsp;increment&nbsp;</span><span style="color: #0000ff;">by</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000; font-weight: bold;">1</span><span style="color: #000000;">&nbsp;nocache;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br></span><span style="color: #0000ff;">select</span><span style="color: #000000;">&nbsp;TCIN_ID.nextval&nbsp;</span><span style="color: #0000ff;">from</span><span style="color: #000000;">&nbsp;dual;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br></span><span style="color: #0000ff;">alter</span><span style="color: #000000;">&nbsp;sequence&nbsp;TCIN_ID&nbsp;increment&nbsp;</span><span style="color: #0000ff;">by</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000; font-weight: bold;">1</span><span style="color: #000000;">&nbsp;nocache;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br></span><span style="color: #0000ff;">declare</span><span style="color: #000000;">&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;<br>&nbsp;&nbsp;LastValue&nbsp;</span><span style="color: #000000; font-weight: bold;">integer</span><span style="color: #000000;">;&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;<br></span><span style="color: #0000ff;">begin</span><span style="color: #000000;">&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;<br>&nbsp;&nbsp;loop&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;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">select</span><span style="color: #000000;">&nbsp;TCIN_ID.currval&nbsp;</span><span style="color: #0000ff;">into</span><span style="color: #000000;">&nbsp;LastValue&nbsp;</span><span style="color: #0000ff;">from</span><span style="color: #000000;">&nbsp;dual;&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;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">exit</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">when</span><span style="color: #000000;">&nbsp;LastValue&nbsp;</span><span style="color: #808080;">&gt;=</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000; font-weight: bold;">105200</span><span style="color: #000000;">&nbsp;</span><span style="color: #808080;">-</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000; font-weight: bold;">1</span><span style="color: #000000;">;&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;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000ff;">select</span><span style="color: #000000;">&nbsp;TCIN_ID.nextval&nbsp;</span><span style="color: #0000ff;">into</span><span style="color: #000000;">&nbsp;LastValue&nbsp;</span><span style="color: #0000ff;">from</span><span style="color: #000000;">&nbsp;dual;&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;<br>&nbsp;&nbsp;</span><span style="color: #0000ff;">end</span><span style="color: #000000;">&nbsp;loop;&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;<br></span><span style="color: #0000ff;">end</span><span style="color: #000000;">;&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;&nbsp;&nbsp;&nbsp;<br></span><span style="color: #808080;">/</span><span style="color: #000000;">&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br></span><span style="color: #0000ff;">alter</span><span style="color: #000000;">&nbsp;sequence&nbsp;TCIN_ID&nbsp;increment&nbsp;</span><span style="color: #0000ff;">by</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000; font-weight: bold;">1</span><span style="color: #000000;">&nbsp;cache&nbsp;</span><span style="color: #800000; font-weight: bold;">20</span><span style="color: #000000;">;&nbsp;</span></div>
<br><img src ="http://www.blogjava.net/nobody_am/aggbug/133864.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2007-08-01 20:43 <a href="http://www.blogjava.net/nobody_am/articles/133864.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>循环向Oracle插入测试数据</title><link>http://www.blogjava.net/nobody_am/articles/133133.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Sun, 29 Jul 2007 08:19:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/133133.html</guid><description><![CDATA[<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #0000ff;">declare</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #000000; font-weight: bold;">integer</span><span style="color: #000000;">;<br></span><span style="color: #0000ff;">begin</span><span style="color: #000000;"><br></span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;i&nbsp;</span><span style="color: #808080;">in</span><span style="color: #000000;">&nbsp;</span><span style="color: #800000; font-weight: bold;">1</span><span style="color: #000000;">..</span><span style="color: #800000; font-weight: bold;">10000</span><span style="color: #000000;"><br>loop<br></span><span style="color: #0000ff;">insert</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">into</span><span style="color: #000000;">&nbsp;trn_pfms_tusers<br>&nbsp;&nbsp;(userid,&nbsp;loginname,&nbsp;username,&nbsp;password,&nbsp;imagepath,&nbsp;accountstatus,&nbsp;birthdate,&nbsp;gender,&nbsp;title,&nbsp;minzu,&nbsp;idnumber,&nbsp;maritalstatus,&nbsp;education,&nbsp;address,&nbsp;zipcode,&nbsp;homephone,&nbsp;employeenumber,&nbsp;departmentname,&nbsp;reportsto,&nbsp;email,&nbsp;officephone,&nbsp;cellphone,&nbsp;facsimile,&nbsp;note,&nbsp;creator,&nbsp;createtime,&nbsp;lastmodifier,&nbsp;lastmodifytime)<br></span><span style="color: #0000ff;">values</span><span style="color: #000000;"><br>&nbsp;&nbsp;(i</span><span style="color: #808080;">+</span><span style="color: #800000; font-weight: bold;">5000</span><span style="color: #000000;">,&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">test</span><span style="color: #ff0000;">'</span><span style="color: #808080;">||</span><span style="color: #000000;">i,&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">test</span><span style="color: #ff0000;">'</span><span style="color: #000000;">,&nbsp;&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">123</span><span style="color: #ff0000;">'</span><span style="color: #000000;">,</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000; font-weight: bold;">1</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #800000; font-weight: bold;">1</span><span style="color: #000000;">,&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">PM</span><span style="color: #ff0000;">'</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">100</span><span style="color: #ff0000;">'</span><span style="color: #808080;">||</span><span style="color: #000000;">i,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">100</span><span style="color: #ff0000;">'</span><span style="color: #808080;">||</span><span style="color: #000000;">i,&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">AB</span><span style="color: #ff0000;">'</span><span style="color: #808080;">||</span><span style="color: #000000;">i,&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">Hello</span><span style="color: #ff0000;">'</span><span style="color: #000000;">,&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">aa@aa.com</span><span style="color: #ff0000;">'</span><span style="color: #808080;">||</span><span style="color: #000000;">i,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;sysdate,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">,&nbsp;</span><span style="color: #0000ff;">null</span><span style="color: #000000;">);<br></span><span style="color: #0000ff;">end</span><span style="color: #000000;">&nbsp;loop;<br></span><span style="color: #0000ff;">end</span><span style="color: #000000;">;</span></div>
<br><img src ="http://www.blogjava.net/nobody_am/aggbug/133133.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2007-07-29 16:19 <a href="http://www.blogjava.net/nobody_am/articles/133133.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>查询Oracle表的约束</title><link>http://www.blogjava.net/nobody_am/articles/121315.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Fri, 01 Jun 2007 02:46:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/121315.html</guid><description><![CDATA[<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #0000ff;">select</span><span style="color: #000000;">&nbsp;c.CONSTRAINT_name<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,&nbsp;c.Table_NAME<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,&nbsp;l.COLUMN_NAME<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,&nbsp;l.position&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">FK</span><span style="color: #ff0000;">'</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">as</span><span style="color: #000000;">&nbsp;type<br></span><span style="color: #0000ff;">from</span><span style="color: #000000;">&nbsp;sys.ALL_CONSTRAINTS&nbsp;c,sys.ALL_CONS_COLUMNS&nbsp;l<br></span><span style="color: #0000ff;">where</span><span style="color: #000000;">&nbsp;c.CONSTRAINT_name</span><span style="color: #808080;">=</span><span style="color: #000000;">l.CONSTRAINT_name<br>&nbsp;&nbsp;</span><span style="color: #808080;">and</span><span style="color: #000000;">&nbsp;c.CONSTRAINT_TYPE</span><span style="color: #808080;">=</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">R</span><span style="color: #ff0000;">'</span><span style="color: #000000;"><br>&nbsp;&nbsp;</span><span style="color: #808080;">and</span><span style="color: #000000;">&nbsp;c.owner</span><span style="color: #808080;">=</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">SNRC</span><span style="color: #ff0000;">'</span><span style="color: #000000;"><br>&nbsp;&nbsp;</span><span style="color: #808080;">and</span><span style="color: #000000;">&nbsp;c.Table_NAME&nbsp;</span><span style="color: #808080;">not</span><span style="color: #000000;">&nbsp;</span><span style="color: #808080;">like</span><span style="color: #000000;">&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">BIN%</span><span style="color: #ff0000;">'</span><span style="color: #000000;"><br></span><span style="color: #0000ff;">union</span><span style="color: #000000;">&nbsp;&nbsp;<br></span><span style="color: #0000ff;">select</span><span style="color: #000000;">&nbsp;c.CONSTRAINT_name<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,&nbsp;c.Table_NAME<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,&nbsp;l.COLUMN_NAME<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,&nbsp;l.position&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">PK</span><span style="color: #ff0000;">'</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">as</span><span style="color: #000000;">&nbsp;type<br></span><span style="color: #0000ff;">from</span><span style="color: #000000;">&nbsp;sys.ALL_CONSTRAINTS&nbsp;c,sys.ALL_CONS_COLUMNS&nbsp;l<br></span><span style="color: #0000ff;">where</span><span style="color: #000000;">&nbsp;c.CONSTRAINT_name</span><span style="color: #808080;">=</span><span style="color: #000000;">l.CONSTRAINT_name<br>&nbsp;&nbsp;</span><span style="color: #808080;">and</span><span style="color: #000000;">&nbsp;c.CONSTRAINT_TYPE</span><span style="color: #808080;">=</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">P</span><span style="color: #ff0000;">'</span><span style="color: #000000;"><br>&nbsp;&nbsp;</span><span style="color: #808080;">and</span><span style="color: #000000;">&nbsp;c.owner</span><span style="color: #808080;">=</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">SNRC</span><span style="color: #ff0000;">'</span><span style="color: #000000;"><br>&nbsp;&nbsp;</span><span style="color: #808080;">and</span><span style="color: #000000;">&nbsp;c.Table_NAME&nbsp;</span><span style="color: #808080;">not</span><span style="color: #000000;">&nbsp;</span><span style="color: #808080;">like</span><span style="color: #000000;">&nbsp;</span><span style="color: #ff0000;">'</span><span style="color: #ff0000;">BIN%</span><span style="color: #ff0000;">'</span><span style="color: #000000;">;<br></span></div>
<br><img src ="http://www.blogjava.net/nobody_am/aggbug/121315.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2007-06-01 10:46 <a href="http://www.blogjava.net/nobody_am/articles/121315.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Access 笔记</title><link>http://www.blogjava.net/nobody_am/articles/120449.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Mon, 28 May 2007 06:49:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/120449.html</guid><description><![CDATA[自增长列清0：alter table tt alter column[id] counter(1,1);
<br>写模块访问数据库：<br>&nbsp; Dim rs As Recordset<br>&nbsp; Dim a As String<br>&nbsp; Set rs = CurrentDb.OpenRecordset("", dbOpenTable)<br>&nbsp; rs.MoveFirst<br>&nbsp; While (Not rs.EOF)<br>&nbsp;&nbsp;&nbsp; rs.Edit<br>&nbsp;&nbsp;&nbsp; a = rs.Fields("")<br>&nbsp;&nbsp;&nbsp; rs.Fields("") = a<br>&nbsp;&nbsp;&nbsp; rs.Update<br>&nbsp;&nbsp;&nbsp; rs.MoveNext<br>&nbsp;&nbsp; &nbsp;<br>&nbsp; Wend<br>&nbsp; rs.Close&nbsp; <br><br><br><br>
<br><br> <img src ="http://www.blogjava.net/nobody_am/aggbug/120449.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2007-05-28 14:49 <a href="http://www.blogjava.net/nobody_am/articles/120449.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux 上 Oracle自动启动关闭的脚本</title><link>http://www.blogjava.net/nobody_am/articles/117560.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Tue, 15 May 2007 04:46:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/117560.html</guid><description><![CDATA[<p>In many cases after
installing Oracle DB on Linux servers, there is a need to configure it to start
automatically after OS reboot.<br>
<br>
The automatic startup and shutdown of the
Oracle database can be achieved with the files dbstart and dbshut both provided
by Oracle. These files rely on the existance of the file /etc/oratab to work
(although by altering the dbshut and dbstart files this can be moved).<br>
<br>
The format of the /etc/oratab file is as
follows:<br>
SID:ORACLE_HOME:AUTO<br>
<br>
An example:<br>
orcl:/apps/oracle/product/&lt;ora_ver&gt;:Y<br>
orcl1:/apps/oracle/product/&lt;ora_ver&gt;:N<br>
<br>
To start and stop the database when the
machine comes up and goes down by modifying the startup routines for the Linux
machine. This is quite easy, although I should point out here that this may
change depending on which flavour of Linux (Slackware, Debian, RedHat, etc).<br>
<br>
I will show examples which work for Redhat
Linux. To modify these for your own flavour of Linux, please see your Linux
documentation sets. (Although it should hold true for any Sys V type UNIX).<br>
<br>
Firstly, we need to create the script which
will run dbshut and dbstart in the /etc/rc.d/init.d directory. Create the
following file as /etc/rc.d/init.d/oracle:</p>
<p>
</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #008000;">#</span><span style="color: #008000;">!/bin/sh</span><span style="color: #008000;"><br></span><span style="color: #000000;">　　</span><span style="color: #008000;">#<br></span><span style="color: #000000;">　　</span><span style="color: #008000;">#</span><span style="color: #008000;">&nbsp;/etc/rc.d/init.d/oracle</span><span style="color: #008000;"><br></span><span style="color: #000000;">　　</span><span style="color: #008000;">#</span><span style="color: #008000;">&nbsp;Description:&nbsp;Starts&nbsp;and&nbsp;stops&nbsp;the&nbsp;Oracle&nbsp;database&nbsp;and&nbsp;listeners</span><span style="color: #008000;"><br></span><span style="color: #000000;">　　</span><span style="color: #008000;">#</span><span style="color: #008000;">&nbsp;See&nbsp;how&nbsp;we&nbsp;were&nbsp;called.</span><span style="color: #008000;"><br></span><span style="color: #000000;">　　<br>　　case&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">$1</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #0000ff;">in</span><span style="color: #000000;"><br>　　start)<br>　　echo&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">n&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Starting&nbsp;Oracle&nbsp;Databases:&nbsp;</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　date&nbsp;</span><span style="color: #000000;">+</span><span style="color: #800000;">"</span><span style="color: #800000;">!&nbsp;%T&nbsp;%a&nbsp;%D&nbsp;:&nbsp;Starting&nbsp;Oracle&nbsp;Databases&nbsp;as&nbsp;part&nbsp;of&nbsp;system&nbsp;up.</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　su&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;oracle&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">c&nbsp;dbstart&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Done.</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">n&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Starting&nbsp;Oracle&nbsp;Listeners:&nbsp;</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　su&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;oracle&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">c&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">lsnrctl&nbsp;start</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Done.</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #800000;">""</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　date&nbsp;</span><span style="color: #000000;">+</span><span style="color: #800000;">"</span><span style="color: #800000;">!&nbsp;%T&nbsp;%a&nbsp;%D&nbsp;:&nbsp;Finished.</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　touch&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">lock</span><span style="color: #000000;">/</span><span style="color: #000000;">subsys</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　;;<br>　　stop)<br>　　echo&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">n&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Shutting&nbsp;Down&nbsp;Oracle&nbsp;Listeners:&nbsp;</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　date&nbsp;</span><span style="color: #000000;">+</span><span style="color: #800000;">"</span><span style="color: #800000;">!&nbsp;%T&nbsp;%a&nbsp;%D&nbsp;:&nbsp;Shutting&nbsp;Down&nbsp;Oracle&nbsp;Databases&nbsp;as&nbsp;part&nbsp;of&nbsp;system&nbsp;down.</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　su&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;oracle&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">c&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">lsnrctl&nbsp;stop</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Done.</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　rm&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">f&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">lock</span><span style="color: #000000;">/</span><span style="color: #000000;">subsys</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">n&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Shutting&nbsp;Down&nbsp;Oracle&nbsp;Databases:&nbsp;</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　su&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;oracle&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">c&nbsp;dbshut&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Done.</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #800000;">""</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　date&nbsp;</span><span style="color: #000000;">+</span><span style="color: #800000;">"</span><span style="color: #800000;">!&nbsp;%T&nbsp;%a&nbsp;%D&nbsp;:&nbsp;Finished.</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　;;<br>　　restart)<br>　　echo&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">n&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Restarting&nbsp;Oracle&nbsp;Databases:&nbsp;</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　date&nbsp;</span><span style="color: #000000;">+</span><span style="color: #800000;">"</span><span style="color: #800000;">!&nbsp;%T&nbsp;%a&nbsp;%D&nbsp;:&nbsp;Restarting&nbsp;Oracle&nbsp;Databases&nbsp;as&nbsp;part&nbsp;of&nbsp;system&nbsp;up.</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　su&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;oracle&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">c&nbsp;dbstop&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　su&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;oracle&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">c&nbsp;dbstart&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Done.</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">n&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Restarting&nbsp;Oracle&nbsp;Listeners:&nbsp;</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　su&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;oracle&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">c&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">lsnrctl&nbsp;stop</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　su&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">&nbsp;oracle&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">c&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">lsnrctl&nbsp;start</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Done.</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #800000;">""</span><span style="color: #000000;"><br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　date&nbsp;</span><span style="color: #000000;">+</span><span style="color: #800000;">"</span><span style="color: #800000;">!&nbsp;%T&nbsp;%a&nbsp;%D&nbsp;:&nbsp;Finished.</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">----------------------------------------------------</span><span style="color: #800000;">"</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">&gt;&gt;</span><span style="color: #000000;">&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">log</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　touch&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">lock</span><span style="color: #000000;">/</span><span style="color: #000000;">subsys</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle<br>　　;;<br>　　</span><span style="color: #000000;">*</span><span style="color: #000000;">)<br>　　echo&nbsp;</span><span style="color: #800000;">"</span><span style="color: #800000;">Usage:&nbsp;oracle&nbsp;{start|stop|restart}</span><span style="color: #800000;">"</span><span style="color: #000000;"><br>　　exit&nbsp;</span><span style="color: #000000;">1</span><span style="color: #000000;"><br>　　esac</span></div>
<br>
It is worth checking that this file actually
correctly stops and starts the databases for your system. Check the log file,
/var/log/oracle for error messages.<br>
<br>
Once this script is working we need to create
start and kill symbolic links in the appropriate runlevel directories
/etc/rc.d/rcX.d.<br>
<br>
The following commands will ensure that the
databases will come up in runlevels 2,3 and 4:
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">　$&nbsp;ln&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">s&nbsp;..</span><span style="color: #000000;">/</span><span style="color: #000000;">init.d</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">etc</span><span style="color: #000000;">/</span><span style="color: #000000;">rc.d</span><span style="color: #000000;">/</span><span style="color: #000000;">rc2.d</span><span style="color: #000000;">/</span><span style="color: #000000;">S99oracle<br>　$&nbsp;ln&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">s&nbsp;..</span><span style="color: #000000;">/</span><span style="color: #000000;">init.d</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">etc</span><span style="color: #000000;">/</span><span style="color: #000000;">rc.d</span><span style="color: #000000;">/</span><span style="color: #000000;">rc3.d</span><span style="color: #000000;">/</span><span style="color: #000000;">S99oracle<br>　$&nbsp;ln&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">s&nbsp;..</span><span style="color: #000000;">/</span><span style="color: #000000;">init.d</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">etc</span><span style="color: #000000;">/</span><span style="color: #000000;">rc.d</span><span style="color: #000000;">/</span><span style="color: #000000;">rc4.d</span><span style="color: #000000;">/</span><span style="color: #000000;">S99oracle</span></div>
<p>&nbsp;</p>
<p>
To stop the databases on reboot or restart we
need the following links:</p>
<p>
</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;"> &nbsp; $&nbsp;ln&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">s&nbsp;..</span><span style="color: #000000;">/</span><span style="color: #000000;">init.d</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">etc</span><span style="color: #000000;">/</span><span style="color: #000000;">rc.d</span><span style="color: #000000;">/</span><span style="color: #000000;">rc0.d</span><span style="color: #000000;">/</span><span style="color: #000000;">K01oracle<br>　$&nbsp;ln&nbsp;</span><span style="color: #000000;">-</span><span style="color: #000000;">s&nbsp;..</span><span style="color: #000000;">/</span><span style="color: #000000;">init.d</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">etc</span><span style="color: #000000;">/</span><span style="color: #000000;">rc.d</span><span style="color: #000000;">/</span><span style="color: #000000;">rc6.d</span><span style="color: #000000;">/</span><span style="color: #000000;">K01oracle</span></div>
<p>&nbsp;</p>
<br>
<p>Note: </p>
<p>If dbstart and dbshut use
/var/opt/oracle/oratab as oracle sid config file, you should make a link
</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: #000000;">&nbsp; $ln&nbsp;&#8211;s&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">etc</span><span style="color: #000000;">/</span><span style="color: #000000;">oratab&nbsp;</span><span style="color: #000000;">/</span><span style="color: #000000;">var</span><span style="color: #000000;">/</span><span style="color: #000000;">opt</span><span style="color: #000000;">/</span><span style="color: #000000;">oracle</span><span style="color: #000000;">/</span><span style="color: #000000;">oratab</span></div>
<p>&nbsp;</p>
<br>  <img src ="http://www.blogjava.net/nobody_am/aggbug/117560.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2007-05-15 12:46 <a href="http://www.blogjava.net/nobody_am/articles/117560.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>多表关联的update语句[转]</title><link>http://www.blogjava.net/nobody_am/articles/65915.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Sat, 26 Aug 2006 03:34:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/65915.html</guid><description><![CDATA[ 为了方便起见,建立了以下简单模型,和构造了部分测试数据:<br />  在某个业务受理子系统BSS中，<br />  --客户资料表<br />  create table customers<br />  (<br />   customer_id   number(8)    not null,  -- 客户标示<br />   city_name     varchar2(10) not null,  -- 所在城市<br />   customer_type char(2)      not null,  -- 客户类型<br /> <br />   ...<br />  )<br />  create unique index PK_customers on customers (customer_id)<br />  由于某些原因，客户所在城市这个信息并不什么准确，但是在<br />  客户服务部的CRM子系统中，通过主动服务获取了部分客户20%的所在<br />  城市等准确信息，于是你将该部分信息提取至一张临时表中：<br />  create table tmp_cust_city<br />  (<br />   customer_id    number(8) not null,<br />   citye_name     varchar2(10) not null，<br />   customer_type  char(2)   not null<br />  )<br />  
<p>1) 最简单的形式<br />   --经确认customers表中所有customer_id小于1000均为'北京'<br />   --1000以内的均是公司走向全国之前的本城市的老客户:)<br />   update customers<br />   set    city_name='北京'<br />   where  customer_id&lt;1000</p><p>2) 两表(多表)关联update -- 仅在where字句中的连接<br />   --这次提取的数据都是VIP，且包括新增的,所以顺便更新客户类别<br />   update customers  a       -- 使用别名<br />   set    customer_type='01' --01 为vip，00为普通<br />   where  exists (select 1 <br />                  from   tmp_cust_city b<br />                  where  b.customer_id=a.customer_id<br />                 )</p><p>3) 两表(多表)关联update -- 被修改值由另一个表运算而来<br />   update customers a   -- 使用别名<br />   set    city_name=(select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id)<br />   where  exists (select 1 <br />                  from   tmp_cust_city b<br />                  where  b.customer_id=a.customer_id<br />                 )<br />   -- update 超过2个值<br />   update customers a   -- 使用别名<br />   set    (city_name,customer_type)=(select b.city_name,b.customer_type <br />                                     from   tmp_cust_city b <br />                                     where  b.customer_id=a.customer_id)<br />   where  exists (select 1 <br />                  from   tmp_cust_city b<br />                  where  b.customer_id=a.customer_id<br />                 )<br />   注意在这个语句中，<br />                                   =(select b.city_name,b.customer_type <br />                                     from   tmp_cust_city b <br />                                     where  b.customer_id=a.customer_id<br />                                    )<br />   与<br />                 (select 1 <br />                  from   tmp_cust_city b<br />                  where  b.customer_id=a.customer_id<br />                 )<br />   是两个独立的子查询，查看执行计划可知，对b表/索引扫描了2篇；<br />   如果舍弃where条件，则默认对A表进行全表<br />   更新，但由于(select b.city_name from tmp_cust_city b where where  b.customer_id=a.customer_id)<br />   有可能不能提供"足够多"值，因为tmp_cust_city只是一部分客户的信息，<br />   所以报错（如果指定的列--city_name可以为NULL则另当别论）：<br />   <br />01407, 00000, "cannot update (%s) to NULL"<br />// *Cause:<br />// *Action:</p><p>   一个替代的方法可以采用：<br />   update customers a   -- 使用别名<br />   set    city_name=nvl((select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id),a.city_name)<br />   或者<br />   set    city_name=nvl((select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id),'未知')<br />   -- 当然这不符合业务逻辑了</p><p>4) 上述3)在一些情况下，因为B表的纪录只有A表的20-30%的纪录数，<br />   考虑A表使用INDEX的情况，使用cursor也许会比关联update带来更好的性能：<br />   <br />set serveroutput on</p><p>declare<br />    cursor city_cur is<br />    select customer_id,city_name<br />    from   tmp_cust_city<br />    order by customer_id;<br />begin<br />    for my_cur in city_cur loop</p><p>        update customers<br />        set    city_name=my_cur.city_name<br />        where  customer_id=my_cur.customer_id;<br />       <br />       /** 此处也可以单条/分批次提交，避免锁表情况 **/<br />--     if mod(city_cur%rowcount,10000)=0 then<br />--        dbms_output.put_line('----');<br />--        commit;<br />--     end if;<br />    end loop;<br />end;</p><p>5) 关联update的一个特例以及性能再探讨<br />   在oracle的update语句语法中，除了可以update表之外，也可以是视图，所以有以下1个特例：<br />    update (select a.city_name,b.city_name as new_name<br />            from   customers a,<br />                   tmp_cust_city b<br />            where  b.customer_id=a.customer_id<br />           )<br />    set    city_name=new_name<br />    这样能避免对B表或其索引的2次扫描，但前提是 A(customer_id) b(customer_id)必需是unique index<br />    或primary key。否则报错：<br />    <br />01779, 00000, "cannot modify a column which maps to a non key-preserved table"<br />// *Cause: An attempt was made to insert or update columns of a join view which<br />//         map to a non-key-preserved table.<br />// *Action: Modify the underlying base tables directly.</p><p>6）oracle另一个常见错误<br />   回到3)情况,由于某些原因，tmp_cust_city customer_id 不是唯一index/primary key<br />   update customers a   -- 使用别名<br />   set    city_name=(select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id)<br />   where  exists (select 1 <br />                  from   tmp_cust_city b<br />                  where  b.customer_id=a.customer_id<br />                 )<br />   当对于一个给定的a.customer_id<br />   (select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id)<br />   返回多余1条的情况，则会报如下错误：<br />   <br />01427, 00000, "single-row subquery returns more than one row"<br />// *Cause:<br />// *Action:</p><p>   一个比较简单近似于不负责任的做法是<br />   update customers a   -- 使用别名<br />   set    city_name=(select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id and rownum=1)</p><p>   如何理解 01427 错误，在一个很复杂的多表连接update的语句，经常因考虑不周，出现这个错误，<br />   仍已上述例子来描述，一个比较简便的方法就是将A表代入 值表达式 中,使用group by 和<br />   having 字句查看重复的纪录<br />   (select b.customer_id,b.city_name,count(*)<br />    from tmp_cust_city b,customers a <br />    where b.customer_id=a.customer_id<br />    group by b.customer_id,b.city_name<br />    having count(*)&gt;=2<br />   )<br /></p><img src ="http://www.blogjava.net/nobody_am/aggbug/65915.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2006-08-26 11:34 <a href="http://www.blogjava.net/nobody_am/articles/65915.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle集合运算</title><link>http://www.blogjava.net/nobody_am/articles/51226.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Wed, 07 Jun 2006 16:20:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/51226.html</guid><description><![CDATA[
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 15pt">Oracle</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 15pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">集合运算</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 15pt">
								<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; WORD-BREAK: break-all; TEXT-ALIGN: right" align="right">
				<span lang="EN-US">
						<span style="mso-tab-count: 2">            </span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">基本上可以用下图表示</span>
				<span lang="EN-US">Oracle</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的几种集合运算，黄色表示结果集：</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /?>
						<v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600">
								<v:stroke joinstyle="miter">
								</v:stroke>
								<v:formulas>
										<v:f eqn="if lineDrawn pixelLineWidth 0">
										</v:f>
										<v:f eqn="sum @0 1 0">
										</v:f>
										<v:f eqn="sum 0 0 @1">
										</v:f>
										<v:f eqn="prod @2 1 2">
										</v:f>
										<v:f eqn="prod @3 21600 pixelWidth">
										</v:f>
										<v:f eqn="prod @3 21600 pixelHeight">
										</v:f>
										<v:f eqn="sum @0 0 1">
										</v:f>
										<v:f eqn="prod @6 1 2">
										</v:f>
										<v:f eqn="prod @7 21600 pixelWidth">
										</v:f>
										<v:f eqn="sum @8 21600 0">
										</v:f>
										<v:f eqn="prod @7 21600 pixelHeight">
										</v:f>
										<v:f eqn="sum @10 21600 0">
										</v:f>
								</v:formulas>
								<v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f">
								</v:path>
								<o:lock aspectratio="t" v:ext="edit">
								</o:lock>
						</v:shapetype>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> <img height="388" alt="OraAssi.gif" src="http://www.blogjava.net/images/blogjava_net/nobody_am/tmp/OraAssi.gif" width="606" border="0" /></o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">联合（</span>
				<span lang="EN-US">Union</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）案例：</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<b>
														<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">select</span>
												</b>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
												</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">1</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">,</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">2</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<br />
														<b>from</b> dual <br /><b>union</b><br /><b>select</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">2</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">,</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">3</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<br />
														<b>from</b> dual</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">完全联合（</span>
				<span lang="EN-US">Union All</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">）案例：</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<b>
														<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">select</span>
												</b>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
												</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">1</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">,</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">2</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<br />
														<b>from</b> dual <br /><b>union</b><b>all</b><br /><b>select</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">1</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">,</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">2</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<br />
														<b>from</b> dual</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">相交</span>
				<span lang="EN-US">(Intersect)</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">案例：</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<b>
														<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">select</span>
												</b>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> *<br /><b>from</b><br />(<br /><b>select</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">1</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">,</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">2</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<br />
														<b>from</b> dual <br /><b>union</b><b>all</b><br /><b>select</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">3</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">,</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">3</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<br />
														<b>from</b> dual<br />)<br /><br /><b>intersect</b><br /><br /><b>select</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">3</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">,</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">3</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<br />
														<b>from</b> dual</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">相减</span>
				<span lang="EN-US">(minus)</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">案例：</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<b>
														<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">select</span>
												</b>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> a,b<br /><b>from</b><br />(<br /><b>select</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">1</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<b>as</b> a,</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">2</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<b>as</b> b<br /><b>from</b> dual <br /><b>union</b><b>all</b><br /><b>select</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">3</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<b>as</b> a,</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">3</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<b>as</b> b<br /><b>from</b> dual<br />)<br /><br /><b>MINUS</b><br /><br /><b>select</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">3</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<b>as</b> a,</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">3</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<b>as</b> b<br /><b>from</b> dual</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">Union</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">排序只能放在最后</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<b>
														<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">COLUMN</span>
												</b>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> a_dummy NOPRINT<br /><b>SELECT</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">'sing'</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<b>AS</b> "My dream", </span>
												<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /?>
												<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="True" sourcevalue="3" unitname="a">
														<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">3</span>
														<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt"> a</span>
												</st1:chmetcnv>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">_dummy<br /><b>FROM</b> dual<br /><st1:place w:st="on"><b>UNION</b></st1:place><br /><b>SELECT</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">'I''d like to teach'</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">, </span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">1</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<br />
														<b>FROM</b> dual<br /><b>UNION</b><br /><b>SELECT</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">'the world to'</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">, </span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">2</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">
														<br />
														<b>FROM</b> dual<br /><b>ORDER</b><b>BY</b></span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: #0000f0; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">2</span>
												<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Courier New'; mso-font-kerning: 0pt">;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
<img src ="http://www.blogjava.net/nobody_am/aggbug/51226.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2006-06-08 00:20 <a href="http://www.blogjava.net/nobody_am/articles/51226.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle上的约束简介</title><link>http://www.blogjava.net/nobody_am/articles/50961.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Tue, 06 Jun 2006 15:28:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/50961.html</guid><description><![CDATA[
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center">
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">约束简介</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 14pt">
								<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 39.0pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">1、<span style="FONT: 7pt 'Times New Roman'">  </span></span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">约束有以下几种类型</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span lang="EN-US">Not Null</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span lang="EN-US">Unique</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span lang="EN-US">Primary Key</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span lang="EN-US">Foreign Key</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span lang="EN-US">Check</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以上几个约束，与</span>
				<span lang="EN-US">SQL Server</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的标准一致</span>
				<span lang="EN-US">,</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">不再解释。</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 39.0pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">2、<span style="FONT: 7pt 'Times New Roman'">  </span></span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">添加约束</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">举例：</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Alter table employees </span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Add constraint emp_manager_fk</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<span style="mso-spacerun: yes">  </span>Foreign key(manager_id) references employees(employee_id);</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 39.0pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">3、<span style="FONT: 7pt 'Times New Roman'">  </span></span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">删除约束</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Alter table employees</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Drop constraint emp_manager_fk;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 39.0pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">4、<span style="FONT: 7pt 'Times New Roman'">  </span></span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使约束无效</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">举例：</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Alter table employees</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Disable constraint emp_emp_id_pk casecade;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 39.0pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">5、<span style="FONT: 7pt 'Times New Roman'">  </span></span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使约束有效</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">举例：</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Alter table employees</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Enable constraint emp_emp_id_pk;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 39.0pt">
				<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
						<span style="mso-list: Ignore">6、<span style="FONT: 7pt 'Times New Roman'">  </span></span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">查看约束</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">举例</span>
				<span lang="EN-US">1</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">：查看表的所有约束：</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Select constraint_name,constraint_type,search_condition </span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">From user_constraints</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Where table_name=’EMPLOYEES’;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<span style="mso-tab-count: 1">       </span>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<span style="mso-tab-count: 2">              </span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">举例</span>
				<span lang="EN-US">2</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">：查看约束关联的列</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">select constraint_name,column_name </span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">from user_cons_columns </span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">where table_name='TFLOW'</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
<img src ="http://www.blogjava.net/nobody_am/aggbug/50961.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2006-06-06 23:28 <a href="http://www.blogjava.net/nobody_am/articles/50961.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle上exp导出和imp导入案例</title><link>http://www.blogjava.net/nobody_am/articles/50617.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Mon, 05 Jun 2006 16:15:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/50617.html</guid><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: exp														导出和														imp														导入案例																																																														 												前言：				exp				和...&nbsp;&nbsp;<a href='http://www.blogjava.net/nobody_am/articles/50617.html'>阅读全文</a><img src ="http://www.blogjava.net/nobody_am/aggbug/50617.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2006-06-06 00:15 <a href="http://www.blogjava.net/nobody_am/articles/50617.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何转移Oracle9i数据文件</title><link>http://www.blogjava.net/nobody_am/articles/50372.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Sun, 04 Jun 2006 15:41:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/50372.html</guid><description><![CDATA[
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center">
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如何转移</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 14pt">Oracle9i</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">数据文件</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 14pt">
								<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">背景介绍：</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<span style="mso-tab-count: 1">       </span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">有时数据库文件充满了整个分区，如果想把文件转移到其他分区，怎么做？</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">查看数据库文件的方法：用</span>
				<span lang="EN-US">sysdba</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">角色登录</span>
				<span lang="EN-US">sqlplus,</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">运行下面命令：</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt; select * from sys.dba_data_files;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">Step 1 </span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">登录</span>
				<span lang="EN-US">sqlplus</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e0e0e0; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">C:\&gt;sqlplus /nolog</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL*Plus: Release <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /?><st1:chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">9.2.0</st1:chsdate>.1.0 - Production on </span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">星期日</span>
												<span lang="EN-US">6</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">月</span>
												<span lang="EN-US">4 23:05:40 2006</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Copyright (c) 1982, 2002, Oracle Corporation.<span style="mso-spacerun: yes">  </span>All rights reserved.</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt; connect /as sysdba</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已连接。</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">Step 2 </span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">停止所有用户的链接，关闭数据库</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e0e0e0; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt; shutdown immediate</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">数据库已经关闭。</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已经卸载数据库。</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">ORACLE </span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">例程已经关闭。</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt; exit</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">从</span>
												<span lang="EN-US">Oracle9i Enterprise Edition Release <st1:chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">9.2.0</st1:chsdate>.1.0 - Production</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">With the Partitioning, OLAP and Oracle Data Mining options</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">JServer Release <st1:chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">9.2.0</st1:chsdate>.1.0 - Production</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中断开</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<o:p> </o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">C:\&gt;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">Step 3 </span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">转移数据库文件。假设从“</span>
				<span lang="EN-US">D:\oracle\oradata\OAERP\TSTEST.ORA</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">”</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">copy to</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">“</span>
				<span lang="EN-US">F:\oracledata\ TSTEST.ORA</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">”</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">Step 4 </span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">重新登录</span>
				<span lang="EN-US">sqlplus</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">C:\&gt;sqlplus /nolog</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL*Plus: Release <st1:chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">9.2.0</st1:chsdate>.1.0 - Production on </span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">星期日</span>
												<span lang="EN-US">6</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">月</span>
												<span lang="EN-US">4 23:12:41 2006</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Copyright (c) 1982, 2002, Oracle Corporation.<span style="mso-spacerun: yes">  </span>All rights reserved.</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt; connect /as sysdba</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已连接到空闲例程。</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt; startup mount</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">ORACLE </span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">例程已经启动。</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<o:p> </o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Total System Global Area<span style="mso-spacerun: yes">  </span>135338868 bytes</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Fixed Size<span style="mso-spacerun: yes">                   </span>453492 bytes</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Variable Size<span style="mso-spacerun: yes">             </span>109051904 bytes</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Database Buffers<span style="mso-spacerun: yes">           </span>25165824 bytes</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">Redo Buffers<span style="mso-spacerun: yes">                 </span>667648 bytes</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">数据库装载完毕。</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">Step 5 </span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">更改数据库文件名</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt; alter database rename file 'D:\oracle\oradata\OAERP\TSTEST.ORA' to 'F:\oracledata\TSTEST.ORA';</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">数据库已更改。</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">Step 6 </span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">打开数据</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt; alter database open;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">数据库已更改。</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">SQL&gt;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
				<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">注：</span>
						<span lang="EN-US">
								<font face="Times New Roman">1</font>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、如果需要转移多个文件，只需重做</span>
						<span lang="EN-US">
								<font face="Times New Roman">Step 3 </font>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</span>
						<span lang="EN-US">
								<font face="Times New Roman"> step 5</font>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</span>
				</p>
				<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
						<span lang="EN-US">
								<font face="Times New Roman">
										<span style="mso-tab-count: 1">       </span>2</font>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、所有操作必须在数据库服务器上进行。</span>
				</p>
				<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
						<font face="Times New Roman">
								<span lang="EN-US">
										<span style="mso-tab-count: 1">       </span>
								</span>
								<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">3</span>
						</font>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">、</span>
						<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
								<font face="Times New Roman">Oracle8i</font>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">下用</span>
						<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
								<font face="Times New Roman">svrmgrl</font>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">命令代替</span>
						<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
								<font face="Times New Roman">sqlplus</font>
						</span>
						<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt">。</span>
						<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
								<o:p>
								</o:p>
						</span>
				</p>
				<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				</p>
		</span>
		<br />
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p>      </o:p>
				</span>
		</p>
<img src ="http://www.blogjava.net/nobody_am/aggbug/50372.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2006-06-04 23:41 <a href="http://www.blogjava.net/nobody_am/articles/50372.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle上创建表空间案例</title><link>http://www.blogjava.net/nobody_am/articles/50371.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Sun, 04 Jun 2006 15:40:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/50371.html</guid><description><![CDATA[
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center">
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">创建表空间案例</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 14pt">
								<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<span style="mso-tab-count: 1">       </span>
				</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">本文通过一个例子说明如何创建表空间</span>
				<span lang="EN-US">tstest</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，并且创建一个用户</span>
				<span lang="EN-US">sam</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，可以对该表空间的具备操作权限。</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
				<span lang="EN-US">sys</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">用户以</span>
				<span lang="EN-US">dba</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">身份登录</span>
				<span lang="EN-US">sql*plus worksheet</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">-- </span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">注释：</span>
												<span lang="EN-US">Create tablespace</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">--revoke "DBA" from sam</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">--drop tablespace tstest including contents and datafiles;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">--drop user sam CASCADE; </span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<o:p> </o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">CREATE TABLESPACE "tstest"</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<span style="mso-spacerun: yes">    </span>LOGGING </span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<span style="mso-spacerun: yes">    </span>DATAFILE 'D:/oracle/oradata/OAERP/TSTEST.ORA' SIZE <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /?><st1:chmetcnv w:st="on" unitname="m" sourcevalue="100" hasspace="False" negative="False" numbertype="1" tcsc="0">100M</st1:chmetcnv></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<span style="mso-spacerun: yes">    </span>REUSE EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT<span style="mso-spacerun: yes">  </span>AUTO ;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<span style="mso-spacerun: yes">    </span>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">CREATE USER "SAM"<span style="mso-spacerun: yes">  </span>PROFILE "DEFAULT" </span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<span style="mso-spacerun: yes">    </span>IDENTIFIED BY "1qa2ws3ed" DEFAULT TABLESPACE "TSTEST"</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<span style="mso-spacerun: yes">    </span>TEMPORARY TABLESPACE "TEMP" </span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<span style="mso-spacerun: yes">    </span>ACCOUNT UNLOCK;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<o:p> </o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<o:p> </o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">grant connect to "SAM"<span style="mso-spacerun: yes">  </span>with admin option;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">ALTER USER "SAM" DEFAULT ROLE<span style="mso-spacerun: yes">  </span>ALL;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<o:p> </o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">grant create procedure to SAM;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">grant create sequence to SAM;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">grant create table to SAM;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">grant create view to SAM;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<o:p> </o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">grant drop any procedure to SAM;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">grant drop any sequence to SAM;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">grant drop any table to SAM;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">grant drop any view to SAM;</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">
														<o:p> </o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US">alter user SAM quota unlimited on TSTEST;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
<img src ="http://www.blogjava.net/nobody_am/aggbug/50371.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2006-06-04 23:40 <a href="http://www.blogjava.net/nobody_am/articles/50371.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用SQL*Plus</title><link>http://www.blogjava.net/nobody_am/articles/49134.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Tue, 30 May 2006 15:33:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/49134.html</guid><description><![CDATA[
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center">
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 16pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使用</span>
				</b>
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 16pt">SQL*Plus<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #ccffcc; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">登录</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">SQL*Plus<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">查看表结构</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">结束编辑</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">查看命令</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">运行命令</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">修改命令</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">保存命令到文件</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">从文件读入命令</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">编辑命令文件</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">清除命令文件</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">清空缓存</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">替换单词</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">删除行</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
												</span>
												<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">退出</span>
												<span lang="EN-US" style="FONT-SIZE: 14pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">登录</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">SQL*Plus<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">窗口环境，使用</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">sql*plus</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，在</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">Username</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">password</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">Host String</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">里分别填入，用户名，密码，服务名即可登陆。</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">控制台环境，使用“</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">sqlplus username/password@hostString</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">”</span>
				<span style="FONT-SIZE: 14pt">
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">命令即可登录。</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">查看表结构</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">查看</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">tuser</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">表的结构</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;Describe tuser</span>
												<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">结束编辑</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">两次换行就可以结束编辑</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">查看命令</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">查看所有命令</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;List<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">查看第</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">n</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">行</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;List n<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">查看第</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">n</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">行到</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">m</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">行</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;List n m</span>
												<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">运行命令</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;Run<o:p></o:p></span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">修改命令</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">把命令中的</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">aa</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">换成</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">bb<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;Change /aa/bb</span>
												<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">保存命令到文件</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">保存命令到</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">C:\aa.sql<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;Save c:\aa.sql</span>
												<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">从文件读入命令</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">从</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">C:\aa.sql</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">中读取命令</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;Get c:\aa.sql</span>
												<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">编辑命令文件</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">编辑</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt"> C:\aa.sql<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;Edit c:\aa.sql<o:p></o:p></span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">清除命令文件</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">清出</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">C:\aa.sql</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">文件内容</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;spool c:\aa.sql</span>
												<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">清空缓存</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">清空缓存</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;clear buffer</span>
												<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">删除行</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">#</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">删除</span>
												<span style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">
												</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">第</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">1</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.5pt; mso-bidi-font-family: 'Courier New'">行</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;del 1</span>
												<span lang="EN-US" style="mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">停止正在运行的命令</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">Ctrl + C<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">       </span></span>
				</span>
				<span style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">退出</span>
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-bidi-font-size: 10.5pt">SQL&gt;Exit<o:p></o:p></span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 14pt">
						<o:p>
						</o:p>
				</span>
		</p>
<img src ="http://www.blogjava.net/nobody_am/aggbug/49134.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2006-05-30 23:33 <a href="http://www.blogjava.net/nobody_am/articles/49134.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle上分配权限</title><link>http://www.blogjava.net/nobody_am/articles/48848.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Mon, 29 May 2006 15:20:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/48848.html</guid><description><![CDATA[
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center">
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 22pt; FONT-FAMILY: 黑体">分配权限和安全案例<span lang="EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span></span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #ccffcc; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配用户权限<span lang="EN-US"><o:p></o:p></span></span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">去除用户权限<span lang="EN-US"><o:p></o:p></span></span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配角色权限<span lang="EN-US"><o:p></o:p></span></span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">去除角色权限<span lang="EN-US"><o:p></o:p></span></span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配表的<span lang="EN-US">Select</span>权限给用户<span lang="EN-US"><o:p></o:p></span></span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配表的<span lang="EN-US">Update</span>权限给角色<span lang="EN-US"><o:p></o:p></span></span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配表的<span lang="EN-US">Select</span>权限给所有用户<span lang="EN-US"><o:p></o:p></span></span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配表的<span lang="EN-US">Select</span>权限给用户，且允许他授权给其他人<span lang="EN-US"><o:p></o:p></span></span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">安全分类<span lang="EN-US"><o:p></o:p></span></span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">权限分类<span lang="EN-US"><o:p></o:p></span></span>
												</b>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">说明：用</span>
				<span lang="EN-US">sys</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">用户以</span>
				<span lang="EN-US">sysdba</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的身份登录</span>
				<span lang="EN-US"> SQL*Plus Worksheet</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，运行下面脚本，实现分配权限。</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配用户权限<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">分配用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">创建表，创建序列，创建存储过程和创建视图的权限</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">grant create table,create sequence,create view,create procedure<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">to sam</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">去除用户权限<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">去除用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">创建视图的权限</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">revoke create view from sam;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配角色权限<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">分配角色</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">manager</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">创建表，创建序列的权限</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">grant create table,create sequence to manager;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">去除用户权限<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">去除角色</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">manager</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">创建视图的权限</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">revoke create table from manager;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配表的<span lang="EN-US">Select</span>权限给用户<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">分配用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">在表</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">tt</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">上的</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">select</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">权限</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">grant select on tt to sam;<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">去除用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">在表</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">tt</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">上的</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">select</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">权限</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">revoke select on tt from sam;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配表的<span lang="EN-US">Update</span>权限给角色<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">分配表的</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Update</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">权限给角色</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Manager<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">grant update on tt to manager;<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">去除表的</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Update</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">权限给角色</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Manager<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">revoke update on tt from manager;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配表的<span lang="EN-US">Select</span>权限给所有用户<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">分配表的</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Select</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">权限给所有用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">grant select on tt to public;<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">去除表的</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Select</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">权限给所有用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">revoke select on tt from public;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">分配表的<span lang="EN-US">Select</span>权限给用户，且允许他授权给其他人<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">分配表的</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Select</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">权限给用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">，且允许</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">sam</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">罢表的</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">select</span>
												<span style="FONT-FAMILY: 宋体; mso-bidi-font-family: 'Courier New'; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'">权限授权给他人</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">
														<o:p>
														</o:p>
												</span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">grant select on tt to sam with grant option;</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">安全分类<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 22pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-hansi-font-family: 'Times New Roman'">数据库安全可以被划分为两个范畴：系统安全和数据安全。系统安全在系统级别访问和使用数据库，例如，用户名和口令，分配给用户的磁盘空间和用户能够执行的系统操作；数据库安全包括访问和使用数据库对象和用户能够对数据库对象进行的操作。<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">权限分类<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 22pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-hansi-font-family: 'Times New Roman'">权限是执行特殊</span>
				<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; mso-font-kerning: 0pt">SQL</span>
				<span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-hansi-font-family: 'Times New Roman'">语句的权利。数据库管理员 </span>
				<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; mso-font-kerning: 0pt">(DBA) </span>
				<span style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-hansi-font-family: 'Times New Roman'">是一个具有授予用户访问数据库及其对象的能力的高级用户。用户需要系统权限来访问数据库，需要对象权限来操纵数据库中对象的内容。用户也可以将被授予的权限给其它用户或者角色，角色是相关权限的命名分组。<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-hansi-font-family: 'Times New Roman'">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<p> </p>
<img src ="http://www.blogjava.net/nobody_am/aggbug/48848.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2006-05-29 23:20 <a href="http://www.blogjava.net/nobody_am/articles/48848.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle上创建用户案例</title><link>http://www.blogjava.net/nobody_am/articles/48537.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Sat, 27 May 2006 14:59:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/48537.html</guid><description><![CDATA[
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center">
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 22pt; FONT-FAMILY: 黑体">
								<font face="Tahoma">创建用户案例<span lang="EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span></font>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-FAMILY: 黑体">
						<o:p> </o:p>
				</span>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #ccffcc; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
																<font face="Tahoma">创建用户（<span lang="EN-US">USER</span>）<span lang="EN-US"><o:p></o:p></span></font>
														</span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<font face="Tahoma">
																<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">删除用户<span lang="EN-US"><o:p></o:p></span></span>
														</font>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
																<font face="Tahoma">修改密码<span lang="EN-US"><o:p></o:p></span></font>
														</span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
																<font face="Tahoma">创建角色（<span lang="EN-US">ROLE</span>）<span lang="EN-US"><o:p></o:p></span></font>
														</span>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<font face="Tahoma">
																<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">删除角色<span lang="EN-US"><o:p></o:p></span></span>
														</font>
												</b>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
												<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
														<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
												</span>
												<b style="mso-bidi-font-weight: normal">
														<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
																<font face="Tahoma">给用户分配角色<span lang="EN-US"><o:p></o:p></span></font>
														</span>
												</b>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">说明：用</span>
				<span lang="EN-US">sys</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">用户以</span>
				<span lang="EN-US">sysdba</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的身份登录</span>
				<span lang="EN-US">SQL*Plus Worksheet</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，运行下面脚本，实现对用户的简单管理。</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<b style="mso-bidi-font-weight: normal">
						<font face="Tahoma">
								<font size="3">
										<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">创建用户<span lang="EN-US"><o:p></o:p></span></span> （<span lang="EN-US">USER</span>）</font>
						</font>
				</b>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 黑体; mso-bidi-font-size: 10.5pt">--</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">创建一个用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">，密码是</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 黑体; mso-bidi-font-size: 10.5pt">
														<br />create user sam identified by sam;<o:p></o:p></span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<font face="Tahoma">删除用户<span lang="EN-US"><o:p></o:p></span></font>
						</span>
				</b>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">删除用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 黑体; mso-bidi-font-size: 10.5pt">drop user sam;</span>
												<span lang="EN-US" style="FONT-FAMILY: 黑体; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<font face="Tahoma">修改密码<span lang="EN-US"><o:p></o:p></span></font>
						</span>
				</b>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">修改</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">的密码为</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">1234<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 黑体; mso-bidi-font-size: 10.5pt">alter user sam identified by 1234;<o:p></o:p></span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">创建角色（<span lang="EN-US">ROLE</span>）<span lang="EN-US"><o:p></o:p></span></span>
				</b>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">创建角色</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">manager<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 黑体; mso-bidi-font-size: 10.5pt">create role manager;<o:p></o:p></span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<font face="Tahoma">删除角色<span lang="EN-US"><o:p></o:p></span></font>
						</span>
				</b>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">删除角色</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">manager<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 黑体; mso-bidi-font-size: 10.5pt">Drop role manager;</span>
												<span lang="EN-US" style="FONT-FAMILY: 黑体; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<font face="Tahoma">给用户分配角色<span lang="EN-US"><o:p></o:p></span></font>
						</span>
				</b>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">给用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">分配角色</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">manager<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 黑体; mso-bidi-font-size: 10.5pt">grant manager to sam;</span>
												<span lang="EN-US" style="FONT-FAMILY: 黑体; mso-bidi-font-size: 10.5pt">
														<o:p>
														</o:p>
												</span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<o:p> </o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 21pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 21.0pt">
				<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings">
						<span style="mso-list: Ignore">l<span style="FONT: 7pt 'Times New Roman'">      </span></span>
				</span>
				<b style="mso-bidi-font-weight: normal">
						<span style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<font face="Tahoma">给用户撤销角色<span lang="EN-US"><o:p></o:p></span></font>
						</span>
				</b>
		</p>
		<table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: #e6e6e6; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" border="1">
				<tbody>
						<tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
								<td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" valign="top" width="568">
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">--</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">给用户</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">Sam</span>
												<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 'Courier New'">撤销角色</span>
												<span lang="EN-US" style="FONT-FAMILY: 'Courier New'">manager<o:p></o:p></span>
										</p>
										<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
												<span lang="EN-US" style="FONT-FAMILY: 黑体; mso-bidi-font-size: 10.5pt">revoke manager from sam;<o:p></o:p></span>
										</p>
								</td>
						</tr>
				</tbody>
		</table>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<b style="mso-bidi-font-weight: normal">
						<span lang="EN-US" style="FONT-SIZE: 16pt; FONT-FAMILY: 黑体">
								<o:p>
										<br />
								</o:p>
						</span>
				</b>
		</p>
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">conn sys</span>
				<span style="COLOR: #808080">/</span>
				<span style="COLOR: #000000">cms</span>
				<span style="COLOR: #008000">@cms</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #0000ff">as</span>
				<span style="COLOR: #000000"> sysdba<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">CREATE</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #ff00ff">USER</span>
				<span style="COLOR: #000000"> "CMS"  PROFILE "</span>
				<span style="COLOR: #0000ff">DEFAULT</span>
				<span style="COLOR: #000000">" <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    IDENTIFIED </span>
				<span style="COLOR: #0000ff">BY</span>
				<span style="COLOR: #000000"> "cms" </span>
				<span style="COLOR: #0000ff">DEFAULT</span>
				<span style="COLOR: #000000"> TABLESPACE "USERS" <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">TEMPORARY</span>
				<span style="COLOR: #000000"> TABLESPACE "</span>
				<span style="COLOR: #0000ff">TEMP</span>
				<span style="COLOR: #000000">" <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    ACCOUNT UNLOCK;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "CONNECT" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "DELETE_CATALOG_ROLE" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "DM_CATALOG_ROLE" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "EXECUTE_CATALOG_ROLE" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "EXP_FULL_DATABASE" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "HS_ADMIN_ROLE" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "IMP_FULL_DATABASE" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "OLAP_USER" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "RECOVERY_CATALOG_OWNER" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "RESOURCE" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "SCHEDULER_ADMIN" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				<span style="COLOR: #0000ff">GRANT</span>
				<span style="COLOR: #000000"> "SELECT_CATALOG_ROLE" </span>
				<span style="COLOR: #0000ff">TO</span>
				<span style="COLOR: #000000"> "CMS";</span>
		</div>
<img src ="http://www.blogjava.net/nobody_am/aggbug/48537.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2006-05-27 22:59 <a href="http://www.blogjava.net/nobody_am/articles/48537.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle备份与恢复案例</title><link>http://www.blogjava.net/nobody_am/articles/42700.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Sun, 23 Apr 2006 11:16:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/42700.html</guid><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Oracle														备份与恢复案例																																												By Piner																		 																		一. 理解什么是数据库恢复   								当我们使用一个数据库...&nbsp;&nbsp;<a href='http://www.blogjava.net/nobody_am/articles/42700.html'>阅读全文</a><img src ="http://www.blogjava.net/nobody_am/aggbug/42700.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2006-04-23 19:16 <a href="http://www.blogjava.net/nobody_am/articles/42700.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MySQL 操作笔记</title><link>http://www.blogjava.net/nobody_am/articles/23194.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Fri, 09 Dec 2005 11:23:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/23194.html</guid><description><![CDATA[1. 分配权限给某个用户<BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">GRANT&nbsp;ALL&nbsp;ON&nbsp;addressbooksample</SPAN><SPAN style="COLOR: #000000">.*</SPAN><SPAN style="COLOR: #000000">&nbsp;TO&nbsp;ming</SPAN><SPAN style="COLOR: #800080">@localhost</SPAN></DIV><BR>2. 创建用户,并分权限<BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">GRANT&nbsp;ALL&nbsp;ON&nbsp;addressbooksample</SPAN><SPAN style="COLOR: #000000">.*</SPAN><SPAN style="COLOR: #000000">&nbsp;TO&nbsp;lily</SPAN><SPAN style="COLOR: #800080">@localhost</SPAN><SPAN style="COLOR: #000000">&nbsp;IDENTIFIED&nbsp;BY&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">"</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">123</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">"</SPAN></DIV><BR>3. 改变用户(包括root)的密码 
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">use</SPAN><SPAN style="COLOR: #000000">&nbsp;mysql;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>update&nbsp;user&nbsp;set&nbsp;password</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">PASSWORD(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">"</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">000</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">)&nbsp;where&nbsp;user</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">"</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">lily</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>flush&nbsp;privileges;</SPAN></DIV><BR>4.安装Mysql服务到Windows服务
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">mysqld</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">nt&nbsp;</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">install</SPAN></DIV><BR>5.启动Mysql服务
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">net&nbsp;start&nbsp;mysql</SPAN></DIV><BR>6.卸载Mysql服务
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">mysqld</SPAN><SPAN style="COLOR: #000000">-</SPAN><SPAN style="COLOR: #000000">nt&nbsp;</SPAN><SPAN style="COLOR: #000000">--</SPAN><SPAN style="COLOR: #000000">remove</SPAN></DIV><img src ="http://www.blogjava.net/nobody_am/aggbug/23194.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2005-12-09 19:23 <a href="http://www.blogjava.net/nobody_am/articles/23194.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>实体与树形分类之间的查询SP</title><link>http://www.blogjava.net/nobody_am/articles/21168.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Wed, 23 Nov 2005 10:59:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/21168.html</guid><description><![CDATA[<P>问题:&nbsp;&nbsp;&nbsp; 书属于某个分类<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 分类的记录属于其他分类<BR>分类表的内容如下:<BR>
<TABLE style="WIDTH: 195pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=260 border=0 x:str>
<COLGROUP>
<COL style="WIDTH: 54pt" width=72>
<COL style="WIDTH: 87pt; mso-width-source: userset; mso-width-alt: 3712" width=116>
<COL style="WIDTH: 54pt" width=72>
<TBODY>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl23 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 54pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: silver" width=72 height=19><FONT face=宋体>pkid</FONT></TD>
<TD class=xl23 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 87pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: silver" width=116><FONT face=宋体>description</FONT></TD>
<TD class=xl23 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 54pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: silver" width=72><FONT face=宋体>parentid</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" align=right height=19 x:num><FONT face=宋体>1</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent"><FONT face=宋体>外语</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>0</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" align=right height=19 x:num><FONT face=宋体>2</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent"><FONT face=宋体>计算机</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>0</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" align=right height=19 x:num><FONT face=宋体>3</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent"><FONT face=宋体>文学</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>0</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" align=right height=19 x:num><FONT face=宋体>4</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent"><FONT face=宋体>程序设计</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>2</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" align=right height=19 x:num><FONT face=宋体>5</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent"><FONT face=宋体>C#</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>4</FONT></TD></TR></TBODY></TABLE><BR>书表内容如下:<BR>
<TABLE style="WIDTH: 196pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=261 border=0 x:str>
<COLGROUP>
<COL style="WIDTH: 54pt" width=72>
<COL style="WIDTH: 47pt; mso-width-source: userset; mso-width-alt: 2016" width=63>
<COL style="WIDTH: 95pt; mso-width-source: userset; mso-width-alt: 4032" width=126>
<TBODY>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 54pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: silver" width=72 height=19><FONT face=宋体>pkid</FONT></TD>
<TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 47pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: silver" width=63><FONT face=宋体>categoryid</FONT></TD>
<TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 95pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: silver" width=126><FONT face=宋体>bookname</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" align=right height=19 x:num><FONT face=宋体>1</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>2</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent"><FONT face=宋体>计算机文化</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" align=right height=19 x:num><FONT face=宋体>2</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>4</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent"><FONT face=宋体>Java编程思想</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" align=right height=19 x:num><FONT face=宋体>3</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>5</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent"><FONT face=宋体>C# 高级编程</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" align=right height=19 x:num><FONT face=宋体>4</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>1</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>7777</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" align=right height=19 x:num><FONT face=宋体>5</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>3</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num><FONT face=宋体>4444</FONT></TD></TR></TBODY></TABLE><BR>现在根据分类2,应该查询出 <FONT face=宋体>计算机文化,Java编程思想,C# 高级编程三本书.<BR></FONT><BR>Sp如下:</P>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">create</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">proc</SPAN><SPAN style="COLOR: #000000">&nbsp;Pro_QueryBookByCateId<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">@cateid</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">varchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">10</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">2</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">as</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">begin</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">create</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">table</SPAN><SPAN style="COLOR: #000000">&nbsp;#T<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;(<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #ff0000">[</SPAN><SPAN style="COLOR: #ff0000">ID</SPAN><SPAN style="COLOR: #ff0000">]</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">int</SPAN><SPAN style="COLOR: #000000">,<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ParentID&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">int</SPAN><SPAN style="COLOR: #000000">,<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #ff0000">[</SPAN><SPAN style="COLOR: #ff0000">Level</SPAN><SPAN style="COLOR: #ff0000">]</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">INT</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;)<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">declare</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@s</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">nvarchar</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">4000</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">set</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@s</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">&nbsp;N</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">declare&nbsp;@i&nbsp;int&nbsp;&nbsp;set&nbsp;@i&nbsp;=&nbsp;1<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;insert&nbsp;into&nbsp;#T&nbsp;select&nbsp;pkid,parentid,@i&nbsp;from&nbsp;tcategory&nbsp;where&nbsp;pkID=</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #008000">@cateid</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">+</SPAN><SPAN style="COLOR: #000000">N</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;@@rowcount&lt;&gt;0<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;begin<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set&nbsp;@i&nbsp;=&nbsp;@i&nbsp;+&nbsp;1<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;insert&nbsp;into&nbsp;#t&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a.pkid,a.parentid,@i&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from&nbsp;&nbsp;tcategory&nbsp;a,#t&nbsp;b&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;where&nbsp;a.parentid=b.id&nbsp;and&nbsp;b.Level&nbsp;=&nbsp;@i-1<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">exec</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="COLOR: #008000">@s</SPAN><SPAN style="COLOR: #000000">)<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">select</SPAN><SPAN style="COLOR: #000000">&nbsp;tbook.pkid,tbook.descriptions&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">from</SPAN><SPAN style="COLOR: #000000">&nbsp;#T&nbsp;a,tbook<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">where</SPAN><SPAN style="COLOR: #000000">&nbsp;a.</SPAN><SPAN style="COLOR: #ff0000">[</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #ff0000">]</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">tBook.categoryid<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">end</SPAN></DIV>
<P><BR>&nbsp;</P><img src ="http://www.blogjava.net/nobody_am/aggbug/21168.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2005-11-23 18:59 <a href="http://www.blogjava.net/nobody_am/articles/21168.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Oracle 使用笔记</title><link>http://www.blogjava.net/nobody_am/articles/15509.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Fri, 14 Oct 2005 04:18:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/15509.html</guid><description><![CDATA[1. 获取系统日期时间<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">select</span><span style="COLOR: #000000"> sysdate </span><span style="COLOR: #0000ff">as</span><span style="COLOR: #000000"> now </span><span style="COLOR: #0000ff">from</span><span style="COLOR: #000000"> dual</span></div><br />2. 把日期格式转换为字符串格式<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">select</span><span style="COLOR: #000000"> to_char(sysdate, </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">YYYYMMDD HH24:MI:SS</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">) </span><span style="COLOR: #0000ff">from</span><span style="COLOR: #000000"> dual</span></div><p>3.  把字符串日期格式转换为date格式</p><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">select</span><span style="COLOR: #000000"> to_date(</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">2000-10-10 10:10:10</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">,</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">YYYY-MM-DD HH24:MI:SS</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">) </span><span style="COLOR: #0000ff">as</span><span style="COLOR: #000000"> inputdate </span><span style="COLOR: #0000ff">from</span><span style="COLOR: #000000"> dual</span></div><p>4. 创建一个DateDiff函数</p><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img id="Codehighlighter1_0_20_Open_Image" onclick="this.style.display='none'; Codehighlighter1_0_20_Open_Text.style.display='none'; Codehighlighter1_0_20_Closed_Image.style.display='inline'; Codehighlighter1_0_20_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_0_20_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_0_20_Closed_Text.style.display='none'; Codehighlighter1_0_20_Open_Image.style.display='inline'; Codehighlighter1_0_20_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span id="Codehighlighter1_0_20_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</span><span id="Codehighlighter1_0_20_Open_Text"><span style="COLOR: #008080">/*</span><span style="COLOR: #008080">* 创建一个DateDiff函数*</span><span style="COLOR: #008080">*/</span></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_22_170_Open_Image" onclick="this.style.display='none'; Codehighlighter1_22_170_Open_Text.style.display='none'; Codehighlighter1_22_170_Closed_Image.style.display='inline'; Codehighlighter1_22_170_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_22_170_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_22_170_Closed_Text.style.display='none'; Codehighlighter1_22_170_Open_Image.style.display='inline'; Codehighlighter1_22_170_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span id="Codehighlighter1_22_170_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</span><span id="Codehighlighter1_22_170_Open_Text"><span style="COLOR: #008080">/*</span><span style="COLOR: #008080">* 调用方式: select datediff( 'SS', to_date('1900-1-1 0:2:0','YYYY-MM-DD HH24:MI:SS'), to_date('2999-1-1 0:2:0','YYYY-MM-DD HH24:MI:SS') ) from dual *</span><span style="COLOR: #008080">*/</span></span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">create</span><span style="COLOR: #000000"> </span><span style="COLOR: #808080">or</span><span style="COLOR: #000000"> </span><span style="COLOR: #ff00ff">replace</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000"> </span><span style="COLOR: #ff00ff">datediff</span><span style="COLOR: #000000">(p_what </span><span style="COLOR: #808080">in</span><span style="COLOR: #000000"> </span><span style="FONT-WEIGHT: bold; COLOR: #000000">varchar2</span><span style="COLOR: #000000">, p_d1 </span><span style="COLOR: #808080">in</span><span style="COLOR: #000000"> date, p_d2 </span><span style="COLOR: #808080">in</span><span style="COLOR: #000000"> date) </span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> </span><span style="FONT-WEIGHT: bold; COLOR: #000000">number</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">is</span><span style="COLOR: #000000"> <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />l_result </span><span style="FONT-WEIGHT: bold; COLOR: #000000">number</span><span style="COLOR: #000000">; <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">begin</span><span style="COLOR: #000000"> <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">select</span><span style="COLOR: #000000"> decode( </span><span style="COLOR: #ff00ff">upper</span><span style="COLOR: #000000">(p_what), </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">SS</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">, (p_d2</span><span style="COLOR: #808080">-</span><span style="COLOR: #000000">p_d1)</span><span style="COLOR: #808080">*</span><span style="COLOR: #000000"> </span><span style="FONT-WEIGHT: bold; COLOR: #800000">24</span><span style="COLOR: #000000"> </span><span style="COLOR: #808080">*</span><span style="COLOR: #000000"> </span><span style="FONT-WEIGHT: bold; COLOR: #800000">60</span><span style="COLOR: #000000"> </span><span style="COLOR: #808080">*</span><span style="COLOR: #000000"> </span><span style="FONT-WEIGHT: bold; COLOR: #800000">60</span><span style="COLOR: #000000"> <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />, </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">MI</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">, (p_d2</span><span style="COLOR: #808080">-</span><span style="COLOR: #000000">p_d1)</span><span style="COLOR: #808080">*</span><span style="COLOR: #000000"> </span><span style="FONT-WEIGHT: bold; COLOR: #800000">24</span><span style="COLOR: #000000"> </span><span style="COLOR: #808080">*</span><span style="COLOR: #000000"> </span><span style="FONT-WEIGHT: bold; COLOR: #800000">60</span><span style="COLOR: #000000"> <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />, </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">HH</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">, (p_d2</span><span style="COLOR: #808080">-</span><span style="COLOR: #000000">p_d1)</span><span style="COLOR: #808080">*</span><span style="COLOR: #000000"> </span><span style="FONT-WEIGHT: bold; COLOR: #800000">24</span><span style="COLOR: #000000"> <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />, </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">DD</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">, (p_d2</span><span style="COLOR: #808080">-</span><span style="COLOR: #000000">p_d1)<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />, </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">MM</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">, trunc(months_between(to_date(to_char(p_d2,</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">DD-MON-YYYY</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">), </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">DD-MON-YYYY</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">), to_date(to_char(p_d1,</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">DD-MON-YYYY</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">), </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">DD-MON-YYYY</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">))) <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />, </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">YY</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">, trunc(months_between(to_date(to_char(p_d2,</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">DD-MON-YYYY</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">), </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">DD-MON-YYYY</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">), to_date(to_char(p_d1,</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">DD-MON-YYYY</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">), </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">DD-MON-YYYY</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">)) </span><span style="COLOR: #808080">/</span><span style="COLOR: #000000"> </span><span style="FONT-WEIGHT: bold; COLOR: #800000">12</span><span style="COLOR: #000000">) <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />, </span><span style="COLOR: #0000ff">NULL</span><span style="COLOR: #000000"> ) <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">into</span><span style="COLOR: #000000"> l_result </span><span style="COLOR: #0000ff">from</span><span style="COLOR: #000000"> dual; <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">(l_result); <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">end</span><span style="COLOR: #000000"> </span><span style="COLOR: #ff00ff">datediff</span><span style="COLOR: #000000">; </span></div><p>5.ORA-01658:无法为表空间SA中的段创建INITIAL区?</p><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">select</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">file</span><span style="COLOR: #000000">#,status,enabled,name </span><span style="COLOR: #0000ff">from</span><span style="COLOR: #000000"> v$datafile;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">alter</span><span style="COLOR: #000000">   tablespace   users   </span><span style="COLOR: #0000ff">add</span><span style="COLOR: #000000">   datafile   </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">c:\data\a.dbf</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">   size   1024m; <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span></div><p>6.Oracle遍历树结构表的两种案例</p><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #008080">--</span><span style="COLOR: #008080">从叶子往上遍历</span><span style="COLOR: #008080"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">SELECT</span><span style="COLOR: #000000"> pkid, CATENAME,path,isdel <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">FROM</span><span style="COLOR: #000000">  tcategory <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />CONNECT </span><span style="COLOR: #0000ff">BY</span><span style="COLOR: #000000"> pkid</span><span style="COLOR: #808080">=</span><span style="COLOR: #000000"> PRIOR PARENTID START </span><span style="COLOR: #0000ff">WITH</span><span style="COLOR: #000000"> pkid </span><span style="COLOR: #808080">=</span><span style="FONT-WEIGHT: bold; COLOR: #800000">10001224</span><span style="COLOR: #000000">;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #008080">--</span><span style="COLOR: #008080">从根往下遍历</span><span style="COLOR: #008080"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">SELECT</span><span style="COLOR: #000000"> pkid, CATENAME,path,isdel <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">FROM</span><span style="COLOR: #000000">  tcategory <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />CONNECT </span><span style="COLOR: #0000ff">BY</span><span style="COLOR: #000000">  PRIOR  pkid</span><span style="COLOR: #808080">=</span><span style="COLOR: #000000">PARENTID START </span><span style="COLOR: #0000ff">WITH</span><span style="COLOR: #000000"> pkid </span><span style="COLOR: #808080">=</span><span style="FONT-WEIGHT: bold; COLOR: #800000">10001223</span><span style="COLOR: #000000">;</span></div><p>7.循环<br /></p><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">declare</span><span style="COLOR: #000000"> X </span><span style="FONT-WEIGHT: bold; COLOR: #000000">integer</span><span style="COLOR: #000000"> :</span><span style="COLOR: #808080">=</span><span style="FONT-WEIGHT: bold; COLOR: #800000">0</span><span style="COLOR: #000000">;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">begin</span><span style="COLOR: #000000"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">WHILE</span><span style="COLOR: #000000"> X</span><span style="COLOR: #808080">&lt;=</span><span style="FONT-WEIGHT: bold; COLOR: #800000">500</span><span style="COLOR: #000000"> LOOP<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />   X:</span><span style="COLOR: #808080">=</span><span style="COLOR: #000000">X</span><span style="COLOR: #808080">+</span><span style="FONT-WEIGHT: bold; COLOR: #800000">1</span><span style="COLOR: #000000">;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />   </span><span style="COLOR: #0000ff">insert</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">into</span><span style="COLOR: #000000"> tcustomer(pkid,full_name,gender,grade_id,join_time)<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />   </span><span style="COLOR: #0000ff">values</span><span style="COLOR: #000000">(X,</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000">user</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #808080">||</span><span style="COLOR: #000000">X,</span><span style="FONT-WEIGHT: bold; COLOR: #800000">1</span><span style="COLOR: #000000">,</span><span style="FONT-WEIGHT: bold; COLOR: #800000">1</span><span style="COLOR: #000000">,sysdate); <br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">END</span><span style="COLOR: #000000"> LOOP;<br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">end</span><span style="COLOR: #000000">;</span></div><p> </p><p> </p><img src ="http://www.blogjava.net/nobody_am/aggbug/15509.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2005-10-14 12:18 <a href="http://www.blogjava.net/nobody_am/articles/15509.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>给无标识列的表的查询结果加一个标识列</title><link>http://www.blogjava.net/nobody_am/articles/14120.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Mon, 26 Sep 2005 08:47:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/14120.html</guid><description><![CDATA[<FONT face=Verdana>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">SELECT</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff00ff">IDENTITY</SPAN><SPAN style="COLOR: #000000">(</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #000000">INT</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000">,</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #800000">1</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN style="COLOR: #0000ff">AS</SPAN><SPAN style="COLOR: #000000">&nbsp;ROW_ID,CUSTOMERS.</SPAN><SPAN style="COLOR: #808080">*</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">INTO</SPAN><SPAN style="COLOR: #000000">&nbsp;#</SPAN><SPAN style="COLOR: #0000ff">TEMP</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN><SPAN style="COLOR: #000000">&nbsp;CUSTOMERS<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">SELECT</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">*</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN><SPAN style="COLOR: #000000">&nbsp;#</SPAN><SPAN style="COLOR: #0000ff">TEMP</SPAN></DIV></FONT><img src ="http://www.blogjava.net/nobody_am/aggbug/14120.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2005-09-26 16:47 <a href="http://www.blogjava.net/nobody_am/articles/14120.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>查询大表中的某个字段</title><link>http://www.blogjava.net/nobody_am/articles/10658.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Mon, 22 Aug 2005 01:26:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/10658.html</guid><description><![CDATA[<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">SELECT</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">字段名</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">a.name,</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">字段类型</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">c.name,</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">存储长度</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">a.length<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">FROM</SPAN><SPAN style="COLOR: #000000">&nbsp;syscolumns&nbsp;</SPAN><SPAN style="COLOR: #0000ff">AS</SPAN><SPAN style="COLOR: #000000">&nbsp;a&nbsp;</SPAN><SPAN style="COLOR: #0000ff">INNER</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">JOIN</SPAN><SPAN style="COLOR: #000000">&nbsp;sysobjects&nbsp;</SPAN><SPAN style="COLOR: #0000ff">AS</SPAN><SPAN style="COLOR: #000000">&nbsp;b&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ON</SPAN><SPAN style="COLOR: #000000">&nbsp;(a.id</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">b.id)<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">INNER</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">JOIN</SPAN><SPAN style="COLOR: #000000">&nbsp;systypes&nbsp;</SPAN><SPAN style="COLOR: #0000ff">AS</SPAN><SPAN style="COLOR: #000000">&nbsp;c&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ON</SPAN><SPAN style="COLOR: #000000">&nbsp;(a.xtype</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #000000">c.xtype)<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">WHERE</SPAN><SPAN style="COLOR: #000000">&nbsp;b.name</SPAN><SPAN style="COLOR: #808080">=</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">operator</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #808080">AND</SPAN><SPAN style="COLOR: #000000">&nbsp;a.name&nbsp;</SPAN><SPAN style="COLOR: #808080">LIKE</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #ff0000">'</SPAN><SPAN style="COLOR: #ff0000">%email%</SPAN><SPAN style="COLOR: #ff0000">'</SPAN></DIV></DIV><img src ="http://www.blogjava.net/nobody_am/aggbug/10658.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2005-08-22 09:26 <a href="http://www.blogjava.net/nobody_am/articles/10658.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MySQL 安装指南 </title><link>http://www.blogjava.net/nobody_am/articles/7864.html</link><dc:creator>MingIsMe</dc:creator><author>MingIsMe</author><pubDate>Sun, 17 Jul 2005 08:52:00 GMT</pubDate><guid>http://www.blogjava.net/nobody_am/articles/7864.html</guid><description><![CDATA[<P>Step1&nbsp; 到<A href="http://www.mysql.com/"><FONT color=#cc0000>MySQL</FONT></A>下载下列软件包：<BR>A. mysql-4.1.8-win-noinstall.zip (mysql服务器引擎)<BR>B. mysql-administrator-1.0.10-win-noinstall.zip (图形管理工具)<BR>C. mysql-query-browser-1.1.5-win-noinstall.zip (图形查询工具)<BR>D. MyODBC-3.51.11-1-win.exe&nbsp; (Windows ODBC插件)<BR>E. mysql-connector-java-3.1.7.tar.gz (Java JDBC驱动)</P>
<P>Step2&nbsp; 安装服务器：<BR>A. 解压服务器压缩包到 D:\MySQL.<BR>B. 新建C:\Winnt\my.ini文件内容如下：<BR><FONT face="Courier New" color=#333399>[WinMySQLAdmin]<BR>&nbsp;&nbsp;&nbsp; Server=D:/mysql/bin/mysqld-nt.exe</FONT></P>
<P><FONT face="Courier New" color=#333399>[mysql]<BR>&nbsp;&nbsp;&nbsp; basedir=d:/mysql<BR>&nbsp;&nbsp;&nbsp; datadir=d:/mysql/data<BR>&nbsp;&nbsp;&nbsp; default-character-set=gbk</FONT></P>
<P><FONT face="Courier New" color=#333399>[client]<BR>&nbsp;&nbsp;&nbsp; default-character-set=gbk</FONT></P>
<P>C. 把D:\mysql\bin做为PATH环境变量的一部分.<BR>D. 把MySQL服务添加到Windows 服务<BR>&nbsp;&nbsp;&nbsp; $mysqld-nt&nbsp;&nbsp; -install<BR>E. 启动和关闭mysql<BR>&nbsp;&nbsp;&nbsp; $net start mysql<BR>&nbsp;&nbsp;&nbsp; $net stop mysql<BR>F. 删除Windows服务中的mysql服务<BR>&nbsp;&nbsp;&nbsp; $mysqld-nt&nbsp; --remove</P>
<P>Step3&nbsp; 安装图形软件：<BR>A. 解压mysql-administrator-1.0.10-win-noinstall.zip 到D:\mysql.<BR>B. 解压mysql-query-browser-1.1.5-win-noinstall.zip 到D:\mysql.<BR>C. 用mysql-administrator目录下的MysqlSystemTrayMonitor.exe开启Mysql服务，右击系统托盘的图标，点击Start Instance.<BR>D. 用mysql-administrator目录下的MySQLAdministrator.exe对数据库进行管理，用root登录，密码为空。登录候可以在用户列进行修改密码，但本人为修改成功，但修改密码可以在控制台下成功进行。<BR>E. 在控制台下修改密码：<BR>&nbsp;&nbsp;&nbsp; $ mysqladmin -u root -p password newpasswd<BR>&nbsp;&nbsp;&nbsp; 提示输入root密码，当然为空，结果root新密码为newpasswd，当然也可以修改其他用户密码，只需要把root改为相应用户名。<BR>F.&nbsp; 在控制台下用root登录，并创建新用户：<BR>&nbsp;&nbsp;&nbsp; $mysql -u root -p<BR>&nbsp;&nbsp;&nbsp; 输入密码.<BR>&nbsp;&nbsp;&nbsp; mysql&gt; Grant ALL ON testdb.* TO 'newuser'@'localhost'&nbsp;IDENTIFIED BY '12345'<BR>&nbsp;&nbsp;&nbsp; 为testdb创建新用户newuser 密码时 12345</P>
<P>Step4&nbsp; 基本操作：<BR>A.&nbsp; 创建新数据库和表可以在Administrator和Query Browser中进行，Create New Schema.<BR>B.&nbsp; Query Browser可以执行SQL语句。而且可以编辑表的内容，此时需要选中ResultSet底部的Edit项，修改完毕候选择底部的applyChange。<BR><BR>Step 5&nbsp; MyODBC-3.51.11-1-win.exe&nbsp; 和 mysql-connector-java-3.1.7.tar.gz 在编程时用到，到时会介绍。</P><img src ="http://www.blogjava.net/nobody_am/aggbug/7864.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/nobody_am/" target="_blank">MingIsMe</a> 2005-07-17 16:52 <a href="http://www.blogjava.net/nobody_am/articles/7864.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>