LCMLSJ

欢迎来到LCMLSJ>>   | 首页 资源中心 | oracle utilities | BACKUP&RECOVERY | WHITE PAPERS | BLOB | ORACLE SITE | LIVING | ITPUB论坛

db2 uow

发表人:lcmlsj | 发表时间: 2010年七月03日, 10:06

工作单元和保存点

工作单元(unit of work,UOW) 也称为事务,它是应用程序进程中一个可恢复的(recoverable) 操作序列。UOW 的经典示例是简单的银行转帐事务,即把资金从一个帐号转到另一个帐号中。在应用程序从一个帐号减去一定数量的资金之后,数据库会出现不一致的状态;在第二个帐号中增加同样数量的资金之后,这种不一致才会消除。当这些修改已经提交之后,其他应用程序才能使用它们。

当应用程序进程中的第一个 SQL 语句对数据库发出时,一个 UOW 隐式地开始。同一个应用程序后续的所有读写操作被认为是同一个 UOW 的一部分。应用程序可以在适当的时候发出 COMMITROLLBACK 语句来结束 UOW。COMMIT 语句将这个 UOW 中所做的所有修改持久化,而 ROLLBACK 语句撤消这些修改。如果应用程序正常地结束,而没有发出显式的 COMMITROLLBACK 语句,那么 UOW 会自动地提交。如果应用程序在 UOW 结束之前意外地终止,那么这个工作单元会自动地回滚。

保存点(savepoint) 允许选择性地回滚组成 UOW 的操作子集,这样就不会丢失整个事务。可以嵌套保存点并可以同时拥有几个活跃的 保存点级别(savepoint level);这允许应用程序根据需要回滚到特定的保存点。假设在某个 UOW 中定义了三个保存点(A、B 和 C):

do some work;
savepoint A;
do some more work;
savepoint B;
do even more work;
savepoint C;
wrap it up;
roll back to savepoint B;

回滚到保存点 B 会自动地释放保存点 C,但是保存点 A 和 B 仍然是活跃的。

oracle temp表空间增长过快的解决方法

发表人:lcmlsj | 发表时间: 2010年四月16日, 09:41

本文系转载与互联网,只是为了查看方便。如有不妥,可以随时删除。 查看全文

Oracle 释放过度使用的Undo表空间

发表人:lcmlsj | 发表时间: 2010年四月16日, 09:37

本文系转载与互联网,只是为了查看方便。如有不妥,可以随时删除。 查看全文

cpu+wait for cpu

发表人:lcmlsj | 发表时间: 2010年四月12日, 11:46

"wait" processes just mean that there are CPUs waiting around for work to do - the "wait" processes up all the idle time of your system.


Primary Database Changes That Require Manual Intervention at a Physical Standby

发表人:lcmlsj | 发表时间: 2008年六月28日, 07:48

Most structural changes made to a primary database are automatically propagated through redo data to a physical standby database. Table 9-1 lists primary database structural and configuration changes which require manual intervention at a physical standby database.

1. Add a datafile or create a tablespace
No action is required if the STANDBY_FILE_MANAGEMENT database initialization parameter is set to AUTO. If this parameter is set to MANUAL, the new datafile must be copied to the physical standby database.

2.Drop or delete a tablespace or datafile
Delete datafile from primary and physical standby database after the redo data containing the DROP or DELETE command is applied to the physical standby.

3.
Use transportable tablespaces
Move tablespace between the primary and the physical standby database.

4. Rename a datafile
Rename the datafile on the physical standby database.

5. Add or drop a redo log file group
Evaluate the configuration of the redo log and standby redo log on the physical standby database and adjust as necessary.

6.Perform a DML or DDL operation using the NOLOGGING or UNRECOVERABLE clause
Copy the datafile containing the unlogged changes to the physical standby database.

7.Grant or revoke administrative privileges or change the password of a user who has administrative privileges
If the REMOTE_LOGIN_PASSWORDFILE initialization parameter is set to SHARED or EXCLUSIVE, replace the password file on the physical standby database with a fresh copy of the password file from the primary database.

