自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

程序人生

在程序的天空中自由翱翔

  • 博客(106)
  • 收藏
  • 关注

翻译 Oracle队列类型

队列队列(enqueue)是一种共享内存结构,它总是和事物和会话相关,用于串行化地访问数据库资源。 队列类型Oracle中有很多类型的队列,下面是常用的一些类型:CF 队列: CF队列是控制文件队列,当并行的访问控制文件时会产生CF队列。当有读取控制文件的任何活动时,都可以看到CF队列,例如归档重做日志、重做日志切换和begin backup命令。CI 队列: CI队列

2009-06-26 15:59:00 2035

翻译 面向对象设计原则七 - 组合优先于继承

组合通过创建一个由其他对象组合的对象来获得新功能的重用方法新功能的获得是通过调用组合对象的功能实现的有时又叫聚合例如: 一个对象拥有或者对另外一个对象负责并且两个对象有相同的生命周期。(GOF)一个对象包含另一个对象集合被包含对象对其他对象是不可见的并且只能从包含它的对象中访问的特殊组合形式组合的优缺点优点 被包含对象通过包含他们

2009-06-26 09:31:00 7972 6

翻译 面向对象设计原则六 - 针对接口编程,而不是针对实现编程

接口接口是一个对象中可以被另一个对象调用的一组方法一个对象可以有多个接口类型是一个对象的特殊接口不同的对象可以有相同的类型,一个对象可以有多种不同的类型一个对象只有通过它的接口才能被其他对象知晓接口是可插拔的关键实现继承和接口继承实现继承(类继承)------ 一个对象的实现定义在另一个对象的实现的基础上接口继承 ------ 描述了一个对象什么时候

2009-06-26 08:53:00 1656 1

翻译 面向对象的设计原则五 - 依赖倒转原则

动机在一个应用程序中,我们有一些实现了基础的、主要的操作的底层类和一些封装了复杂逻辑的上层类。实现这种结构的很自然地方式就是,先编写底层类,完成后再编写复杂的上层类。因为上层类是由其他东西定义的,所以这看起来是一种很合理的方式。但是这不是一个灵活的设计,如果我们需要替换一个底层类时会发生什么? 让我们以经典的拷贝程序为例,它从键盘读取一些字符,然后把他们输出到打印设备上。包含该逻辑的上

2009-06-25 23:10:00 1032

翻译 面向对象的设计原则四 - 里氏代换原则

动机当我们设计程序模块时,我们会创建一些类层次结构,然后我们通过扩展一些类来创建它们的子类。我们必须确保子类只是扩展而没有替换父类的功能,否则当我们在已有程序模块中使用它们时将会产生不可预料的结果。 里氏代换原则表明当一个程序模块使用基类时,基类的引用可以被子类替换而不影响模块的功能。 里氏代换原则基类完全能够被子类替代而不影响模块的功能。 实例 对于多

2009-06-25 22:06:00 815

翻译 面向对象的设计原则三 - 接口隔离原则

动机当我们设计应用程序的时候,如果一个模块包含多个子模块,那么我们应该小心对该模块做出抽象。设想该模块由一个类实现,我们可以把系统抽象成一个接口。但是当我们想要添加一个新的模块扩展程序时,如果要添加的模块只包含原系统中的一些子模块,那么就会强迫我们实现接口中的所有方法,并且还要编写一些哑方法。这样的接口被称为胖接口或者叫被污染的接口,使用这样的接口将会给系统引入一些不正确的行为。 接口

2009-06-25 12:49:00 853

转载 PCTFREE and PCTUSED Tips

 Mike Ault Tips - August 5th, 2004 PCTFREE and PCTUSEDThe PCTFREE and PCTUSED parameters tell Oracle when to link and unlink a block from the freelist chain.  The following discussion only app

2009-06-25 11:04:00 565

转载 JAVA - How to Write Doc Comments

