Flashback Database简单一列——truncate数据恢复
1. 数据库开启flashback SQL> select FLASHBACK_ON from v$database;FLASHBACK_ON------------------NO SQL> shutdown immediate;Database closed.Database d...
Flashback Query简单一列——delete数据恢复
1. 创建测试表 SQL> create user test identified by test; User created. SQL> grant connect , resource to test; Grant succeeded. ...
静默DBCA 建实例
一、 用responseFile静默建实例 1.1 找到responsefile解压介质后生成的database文件夹下面的response里,dbca_rsp建议复制一份,然后修改里面的配置注意几个参数(根据自己需求设定吧)OPERATION_TYPE = "createDatabase"GDBNAME = "test1"...
关于权限的简单实验
connect角色有什么系统权限? SQL> select PRIVILEGE from dba_sys_privswhere GRANTEE='CONNECT'; PRIVILEGE----------------------------------------CREATE SESSION resource角色有什么系统权限? SQL> select PRIVILEGE from dba_sys_privs...
静默安装数据库软件 11R2
一、找到response文件 [oracle@localhost response]$ pwd/oraapp/oracle/database/response[oracle@localhost response]$ lsdbca.rsp db_install.rsp netca.rsp[oracle@localhost response]$ vi db_instal...
安装oracle 11.2 的前期准备
环境介绍:6.6 redhat11.2.0.1介质1. 检查rpm包 rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \compat-libstdc++-33 \elfutils-libelf \elfutils-libelf-devel \gcc \...
修改RAC private ip 一例 11.2.0.4/Linux
1. 手工备份GPNP profile和OCR两节点分别:su - gridcd /oracle/app/grid/gpnp/*/profiles/peercp -p profile.xml profile.xml.bak.20160726cd $ORACLE_HOME/gpnp/*/profiles/peercp -p profile.xml profile.xml.bak.20160726任意节点:as root:/oracle/app/grid/bin/ocrconfig -ma...
expdp/impdp 数据迁移一例
1.源端导出(相应的directory要创建的)expdp \' / as sysdba \' directory=backup dumpfile=expdp_full_20160729.dmp logfile=expdp_full_20160729.log full=y COMPRESSION=ALL2.目标端创建相应表空间create tablespace MONIETLSHIBORSPACE datafile '/oradata/basedb/monietlshibospa...
Oracle 11g OCM 考后分享
大三(11年)就开始自己创业,从事与IT行业无关的餐饮类工作,14年下半年在美团外卖等O2O外卖平台的冲击之下,瞬间觉醒,计算机行业发展如此迅猛,已经渗透到各行各业中,存在无限可能,感觉自己不能再把自己关在小笼子里,该出去看看了。本来本科就是学的计算机,13年初毕业之前考了个OCP证...
LogMiner 简单一例
添加日志列表我这是添加了5.11日上午9点-11点之间归档的日志(如果是在线日志,可以考虑先归档)exec dbms_logmnr.add_logfile(logfilename=>'/oraarch/1_474_902256601.dbf',options=>dbms_logmnr.new);exec dbms_logmnr.add_logfile(logfilename=>'/oraarch/1_475_902256601.dbf',options=>dbms_logmnr.ne...
AIX_RAC_ASM存储迁移
199.31.178.24/26 0. 准备磁盘 0.1 在两个节点确认新增5个盘的lunid是否一致lsattr -El hdisk6 | grep lun_idlsattr -El hdisk7 | grep lun_idlsattr -El hdisk8 | grep lun_idlsattr -El hdisk9 | grep lun_idlsattr -El hdisk10 | grep lun_id 0...
11g OCM备考13——性能优化
1.Create Synonym1.1Create a sh.sales@PROD1 on the public synonyms in the PROD2, requires that allusers can access.create public synonym shsales for sh.sales@PROD1; 2. SetUp and Configure Resource Manager Set up and configure Reso...
11g OCM备考12——分区表,LOB,细粒度审计,administer flshback date
1Create Additional Buffer Cache 1.1 set up the db_16k_cache_size (Then using the 16K cache to createtablespace) Sga 16k_size 15m SQL> alter system set db_16k_cache_size=15m;...
11g OCM备考11——第三场,数据管理
1. DBLINKCreate DBLINK, should query on the woodsdatabase all the table under the system user in the woods3 Database. 在woods端创建create public database link DBLINK connect to system identified by oracle using 'woods3'; ...
开库时 ORA-600【2662】【4194】【13013】一例
这是昨天修的一个客户的数据库,简单整理一下(1)症状数据库能启动到mount状态,无法正常open。设置隐藏参数,让数据库启动时跳过一致性检查:alter system set “_allow_resetlogs_corruption”=true scope=spfile;开库时报ORA-600[2662]错误(2)通过使用1...
RDA在RAC上的使用
上传解压 基本是默认配置,要输入节点2的实例名: [oracle@rac1 rda]$ ./rda.sh -vX Rda start CLOUD -p DB11gCreating collection "output" ... Inside DFT scenario, define the input and profile targets...
转载并整理AWR报告指标解析
AWR一、 AWR概述1.1 啥是AWR?AWR(Automatic Workload Repository)一堆历史性能数据,放在SYSAUX表空间上, AWR和SYSAUX都是10g出现的,是Oracle调优的关键特性; 大约1999年左右开始开发,已经有15年历史默认快照间隔1小时,10g保存7天、11g保存8天; 可以通过DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPS...
RDA简单使用
下载可以从My Oracle Support(metalink)的《Remote Diagnostic Agent (RDA) 4 – Getting Started [ID 314422.1]》专栏中下载到各个平台的最新版RDA。 上传解压会自动生成一个rda文件夹 查看帮助[oracle@ocm rda]$ ./rda.sh -hUsag...
AWR 文档翻译(1)AWR, ASH, ADDM and Sql Tuning Advisor概述
AWR, ASH, ADDM and Sql Tuning Advisor (文档 ID 276103.1)适用于: Oracle Database - Enterprise Edition - Version 10.1.0.2 and laterInformation in this document applies to any platform.10.1.0.2 to 10.2.0.5 ...
11g OCM备考9——第二场,数据可用性
3. RMAN配置 (1)Configure rman options for the woodsdatabase 1.1 turn backup optimazation on 1.2 set you default channel towrite to /home/oracle/backup 1.3 turn on controlfile autobackupto write to /home/oracle/backup/control&nbs...