8.Reset the TDE master encryption key
Replace the database encryption wallet on the physical standby database with a fresh copy of the database encryption wallet from the primary database.

9.Change initialization parameters
Evaluate whether a corresponding change must be made to the initialization parameters on the physical standby database.


利用ORACLE加密特性保护HIS系统的敏感数据

发表人:lcmlsj | 发表时间: 2008年六月28日, 07:25

1 概述

对于ORACLE数据库的联机数据,ORACLE主要采用用户验证、访问控制和审计等技术,提供了多个层次的数据安全保护措施,而且随着数据库版本的更新,这些技术在不断的完善,总体上而言,ORACLE数据库是安全性方面最完备的数据库产品。 然而,对于数据库数据文件中的数据和各种数据备份的安全性一直是一个薄弱的环节,窃密者完全可以绕过数据库的安全防护层,不用访问产品数据库,而直接获取数据库文件、数据库逻辑备份或物理备份,利用ORACLE 的技术支持工具如dul/aul可以恢复脱机文件中的数据,或利用ORACLE的恢复技术,使用备份可在另外的计算机上恢复整个数据库。例如,下面列出了一些容易被窃取的文件。

1.1 数据库的热备份或冷备份。数据库备份是产品库的拷贝,一方面使用这些备份和日志文件可以很容易的恢复数据库;另一方面使用ORACLE 的技术支持工具如dul/aul可以恢复脱机文件中的数据。

1.2 ORACLE 导出工具的导出文件。应用该文件能够容易的在数据库之间迁移数据,窃密者可以在自己的数据库中导入这些文件中包含的数据,而且,全库导出包含所有的账户和密码,利用这些帐户和密码可以随意的访问产品库。

1.3 ORACLE联机和归档日志。可以用LOGMINER看到redo logs中存储的数据库的变化,因此也应当保护好日志文件。

 查看全文

Open Resetlogs操作对oracle数据库恢复的影响

发表人:lcmlsj | 发表时间: 2008年六月28日, 07:23

