- 博客(37)
- 资源 (35)
- 收藏
- 关注
转载 oracle nologging用法
http://www.cnblogs.com/zmlctt/p/3747443.html一、oracle日志模式分为(logging,force logging,nologging)默认情况是logging,就是会记录到redo日志中,force logging是强制记录日志,nologging是尽量减少日志。FORCE LOGGING可以在数据库级别、表空间级别进行设定、而L
2016-07-12 14:46:04 3285
原创 使用SQL Profile稳定SQL语句的执行计划
SQL> @C:\Users\kzvz914\Desktop\AFG\coe_xfr_sql_profile.SQLParameter 1:SQL_ID (required)Enter value for 1: bbp1a0d9xkaggPLAN_HASH_VALUE AVG_ET_SECS--------------- ----------- 3403
2016-06-07 17:47:32 721
转载 Oracle Optimizer Cardinality Feedback
Cardinality Feedbackhttps://blogs.oracle.com/optimizer/entry/cardinality_feedbackCardinality feedback was introduced in Oracle Database 11gR2. The purpose of this feature is to automatically i
2016-06-06 13:58:43 417
转载 外键是否采用看业务应用场景,以及开发成本
外键是否采用看业务应用场景,以及开发成本的,大致列下什么时候适合,什么时候不适合使用:1. 互联网行业应用不推荐使用外键: 用户量大,并发度高,为此数据库服务器很容易成为性能瓶颈,尤其受IO能力限制,且不能轻易地水平扩展;若是把数据一致性的控制放到事务中,也即让应用服务器承担此部分的压力,而引用服务器一般都是可以做到轻松地水平的伸缩;2.传统行业1>.软件应用的人数有限
2016-03-31 16:36:47 648
转载 pl/sql存储过程返回record类型和集合类型的结果,Java里如何调用呢
pl/sql存储过程返回record类型和集合类型的结果,Java里如何调用呢比如这样的数据类型定义: CREATE OR REPLACE PACKAGE SmsService IS Type Message is Record( error_code varchar2, data varchar2, mes
2016-03-31 15:58:29 5977
转载 DRM 简介
首先,我们对和DRM 相关的一些概念进行介绍。Buffer: 对于RAC 数据库,当一个数据块被读入到buffer cache后,我们就称其为buffer , cache fusion 会将这个buffer作为resource来管理。Master:在RAC 数据库的世界里,每一个resource都会有一个master实例,这个master实例会在shared pool
2016-03-29 14:18:04 472
原创 补全或生成一个一天24小时的数据
SELECT YR, MM FROM ( SELECT TO_NUMBER (TO_CHAR (SYSDATE, 'yyyy')) + LEVEL - 1 YR FROM DUAL CONNECT BY LEVEL ( SELECT LEVEL MM FROM DUAL C
2016-03-28 14:21:42 1561
转载 ORACLE AWR报告之 log file sync等待事件优化的总结【转自ITPUB】
来自白大师(白鳝)对log file sync等待事件优化的总结,供各位puber们学习参考:一、 log file sync平均等待事件时间超过7ms,如果等待时间过长,说明log write每次写入的时间过长,如果能够优化redo日志文件存储,使之存放在更快的磁盘上,就可以减少这个等待事件的单次等待时间。(RAID 5--> RAID 10) 当无法通过优化redo日
2016-03-02 18:19:16 9045
转载 查看Oracle的redo日志切换频率
两个sql,原理是一样的,第二个用到了统计函数。 时间单位:分钟 select * from v$log where a.THREAD# = 1 select b.SEQUENCE#, b.FIRST_TIME, a.SEQUENCE#, a.FIRST_TIME, round(((a.FIRST_TIME-b.FIRST_TIME)*2
2016-03-02 18:17:10 7095
转载 Oracle redo log 大小及组数的设置(在线修改日志组数目及组成员个数)
Oracle redo log 大小及组数的设置(在线修改日志组数目及组成员个数) 1.查看当前系统现有的redo log状况(组数/大小/名称/状态)desc">SYS@ORCL>desc v$log Name Null? Type ----------------------------
2016-03-02 18:15:45 3884
转载 Troubleshooting: 'Log file sync' Waits
http://sateeshv-dbainfo.blogspot.co.uk/2015/08/troubleshooting-log-file-sync-waits.html?_sm_au_=ikVPSjL75FDqsKMsTROUBLESHOOTING STEPSWhat is a 'log file sync' wait?When a user session co
2016-03-02 18:12:15 608
转载 Refreshing Materialized Views
https://docs.oracle.com/database/121/DWHSG/refresh.htm#DWHSG8358This chapter discusses how to refresh materialized views, which is a key element in maintaining good performance and consistent
2016-03-01 14:46:01 640
原创 Test of MV FAST refresh with Sum and group
DROPMATERIALIZEDVIEWLOGON SCO122.data_level_1b_supplier;--create materialized view log on SCO122.data_level_1b_supplier tablespace SCO122_DATA with primary key including new
2016-03-01 14:14:44 319
转载 Oracle 物化视图快速刷新限制说明
http://blog.itpub.net/22990797/viewspace-752142/在老杨的Blog 看到一些列的说明,整理并转载过来,原文链接如下: 物化视图的快速刷新(一)http://yangtingkun.itpub.net/post/468/14245 物化视图的快速刷新(二)http://yangtingk
2016-02-29 11:53:50 2051
转载 oracle物化视图日志结构
物化视图的快速刷新要求基本必须建立物化视图日志,这篇文章简单描述一下物化视图日志中各个字段的含义和用途。 物化视图日志的名称为MLOG$_后面跟基表的名称,如果表名的长度超过20位,则只取前20位,当截短后出现名称重复时,Oracle会自动在物化视图日志名称后面加上数字作为序号。 物化视图日志在建立时有多种选项:可以指定为ROWID、PRIMARY KE
2016-02-29 11:44:04 1224
转载 定位物化视图快速刷新失败的原因
物化视图的快速刷新采用了增量的机制,在刷新时,只针对基表上发生变化的数据进行刷新。因此快速刷新是物化视图刷新方式的首选。但是快速刷新具有较多的约束,而且对于采用ON COMMIT模式进行快速刷新的物化视图更是如此。对于包含聚集和包含连接的物化视图的快速刷新机制并不相同,而且对于多层嵌套的物化视图的快速刷新更是有额外的要求。如此多的限制一般很难记全,当建立物化视图失败时,Oracle
2016-02-26 18:41:04 1807
转载 Oracle物化视图创建全过程using dblink
我们如果遇到需要从其它系统的数据库中取数据进行统计分析的问题,可疑选择使用ORACLE的ODI工具进行抽数,但是对方提供的数据库用户下没有任何对象,只是有查询所有表的权限,因此无法做数据反向。于是决定使用物化视图,把对方数据库中的数据拿过来,虽然数据量比较大,但是每月只拿一次,而且如果设置成增量更新,也不会太慢。现在记录下物化视图的创建过程(以一张表为例)。一、准备条件以及备注
2016-02-26 17:41:10 2102
转载 快速刷新物化视图有with rowid和with primary key两种,创建时该如何选择?
本文主要谈及以下两种物化视图的应用:1、用于分布式环境里的物化视图,例如master table在A库,B库通过dblink创建了一个指向A库taba的物化视图mvb:create materialized view mvb ... as select * fromtaba@link_a,连接B库的应用不必通过link_a远程访问A库上的taba表,只需访问本地的mvb
2016-02-26 16:57:10 3261
转载 oracle中使用物化视图实现表的同步
表的同步可以使用物化视图来实现,可以是同库的也可以是不同数据库之间进行数据同步,建议在同库的数据同步可以使用实时的同步,如果使用db link建议使用增量的刷新方式,防止dblink导致原库的性能急剧下降。主要步骤:1.在原表上建立物化视图日志2.在创建目标表3.创建与目标表同名的物化视图日志 1.创建原表和物化视图日志SQL> conn bre
2016-02-26 16:39:51 881
转载 Oracle之物化视图
近期根据项目业务需要对oracle的物化视图有所接触,在网上搜寻关于这方面的资料,便于提高,整理内容如下:物化视图是一种特殊的物理表,“物化”(Materialized)视图是相对普通视图而言的。普通视图是虚拟表,应用的局限性大,任何对视图的查询,Oracle都实际上转换为视图SQL语句的查询。这样对整体查询性能的提高,并没有实质上的好处。1、物化视图的类型:ON DEMAND、ON CO
2016-02-26 15:51:25 241
转载 SQL Plan Management
http://daliborm.blogspot.co.uk/2011/04/sql-plan-management.html?_sm_au_=ikVRsWF6StTJv16POverviewGoal of this page is to help teams stabilize their queries execution plan. It contains scrip
2016-02-22 14:26:00 437
转载 Understanding how Informatica and Oracle interact: an Oracle perspective.
Monitoring Informatica from Oracle is a reasonably straight forward exercise if you know where to look and what to look for. I’ll walk through a typical scenario I encounter on a regular basis at
2016-01-22 11:19:10 327
转载 informatica 调优经典稿件
转自:http://informatica.iblog.com/post/3070/384539大多我们运用的工具都会提到一个共同的问题------性能调优。什么是性能调优,每个人都有自己的一个定义,我比较喜欢的一个定义就是:性能调优就是尽力去消除系统中存在的性能瓶颈。这是一个循环往复的过程,首先找到性能瓶颈,然后采取各种方法尽力消除它,然后寻找下一个性能瓶颈,然后消除它,循环往复,直
2016-01-22 11:15:01 530
原创 Scripts of Creating_Partitions_Steps
1) Take the back of original transform table TM_POSITION_HCC_ASSIGNMENT in transform schema.Query :create table tm_position_hcc_assign_bkp asselect * from tm_position_hcc_assignment;2) Dro
2015-12-11 15:17:18 275
转载 Write fast and efficient PLSQL - DBMS_PROFILER
http://www.oracleflash.com/44/Write-fast-and-efficient-PLSQL---DBMS_PROFILER.htmlBefore DBMS_PROFILER was introduced tuning long PL/SQL programs was a great pain. Tuning PL/SQL was done by SQL T
2015-11-24 15:12:29 448
转载 Problem - Slow PL/SQL procedure
http://www.oraclerecipes.com/tuning/using-dbms-profiler-to-find-bottleneck-in-a-procedure/When you work with Oracle you'll probably have a database bigger than 1MB and with lots of data comes lo
2015-11-24 14:40:39 501
转载 DBMS_PROFILER Package
http://www.dba-oracle.com/plsql/t_plsql_profiler.htmThe following Tip is from the outstanding book "Oracle PL/SQL Tuning: Expert Secrets for High Performance Programming" by Dr. Tim Hall, Orac
2015-11-19 17:42:29 439
转载 Toad for Oracle 12.1 – Guide to Using Toad for Oracle
This feature requires that certain objects exist on the server before you can use it. If they do not already exist, Toad prompts you to create them when you click .You can use the DBMS Profiler
2015-11-18 17:19:36 756
原创 sqlnet.ora configuration for toad
sqlnet.ora# This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be abl
2015-11-18 12:17:34 421
原创 sqlnet.ora needs to add some parameters for toad
sqlnet.ora# This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be
2015-11-18 11:53:47 393
转载 The Best Way to Save/Import Toad Settings
https://www.toadworld.com/products/toad-for-oracle/w/toad_for_oracle_wiki/186.the-best-way-to-saveimport-toad-settingsOn the Toad list, a poster asked what is the best way to save or import
2015-11-17 18:07:59 506
转载 Retrieve Oracle password from Toad for Oracle
http://damir-vadas.blogspot.co.uk/2013/06/retrive-oracle-password-from-toad-for.html?_sm_au_=i2VrD5qDJHHtH50LOne of the oldest feature Dell Toad has is saving login passwords. This is accomplish
2015-11-17 18:06:44 1042
原创 Toad Oracle tuning advisor time out then change to use package DBMS_SQLTUNE
1. Advisor tuning results belowGENERAL INFORMATION SECTION-------------------------------------------------------------------------------Tuning Task Name : CNSGO7INFO281642270.6094852083Tuni
2015-09-28 17:05:20 649
原创 How to do a deep SQL tuning
In order to see why the report is slow in BO, we need to identify a good run and a bad run, and trace them and see if they are using a different plan. See the action plan below: 1/ try to run Sql
2015-09-25 17:07:20 334
出现Exception in threadmain java.lang.NoClassDefFoundError的各种可能情况.doc
2008-12-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人