自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(36)
  • 资源 (3)
  • 收藏
  • 关注

原创 11g OCM考试练习

一、考试准备 1. 考试中有两个机器,Management Server(Even)和Database Server(Odd),大部分考试在database server上进行,management server上做rman catalog 和 dg的physical standby,口令考试 都有说明. 2.注意执行root操作的需要sudo,监考老师一般拒绝...

2019-10-09 23:23:58 239

原创 关于11g OCM升级考试

我的11gOCM升级考试一波三折,终于在前几天收到通过的邮件,个人觉得考试并不很难,升级考主要考11g新特性,考试题目基本上按照考纲来出的,所以对照考纲练习即可,关键是理解透这些新特性,Database, RMAN, EM and Network Configuration 和 Data Guard没有难度,Data and Data Warehouse Management 和Performan

2012-03-09 10:57:40 2582

原创 Use Direct NFS for Data Files

With Oracle Database 11g ,instead of using the operating system kernel NFS client, you can configure Oracle Database to access NFS V3 servers directly using an Oracle internal Direct NFS client.以下

2011-12-20 09:33:42 928

原创 oracle基于函数的索引分析

<br />顾名思义,基于函数的索引就把要做索引的字段的值先用function计算好,然后对计算好后的值作为索引的值再创建索引,广泛的用在很多场合,比如某个字段的值查询时大小写不敏感等可用此类型索引!当我们创建基于函数的索引时,oracle究竟做了哪些处理我们值得研究一下:1.首先我们创建测试表:create table test_fi as select * from all_objects; select obj# from obj$ where name='TEST_FI';sys@ORCL> s

2011-02-09 17:15:00 559

转载 主要的动态视图对应的基表

动态视图                         基础FIXED TABLE ------------------------     ------------------------- GV$ACCESS                    x$ksuses,x$kglob,x$kgldp,x$kgllk                                GV$ACTIVE_INSTANCES          x$ksimsi                       

2010-12-10 09:14:00 800

原创 oracle的truncate table的操作

oracle对于truncate table的操作有着自己的独特做法,truncate一个表几十条数据和千万条数据所用的时间都差不多,说穿了oracle对这类操作只做数据字典的更新,并不对实际数据操作。sys@ORCL>  create table big_table as select * from all_objects;Table created.sys@ORCL> insert into big_table select * from big_table;68480 rows created.sys

2010-11-11 17:28:00 6365

原创 oracle数据文件的收缩

<br />一般来讲,oracle的数据文件只扩展,不会因为tablespace上的表数据删除而自动收缩数据文件,释放磁盘空间。昨天在asktom看了一篇文章,很有意思,贴过来看看。<br />The only thing that'll make a file "shrink" is to alter the database and shrink the datafile - datafiles will NOT shrink on their own due to "offline/online"

2010-11-10 12:16:00 1314

原创 控制文件扩展问题

<br />今天查看数据库日志,出现下面的日志:Expanded controlfile section 11 from 28 to 56 recordsRequested to grow by 28 records; added 1 blocks of records于是估计查找跟control file有关的视图:select table_name from dict where table_name like upper('%control%');TABLE_NAME-----------------

2010-10-13 16:51:00 1338

原创 oracle绑定变量与非绑定变量的性能对比

<br />create table t ( x int );create or replace procedure proc1asbeginfor i in 1 .. 10000loopexecute immediate'insert into t values ( :x )' using i;end loop;end; /create or replace procedure proc2asbeginfor i in 1 .. 10000loopexecute immediate'insert into

2010-09-30 12:13:00 813 1

翻译 Tom大师性能分析常用包

<br />create or replace view statsas select 'STAT...' || a.name name, b.valuefrom v$statname a, v$mystat bwhere a.statistic# = b.statistic#union allselect 'LATCH.' || name, getsfrom v$latchunion allselect 'STAT...Elapsed Time', hsecs from v$timer;create gl

2010-09-30 12:12:00 1105 1

原创 Tom大师关于oracle优化的经典法则

• You should do it in a single SQL statement if at all possible. And believe it or not, it is almost always possible. • If you can’t do it in a single SQL Statement, do it in PL/SQL—as little PL/SQL as possible! Follow the saying that goes “more co

2010-09-25 13:35:00 779

原创 修改sqlplus的环境,让操作更方便

vi $ORACLE_HOME/sqlplus/admin/glogin.sql define _editor=vi set serveroutput on size 1000000 set trimspool on set long 5000 set linesize 100 set pagesize 9999 column plan_plus_exp format a80 column global_name new_value gname set te

2010-09-25 13:34:00 489

原创 中秋节--收到OCM考试通过结果

<br />Dear  XXXX:<br />Congratulations! on the successful completion of the Oracle DBA 10g Certified Master practicum.<br />You are now a member of an elite group of Oracle professionals.  You will receive your Oracle DBA 10g Certified Master fulfillment k