摘要 当用resetlogs选项打开ORACLE数据库的时,要重置联机日志文件序号,产生一个新的数据库形态((incarnation),本文着中介绍在各种oracle数据库版本下,如何利用resetlogs点之前的备份进行数据库恢复操作。

 查看全文

ORACLE数据库逻辑损坏恢复方法的探讨

发表人:lcmlsj | 发表时间: 2008年六月28日, 07:22

摘要:在日常的oracle数据库管理中,经常有同行问到oracle数据库逻辑损坏的恢复问题,而这类问题oracle文档没有提供解决方法。本文针对该问题探讨了在oracle数据库不同版本下的恢复方法,主要方法有数据库时间点恢复、日志挖掘技术、数据库闪回技术。

 查看全文

Oracle10g的Asm应用于数据存储管理

发表人:lcmlsj | 发表时间: 2008年六月28日, 07:18

摘要 随着数据库的持续运行,数据库的大小不断扩大,要求不断增大系统的存储容量,对于普通的文件系统,增加存储的过程非常复杂。Oracle10g的自动存储管理系统(automatic storage management asm)就是针对该问题而产生的,它大大简化了数据库存储系统的管理。

 查看全文

Oracle数据库升级或数据迁移的方法探讨

发表人:lcmlsj | 发表时间: 2008年六月28日, 07:16

本文详细论述了oracle数据库升级的升级前的准备、升级过程和升级后的测试与调整工作,并对各种升级方法在多种操作系统平台上作了测试。

 查看全文

Oracle数据库之间数据传输方法探讨

发表人:lcmlsj | 发表时间: 2008年六月28日, 07:14

1 概述

许多信息中心一般运行多个数据库系统,这些数据库系统所用数据库种类,数据库版本和操作系统平台也都不完全相同,这样就对不同系统间的数据交换提出了挑战;另一方面,对于长期运行的系统需要定期把过期数据转移到历史服务器或是数据仓库中,进行历史查询,报表以及数据挖掘等处理。这些数据交换,或是在不同种类数据库之间异构数据传输,比如sqlserveroracle之间;或是在同种数据库的不同版本之间,如各种版本的oracle数据库之间;还有可能是数据库同种,但数据库运行的操作系统平台不同。后两种都属于同构数据传输。本文主要探讨不同版本,不同操作系统平台下的oracle数据库之间同构数据传输的工具和方法。

 查看全文

Using Views to Monitor Primary, Physical, and Snapshot Standby Databases

发表人:lcmlsj | 发表时间: 2008年六月28日, 07:10

Using Views to Monitor Primary, Physical, and Snapshot Standby Databases

1.V$DATABASE
The following query displays the data protection mode, data protection level, database role, and switchover status for a primary, physical standby or snapshot standby database:

SELECT PROTECTION_MODE, PROTECTION_LEVEL, –
DATABASE_ROLE ROLE, SWITCHOVER_STATUS –
FROM V$DATABASE;
The following query displays fast-start failover status:

SELECT FS_FAILOVER_STATUS "FSFO STATUS", -
FS_FAILOVER_CURRENT_TARGET TARGET, -
FS_FAILOVER_THRESHOLD THRESHOLD, -
FS_FAILOVER_OBSERVER_PRESENT "OBSERVER PRESENT" –
FROM V$DATABASE;

2. V$MANAGED_STANDBY
The following query displays Redo Apply and redo transport status on a physical standby database:

SELECT PROCESS, STATUS, THREAD#, SEQUENCE#,-
BLOCK#, BLOCKS FROM V$MANAGED_STANDBY;

PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
------- ------------ ---------- ---------- ---------- ----------
RFS ATTACHED 1 947 72 72
MRP0 APPLYING_LOG 1 946 10 72
The sample output shows that a RFS process completed archiving a redo log file with a sequence number of 947 and that Redo Apply is actively applying an archived redo log file with a sequence number of 946. Redo Apply is currently recovering block number 10 of the 72-block archived redo log file.

3.V$ARCHIVED_LOG
The following query displays information about archived redo log files that have been received by a physical or snapshot standby database from a primary database:

SQLSELECT THREAD#, SEQUENCE#, FIRST_CHANGE#, -
NEXT_CHANGE# FROM V$ARCHIVED_LOG;

THREAD# SEQUENCE# FIRST_CHANGE# NEXT_CHANGE#
---------- ---------- ------------- ------------
1 945 74651 74739
1 946 74739 74772
1 947 74772 7474
The sample output shows that three archived redo log files have been received from the primary database.

4. V$LOG_HISTORY
The following query displays archived log history information:

SQLSELECT THREAD#, SEQUENCE#, FIRST_CHANGE#, -
NEXT_CHANGE# FROM V$LOG_HISTORY;

5.V$DATAGUARD_STATUS
The following query displays messages generated by Data Guard events that caused a message to be written to the alert log or to a server process trace file:

SQLSELECT MESSAGE FROM V$DATAGUARD_STATUS;


利用v$active_session_history跟踪会话

发表人:lcmlsj | 发表时间: 2008年五月22日, 07:02

To be fair to the 10046 trace, the v$active_session_history does not catch session activity that is extremely fast, but it should catch activity that causes the most waits and resource consumption and will, therefore, be useful to the DBA. Statistically, the v$active_session_history does catch extremely fast operations if they occur sufficiently often to contribute to user time.

 查看全文

Control file reads & writes

cardinality

发表人:lcmlsj | 发表时间: 2007年十月24日, 06:40

cardinality(基数,集的势):表示一个行集的行数。
1. Base cardinality is the number of rows in a base table.
2. Effective cardinality is the number of rows that are selected from a base table.
3. Join cardinality is the number of rows produced when two row sets are joined together.
4. Distinct cardinality is the number of distinct values in a column of a row set.
5. Group cardinality is the number of rows produced from a row set after the GROUP BY operator is applied.


Valid XHTML 1.0 Strict and CSS. Powered by pLog
Design by Blog.lvwo.com