Connected to an idle instance – while database is running
echo $ORACLE_HOME/home/oracle/product/10g/ (We should eliminate the slash / , export ORACLE_HOME=/home/oracle/product/10g) It causes error "Connected to an idle instance"SQL> conn / as sysdbaConnected to an idle instance.export ORACLE_HOME=/home/oracle/product/10gSQL> conn / as sysdbaConnected.Another reason: ps -ef|grep pmon oracle 19443 1 0 Oct 13 ? 72:50 ora_pmon_dodpp1 oracle 12421 1 0 Nov 18 ? 27:15 ora_pmon_dodpp5echo $ORACLE_SIDDODPP1SQ
backup and restore tips
转自:http://blog.csdn.net/managergh/archive/2007/03/06/1521944.aspx1 列出对应物 RMAN>list incarnation; 2 列出备份 2.1概述可用的备份 RMAN>list backup summary; B 表示 backup F 表示 FULL A 表示 archive log 0 1 表示 incremental backup S 说明备份状态 (A AVAILABLE X EXPIRED )[@more@] 2.2按备份类型列出备份 RMAN>list backup
FORCE LOGGING
Oracle provides the ability to enable or disable logging of certain types of dml/ddl statements. The reasons one might consider nologging with some commands or objects is driven by a desire for improved performance. However its important that applications understand the repercussions in recovery. We have seen at Bell on numerous occasions where an application has used nologging commands and then later when they needed a subsequent Oracle restore and rollforward they did not realize that s
理解备份集backup set与备份片backup piece
1,备份集backup set存储备份信息的逻辑结构,仅仅是备份信息的逻辑结构而已,通俗说就是存储这个备份集里面都是备份了哪些数据文件以及这个备份集的大小,备份的时间,备份片的信息等信息,通俗的说相当于一本书的序+目录.转: http://space.itpub.net/8554499/viewspace-580190[@more@] 2,备份片backup piece存储备份集信息的二进制文件.备份集由一个或多个备份片组成,并且每个备份片对应一个OS文件. 3,数据文件可以跨备份片,不能跨备份集。 3.1比如说你定义备份集的MAXSETSIZE参数,该参数的最小值必须大于你所备份的数据文件中最大
用Rman 异机迁移
*********************************************************************** Use rman to migrate source db to target db on same platform and oracle version 27-Sep-2012 The tested db is small, if for big db, need to redesign the full_backup.sh script to make the backup faster. And pay more attention to the source shutdown as downtime won’t be long in production.[@more@] Normal 0 false false false MicrosoftInternetExplorer
备份集地址变了
恢复数据文件,如果备份集地址变了,可以更新control file指定新地址:[@more@]http://space.itpub.net/26277071/viewspace-712197恢复数据文件,如果备份集地址变了,可以更新control file指定新地址:首先,让新恢复的控制文件可以找到备份集:RMAN> catalog start with '/db_dumps/O02RCD3/DONT_TOUCH/rman';更新控制文件里的备份集信息:RMAN> crosscheck backup;
NOLOGGING 应用场景
NOLOGGING Wrap-upThe operations that may be performed in a NOLOGGING mode are as follows:特别注意,在非归档下,Create表和索引都不会产生大量日志。You would not see the differencesin redo size in a NOARCHIVELOG mode database as the index CREATE and REBUILD operations are not logged inNOARCHIVELOG mode.If you test this on a NOARCHIVELOG-mode database, The CREATE TABLE will not be logged, with the exception of the data dictionary modifications, in a NOARCHIVELOG-mode database.[@more@]• Index c
vmware 添加硬盘
一:首先介绍硬盘扩容的方法: 1、vmware提供一个命令行工具,vmware-vdiskmanager.exe,位于vmware的安装目录下,比如 C:Program FilesVMwareVMware Workstationvmware-vdiskmanager.exe. 在windows的cmd窗口中,转到vmware的安装目录 即:cd C:Program FilesVMwareVMware Workstation vmware-vdiskmanager.exe 可以查看帮助[@more@] 2. 对于扩容,可以输入下列命令: vmware-vdiskmanager -x 4Gb "D:VMwareWinXPmyLinux.vmdk" 参数"-x"表示要扩展虚拟机硬盘空间,紧随其后
ASM管理实践
ASM管理实践(转)http://hi.baidu.com/zwfha/blog/item/af96d8119bf376c2a7ef3f0f.htmlasmcmd实用程序是Oracle 10g版本2的新增特性,它是一个命令行实用工具,提供了一种简单的方法,可以使用类似于Linux外壳命令(例如ls和mkdir)的命令集,浏览和维 护ASM磁盘组中的对象。ASM实例所维护对象的分层性质适合于采用类似Linux文件系统中浏览和维护文件所使用的命令集。http://hi.baidu.com/zwfha/blog/item/af96d8119bf376c2a7ef3f0f.html[@more@]在使用asmcmd之前,必须确保将环境变量ORACLE_BASE、ORACLE_HOME和ORACLE_SID设置为指向ASM
Logical DBA, DA Data Architect
Logical DBA 不同与Physical DBA. 有些像DA的角色,下面是一些工作内容:[@more@]Base Activities:Review database Code as part of data object review Define entities, attributes and relationships Involved in process design Review/show plans Review explains Perform initial performance review. Perform OS scripting Perform database scripting. Assist in debugging of scripts. Assist in monitoring on server platforms. Assist in application support through code implementation support. Assist in app
oracle的resetlogs机制浅析
author:skatetime:2010/09/07 oracle的resetlogs机制浅析[@more@]alter database open resetlogs 这个命令我想大家都很熟悉了,那有没有想过这个resetlogs选项为什么要用?什么时候用?它的原理机制是什么?他都起哪些作用? 我们都知道数据在启动时候是要做一致性检查的,oracle在open阶段要做两次检查 1. 检查数据文件头的检查点计数(checkpoint cnt)是否和控制文件的检查点计数(checkpoint cnt)一致。目的是确认数据文件 是否来自同一版本,而不是从备份中恢复的。如果这一步检查通过,就进行第二步检查 2. 检查
网络收音机
今天发现一个网络收音机TapinRadio,很好。http://bbs.ylmf.net/forum.php?mod=viewthread&tid=2065664&extra=&page=1[@more@]