2010-09-22 18:39:00 1878 2

原创 ocm考试结束后感觉很空虚

<br />ocm考试结束后,突然发现好像没有什么事干了,感到很空虚。索性晚上早点睡觉,每天不到十点就休息了,修养一阵子再说。考完试不等于学习终止,意味着有要寻找新的目标来做,同时让前面所学的再一次融入到平时的工作中提高自己,否则无法真正的提高。所有努力的一切无谓也就让自己的生活过得滋润一点。过几天把自己ocm的知识点总结一下。

2010-09-11 15:41:00 1084

原创 8.30,8.31 ocm考试结束

<br />2010.8.30-31这两终于考完了ocm考试,感觉很疲倦,两天几乎没有咋么睡觉,并不是熬夜复习或者担心引起的。在上海ou考试的,考试机器环境不错,都是8G内存,硬盘300G足够用。总体感觉考得不错,有点瑕疵的是最后一场dg,我没有做switchover。其他7场考试都考得还好,做完题目至少还剩30-40分钟时间用来检查。第一天考试难度很小,如果没有意外的话,能拿90%以上的分。第二天早上数据管理和数据库性能管理有点小难度,其实主要时间花在阅读题目上,我还好,阅读能力还不错,主要得益于平时一直

2010-09-01 08:35:00 1407

原创 Create a secure application role

--创建应用角色 create role hr_read identified using hr.hr_read_check; --给角色赋权 grant select on scott.emp to hr_read; --创建角色认证过程(HR) CREATE OR REPLACE PROCEDURE hr.hr_read_check AUTHID CURRENT_USER IS BEGIN DBMS_SESSION.SET_ROLE('HR_READ') ;

2010-08-05 13:39:00 1370

原创 转:Oracle Outline的使用及注意事项

