﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-光子CI之旅-随笔分类-ORACLE</title><link>http://www.blogjava.net/kuuyee/category/51323.html</link><description>while (产品+需求+设计+开发+测试+部署+发布 == doing) 
{ 
  CI 
}</description><language>zh-cn</language><lastBuildDate>Wed, 15 May 2013 04:16:05 GMT</lastBuildDate><pubDate>Wed, 15 May 2013 04:16:05 GMT</pubDate><ttl>60</ttl><item><title>ORACLE数据库ORA-00257解决</title><link>http://www.blogjava.net/kuuyee/archive/2013/05/15/399287.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Wed, 15 May 2013 02:13:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/05/15/399287.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/399287.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/05/15/399287.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/399287.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/399287.html</trackback:ping><description><![CDATA[<div style="width: 1170px; margin-right: auto; margin-left: auto; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><div style="margin-left: -30px;"><div style="float: left; min-height: 1px; margin-left: 30px; width: 870px;"><div style="background-color: #fcfcfa; border: 1px solid #e2e0d8; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; padding: 22px; margin-bottom: 35px;"><h2><span style="font-size: 14px;">今天数据库突然连不上了，报ORA-00257错误（空间不足错误），通过查找资料，绝大部分说这是由于Archivelog归档日志太多，占用了全部的硬盘剩余空间导致的，通过简单删除日志或加大存储空间就能够解决。</span></h2><div><p style="margin: 0px 0px 10px;">首先进入oracle用户，使用<strong>rman</strong>工具执行命令<strong>rman target/</strong>：</p></div><div><div monospaced"=""><pre coderay"="" style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">oracle@test-idm-db01$ rman target/  <br /><br />Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 15 09:29:06 2013  <br /><br />Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.  <br />RMAN-00571: =========================================================== <br />RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== <br />RMAN-00571: =========================================================== <br />RMAN-00554: initialization of internal recovery manager package failed <br />RMAN-04005: error from target database: <br />ORA-01031: insufficient privileges</code></pre></div></div><div><p style="margin: 0px 0px 10px;">竟然报错了，如果你的空间100%一点剩余都没有，那么就会报这个错，只能想办法让你的系统腾出一点空间，哪怕几百兆！然后重启数据库应该就可以登陆dba了。</p></div><div><p style="margin: 0px 0px 10px;">重启数据库，再次<strong>rman</strong></p></div><div><div monospaced"=""><pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);">oracle@test-idm-db01$ rman target/  <br /><br />Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 15 09:29:40 2013  <br /><br />Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.  <br /><br />connected to target database: IDM_TEST (DBID=4064060693)</pre></div></div><div><p style="margin: 0px 0px 10px;">现在删除Archivelog归档文件，执行下面的命令来删除最近7天的归档：</p></div><div><div monospaced"=""><pre coderay"="" style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">RMAN&gt; DELETE ARCHIVELOG FROM TIME 'SYSDATE-7';</code></pre></div></div><div><p style="margin: 0px 0px 10px;">也可以只保留最近7天的，其余的都删除：</p></div><div><div monospaced"=""><pre coderay"="" style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">RMAN&gt; DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-7';</code></pre></div></div><div><p style="margin: 0px 0px 10px;">但是过一段时间你的日志还是回满，对于开发环境这样的归档功能其实没什么必要，彻底解决办法是关闭这个功能，用dba登陆oracle：</p></div><div><div monospaced"=""><pre coderay"="" style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sqlplus / as sysdba;</code></pre></div></div><div><p style="margin: 0px 0px 10px;">然后执行下面的命令：</p></div><div><div monospaced"=""><pre coderay"="" style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">SQL&gt; <span style="color: #bb0066; font-weight: bold;">alter</span> <span style="color: #333399; font-weight: bold;">database</span> flashback off;</code></pre></div></div><div><p style="margin: 0px 0px 10px;">然后重启数据库就OK了！</p></div><p style="margin: 0px 0px 10px;"></p><div>2013-05-15</div></div></div></div></div><footer style="text-align: center; padding: 20px 0px; margin-top: 20px; border-top-width: 1px; border-top-style: solid; border-top-color: #e5e5e5; background-color: #f5f5f5; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><div style="width: 1170px; margin-right: auto; margin-left: auto;"></div></footer><img src ="http://www.blogjava.net/kuuyee/aggbug/399287.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kuuyee/" target="_blank">kuuyee</a> 2013-05-15 10:13 <a href="http://www.blogjava.net/kuuyee/archive/2013/05/15/399287.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ORACLE 11g在Linux下手工配置EM</title><link>http://www.blogjava.net/kuuyee/archive/2012/04/05/373355.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Thu, 05 Apr 2012 03:08:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2012/04/05/373355.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/373355.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2012/04/05/373355.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/373355.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/373355.html</trackback:ping><description><![CDATA[<div id="content" style="font-family: 微软雅黑; line-height: normal; font-size: medium; "><div id="preamble" style="margin-top: 1.5em; margin-bottom: 1.5em; "><div style="font-family: Georgia, 'Times New Roman', Times, serif; margin-left: 0px; "><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">使用OTK工具安装的Oracle默认没有配置EM，下面记录下配置和启动过程!</p></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">首先创建EM，执行下面的命令</p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emca -config dbcontrol db -repos recreate</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">我第一次运行报如下错误：<br /></p><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->Mar&nbsp;<span style="color: #800000; font-weight: bold; ">31</span>,&nbsp;<span style="color: #800000; font-weight: bold; ">2012</span>&nbsp;<span style="color: #800000; font-weight: bold; ">4</span>:<span style="color: #800000; font-weight: bold; ">16</span>:<span style="color: #800000; font-weight: bold; ">06</span>&nbsp;PM&nbsp;oracle.sysman.emcp.EMReposConfig&nbsp;createRepository<br />CONFIG:&nbsp;ORA<span style="color: #808080; ">-</span><span style="color: #800000; font-weight: bold; ">00604</span>:&nbsp;error&nbsp;occurred&nbsp;at&nbsp;recursive&nbsp;SQL&nbsp;<span style="color: #0000FF; ">level</span>&nbsp;<span style="color: #800000; font-weight: bold; ">1</span><br />ORA<span style="color: #808080; ">-</span><span style="color: #800000; font-weight: bold; ">01653</span>:&nbsp;unable&nbsp;<span style="color: #0000FF; ">to</span>&nbsp;extend&nbsp;<span style="color: #0000FF; ">table</span>&nbsp;SYS.SOURCE$&nbsp;<span style="color: #0000FF; ">by</span>&nbsp;<span style="color: #800000; font-weight: bold; ">128</span>&nbsp;<span style="color: #808080; ">in</span>&nbsp;tablespace&nbsp;SYSTEM<br />oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException:&nbsp;ORA<span style="color: #808080; ">-</span><span style="color: #800000; font-weight: bold; ">00604</span>:&nbsp;error&nbsp;occurred&nbsp;at&nbsp;recursive&nbsp;SQL&nbsp;<span style="color: #0000FF; ">level</span>&nbsp;<span style="color: #800000; font-weight: bold; ">1</span><br />ORA<span style="color: #808080; ">-</span><span style="color: #800000; font-weight: bold; ">01653</span>:&nbsp;unable&nbsp;<span style="color: #0000FF; ">to</span>&nbsp;extend&nbsp;<span style="color: #0000FF; ">table</span>&nbsp;SYS.SOURCE$&nbsp;<span style="color: #0000FF; ">by</span>&nbsp;<span style="color: #800000; font-weight: bold; ">128</span>&nbsp;<span style="color: #808080; ">in</span>&nbsp;tablespace&nbsp;SYSTEM<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:<span style="color: #800000; font-weight: bold; ">1650</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:<span style="color: #800000; font-weight: bold; ">1000</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:<span style="color: #800000; font-weight: bold; ">339</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:<span style="color: #800000; font-weight: bold; ">380</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:<span style="color: #800000; font-weight: bold; ">510</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:<span style="color: #800000; font-weight: bold; ">228</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:<span style="color: #800000; font-weight: bold; ">157</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMConfig.perform(EMConfig.java:<span style="color: #800000; font-weight: bold; ">253</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:<span style="color: #800000; font-weight: bold; ">589</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:<span style="color: #800000; font-weight: bold; ">1448</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:<span style="color: #800000; font-weight: bold; ">573</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:<span style="color: #800000; font-weight: bold; ">521</span>)<br />Mar&nbsp;<span style="color: #800000; font-weight: bold; ">31</span>,&nbsp;<span style="color: #800000; font-weight: bold; ">2012</span>&nbsp;<span style="color: #800000; font-weight: bold; ">4</span>:<span style="color: #800000; font-weight: bold; ">16</span>:<span style="color: #800000; font-weight: bold; ">06</span>&nbsp;PM&nbsp;oracle.sysman.emcp.EMReposConfig&nbsp;invoke<br />SEVERE:&nbsp;Error&nbsp;creating&nbsp;the&nbsp;repository</div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; "><br />解决办法</strong></p></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">使用SYS用户登录sqlplus，然后执行下面的语句：</p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; "> SQL<span style="color: #990000; ">&gt;</span> <span style="font-weight: bold; "><span style="color: #0000ff; ">SELECT</span></span> <span style="color: #990000; ">*</span> <span style="font-weight: bold; "><span style="color: #0000ff; ">FROM</span></span> DBA_DATA_FILES <span style="font-weight: bold; "><span style="color: #0000ff; ">where</span></span> TABLESPACE_NAME <span style="color: #990000; ">=</span> <span style="color: #ff0000; ">'SYSTEM'</span><span style="color: #990000; ">;</span> <br />FILE_NAME     FILE_ID TABLESPACE_NAME                    <br /> BYTES     BLOCKS <span style="font-weight: bold; "><span style="color: #0000ff; ">STATUS</span></span>  RELATIVE_FNO AUT   MAXBYTES  MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS  <br />ONLINE_  <span style="color: #990000; ">/</span>data01<span style="color: #990000; ">/</span>rdbms<span style="color: #990000; ">/</span>wcdb<span style="color: #990000; ">/</span>datafile<span style="color: #990000; ">/</span>wcdb_system_01<span style="color: #990000; ">.</span>dbf          <span style="color: #993399; ">1</span> SYSTEM                          <span style="color: #993399; ">536870912</span>      <span style="color: #993399; ">65536</span> AVAILABLE           <br /> <span style="color: #993399; ">1</span> NO           <span style="color: #993399; ">0</span>          <span style="color: #993399; ">0</span>            <span style="color: #993399; ">0</span>  <span style="color: #993399; ">535822336</span>       <span style="color: #993399; ">65408</span> <br />SYSTEM</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">然后新定义个空间文件wcdb_system_02.dbf，注意不要重名</p></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">然后新定义个空间文件*wcdb_system_02.dbf*，注意不要重名</p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">SQL<span style="color: #990000; ">&gt;</span> <span style="font-weight: bold; "><span style="color: #0000ff; ">ALTER</span></span> TABLESPACE SYSTEM <span style="font-weight: bold; "><span style="color: #0000ff; ">ADD</span></span> DATAFILE <span style="color: #ff0000; ">'/data01/rdbms/wcdb/datafile/wcdb_system_02.dbf'</span> SIZE 500M<span style="color: #990000; ">;</span> Tablespace altered<span style="color: #990000; ">.</span></tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">然后再次执行EM创建成功！</p></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">EM的访问地址：<a href="https://host:1158/em" style="color: fuchsia; ">https://localhost:1158/em</a></p></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">删除一个EM资料库</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emca <span style="color: #990000; ">-</span>repos <span style="font-weight: bold; "><span style="color: #0000ff; ">drop</span></span></tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">配置数据库的 Database Control</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emca <span style="color: #990000; ">-</span>config dbcontrol db</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">删除数据库的 Database Control配置</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emca <span style="color: #990000; ">-</span>deconfig dbcontrol db</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">重新配置db control的端口，默认端口在1158</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emca <span style="color: #990000; ">-</span>reconfig ports $ emca <span style="color: #990000; ">-</span>reconfig ports <span style="color: #990000; ">-</span>dbcontrol_http_port <span style="color: #993399; ">1160</span> $ emca <span style="color: #990000; ">-</span>reconfig ports <span style="color: #990000; ">-</span>agent_port <span style="color: #993399; ">3940</span></tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">先设 置ORACLE_SID环境变量后,启动EM console服务</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emctl start dbconsole</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">先设置 ORACLE_SID环境变量后,停止EM console服务</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emctl stop dbconsole</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">先设置ORACLE_SID环 境变量后,查看EM console服务的状态</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emctl <span style="font-weight: bold; "><span style="color: #0000ff; ">status</span></span> dbconsole</tt></pre></div></div></div></div></div><div id="footer" style="font-family: Arial, Helvetica, sans-serif; font-size: small; border-top-width: 2px; border-top-style: solid; border-top-color: silver; padding-top: 0.5em; margin-top: 4em; line-height: normal; "></div><img src ="http://www.blogjava.net/kuuyee/aggbug/373355.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kuuyee/" target="_blank">kuuyee</a> 2012-04-05 11:08 <a href="http://www.blogjava.net/kuuyee/archive/2012/04/05/373355.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>