This document describes the style guide, tag and image conventions we use in documentation comments for Java programs written at Java Software, Sun Microsystems. It does not rehash related material co

2009-06-25 10:23:00 4952

转载 Useful scripts for DBA

These work good on 9i .free.sql-amount of freespace in a tablespaceselect tablespace_name, round(sum(bytes)/(1024*1024),0) MB from dba_free_space group by tablespace_name/-----------------------------

2009-06-25 09:20:00 534

转载 Oracle Security Useful Scripts for Auditing

Oracle Security Tips by Burleson ConsultingThis is an excerpt from the bestselling book "Oracle Privacy Security Auditing", a complete Oracle security reference with working Oracle security scripts.

2009-06-25 09:19:00 613

转载 Oracle Using the Undo and Redo Logfile Size Advisors

 Oracle Tips by Burleson ConsultingThis is an excerpt from "Oracle 10g New Features for Administrators" by Ahmed Baraka.Undo AdvisorThe Undo Advisor helps you perform the following tasks:

2009-06-25 09:11:00 625

转载 Rolling Back Layers of Automatic Undo Management

By Steve CallanProbably the number one database administration headache in pre-9i versions of Oracle concerns the "ORA-01555 snapshot too old" error. Lets move forward to Oracle 10g and configure

2009-06-25 09:02:00 465

转载 ORA-01555 Snapshot Too Old

From the docs we see that the ORA-01555 error relates to insufficient undo storage:ORA-01555:snapshot too old: rollback segment number string with name "string" too smallCaus

2009-06-25 09:01:00 1490

转载 Managing Tables: Logging versus Nologging

When creating large tables (large referring to the amount of data), you may want to consider creating them with the nologging option. If the data is of a transient nature, that is, the table is used f

2009-06-25 08:54:00 534

翻译 面向对象的设计原则二-单一职责原则

动机在本文中职责是指引起变化的原因。该原则表明,如果你有多个原因去改变一个类,那么应该把这些引起变化的原因分离开,把这个类分成多个类,每个类只负责处理一种改变。当你做出某种改变时,只需要修改负责处理该改变的类。当我们去改变一个具有多个职责的类时可能会影响该类的其他功能。 单一职责原则一个类应该只受一种变化的影响。 单一职责原则简单而直观,但是在实际实现中可能是很困难的。

2009-06-24 16:32:00 660

转载 Recovery Made Simple: Oracle Flashback Query

Submitted by Irfan Haq on Mon, 2004-10-18 00:00 RDBMS Server Sometimes it is a rouge query, sometimes a simple data clean up effort by the users, whatever may the cause be, inadvertent d

2009-06-24 14:52:00 1028

原创 翻译是个苦差事

只是简单的翻译了几篇文章,就充分体会到了翻译之苦,对那些能够把计算机英文原著翻译得很好的译者不禁肃然起敬。要想把一本书翻译好确实需要下一番苦功夫,如果你随便翻译了一篇文章,大家可能还是可以勉强看的下去。但是如果你把一本书翻译的很烂,可能就会毒害一群热爱技术的读者。既然下决心翻译一本书,还是要尽最大努力把它翻译好。不然的话,一方面可能会坏了原作者的名声,一般原著都是写的比较好的,甚至是一些经典之作,

2009-06-24 13:34:00 856

翻译 Oracle Flash Back -------闪回到一个合适的时间

使用一条简单的SQL语句,把表或者数据库恢复到过去的某个时间点。 新年的圣诞夜前夕,顶点银行的DBA约翰正在和他的朋友们一起狂欢,为新年的到来倒计时。正当午夜的时钟敲响,大家一起欢呼时,他的手机忽然响了起来。银行数据中心里,年终计帐程序正忙于计算利息,但是发生了一些问题,所有的利息都被计算错了。幸运的是,开发团队找到了问题所在并且开发了一个应急方案,但是这个方案不能撤消已经造成的损害。运算

2009-06-24 10:21:00 4267