概述 Oracle Outline是用来保持SQL执行计划(execution plan)的一个工具。我们可以通过outline工具防止SQL执行计划在数据库环境变更(如统计信息,部分参数等)而引起变化。 Outline的主要使用在以下情况: 1. 为避免在升级后某些sql出现严重性能下降而且在短时间内不能优化的情况, 我们可以使用outline的功能将原生产库中的sql执行计划实施在新的数据库上。 2. 为避免SQL的执行计划在统计数据不准确的情况(如未能及时收集表

2010-07-09 23:07:00 5115

原创 Resource Manager plan

由于ocm需要考试资源管理计划,,所以简单做个试验,实验步骤如下,主要用了几个dbms包,关键是把资源管理计划几个概念搞清楚,其他的只是调用几个包创建罢了: create test users:            create user oltp identified by oracle;         create user olap identified by oracle;     create consumer group:         begin         

2010-06-29 11:42:00 1472

原创 oracle datapump

oracle提供一个很好用的数据unloading和loading方法:oracle_datapump Access Driver, 废话不多说,方法简单,例子如下: 1.创建工作目录对象: create directory admin_dir as '/home/oracle'; 2.创建要unloading的表: create table my_objects as select * from all_objects; 3.创建unloading外部表: create table my_ob

2010-06-10 23:04:00 505

原创 建立快速刷新的物化视图(materialized view)

1.建表 create table t(     code    varchar(10),     name    varchar(20),     id        varchar(40) primary key); 2.插入数据: insert into t(code, name, id) values('001', 'test1', '001'); insert into t(code, name, id) values('002', 'test2', '002')

2010-06-10 22:43:00 1092

原创 有关 alter tablespace begin backup

在Oracle备份中,我们可以使用alter tablespace ... begin backup将表空间置于联机备份模式,然后用操作系统命令进行数据文件的物理拷贝,达到备份的目的,这个过程中数据文件还是照样联机,并进行正常的数据插入,但会导致比平常更多的REDO记录的产生 产生较多的REDO记录是由热备引起的,因为在热备过程中,我们采用copy/ocopy命令,这个是属于操作系统的命令,他

2010-05-29 12:48:00 2977

原创 转:Oracle 一致性读的原理

      在Oracle数据库中,undo主要有三大作用:提供一致性读(Consistent Read)、回滚事务(Rollback Transaction)以及实例恢复(Instance Recovery)。       一致性读是相对于脏读(Dirty Read)而言的。假设某个表T中有10000条记录,获取所有记录需要15分钟时间。当前时间为9点整,某用户A发出一条查询语句:select

2010-04-21 16:11:00 697

原创 [转]推荐:深入研究ITL阻塞与ITL死锁

1、什么是ITL ITL(Interested Transaction List)是Oracle数据块内部的一个组成部分,用来记录该块所有发生的事务,一个itl可以看作是一个记录,在一个时间,可以记录一个事务(包括提交或者未提交事务)。当然,如果这个事务已经提交,那么这个itl的位置就可以被反复使用了,因为itl类似记录,所以,有的时候也叫itl槽位。 如果一个事务一直没有提交,那么,

2010-04-20 16:44:00 1413

原创 Oracle wait problems and potential solutions

Wait Problem Potential Fix Sequential Read Indicates many index reads—tune the code (especially joins) Scatt

2010-04-20 09:38:00 344

原创 Oracle waits event:DB File Sequential Read

The DB File Sequential Read wait event generally indicates a single block read (an index read, for example). A large number could indicate poor joining orders of tables or unselective indexing. T

2010-04-19 15:59:00 465

原创 Oracle Waits event:DB File Scattered Read

The DB File Scattered Read wait event generally indicates waits related to full table scans or fast full index scans. As full table scans are pulled into memory, they are scattered throughout the

2010-04-19 15:58:00 359

原创 Identifying Locking Issues

Identifying locking issues is instrumental in locating the user who is waiting for someone or something else. You can use this strategy to identify users who are currently being locked in the system.

2010-04-09 14:41:00 342

原创 RHCE考试通过

今天早上收到RHCE考试通过的邮件,看了一下考的分数,觉得很不满意,跟我预料的出入很大,考完的时候我觉得自己能考满分!总的感觉现在RHCE考试不难,考的都是基本东西,但有一点就是考试的题目中的每个字都一个不落的看清楚,否则就要吃亏。下面就收到的RHCE通过的邮件: --------------------------------------- Dear XXXX XXXX:The result

2010-04-08 09:25:00 1803 1

原创 转:ORACLE查找并解除死锁进程

1、查找死锁进程select /*+RULE*/v$lock.sid, decode(v$lock.type, MR, Media Recovery, RT,Redo Thread, UN,User Name, TX, Transaction, TM, DML, UL, PL/S

2010-04-02 10:20:00 458

原创 Leave Those Debugging Commands Alone!

During the development of nearly any PL/SQL module it inevitably becomes littered with a plethora of debugging commands. More important than the debugging commands themselves is the strategic loc

2010-03-29 17:33:00 313

原创 Use Pipelined Table Functions to Build Complex Result Sets

CREATE OR REPLACE PACKAGE BODY ddl_extract_pkg is     FUNCTION scrub_raw_ddl (p_status_c IN varchar2,                             p_cons_type_c IN varchar2,                             p_ddl_

2010-03-29 17:28:00 306

转载 Oracle OCM 认证指南

OCM考试全称为Oracle Certified Master(Oracle认证大师),是在OCA(Oracle认证专员Oracle Certified Associate)、OCP(Oracle认证专家Oracle Certified Professional)之后更高一级的Oracle技术认证,也是Oracle技术认证最高的一个级别。 考试是两天的时间,全

2010-03-29 16:34:00 2004 1

原创 现在上幼儿园这么难

女儿2周岁半了,要考虑到下半年上小托班了,在我的概念中上幼园还不是随到随上,况且家周围好几个幼儿园。可前几天老婆准备报名的时候,却发觉已经报晚了,家周围的小托班下半年报名名额全部满了。回来跟我讲了,我吃了一惊,现在幼儿园都搞成这样子了,何况上小学、中学......什么世道,到处都是疯狂,到处都是争抢。哎,哎!

2010-03-25 08:25:00 819

原创 Getting Contiguous Space Currently in the Shared Pool(Oracle10g Tuning Technology)

  Why does the shared pool return errors when an object is loaded? The answer is that a largeenough piece of the shared pool is not available to fit the piece of code. We saw in the lastsectio

2010-03-24 16:33:00 538

转载 PRAGMA EXCEPTION_INIT的用法

 PRAGMA EXCEPTION_INIT的用法PRAGMA EXCEPTION_INIT的用法如果要处理未命名的内部异常,必须使用OTHERS异常处理器或PRAGMA EXCEPTION_INIT 。PRAGMA由编译器控制,或者是对于编译器的注释。PRAGMA在编译时处理,而不是在运行时处理。EXCEPTION_INIT告诉编译器将异常名与ORACLE错误码结合起来,这样可以

2010-03-23 16:24:00 10994

原创 RHCE考点归纳

 RHCE考试:  1 判定给出root用户密码是否可用(一组复杂的字母加数字,一定要安要求输入否则考试后有可能主机收不到你的配置),  不可用进入闭眼第一斧单用户模式重起进入Grub菜单后,press a 修改内核参数为 1, 再修改密码,  顺便改为运行模式5;重起 2 第二斧,根据要求静态配置网络参数,可用图形化工具,system--admin--network完成配

2010-03-23 15:28:00 4497

Thomas.Kyte-Expert_Oracle_Database_Architecture

Oracle大师Thomas三本书之一,凡学oracle之人必读之书

2010-03-25

oracle10g ocp题库

oracle10g OCP考试题库1Z0-43,题库覆盖率100%,通过率高

2009-07-24

oracle10g OCP考试题集

Oracle10g OCP考试最新题库,附加有答案,通过率比较高

2009-07-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除