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

<channel>
	<title>Dbabc.Net</title>
	<atom:link href="http://dbabc.net/feed" rel="self" type="application/rss+xml" />
	<link>http://dbabc.net</link>
	<description>畅享生活，关注技术</description>
	<lastBuildDate>Fri, 03 Feb 2012 01:54:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>linux下文件、文件名编码转换convmv</title>
		<link>http://dbabc.net/archives/2012/02/03/linux-command-convmv.shtml</link>
		<comments>http://dbabc.net/archives/2012/02/03/linux-command-convmv.shtml#comments</comments>
		<pubDate>Fri, 03 Feb 2012 01:52:50 +0000</pubDate>
		<dc:creator>dbabc</dc:creator>
				<category><![CDATA[Linux与开源]]></category>
		<category><![CDATA[技术积累]]></category>

		<guid isPermaLink="false">http://dbabc.net/?p=1592</guid>
		<description><![CDATA[今天开发人员所上传的网站开发文件在web浏览器上不能显示，最后发现不能显示的都是中文的文件名，后来还是开发的搞定了。主要原因是：从windows往Linux拷贝文件，中文文件名乱码的情况，出现这种问题的原因是因为，windows的文件名中文编码默认为GBK,而Linux中默认文件名编码为UTF8,由于编码不一致，所以导致了文件名乱码的问题。 解决方法：从网上搜索了一下，转载http://bin.bin2bing.com/?p=261 文章 查看文件编码file命令 file ip.txt ip.txt: UTF-8 Unicode text, with escape sequences 一、利用iconv命令进行编码转换文件内容编码转换 iconv命令用于转换指定文件的编码,默认输出到标准输出设备,亦可指定输出文件。 用法： iconv [选项...] [文件...] 有如下选项可用: 输入/输出格式规范： -f, --from-code=名称 原始文本编码 -t, --to-code=名称 输出编码 信息： -l, --list 列举所有已知的字符集 输出控制： -c 从输出中忽略无效的字符 -o, --output=FILE 输出文件 -s, --silent 关闭警告 --verbose 打印进度信息 -?, --help 给出该系统求助列表 --usage 给出简要的用法信息 -V, --version 打印程序版本号 例子: iconv -f utf-8 -t [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F10%2F09%2Flinux-time-info.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux下文件的time详解</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F09%2F25%2Flinux_add_swap_partiton.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux下增加swap分区</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F11%2F09%2Finstall_bugzilla_on_linux.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux下bugzilla的安装</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F10%2Flinux-screen.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux技巧：screen的用法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F07%2F18%2Flinux_screen_encoding-_gbk.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux下screen乱码问题解决</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天开发人员所上传的网站开发文件在web浏览器上不能显示，最后发现不能显示的都是中文的文件名，后来还是开发的搞定了。主要原因是：从windows往Linux拷贝文件，中文文件名乱码的情况，出现这种问题的原因是因为，windows的文件名中文编码默认为GBK,而Linux中默认文件名编码为UTF8,由于编码不一致，所以导致了文件名乱码的问题。<br />
解决方法：从网上搜索了一下，转载http://bin.bin2bing.com/?p=261 文章</p>
<p> <strong> 查看文件编码file命令</strong> </p>
<pre>file ip.txt
ip.txt: UTF-8 Unicode text, with escape sequences</pre>
<p><strong>一、利用iconv命令进行编码转换文件内容编码转换</strong></p>
<p>iconv命令用于转换指定文件的编码,默认输出到标准输出设备,亦可指定输出文件。</p>
<pre>
用法： iconv [选项...] [文件...]

有如下选项可用:

输入/输出格式规范：
-f, --from-code=名称 原始文本编码
-t, --to-code=名称 输出编码

信息：
-l, --list 列举所有已知的字符集

输出控制：
-c 从输出中忽略无效的字符
-o, --output=FILE 输出文件
-s, --silent 关闭警告
--verbose 打印进度信息

-?, --help 给出该系统求助列表
--usage 给出简要的用法信息
-V, --version 打印程序版本号

例子:
iconv -f utf-8 -t gb2312 aaa.txt &gt;bbb.txt
这个命令读取aaa.txt文件，从utf-8编码转换为gb2312编码,其输出定向到bbb.txt文件。</pre>
<p> <strong>二、文件名编码转换</strong><br />
 因为现在用linux,原来在windows里的文件都是用GBK编码的。所以copy到linux下是乱码，文件内容可以用iconv来转换可是好多中文的文件名还是乱码，找到个可以转换文件名编码的命令，就是convmv。 </p>
<pre><a href="http://linux.die.net/man/1/convmv" target="_blank">convmv命令详细参数</a>
</pre>
<p>例如</p>
<pre>convmv -f GBK -t UTF-8 *.mp3</pre>
<p>不过这个命令不会直正的转换，你可以看到转换前后的对比。如果要直正的转换要加上参数 &#8211;notest</p>
<pre>convmv -f GBK -t UTF-8 --notest *.mp3</pre>
<p> -f 参数是指出转换前的编码，-t 是转换后的编码。这个千万不要弄错了。不然可能还是乱码哦。还有一个参数很有用。就是 -r 这个表示递归转换当前目录下的所有子目录。<br />
 <strong>* 需要安装 convmv-1.10-1.el5.noarch.rpm</strong><br />
 <strong>三、</strong>更好的傻瓜型命令行工具enca，它不但能智能的识别文件的编码，而且还支持成批转换。<br />
　　1.安装
<pre>
　　$sudo apt-get install enca</pre>
<p>　　2.查看当前文件编码
<pre>
　　enca -L zh_CN ip.txt
   Simplified Chinese National Standard; GB2312
   Surrounded by/intermixed with non-text data</pre>
<p>　　3.转换<br />
　　命令格式如下<br />
　　$enca -L 当前语言 -x 目标编码 文件名<br />
　　例如要把当前目录下的所有文件都转成utf-8
<pre>
　　enca -L zh_CN -x utf-8 *
   enca -L zh_CN file 检查文件的编码　
　　enca -L zh_CN -x UTF-8 file 将文件编码转换为"UTF-8"编码　
　　enca -L zh_CN -x UTF-8 &lt; file1 &gt; file2 如果不想覆盖原文件可以这样，很简单吧。 </pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F10%2F09%2Flinux-time-info.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux下文件的time详解</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F09%2F25%2Flinux_add_swap_partiton.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux下增加swap分区</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F11%2F09%2Finstall_bugzilla_on_linux.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux下bugzilla的安装</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F10%2Flinux-screen.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux技巧：screen的用法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F07%2F18%2Flinux_screen_encoding-_gbk.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux下screen乱码问题解决</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://dbabc.net/archives/2012/02/03/linux-command-convmv.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>shell脚本检查Oracle DG备库是否已经应用归档</title>
		<link>http://dbabc.net/archives/2012/02/02/shell-check-oracle-dg-archivelog-reply.shtml</link>
		<comments>http://dbabc.net/archives/2012/02/02/shell-check-oracle-dg-archivelog-reply.shtml#comments</comments>
		<pubDate>Thu, 02 Feb 2012 08:52:52 +0000</pubDate>
		<dc:creator>dbabc</dc:creator>
				<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://dbabc.net/?p=1579</guid>
		<description><![CDATA[鉴于上一篇文章中提到的，今天写了一个自动检查Oracle DG备库是否已经应用归档的shell脚本，现分享如下： PS:本脚本需要先创建table：ARC_NOT_REPLY_LOG，这个表是用来存放记录的，如果不需要存放记录的话，可以将shell脚本的insert删掉。 ARC_NOT_REPLY_LOG 创建脚本: CREATE TABLE ORAM.ARC_NOT_REPLY_LOG ( HOSTNAME VARCHAR2(50 BYTE), NAME VARCHAR2(100 BYTE), SEQUENCE NUMBER, APPLIED VARCHAR2(3 BYTE), COMPLETION_TIME VARCHAR2(50 BYTE), ADD_TIME DATE DEFAULT SYSDATE ) shell脚本内容： #!/bin/bash #by Dbabc.net 2012/02/02 #User specific environment and startup programs # if [ -f ~/.bash_profile ]; then . ~/.bash_profile fi export DBAEMAIL=dbabc@dbabc.net export ORACLE_SID=dbabc export IP='10.8.8.1' [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle DG：检测归档是否传输到备库</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F07%2F18%2Foracle-rman_incremental_shell.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle RMAN增量备份脚本</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F14%2Fdaily-check-oracle-alert-log-and-send-mail.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">每天定时检查Oracle alert日志并发送mail</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle书籍推荐</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux shell 重定向</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>鉴于<a href="http://dbabc.net/archives/2012/01/31/ora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml" target="_blank">上一篇文章</a>中提到的，今天写了一个自动检查Oracle DG备库是否已经应用归档的shell脚本，现分享如下：<br />
PS:本脚本需要先创建table：ARC_NOT_REPLY_LOG，这个表是用来存放记录的，如果不需要存放记录的话，可以将shell脚本的insert删掉。<br />
ARC_NOT_REPLY_LOG 创建脚本:</p>
<pre>
CREATE TABLE ORAM.ARC_NOT_REPLY_LOG
(
  HOSTNAME         VARCHAR2(50 BYTE),
  NAME             VARCHAR2(100 BYTE),
  SEQUENCE         NUMBER,
  APPLIED          VARCHAR2(3 BYTE),
  COMPLETION_TIME  VARCHAR2(50 BYTE),
  ADD_TIME         DATE                         DEFAULT SYSDATE
)
</pre>
<p>shell脚本内容：</p>
<pre>#!/bin/bash
#by Dbabc.net 2012/02/02
#User specific environment and startup programs
#

if [ -f ~/.bash_profile ]; then
. ~/.bash_profile
fi

export DBAEMAIL=dbabc@dbabc.net
export ORACLE_SID=dbabc
export IP='10.8.8.1'
export SMTP='smtp.dbabc.net'
export FRUSER='dba@dbabc.net'
export BCCUSER='dba@dbabc.net'
export USERPWD='pwd'
VALUE=`$ORACLE_HOME/bin/sqlplus -S /nolog ＜＜EOF
set heading off feedback off pagesize 0 verify off echo off numwidth 4
connect / as sysdba
select count(*) from v\\$archived_log where applied='NO';
exit
EOF`
if [ "$VALUE" -gt 0 ]; then

$ORACLE_HOME/bin/sqlplus -S /nolog &gt; arc_not_reply.log ＜＜EOF
set heading off feedback off pagesize 0 verify off echo off
set lines 200
col name format a60
connect / as sysdba
alter session set nls_date_format='YYYY-MM-DDHH24:MI:SS';
select '$IP',name,sequence#,applied,completion_time from v\$archived_log where applied='NO';
exit
EOF

cat arc_not_reply.log|rev|awk {'print $1" "$2" "$3" "$4" "$5'} | rev |awk {'print "insert into ARC_NOT_REPLY_LOG(hostname,name,SEQUENCE,applied,COMPLETION_TIME) values(#"$1"#,#"$2"#,"$3",#"$4"#,#"$5"#);"'} |grep -v '##' | grep -v '#on#' | sed "s/#/'/g" |sed "s/%//g"| sed "s/ip/"${v_hostip}"/g" &gt;ARC_NOT_REPLY_LOG.sql;
#echo "insert into ARC_NOT_REPLY_LOG(hostname,name,SEQUENCE#,applied,COMPLETION_TIME) values ( '${INTV1}', '${INTV2},'${INTV3}', '${INTV4}', '${INTV5}');" &gt;ARC_NOT_REPLY_LOG.sql;

$ORACLE_HOME/bin/sqlplus /nolog ＜＜EOF
connect oram/oram@10.8.8.4:1521/yqpt
@ARC_NOT_REPLY_LOG.sql
commit;
exit;
EOF

/usr/local/bin/sendEmail -f $FRUSER -t ${DBAEMAIL} -bcc $BCCUSER -s $SMTP -u "$IP arclog not reply" -o message-file=arc_not_reply.log -xu "$FRUSER" -xp "$USERPWD"
exit
else
echo `date +'%F %T'`" All the archive log have replyed" &gt;arc_replyok.txt
/usr/local/bin/sendEmail -f $FRUSER -t ${DBAEMAIL} -bcc $BCCUSER -s $SMTP -u "$IP arc_replyok" -o message-file=arc_replyok.txt -xu "$FRUSER" -xp "$USERPWD"
fi
exit</pre>
<p>修改其中的变量即可，＜＜ 修改成半角格式，wordpress会自动转换半角的＜＜。<br />
然后再通过crontab定时运行此脚本，实现Email预警。<br />
完整的脚本可以通过 <a title="http://www.kuaipan.cn/file/id_17198221579276190.html" href="http://www.kuaipan.cn/file/id_17198221579276190.html" target="_blank">http://www.kuaipan.cn/file/id_17198221579276190.html</a> 下载。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle DG：检测归档是否传输到备库</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F07%2F18%2Foracle-rman_incremental_shell.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle RMAN增量备份脚本</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F14%2Fdaily-check-oracle-alert-log-and-send-mail.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">每天定时检查Oracle alert日志并发送mail</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Oracle书籍推荐</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux shell 重定向</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://dbabc.net/archives/2012/02/02/shell-check-oracle-dg-archivelog-reply.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-01111: name for data file 12 is unknown &#8211; rename to correct file</title>
		<link>http://dbabc.net/archives/2012/01/31/ora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml</link>
		<comments>http://dbabc.net/archives/2012/01/31/ora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml#comments</comments>
		<pubDate>Tue, 31 Jan 2012 03:41:19 +0000</pubDate>
		<dc:creator>dbabc</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[dg]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[rman ora-01111]]></category>

		<guid isPermaLink="false">http://dbabc.net/?p=1567</guid>
		<description><![CDATA[如题：ORA-01111: name for data file 12 is unknown &#8211; rename to correct file 开工第一天，在检查oracle dg的时候发现备库的recovery_mode处于IDLE状态， select recovery_mode from v$archive_dest_status where dest_id=2; 这些备库都是采用的的real-time-apply，怎么会是IDEL呢，手动进行recover,提示 SQL&#62; recover standby database; ORA-00283: recovery session canceled due to errors ORA-01111: name for data file 12 is unknown - rename to correct file ORA-01110: data file 12: '/DB/dbabc.net/10.2.0/db_1/dbs/UNNAMED00012' ORA-01157: cannot identify/lock data [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="关于无法匿名连接域控制器上SQL Server 2005问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F24%2Fanonymoussql.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F31%2Fora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524625.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">关于无法匿名连接域控制器上SQL Server 2005问题</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="秋天实拍苹果树" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F11%2F04%2Fapple.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F31%2Fora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524632.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">秋天实拍苹果树</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Veritas Netbackup实验一:MasterServer Client安装和简单备份" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F15%2Fnbuinstall.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F31%2Fora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524297.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Veritas Netbackup实验一:MasterServer Client安装和简单备份</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RHEL 4 上安装配置 Oracle 10g RAC" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F28%2Foracle10g-rac-on-linux-x64.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F31%2Fora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524427.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RHEL 4 上安装配置 Oracle 10g RAC</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Red Hat Enterprise Linux 5 安装详图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F02%2F07%2Frhel5-installation-drawing.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F31%2Fora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524502.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Red Hat Enterprise Linux 5 安装详图</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>如题：ORA-01111: name for data file 12 is unknown &#8211; rename to correct file<br />
开工第一天，在检查oracle dg的时候发现备库的recovery_mode处于IDLE状态，</p>
<pre>select recovery_mode from v$archive_dest_status where dest_id=2;</pre>
<p>这些备库都是采用的的real-time-apply，怎么会是IDEL呢，手动进行recover,提示</p>
<pre>SQL&gt; recover standby database;
ORA-00283: recovery session canceled due to errors
ORA-01111: name for data file 12 is unknown - rename to correct file
ORA-01110: data file 12: '/DB/dbabc.net/10.2.0/db_1/dbs/UNNAMED00012'
ORA-01157: cannot identify/lock data file 12 - see DBWR trace file
ORA-01111: name for data file 12 is unknown - rename to correct file
ORA-01110: data file 12: '/DB/dbabc.net/10.2.0/db_1/dbs/UNNAMED00012'</pre>
<p>想起这可能是备库的数据文件没能创建成功.在主库上查看了 datafile 12 ,果然这个数据文件是放假前刚刚添加的,悲剧的是standby_file_management这个参数竟然是 MANUAL.于是重新检查了所有的数据库的参数,确保此参数是否设置正确.还好只有这个库的参数没修改.<br />
同时备库的alert日志的错误信息如下：</p>
<pre>
Fri Jan 20 09:07:20 2012
Media Recovery Waiting for thread 1 sequence 1523 (in transit)
Fri Jan 20 09:07:20 2012
Recovery of Online Redo Log: Thread 1 Group 11 Seq 1523 Reading mem 0
  Mem# 0 errs 0: /DB/dbabc.net/standby_log11.log
Fri Jan 20 09:08:38 2012
File #12 added to control file as 'UNNAMED00012' because
the parameter STANDBY_FILE_MANAGEMENT is set to MANUAL
The file should be manually created to continue.
MRP0: Background Media Recovery terminated with error 1274
Fri Jan 20 09:08:40 2012
Errors in file /u01/app/oracle/admin/dbabc/bdump/dbabc_mrp0_6664.trc:
ORA-01274: cannot add datafile '/DB/dbabc.net/dbabc5.dbf' - file could not be created
Managed Standby Recovery not using Real Time Apply
Some recovered datafiles maybe left media fuzzy
Media recovery may continue but open resetlogs may fail
Fri Jan 20 09:08:43 2012
Errors in file /u01/app/oracle/admin/dbabc/bdump/dbabc_mrp0_6664.trc:
ORA-01274: cannot add datafile '/DB/dbabc.net/dbabc5.dbf' - file could not be created
Fri Jan 20 09:08:43 2012
MRP0: Background Media Recovery process shutdown (dbabc)
</pre>
<p>/u01/app/oracle/admin/dbabc/bdump/dbabc_mrp0_6664.trc文件的内容如下</p>
<pre>
*** 2012-01-20 09:08:41.292 1011 krsm.c
Managed Recovery: Not Active posted.
ORA-01274: cannot add datafile '/DB/dbabc.net/dbabc5.dbf' - file could not be created
ARCH: Connecting to console port...
*** 2012-01-20 09:08:43.227 60679 kcrr.c
MRP0: Background Media Recovery process shutdown
*** 2012-01-20 09:08:43.227 1011 krsm.c
</pre>
<p>创建缺失的数据文件严格的讲是rename数据文件,这个UNNAMED00012数据文件是不存在的:</p>
<pre>alter database create datafile '/DB/dbabc.net/10.2.0/db_1/dbs/UNNAMED00012' as '/data/dbabc/dbabc05.dbf';</pre>
<p>然后修改standby_file_management的参数为auto，这样的在主库创建数据文件之后，备库会自动创建数据文件。<br />
手动recovery，肯定缺少归档文件喽，因为归档之保留3天的，主库有RMAN备份。从RMAN里面恢复归档文件。<br />
通过以下语句查找没有应用的归档的最小sequence#，</p>
<pre>select min(sequence#) from v$archived_log where applied='NO';</pre>
<p>执行结果是1876目前保留的归档文件的sequence#是2012，中间缺失2012-1876个归档文件。<br />
RMAN恢复归档文件，</p>
<pre>RESTORE ARCHIVELOG SEQUENCE BETWEEN 1523AND 2012
</pre>
<p>这一步可能时间有点长，恢复之后将归档copu到备库，手动应用当，或者直接设置real-time-apply，oracle会自己应有归档。</p>
<p>教训，<br />
1.之前的巡检脚本只是检查归档是否传输到备库，而没有检查归档是否应用，修改巡检脚本，检查归档是否应用，若没应用发mail预警。<br />
2.创建DG的时候相关参数要全部修改好，要进行全面的检查，确保所有的参数都进行准确修改。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="独立图片域名测试" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F01%2F28%2Fpic_tes.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F31%2Fora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21525102.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">独立图片域名测试</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Veritas Netbackup实验二:Vistor虚拟带库备份测试" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F15%2Fnbu_vistor.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F31%2Fora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524380.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Veritas Netbackup实验二:Vistor虚拟带库备份测试</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle RMAN异机异目录恢复" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F02%2Foracle_rman_recovery_linux_other_machine.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F31%2Fora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524467.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle RMAN异机异目录恢复</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux的LVM管理（一）–基本知识和创建" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F12%2F14%2Flvm_base.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F31%2Fora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21525352.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux的LVM管理（一）–基本知识和创建</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Openfiler配置攻略之二：iSCSI存储的创建" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F14%2Fopenfiler-iscsi.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F31%2Fora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524438.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Openfiler配置攻略之二：iSCSI存储的创建</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://dbabc.net/archives/2012/01/31/ora-01111-name-for-data-file-12-is-unknown-rename-to-correct-file.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle书籍推荐</title>
		<link>http://dbabc.net/archives/2012/01/04/oracle-books.shtml</link>
		<comments>http://dbabc.net/archives/2012/01/04/oracle-books.shtml#comments</comments>
		<pubDate>Wed, 04 Jan 2012 11:57:02 +0000</pubDate>
		<dc:creator>dbabc</dc:creator>
				<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://dbabc.net/?p=1557</guid>
		<description><![CDATA[McGraw.Oracle.RMAN.11g.Backup.and.Recovery.2010.PDF 下载，迅雷高速下载：http://kuai.xunlei.com/d/LPNOELBBUMZC McGraw.Hill.Oracle.Data.Guard.11g.Handbook.pdf 下载，迅雷高速下载：http://kuai.xunlei.com/d/LKVTXIRGPVDP McGraw.Hill.Oracle.Database.11g.SQL.Nov.2007.pdf 下载，迅雷高速下载:http://kuai.xunlei.com/d/LGGFDKDCBELN<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="shell脚本检查Oracle DG备库是否已经应用归档" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">shell脚本检查Oracle DG备库是否已经应用归档</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RHEL 4 上安装配置 Oracle 10g RAC" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F28%2Foracle10g-rac-on-linux-x64.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524427.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RHEL 4 上安装配置 Oracle 10g RAC</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle Switchover切换" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F29%2Foracle-switchover.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle Switchover切换</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle RMAN异机异目录恢复" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F02%2Foracle_rman_recovery_linux_other_machine.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524467.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle RMAN异机异目录恢复</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle RMAN增量备份脚本" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F07%2F18%2Foracle-rman_incremental_shell.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle RMAN增量备份脚本</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>McGraw.Oracle.RMAN.11g.Backup.and.Recovery.2010.PDF</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-1558" title="oracle-RMAN-11g-BACKUP-AND-RECOVERY" src="http://imfile.dbabc.net/2012/01/oracle-RMAN-11g-BACKUP-AND-RECOVERY.jpg" alt="oracle-RMAN-11g-BACKUP-AND-RECOVERY" width="217" height="266" /></p>
<p>下载，迅雷高速下载：<a title="http://kuai.xunlei.com/d/LPNOELBBUMZC" href="http://kuai.xunlei.com/d/LPNOELBBUMZC" target="_blank">http://kuai.xunlei.com/d/LPNOELBBUMZC</a></p>
<p>McGraw.Hill.Oracle.Data.Guard.11g.Handbook.pdf</p>
<p><img class="aligncenter size-medium wp-image-1563" title="McGraw.Hill.Oracle.Data.Guard.11g.Handbook" src="http://imfile.dbabc.net/2012/01/McGraw.Hill_.Oracle.Data_.Guard_.11g.Handbook-225x300.jpg" alt="" width="225" height="300" /></p>
<p>下载，迅雷高速下载：<a title="http://kuai.xunlei.com/d/LKVTXIRGPVDP" href="http://kuai.xunlei.com/d/LKVTXIRGPVDP" target="_blank">http://kuai.xunlei.com/d/LKVTXIRGPVDP</a></p>
<p>McGraw.Hill.Oracle.Database.11g.SQL.Nov.2007.pdf</p>
<p><img class="aligncenter size-medium wp-image-1565" title="McGraw.Hill.Oracle.Database.11g.SQL.Nov.2007" src="http://imfile.dbabc.net/2012/01/McGraw.Hill_.Oracle.Database.11g.SQL_.Nov_.2007-225x300.jpg" alt="" width="225" height="300" /></p>
<p>下载，迅雷高速下载:<a title="http://kuai.xunlei.com/d/LGGFDKDCBELN" href="http://kuai.xunlei.com/d/LGGFDKDCBELN" target="_blank">http://kuai.xunlei.com/d/LGGFDKDCBELN</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="shell脚本检查Oracle DG备库是否已经应用归档" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">shell脚本检查Oracle DG备库是否已经应用归档</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RHEL 4 上安装配置 Oracle 10g RAC" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F28%2Foracle10g-rac-on-linux-x64.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524427.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RHEL 4 上安装配置 Oracle 10g RAC</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle Switchover切换" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F29%2Foracle-switchover.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle Switchover切换</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle RMAN异机异目录恢复" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F02%2Foracle_rman_recovery_linux_other_machine.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524467.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle RMAN异机异目录恢复</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle RMAN增量备份脚本" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F07%2F18%2Foracle-rman_incremental_shell.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle RMAN增量备份脚本</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://dbabc.net/archives/2012/01/04/oracle-books.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DBMS_METADATA获得DDL语句</title>
		<link>http://dbabc.net/archives/2011/12/30/dbms_metadata-ddl.shtml</link>
		<comments>http://dbabc.net/archives/2011/12/30/dbms_metadata-ddl.shtml#comments</comments>
		<pubDate>Fri, 30 Dec 2011 01:02:33 +0000</pubDate>
		<dc:creator>dbabc</dc:creator>
				<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://dbabc.net/?p=1547</guid>
		<description><![CDATA[通过 DBMS_METADATA 可以获得 表，索引或者procedure的ddl语句。 The kind of object to be retrieved. This can be either a particular object type (such as a table, index, or procedure) or a heterogeneous collection of object types that form a logical unit (such as a database export or schema export). DBMS_METADATA The DBMS_METADATA package provides a way for you [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Oracle中通过dbms_scheduler替换Linux中的crontab" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F01%2F24%2Foracle-dbms_scheduler.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F30%2Fdbms_metadata-ddl.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle中通过dbms_scheduler替换Linux中的crontab</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="域用户与组的权限和嵌套" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F24%2Fadgroup.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F30%2Fdbms_metadata-ddl.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524623.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">域用户与组的权限和嵌套</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="新年第一贴–枣山年馍" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F02%2F21%2Fzaoshannianmo.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F30%2Fdbms_metadata-ddl.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524663.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">新年第一贴–枣山年馍</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Veritas Netbackup实验二:Vistor虚拟带库备份测试" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F15%2Fnbu_vistor.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F30%2Fdbms_metadata-ddl.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524380.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Veritas Netbackup实验二:Vistor虚拟带库备份测试</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Red Hat Enterprise Linux 5 安装详图" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F02%2F07%2Frhel5-installation-drawing.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F30%2Fdbms_metadata-ddl.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524502.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Red Hat Enterprise Linux 5 安装详图</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>通过 DBMS_METADATA 可以获得 表，索引或者procedure的ddl语句。</p>
<p>The kind of object to be retrieved. This can be either a particular object type (such as a table, index, or procedure) or a heterogeneous collection of object types that form a logical unit (such as a database export or schema export).<br />
DBMS_METADATA<br />
The <code>DBMS_METADATA<a id="sthref3501" name="sthref3501"></a></code> package provides a way for you to retrieve metadata from the database dictionary as XML or creation DDL and to submit the XML to re-create the object.</p>
<p>官方说明：http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_metada.htm</p>
<p>以下是实际操作实例：</p>
<p>1、获得一个表的ddl语句：</p>
<pre>SQL＞ SET SERVEROUTPUT ON
SQL＞ SET LINESIZE 1000
SQL＞ SET FEEDBACK OFF
SQL＞ set long 999999
SQL＞ SET PAGESIZE 1000</pre>
<pre>SQL＞ SELECT DBMS_METADATA.GET_DDL('TABLE','DBABC') from dual;</pre>
<pre>DBMS_METADATA.GET_DDL('TABLE','DBABC')
--------------------------------------------------------------------------------

CREATE TABLE "SYS"."DBABC"
(    "DUMMY" VARCHAR2(1)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRA
NS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXE
XTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUP
S 1 BUFFER_POOL DEFAULT)
TABLESPACE "SYSTEM"</pre>
<p>经过验证其中的表名需要大写才可以,如果是小写的话会报错如下:</p>
<pre>SQL＞ SELECT DBMS_METADATA.GET_DDL('TABLE','dbabc') from dual;
ERROR:
ORA-31603: object "dbabc" of type TABLE not found in schema "SYS"
ORA-06512: at "SYS.DBMS_METADATA", line 1546
ORA-06512: at "SYS.DBMS_METADATA", line 1583
ORA-06512: at "SYS.DBMS_METADATA", line 1901
ORA-06512: at "SYS.DBMS_METADATA", line 2792
ORA-06512: at "SYS.DBMS_METADATA", line 4333
ORA-06512: at line 1</pre>
<pre>EXECUTE DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'STORAGE',false);</pre>
<p> &#8212;去除storage等多余参数<br />
2、获得某个用户下的所有表，索引，存储过程的ddl：</p>
<pre>
conn scott/triger
set pagesize 0
set long 90000
set feedback off
set echo off
spool scott_schema.sql
SELECT DBMS_METADATA.GET_DDL('TABLE',u.table_name)
      FROM USER_TABLES u;
SELECT DBMS_METADATA.GET_DDL('INDEX',u.index_name)
      FROM USER_INDEXES u;
spool off;</pre>
<p>3、获得索引创建用户的ddl语句</p>
<pre>
SELECT DBMS_METADATA.GET_DDL('USER',U.username) FROM DBA_USERS U;
</pre>
<p>4、获得所有表空间的ddl语句</p>
<pre>
SELECT DBMS_METADATA.GET_DDL('USER',U.username) * FROM DBA_USERS U
</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Oracle中通过dbms_scheduler替换Linux中的crontab" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F01%2F24%2Foracle-dbms_scheduler.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F30%2Fdbms_metadata-ddl.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle中通过dbms_scheduler替换Linux中的crontab</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="PXE环境远程安装Linux" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F22%2Fpxelinux.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F30%2Fdbms_metadata-ddl.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21525361.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">PXE环境远程安装Linux</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="ORA-12637:包接收失败" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F01%2Fora-12637.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F30%2Fdbms_metadata-ddl.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524572.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">ORA-12637:包接收失败</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="域用户与组的权限和嵌套" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F24%2Fadgroup.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F30%2Fdbms_metadata-ddl.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524623.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">域用户与组的权限和嵌套</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Openfiler配置攻略之二：iSCSI存储的创建" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F14%2Fopenfiler-iscsi.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F30%2Fdbms_metadata-ddl.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524438.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Openfiler配置攻略之二：iSCSI存储的创建</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://dbabc.net/archives/2011/12/30/dbms_metadata-ddl.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle DG：检测归档是否传输到备库</title>
		<link>http://dbabc.net/archives/2011/12/20/oracle-dg-check-arc-is-not-trans.shtml</link>
		<comments>http://dbabc.net/archives/2011/12/20/oracle-dg-check-arc-is-not-trans.shtml#comments</comments>
		<pubDate>Tue, 20 Dec 2011 09:07:22 +0000</pubDate>
		<dc:creator>dbabc</dc:creator>
				<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://dbabc.net/?p=1538</guid>
		<description><![CDATA[Oracle DG搭建好之后，每天的巡检都要查看归档是否传输到备库并应用，以下几步可以实现自动化检查归档是否传输到备库， 基本思路： 通过表来记录没有传输到备库的归档的信息，创建sp，记录未传输到备库的归档信息，通过crontab设定每天定时坚检查此表是否含有记录，若有记录就发mail预警。 通过以下sql检查归档是否传输到备库： SELECT '10.2.8.8' IP, LOCAL.THREAD#, LOCAL.SEQUENCE#, LOCAL.COMPLETION_TIME, SYSDATE FROM (SELECT THREAD#, SEQUENCE#, COMPLETION_TIME FROM V$ARCHIVED_LOG@dbabc1 WHERE DEST_ID = 1 AND FIRST_TIME &#62; SYSDATE - 1) LOCAL WHERE LOCAL.SEQUENCE# NOT IN (SELECT SEQUENCE# FROM V$ARCHIVED_LOG@dbabc1 WHERE DEST_ID = 2 AND THREAD# = LOCAL.THREAD# AND FIRST_TIME &#62; SYSDATE - 1) 1、创建table用来记录未传输的归档信息 CREATE TABLE [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="shell脚本检查Oracle DG备库是否已经应用归档" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">shell脚本检查Oracle DG备库是否已经应用归档</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle书籍推荐" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2012/01/04/13423304.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle书籍推荐</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle RMAN异机异目录恢复" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F02%2Foracle_rman_recovery_linux_other_machine.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524467.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle RMAN异机异目录恢复</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RHEL 4 上安装配置 Oracle 10g RAC" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F28%2Foracle10g-rac-on-linux-x64.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524427.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RHEL 4 上安装配置 Oracle 10g RAC</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle Switchover切换" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F29%2Foracle-switchover.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle Switchover切换</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Oracle DG搭建好之后，每天的巡检都要查看归档是否传输到备库并应用，以下几步可以实现自动化检查归档是否传输到备库，<br />
基本思路：<br />
通过表来记录没有传输到备库的归档的信息，创建sp，记录未传输到备库的归档信息，通过crontab设定每天定时坚检查此表是否含有记录，若有记录就发mail预警。<br />
通过以下sql检查归档是否传输到备库：</p>
<pre>SELECT   '10.2.8.8' IP,
               LOCAL.THREAD#,
               LOCAL.SEQUENCE#,
               LOCAL.COMPLETION_TIME,
               SYSDATE
        FROM   (SELECT   THREAD#, SEQUENCE#, COMPLETION_TIME
                  FROM   V$ARCHIVED_LOG@dbabc1
                 WHERE   DEST_ID = 1 AND FIRST_TIME &gt; SYSDATE - 1) LOCAL
       WHERE   LOCAL.SEQUENCE# NOT IN
                     (SELECT   SEQUENCE#
                        FROM   V$ARCHIVED_LOG@dbabc1
                       WHERE       DEST_ID = 2
                               AND THREAD# = LOCAL.THREAD#
                               AND FIRST_TIME &gt; SYSDATE - 1)</pre>
<p>1、创建table用来记录未传输的归档信息</p>
<pre>CREATE TABLE ARC_NOT_TRANS
(
  HOSTNAME         VARCHAR2(20 BYTE),
  THREAD#          NUMBER,
  SEQUENCE#        NUMBER,
  COMPLETION_TIME  DATE,
  ADD_TIME         DATE                         DEFAULT sysdate
)</pre>
<p>2、创建sp，将未传输的归档信息记录到表格中，这里是通过dblinkd实现的。</p>
<pre>CREATE OR REPLACE PROCEDURE dbabc.SP_ARC_NOT_TRANS
AS
 /***************************************
 Author: dbabc.net
 Time:2011-12-07
功能：记录没有传输到备库的standby信息
**************************************/

BEGIN
   ---
   INSERT INTO dbabc.ARC_NOT_TRANS
      SELECT   '10.2.8.8' IP,
               LOCAL.THREAD#,
               LOCAL.SEQUENCE#,
               LOCAL.COMPLETION_TIME,
               SYSDATE
        FROM   (SELECT   THREAD#, SEQUENCE#, COMPLETION_TIME
                  FROM   V$ARCHIVED_LOG@dbabc1
                 WHERE   DEST_ID = 1 AND FIRST_TIME &gt; SYSDATE - 1) LOCAL
       WHERE   LOCAL.SEQUENCE# NOT IN
                     (SELECT   SEQUENCE#
                        FROM   V$ARCHIVED_LOG@dbabc1
                       WHERE       DEST_ID = 2
                               AND THREAD# = LOCAL.THREAD#
                               AND FIRST_TIME &gt; SYSDATE - 1);

   COMMIT;

   INSERT INTO dbabc.ARC_NOT_TRANS
      SELECT   '10.8.9.8' IP,
               LOCAL.THREAD#,
               LOCAL.SEQUENCE#,
               LOCAL.COMPLETION_TIME,
               SYSDATE
        FROM   (SELECT   THREAD#, SEQUENCE#, COMPLETION_TIME
                  FROM   V$ARCHIVED_LOG@dbabc2
                 WHERE   DEST_ID = 1 AND FIRST_TIME &gt; SYSDATE - 1) LOCAL
       WHERE   LOCAL.SEQUENCE# NOT IN
                     (SELECT   SEQUENCE#
                        FROM   V$ARCHIVED_LOG@dbabc2
                       WHERE       DEST_ID = 2
                               AND THREAD# = LOCAL.THREAD#
                               AND FIRST_TIME &gt; SYSDATE - 1);
   COMMIT;
END;
/</pre>
<p>3、创建job，每天定时执行上面的sp<br />
4、通过crontab每天定时检查table中是否有记录</p>
<pre>
#!/bin/bash
#Check archive logs if have trances to standby SCRIPTS arc_not_tracs.sh
#by dbabc.net 2011/12/07
#User specific environment and startup programs
if [ -f ~/.bash_profile ]; then
. ~/.bash_profile
fi

DBAEMAIL=dba@dbabc.net;export DBAEMAIL
VALUE=`$ORACLE_HOME/bin/sqlplus -S /nolog ＜＜EOF
set heading off feedback off pagesize 0 verify off echo off numwidth 4
conn oram/oram
SELECT count(*) FROM ARC_NOT_TRANS;
exit
EOF`
if [ "$VALUE" -gt 0 ]; then

$ORACLE_HOME/bin/sqlplus -S /nolog > arc_not_trans.log ＜＜EOF
set heading off feedback off pagesize 0 verify off echo off
set lines 200
conn oram/oram
alter session set nls_date_format='YYYY-MM-DDHH24:MI:SS';
SELECT * FROM ARC_NOT_TRANS;
insert into ARC_NOT_TRANS_MV select * from ARC_NOT_TRANS;
commit;
TRUNCATE TABLE ARC_NOT_TRANS DROP STORAGE;
exit
EOF
/usr/local/bin/sendEmail -f dbabc@dbabc.net -t ${DBAEMAIL} -s smtp.dbabc.net -u "archive log not trans" -o message-file=arc_not_trans.log -xu "dbabc@dbabc.net" -xp "pwddbabc"
exit
else
echo `date +'%F %T'`" All the archive log have trans" >arc_transok.txt
/usr/local/bin/sendEmail -f dbabc@dbabc.net -t ${DBAEMAIL}  -s smtp.dbabc.net -u "arc_transok" -o message-file=arc_transok.txt -xu "dbabc@dbabc.net" -xp "pwddbabc"
fi
exit
</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="shell脚本检查Oracle DG备库是否已经应用归档" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">shell脚本检查Oracle DG备库是否已经应用归档</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle书籍推荐" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2012/01/04/13423304.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle书籍推荐</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle RMAN异机异目录恢复" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F02%2Foracle_rman_recovery_linux_other_machine.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524467.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle RMAN异机异目录恢复</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RHEL 4 上安装配置 Oracle 10g RAC" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F28%2Foracle10g-rac-on-linux-x64.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524427.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RHEL 4 上安装配置 Oracle 10g RAC</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle Switchover切换" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F29%2Foracle-switchover.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Foracle-dg-check-arc-is-not-trans.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle Switchover切换</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://dbabc.net/archives/2011/12/20/oracle-dg-check-arc-is-not-trans.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux shell 重定向</title>
		<link>http://dbabc.net/archives/2011/12/20/linux-shell-redirection.shtml</link>
		<comments>http://dbabc.net/archives/2011/12/20/linux-shell-redirection.shtml#comments</comments>
		<pubDate>Tue, 20 Dec 2011 08:46:58 +0000</pubDate>
		<dc:creator>dbabc</dc:creator>
				<category><![CDATA[Linux与开源]]></category>

		<guid isPermaLink="false">http://dbabc.net/?p=1536</guid>
		<description><![CDATA[command > dbabc.log 把标准输出重定向到dbabc.log中 command >> dbabc.log 把标准输出重定向到dbabc.log中(追加) command > dbabc.log 2>&#038;1 把标准输出和标准错误一起重定向到dbabc.log中 command >> dbabc.log 2>&#038;1 把标准输出和标准错误一起重定向到dbabc.log中(追加) command 1 > dbabc.log 把标准输出重定向到dbabc.log中 command 1 >> dbabc.log 把标准输出重定向到dbabc.log中(追加) command 2 > dbabc.log 把标准错误重定向到dbabc.log中 command 2 >> dbabc.log 把标准输出重定向到dbabc.log中(追加) command &#038;1 把command命令标准错误重定向到标准输出<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">shell脚本检查Oracle DG备库是否已经应用归档</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下文件、文件名编码转换convmv</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F09%2F27%2Fshell-shortcut-key.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Shell快捷键</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F12%2F06%2Flinux-tmout-profile-shell.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">快速设置Linux超时退出脚本</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F09%2F25%2Fcat_linux_system_info.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">查看Linux系統信息</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<pre>command > dbabc.log 把标准输出重定向到dbabc.log中
command >> dbabc.log 把标准输出重定向到dbabc.log中(追加)

command > dbabc.log 2>&#038;1 把标准输出和标准错误一起重定向到dbabc.log中
command >> dbabc.log 2>&#038;1 把标准输出和标准错误一起重定向到dbabc.log中(追加)

command 1 > dbabc.log 把标准输出重定向到dbabc.log中
command 1 >> dbabc.log 把标准输出重定向到dbabc.log中(追加)
command 2 > dbabc.log 把标准错误重定向到dbabc.log中
command 2 >> dbabc.log 把标准输出重定向到dbabc.log中(追加)

command <&#038;- 把关闭标准输入
command 2>&#038;1 把command命令标准错误重定向到标准输出
</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">shell脚本检查Oracle DG备库是否已经应用归档</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F03%2Flinux-command-convmv.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下文件、文件名编码转换convmv</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F09%2F27%2Fshell-shortcut-key.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Shell快捷键</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F12%2F06%2Flinux-tmout-profile-shell.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">快速设置Linux超时退出脚本</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F09%2F25%2Fcat_linux_system_info.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shell-redirection.shtml">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">查看Linux系統信息</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://dbabc.net/archives/2011/12/20/linux-shell-redirection.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux shelll：syntax error:unexpected end of file</title>
		<link>http://dbabc.net/archives/2011/12/20/linux-shelll%ef%bc%9asyntax-errorunexpected-end-of-file.shtml</link>
		<comments>http://dbabc.net/archives/2011/12/20/linux-shelll%ef%bc%9asyntax-errorunexpected-end-of-file.shtml#comments</comments>
		<pubDate>Tue, 20 Dec 2011 08:39:14 +0000</pubDate>
		<dc:creator>dbabc</dc:creator>
				<category><![CDATA[Linux与开源]]></category>

		<guid isPermaLink="false">http://dbabc.net/?p=1534</guid>
		<description><![CDATA[一shell脚本运行的时候报：syntax error:unexpected end of file。经查，在最后一行多了^M,可能是由于从Windows传输到Linux下产生的， 通过以下wi进行替换 vi dos.txt :set fileformat=unix :w 问题解决，为记。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Linux的LVM管理（一）–基本知识和创建" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F12%2F14%2Flvm_base.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shelll%25EF%25BC%259Asyntax-errorunexpected-end-of-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21525352.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux的LVM管理（一）–基本知识和创建</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="ORA-12637:包接收失败" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F01%2Fora-12637.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shelll%25EF%25BC%259Asyntax-errorunexpected-end-of-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524572.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">ORA-12637:包接收失败</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="将程序添加到右键菜单中" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F09%2Fadd-program-to-right-menu.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shelll%25EF%25BC%259Asyntax-errorunexpected-end-of-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/09/21848091.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">将程序添加到右键菜单中</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="域用户与组的权限和嵌套" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F24%2Fadgroup.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shelll%25EF%25BC%259Asyntax-errorunexpected-end-of-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524623.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">域用户与组的权限和嵌套</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Veritas Netbackup实验三:Catalog备份还原" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F26%2Fcatalogbk.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shelll%25EF%25BC%259Asyntax-errorunexpected-end-of-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524597.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Veritas Netbackup实验三:Catalog备份还原</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>一shell脚本运行的时候报：syntax error:unexpected end of file。经查，在最后一行多了^M,可能是由于从Windows传输到Linux下产生的，</p>
<p>通过以下wi进行替换</p>
<pre>
vi dos.txt
:set fileformat=unix
:w
</pre>
<p>问题解决，为记。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="观手知健康(经络全息手诊)蔡洪光" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F03%2F13%2Fhealth-by-finger.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shelll%25EF%25BC%259Asyntax-errorunexpected-end-of-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524661.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">观手知健康(经络全息手诊)蔡洪光</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RHEL 4 上安装配置 Oracle 10g RAC" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F28%2Foracle10g-rac-on-linux-x64.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shelll%25EF%25BC%259Asyntax-errorunexpected-end-of-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524427.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RHEL 4 上安装配置 Oracle 10g RAC</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="独立图片域名测试" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F01%2F28%2Fpic_tes.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shelll%25EF%25BC%259Asyntax-errorunexpected-end-of-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21525102.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">独立图片域名测试</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="EMC symmetric存储BCV Split简单错误一例" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F09%2F22%2Fbcvspliterror.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shelll%25EF%25BC%259Asyntax-errorunexpected-end-of-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524607.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">EMC symmetric存储BCV Split简单错误一例</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="本站升级为wordpress3.0正式启用多站点" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F06%2F20%2Fupgrade_wordpress3-0.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F20%2Flinux-shelll%25EF%25BC%259Asyntax-errorunexpected-end-of-file.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524659.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">本站升级为wordpress3.0正式启用多站点</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://dbabc.net/archives/2011/12/20/linux-shelll%ef%bc%9asyntax-errorunexpected-end-of-file.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>记录oracle用户的登录信息</title>
		<link>http://dbabc.net/archives/2011/12/14/oracle-login-info.shtml</link>
		<comments>http://dbabc.net/archives/2011/12/14/oracle-login-info.shtml#comments</comments>
		<pubDate>Wed, 14 Dec 2011 08:20:43 +0000</pubDate>
		<dc:creator>dbabc</dc:creator>
				<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://dbabc.net/?p=1529</guid>
		<description><![CDATA[为了统计哪些用户在登录使用数据库，以及其他用途，需要记录登录数据库的信息，以及尝试登录数据库失败的信息，以下几个trigger可以搞定。 创建记录用户信息的table CREATE TABLE oram.LOGIN_LOG ( AUDSID       NUMBER, SID          NUMBER, SERIAL#      NUMBER, LOGIN_TIME   DATE, LOGOUT_TIME  DATE, USERNAME     VARCHAR2(30 BYTE), MACHINE      VARCHAR2(64 BYTE), IP           VARCHAR2(20 BYTE), PROGRAM      VARCHAR2(48 BYTE) ); 通过trigger记录oracle用户的登录信息 CREATE OR REPLACE TRIGGER login_on_info /******************************************************* author：dbabc.net time  ：2011/12/14 功能：记录登录数据库的用户信息 说明：要以sys用户创建触发器，insert 的表可以是任意用户的 ********************************************************/ AFTER LOGON ON DATABASE BEGIN INSERT INTO oram.login_log SELECT   audsid, SID, serial#, [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="shell脚本检查Oracle DG备库是否已经应用归档" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F14%2Foracle-login-info.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">shell脚本检查Oracle DG备库是否已经应用归档</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="捕捉尝试登陆Oracle数据库失败的用户信息" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F02%2Foracle-alert-log-fail-rec.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F14%2Foracle-login-info.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">捕捉尝试登陆Oracle数据库失败的用户信息</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle RMAN异机异目录恢复" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F02%2Foracle_rman_recovery_linux_other_machine.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F14%2Foracle-login-info.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524467.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle RMAN异机异目录恢复</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RHEL 4 上安装配置 Oracle 10g RAC" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F28%2Foracle10g-rac-on-linux-x64.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F14%2Foracle-login-info.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524427.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RHEL 4 上安装配置 Oracle 10g RAC</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="每天定时统计Oracle表空间的使用信息" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F04%2Foracle_tbs_info.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F14%2Foracle-login-info.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">每天定时统计Oracle表空间的使用信息</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>为了统计哪些用户在登录使用数据库，以及其他用途，需要记录登录数据库的信息，以及尝试登录数据库失败的信息，以下几个trigger可以搞定。<br />
创建记录用户信息的table</p>
<pre>CREATE TABLE oram.LOGIN_LOG
(
AUDSID       NUMBER,
SID          NUMBER,
SERIAL#      NUMBER,
LOGIN_TIME   DATE,
LOGOUT_TIME  DATE,
USERNAME     VARCHAR2(30 BYTE),
MACHINE      VARCHAR2(64 BYTE),
IP           VARCHAR2(20 BYTE),
PROGRAM      VARCHAR2(48 BYTE)
);
</pre>
<p>通过trigger记录oracle用户的登录信息
<pre>
CREATE OR REPLACE TRIGGER login_on_info

/*******************************************************
author：dbabc.net
time  ：2011/12/14
功能：记录登录数据库的用户信息
说明：要以sys用户创建触发器，insert 的表可以是任意用户的
********************************************************/
AFTER LOGON
ON DATABASE
BEGIN
INSERT INTO oram.login_log
SELECT   audsid,
SID,
serial#,
SYSDATE,
NULL,
username,
machine,
SYS_CONTEXT ('USERENV', 'IP_ADDRESS'),
program
FROM   v$session
WHERE       SID IN (SELECT   SID
FROM   v$mystat
WHERE   ROWNUM = 1)
AND audsid = SYS_CONTEXT ('USERENV', 'SESSIONID')
AND program NOT LIKE 'JDBC%'
AND username &lt;&gt; 'SYSMAN'
AND TYPE &lt;&gt; 'BACKGROUND';
EXCEPTION
WHEN OTHERS
THEN
NULL;
END;
/
</pre>
<p>通过trigger更新用户登出数据库的时间
<pre>
CREATE OR REPLACE TRIGGER login_off_info
/*******************************************************
author：dbabc.net
time  ：2011/12/14
功能：更新用户登出数据库的时间
说明：要以sys用户创建触发器
********************************************************/

BEFORE LOGOFF
ON DATABASE
BEGIN
UPDATE   oram.login_log
SET   LOGOUT_TIME = SYSDATE
WHERE       audsid = USERENV ('SESSIONID')
AND SID = (SELECT   SID
FROM   v$session s
WHERE   SID IN (SELECT   SID
FROM   v$mystat
WHERE   ROWNUM = 1))
AND serial# = (SELECT   serial#
FROM   v$session s
WHERE   SID IN (SELECT   SID
FROM   v$mystat
WHERE   ROWNUM = 1));
EXCEPTION
WHEN OTHERS
THEN
NULL;
END;
/
</pre>
<p>通过trigger记录登录数据库失败哦信息到alert日志</p>
<pre>
CREATE OR REPLACE TRIGGER logon_denied_to_alert
/*******************************************************
author：dbabc.net
time  ：2011/12/14
功能：记录登录数据库失败哦信息到alert日志中
说明：要以sys用户创建触发器
********************************************************/

AFTER SERVERERROR
ON DATABASE
DECLARE
MESSAGE     VARCHAR2 (120);
IP          VARCHAR2 (15);
v_os_user   VARCHAR2 (80);
v_module    VARCHAR2 (50);
v_action    VARCHAR2 (50);
v_pid       VARCHAR2 (10);
v_sid       NUMBER;
BEGIN
IF (ora_is_servererror (1017))
THEN
IF SYS_CONTEXT ('userenv', 'network_protocol') = 'tcp'
THEN
IP := SYS_CONTEXT ('userenv', 'ip_address');
ELSE
SELECT   DISTINCT sid INTO v_sid FROM sys.v_$mystat;

SELECT   p.SPID
INTO   v_pid
FROM   V$PROCESS p, V$SESSION v
WHERE   p.ADDR = v.PADDR AND v.sid = v_sid;
END IF;

v_os_user := SYS_CONTEXT ('userenv', 'os_user');
DBMS_APPLICATION_INFO.READ_MODULE (v_module, v_action);
MESSAGE :=
TO_CHAR (SYSDATE, 'Dy Mon dd HH24:MI:SS YYYY')
|| ' logon denied from '
|| NVL (IP, v_pid)
|| ' '
|| v_os_user
|| ' with '
|| v_module
|| ' '
|| v_action;
sys.DBMS_SYSTEM.ksdwrt (2, MESSAGE);
END IF;
END;
/
</pre>
<p>通过trigger将登录失败的信息记录到表中，先创建table，当然也可以用上面的table，这里新建了一个表跟上面区分</p>
<pre>
CREATE TABLE USER_LOGIN_AUDIT
(
  SESSION_ID    NUMBER(10),
  SESSION_USER  VARCHAR2(30 BYTE),
  HOST          VARCHAR2(30 BYTE),
  IP            VARCHAR2(30 BYTE),
  CLIENT        VARCHAR2(50 BYTE),
  OS_USER       VARCHAR2(50 BYTE),
  STATUS        CHAR(1 BYTE),
  LOGIN_TIME    DATE
);
</pre>
<p>通过trigger记录登录数据库失败哦信息到table中</p>
<pre>

CREATE OR REPLACE TRIGGER TRI_USER_LOGIN_DENIED_AUDIT
   AFTER SERVERERROR
   ON DATABASE
BEGIN
   IF (ora_is_servererror (1017))
   THEN
      INSERT INTO oram.user_login_audit
        VALUES   (SYS_CONTEXT ('USERENV', 'SESSIONID'),
                  SYS_CONTEXT ('USERENV', 'SESSION_USER'),
                  SYS_CONTEXT ('USERENV', 'HOST'),
                  SYS_CONTEXT ('USERENV', 'IP_ADDRESS'),
                  SYS_CONTEXT ('USERENV', 'MODULE'),
                  SYS_CONTEXT ('USERENV', 'OS_USER'),
                  '9',
                  SYSDATE);
   END IF;
END TRI_USER_LOGIN_DENIED_AUDIT;
/
</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="shell脚本检查Oracle DG备库是否已经应用归档" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F02%2F02%2Fshell-check-oracle-dg-archivelog-reply.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F14%2Foracle-login-info.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">shell脚本检查Oracle DG备库是否已经应用归档</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="捕捉尝试登陆Oracle数据库失败的用户信息" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F02%2Foracle-alert-log-fail-rec.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F14%2Foracle-login-info.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">捕捉尝试登陆Oracle数据库失败的用户信息</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle RMAN异机异目录恢复" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F02%2Foracle_rman_recovery_linux_other_machine.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F14%2Foracle-login-info.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524467.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle RMAN异机异目录恢复</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RHEL 4 上安装配置 Oracle 10g RAC" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F01%2F28%2Foracle10g-rac-on-linux-x64.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F14%2Foracle-login-info.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524427.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RHEL 4 上安装配置 Oracle 10g RAC</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="每天定时统计Oracle表空间的使用信息" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F08%2F04%2Foracle_tbs_info.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F14%2Foracle-login-info.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://dbabc.net/www.dbabc.net/wp-content/themes/dbabc/images/dbabclogo.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">每天定时统计Oracle表空间的使用信息</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://dbabc.net/archives/2011/12/14/oracle-login-info.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Documentation: MySQL Reference Manuals</title>
		<link>http://dbabc.net/archives/2011/12/06/mysql-documentation-mysql-reference-manuals.shtml</link>
		<comments>http://dbabc.net/archives/2011/12/06/mysql-documentation-mysql-reference-manuals.shtml#comments</comments>
		<pubDate>Tue, 06 Dec 2011 00:58:41 +0000</pubDate>
		<dc:creator>dbabc</dc:creator>
				<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://dbabc.net/?p=1523</guid>
		<description><![CDATA[MySQL参考手册: MySQL Documentation: MySQL Reference Manuals http://dev.mysql.com/doc/<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Linux的LVM管理（一）–基本知识和创建" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F12%2F14%2Flvm_base.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F06%2Fmysql-documentation-mysql-reference-manuals.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21525352.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux的LVM管理（一）–基本知识和创建</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Openfiler配置攻略之二：iSCSI存储的创建" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F14%2Fopenfiler-iscsi.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F06%2Fmysql-documentation-mysql-reference-manuals.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524438.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Openfiler配置攻略之二：iSCSI存储的创建</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Oracle书籍推荐" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2012%2F01%2F04%2Foracle-books.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F06%2Fmysql-documentation-mysql-reference-manuals.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2012/01/04/13423304.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Oracle书籍推荐</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="观手知健康(经络全息手诊)蔡洪光" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F03%2F13%2Fhealth-by-finger.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F06%2Fmysql-documentation-mysql-reference-manuals.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524661.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">观手知健康(经络全息手诊)蔡洪光</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="独立图片域名测试" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F01%2F28%2Fpic_tes.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F06%2Fmysql-documentation-mysql-reference-manuals.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21525102.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">独立图片域名测试</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>MySQL参考手册:</p>
<p>MySQL Documentation: MySQL Reference Manuals<br />
<a title="http://dev.mysql.com/doc/" href="http://dev.mysql.com/doc/" target="_blank">http://dev.mysql.com/doc/</a></p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://dbabc.net";
        var wumiiEnableCustomPos = true;
        var wumiiParams = "&#038;num=6&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Openfiler配置攻略之一：安装及界面功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F07%2Fopenfiler-install.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F06%2Fmysql-documentation-mysql-reference-manuals.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524201.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Openfiler配置攻略之一：安装及界面功能</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="观手知健康(经络全息手诊)蔡洪光" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F03%2F13%2Fhealth-by-finger.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F06%2Fmysql-documentation-mysql-reference-manuals.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524661.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">观手知健康(经络全息手诊)蔡洪光</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="EMC symmetric存储BCV Split简单错误一例" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F09%2F22%2Fbcvspliterror.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F06%2Fmysql-documentation-mysql-reference-manuals.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524607.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">EMC symmetric存储BCV Split简单错误一例</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="神话观后–炎黄文物考古研究所" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F01%2F30%2Fshenhua-guanhou.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F06%2Fmysql-documentation-mysql-reference-manuals.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21525254.png" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">神话观后–炎黄文物考古研究所</font>
                    </a>
                </td>
                <td width="86" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="AD批量添加用户" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fdbabc.net%2Farchives%2F2010%2F04%2F24%2Fadaccoun.shtml&from=http%3A%2F%2Fdbabc.net%2Farchives%2F2011%2F12%2F06%2Fmysql-documentation-mysql-reference-manuals.shtml">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 80px !important; height: 80px !important;" src="http://static.wumii.com/site_images/2011/08/07/21524368.jpg" width="80px" height="80px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 86px !important; font: 12px/15px arial !important; height: 53px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">AD批量添加用户</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://dbabc.net/archives/2011/12/06/mysql-documentation-mysql-reference-manuals.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