翻译 面向对象的设计原则一 开放-关闭原则

动机一个设计良好的应用程序应该充分考虑到开发和维护阶段需求的频繁变化,通常情况下,添加一个新的功能需要做出很多修改,我们应该使对已有代码的修改最小化,因为他们已经经过了测试。对现有代码做出修改将会以一种不可预料的方式影响它们的已有功能。 开放-关闭原则 (以下简称开闭原则)开-闭原则: 一个软件实体应该对扩展开发,对修改关闭。  开闭原则是说我们应该努力设计不需要修改的

2009-06-23 22:27:00 1041 1

原创 Oracle中的Redo和Undo简单介绍

Redo(重做)除了用于保存数据的数据文件外,每个oracle数据库都会有一组(两个或多个)重做日志文件。重做日志用于保存对数据的所有修改,包括提交的和未提交的修改。在把对数据的修改写到数据文件之前,所有的修改都被写到重做日志中。 重做日志的主要目的是在实例失败或者介质损坏时,帮助把数据库恢复到一个合理的状态。例如:当进行实例恢复时,重做日志可以重做那些已经提交但是还没有把修改写入到数

2009-06-23 17:48:00 909

翻译 怎样编写Java相等性方法

摘要:本文介绍了一种覆写equals方法的技术,即使在子类扩展一个可以实例化的类并且增加新的字段的情况下,该技术依然能够遵循equals方法的接口约定。 在Effective Java的第七条中,Josh Bloch描述了在面向对象的语言中,当扩展一个类时,要想保持相等性关系是相当困难的。Bloch写到:在不放弃面向对象的抽象性的好处的情况下,当扩展一个可以实例化的类并且增加新的字

2009-06-22 21:12:00 841

原创 How to Write an Equality Method in Java

by Martin Odersky, Lex Spoon, and Bill VennersJune 1, 2009 SummaryThis article describes a technique for overriding the equals method that preserves the contract of equals

2009-06-22 18:02:00 500

转载 Oracle Locking Survival Guide

  Oracle Locking Survival GuideOverviewIn multi-user systems, many users may update the same information at the same time. Locking allows only one user to update a part

2009-06-22 09:42:00 890

转载 Locks in Oracle

create table lck (a number, b number);insert into lck values (1,2);insert into lck values (2,4);insert into lck values (3,6);insert into lck values (4,8);insert into lck values (5,3);i

2009-06-22 09:08:00 520

转载 The merge statement in oracle 9i

This article introduces the new MERGE SQL command (sometimes referred to as "UPSERT"). MERGE is a DML command that enables us to optionally update or insert data into a target table, depending on whet

2009-06-21 17:51:00 892

原创 Optimistic Locking with Concurrency in Oracle

As Database Administrators are required to scale their databases to handle the challenges of Web-basedaccess, B2B and E-commerce, faster hardware and more resources may only be a part of the solution.

2009-06-21 17:33:00 988

转载 Statistical Analysis of Oracle Table Clustering

URL: http://www.frontiernet.net/~rhode/cluster.html Abstract Introduction Obstacles to Using Oracle Clustered Tables Dynamics of Oracle Clustered Tables Evaluation of Clustered T

2009-06-21 09:42:00 1017

转载 What is a cluster table?

Provided By: John Kazerooni A cluster is a schema object that contains one or more tables that all have one or more columns in common. Rows of one or more tables that share the same value in these

2009-06-21 09:41:00 572

转载 Oracle 10g Tutorials : Oracle Net Services

Oracle 10g Tutorials : Oracle Net ServicesIn this tutorial you will learn Oracle Net Services - An Overview, Using Oracle Net Manager, Creating Listeners, Choosing General Parameters , enable the tr

2009-06-20 22:47:00 805

转载 Tuning PGA_AGGREGATE_TARGET in Oracle 9i

Abstract Oracle 9i introduced the PGA_AGGREGATE_TARGET parameter to help better manage session working areas in a session’s Program Global Area (PGA). This paper discusses available methods to help

