随笔分类 - DB Manage
Oracle Manage、MSSQL Manage、Linux Manage、DB Backup/Restore
摘要:当执行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...
阅读全文
摘要:数据库字符集:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->select*fromnls_database_parameters;客户端字符集:1,C...
阅读全文
摘要:[1] 控制文件损坏(rman和常规恢复) [1.1] 有老的备份数据备份和控制文件trace [测试1] --使用trace恢复 shutdown abort [测试2] --使用trace恢复 正常shutdown [测试3] --使用控制文件备份来恢复 [测试4] 我们现在模拟备份控制文件,...
阅读全文
摘要:DB:现象:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->SQL>startupORACLEinstancestarted.TotalSystemGl...
阅读全文

浙公网安备 33010602011771号