随笔分类 - DB Manage
Oracle Manage、MSSQL Manage、Linux Manage、DB Backup/Restore
摘要:数据库块(database block)是ORACLE逻辑分配空间的最底层,又称逻辑块、页或ORACLE块。数据库块是数据库使用和分配空间的最小单元,也可以说是使用的最小I/O单元,一个数据块与磁盘上指定的物理空间大小相一致,一个数据库块对应一个或多个物理块,块的大小由参数db_block_size...
阅读全文
摘要:在Linux上,安装完成之后,在测试RMAN时可能会遇到如下错误:[oracle@smsdbrac1 oracle]$ rman target /rman: can't open target这是由于调用的是非Oracle的RMAN的缘故:[oracle@smsdbrac1 oracle]$ whi...
阅读全文
摘要:SYS@ orawin>column kvitdsc format a60SYS@ orawin>column kvitval format 9999999SYS@ orawin>column kvittag format a10SYS@ orawin>select kvittag,kvitval,...
阅读全文
摘要:当执行SQL*PLUS工具时,会自动调用$ORACLE_HOME/sqlplus/admin/glogin.sql 文件进行一系列的参数设置。所以,我们就修改此参数,在该文件中增加如下一行:SET SQLPROMPT "_user@ _connect_identifier>"还有_privilege...
阅读全文
摘要:恢复前提:1,需要有老的数据备份:RMAN> backup database;2,能在trace文件中找到control文件的create脚本:SQL> alter database backup controlfile to trace;解决方案:1,SQL> shutdown abort OR...
阅读全文
摘要:格式:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->altersystem|sessionsetevents‘[eventnumber|immedia...
阅读全文
摘要:例:DG损坏,需要重新建立前提:DG已经有build。build DG的方法:http://www.cnblogs.com/vegaslee/archive/2009/08/11/1543716.html步骤:DB:1,运行RMAN备份脚本,获取最新的RMAN备份集,并将备份集copy到DG中: 参...
阅读全文
摘要:-- Target DB ORACLE_SID=oralin CATALOG DB ORACLE_SID=oratest******************************************************************1. Create catalog DB and...
阅读全文
摘要:现象: RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN...
阅读全文
摘要:现象:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->SQL>alterdatabaseopen;alter database open*ERROR a...
阅读全文
摘要:RMAN-08137: WARNING: archive log not deleted as it is still needed原因:是由DG引起的,一般是Archive log传送到standby端出现问题会有这样的告警。解决方案:仔细查一下报Waring的archive log是否apply...
阅读全文
摘要:1.查找日志文件的路径名和group#号Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->SQL>setlinesize50SQL>selectgroup...
阅读全文
摘要:1、SHOW命令: 显示rman配置: RMAN> show all;2、REPORT命令: 2.1、RMAN> report schema 报告目标数据库的物理结构; 2.2、RMAN>report need backup days=3; 报告最近3天没有被备份的数据文件; 2.3、RMAN> r...
阅读全文
摘要:1,配置好mailserver,以及接收者:设置mailserver:点击em底部的setup-》Notification Methods=》设置Outgoing Mail (SMTP) Server、Identify Sender As、Sender's E-mail Address设置接收者:点...
阅读全文
摘要:今天,在复习042,发现了一道关于bitmap index的题目,让我困惑许久~ 最后,就在网上查了查,发现了一篇不错的文章,转至此。042的这道题是:Whichtwostatementsaretrueaboutabitmapindex?(Choosetwo.)A)Itisrecommendedfo...
阅读全文
摘要:DB:1,切换primary到standby:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->SQL>alterdatabasecommittoswit...
阅读全文
摘要:ORA-16040:standby destination archive log file is lockedCause:The target standby destination archive log file is currently locked. This indicates that...
阅读全文
摘要:例:新建oratest的DG DB:10.91.50.31 DG:10.91.50.6DG:1,建立相应的文件夹:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.co...
阅读全文
摘要:例:添加oralin数据库每日RMAN备份1,添加/u03/script/oralin/fullbak.shCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-...
阅读全文
摘要:例:RMAN备份每日的orawin数据库:1,新建backup.cmd:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->setoracle_sid=or...
阅读全文