08 2019 档案

摘要:安装12.2.0.1单实例 1. 系统配置 系统版本 cat /etc/redhat-release #CentOS Linux release 7.4.1708 (Core) cat /etc/issue Oracle RPM安装 #安装12C需要linux7安装的rpm bc binutils- 阅读全文
posted @ 2019-08-28 16:53 绿茶有点甜 阅读(312) 评论(0) 推荐(0) 编辑
摘要:技术群里小伙伴,沟通说一条经常查询的SQL缓慢,单表SQL一个列作为条件,列是int数值类型,索引类型默认创建。 2 - access(TO_CHAR("OBJECT_ID") LIKE '2559%') filter(TO_CHAR("OBJECT_ID") LIKE '2559%') | Id 阅读全文
posted @ 2019-08-21 10:28 绿茶有点甜 阅读(1617) 评论(0) 推荐(0) 编辑
摘要:实际查询中,经常存在多个tables,需要统一查询比如segments总大小或者索引或者主键等,我们得到大量的tables表名称,但是SQL查询,每次需要手工添加双引号,去除空格很麻烦。 可以通过文本编辑器,列模式,删除不必要的信息后。 阅读全文
posted @ 2019-08-21 08:38 绿茶有点甜 阅读(784) 评论(0) 推荐(0) 编辑
摘要:How to force a log switch (文档 ID 2320185.1)There are cases when your DB activity is not significant so the number of redo log switches is very small o 阅读全文
posted @ 2019-08-19 16:30 绿茶有点甜 阅读(618) 评论(0) 推荐(0) 编辑
摘要:业务需求,对日志表历史数据进行清理。历史表均很大,使用delete 操作删除90天前的数据。 第一部分:快速删除数据 | Id | Operation | | 0 | DELETE STATEMENT | | 1 | PX COORDINATOR | | 2 | PX SEND QC (RANDOM 阅读全文
posted @ 2019-08-14 08:32 绿茶有点甜 阅读(1414) 评论(0) 推荐(0) 编辑
摘要:由于操作系统空间不足,客户需要清理删除临时表空间,测试环境模拟场景进行操作。 一、前期环境准备 SQL> select * from dba_objects,dba_segments order by 1,2,3,4,5,6 select file_name,file_id,tablespace_n 阅读全文
posted @ 2019-08-13 22:57 绿茶有点甜 阅读(2967) 评论(0) 推荐(0) 编辑
摘要:问题: 客户环境12.2 dg备库环境,定时清理归档脚本并未正常清理归档日志文件。 观察日志可以发现存在如下信息 RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process 阅读全文
posted @ 2019-08-07 08:51 绿茶有点甜 阅读(1847) 评论(0) 推荐(0) 编辑
摘要:模拟开发人员需求,可以杀死其它阻塞自己的会话1.能有查询阻塞会话确认的权限SQL> grant select on v_$session to testa;SQL> grant select on v_$sql to testa;SQL> select sid,serial#,username,sq 阅读全文
posted @ 2019-08-04 09:09 绿茶有点甜 阅读(388) 评论(0) 推荐(0) 编辑