2009-06-19 12:24:00 809

转载 About PGA_AGGREGATE_TARGET parameter

In order to make you understand About PGA_AGGREGATE_TARGET parameter lets have a look at parameter *_AREA_SIZE.SQL> SHOW PARAMETER _AREA_SIZENAME TYPE VALUE------------------------------------ ------

2009-06-19 12:14:00 721

原创 Oracle PGA

PGA(程序/进程全局区)是用于保存单个进程的数据和控制信息的内存区域。例如,它一般包括一个排序区、散列区、会话游标缓存等。PGA自动调整通过设置hash_area_size、sort_area_size等参数可以手动管理PGA。为了使oracle自动管理PGA,可以设置workarea_size_policy参数为AUTO并且把pga_aggregate_target设置为PGA可以

2009-06-19 10:34:00 506

转载 Oracle日志操作模式

Oracle数据库包含两种日志操作模式:NONARCHIVELOG和ARCHIVELOG。3.1 NONARCHIVELOG模式非归档模式是指不保留重做记录的日志操作模式。这种模式只能适合于实例恢复,不适合于介质恢复。特点:1、 当检查点完成之后,LGWR进程可以覆盖重作日志内容。2、 数据库恢复只能恢复到过去的某个完全备份点3、 数据库处于OPEN状态时,不能够备份数据库4、 执行数据库备份时,

2009-06-18 17:16:00 1509

转载 Oracle log files : An introduction

The Oracle server maintains the redo Oracle log files to minimize the loss of data in the Database in case of an uncontrolled shutdown. Online redo Oracle log files are filled with redo records. A r

2009-06-18 16:48:00 564

转载 Creating and Using Temporary Tables in Oracle

A useful feature for any type of programming is the ability to store and use temporary data. Oracle provides us this ability with temporary tables. These temporary tables are created just like any oth

2009-06-17 17:36:00 796

翻译 Oracle临时表

 临时表在oracle8i以前已经有大量的应用程序使用临时表存储处理过程中结构复杂的数据,这些表以数据库表或者PL/SQL表的形式出现。从oracle8i开始,临时表的维护和管理由服务器负责。 创建临时表可以通过create global temporary语句创建临时表,根据ON COMMIT语句的设置临时表有两种类型ON COMMIT DELETE ROWS 指定临时表

2009-06-17 15:22:00 576

翻译 instance_name,ORACLE_SID和service_name之间的关系

db_name - 当你执行“create database”命令时被创建,可以从v$database视图中查询。SQL> CREATE DATABASE mysid DATAFILE SIZE 400M2> DEFAULT TEMPORARY TABLESPACE temp_ts 3> TEMPFILE SIZE 10M4> UNDO TABLESPACE undo_

2009-06-17 14:44:00 1175

转载 Oracle Create Database Syntax

Here are several ways to manually issue the "create database" syntax for Oracle:EXTREMELY minimal manual database creation OMF minimal manual create database syntax Standard Oracle c

2009-06-17 14:29:00 129

转载 Oracle OMF--------Tablespace creation is a snap with Oracle Managed Files

Oracle9i introduces a new feature that simplifies tablespace creation. This new feature, Oracle Managed Files (OMF), makes life easier for Oracle DBAs by removing the tedium from creating and ma

2009-06-17 14:26:00 506

原创 Oracle服务器参数文件-----spfile

1.spfile简介spfile是oracle实例启动时的参数文件,该文件的默认位置是:$ORACLE_HOME/dbs,默认文件名为spfile$ORACLE_SID.ora。相对于老的init.ora参数文件,spfile具有如下优点:可以杜绝参数文件的繁殖:spfile总是存储在数据库服务器上,必须存在于服务器主机本身,不能放在客户机上。可以通过ALTER SYSTEM命令自

2009-06-17 10:40:00 732

空空如也

空空如也

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

TA关注的人

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