Archive for the 'Oracle' Category

One Product Strategy

Yazan: jarodwang | 13 June 2008 | No Comments
Categories: Oracle

Complete Complete product portfolio Open Open standard and open source Integrated Integrated products

Data Guard concepts

Yazan: jarodwang | 09 June 2008 | No Comments
Categories: Oracle

A Data Guard configuration consists of one production database and one or more standby databases. The database in a Data Guard configuration are connected by Oracle Net and may be dispersed geographically. There are no restrictions on where the databases are located, provided they can communicate with each other. You can manage primary and standby [...]

10204 Patch Set for AIX is released

Yazan: jarodwang | 17 May 2008 | 1 Comment
Categories: AIX, Oracle

As you can see from above screenshot of MetaLink, 10.2.0.4.0 Patch Set for ORACLE Database Server for AIX5L Based Systems (64-bit) is released on 15-MAY-2008. And I’m so proud to make contribution to this release. Cheers!

Using ORADEBUG

Yazan: jarodwang | 08 May 2008 | No Comments
Categories: Oracle

获得帮助信息 SQL> oradebug help 或者 SQL> oradebug help [command] 比如: SQL> oradebug help setmypid SETMYPID                                 Debug current process SQL语句跟踪(SQL statement tracing) SQL> oradebug setmypid Statement processed. SQL> oradebug event 10046 trace name context forever, level 4 Statement processed. SQL> select * from v$option where parameter = ‘Real Application Clusters’; PARAMETER                                VALUE —————————————- —– Real Application [...]

RMAN Fundamentals

Yazan: jarodwang | 07 May 2008 | No Comments
Categories: Oracle

RMAN client The client application that manages backup and recovery operations for a target database. The RMAN client can use Oracle Net to connect to a target database, so it can be located on any host that is connected to the target host through Oracle Net. Target Database A database containing the control files, datafiles, [...]

Transportable Tablespace Example

Yazan: jarodwang | 05 May 2008 | No Comments
Categories: Oracle

在Oracle Database Administrator’s Guide 11g Release 1 (11.1)里面有专门的一节介绍使用Transportable Tablespace的过程和一个例子: Transporting Tablespaces Between Databases: A Procedure and Example 简单来说有下面几个步骤: 对于跨平台的传输,可以通过查询v$transportable_platform视图来确定两个平台的字节序(endian)。如果表空间的传输是在同一个平台上进行的可以忽略这一步。 选取一个独立的(self-contained)表空间集合。 生成一个可传输的表空间集合。一个可传输表空间集合(或者可传输集合)由需要传输的表空间的数据文件(datafile)和一个包含了表空间集合的结构化信息(元数据(metadata))的导出文件。可以使用数据泵(Data Pump)来进行导出。 传输表空间集合。将数据文件和导出文件拷贝到目标数据库可见的地方。 导入表空间集合。使用数据泵工具将表空间集合的元数据导入到目标数据库。 例子 传输表空间的步骤在下面的例子中将完整描述,假设存在如下的数据文件和表空间: 表空间 数据文件 soe +DG/orcldb/datafile/soe.dbf soeindex +DG/orcldb/datafile/soeindex.dbf 步骤一:确定源和目标平台是否被支持和确定字节序 分别在源和目标平台上执行下面的查询。如果查询返回了一行结果,则这个平台就支持跨平台的表空间传输。 select d.platform_name, endian_format from v$transportable_platform tp, v$database d where tp.platform_name = d.platform_name; 在测试平台上返回的查询结果如下: PLATFORM_NAME ENDIAN_FORMAT —————————— —————————- Linux IA (32-bit) Little [...]

Introduction to Transportable Tablespace

Yazan: jarodwang | 29 April 2008 | No Comments
Categories: Oracle

可传输表空间(Transportable Tablespace)特性可用于将一个表空间的集合(set)从一个Oracle数据库拷贝到另一个Oracle数据库。 使用可传输表空间来移动数据要比导出/导入或者卸载/加载同样的数据快很多。这是因为包含了所有实际数据的数据文件(datafile)只需要被拷贝到目的位置,而仅仅使用数据泵(Data Pump)来传输表空间对象的元数据(metadata)到新的数据库即可。 可传输表空间特性在许多场景下都可以用到,包括: 导出和导入数据仓库表中的分区(partition) 将结构化的数据发布到CD上 将一个表空间的多个只读版本拷贝到多个数据库中 归档(archiving)历史数据 进行表空间point-in-time-recovery (TSPITR) 有两种方法可以传输表空间: 手动。包括了执行SQL*Plus,RMAN和Data Pump中的相关命令。 使用企业管理器(Enterprise Manager)中的传输表空间向导(Transport Tablespaces Wizard)。 关于跨平台(platform)传输表空间 从Oracle Database 11g开始,可以跨平台进行表空间的传输。这个功能可用于: 将数据库从一个平台迁移到另一个平台 为内容提供商向运行有不同平台的Oracle数据库的客户发布和分发结构化数据提供了一个更加易用和高效的方法 简化了数据从数据仓库到运行在较小的平台上的数据超市的分发 使得在不同操作系统和平台上的Oracle Database之间可以共享只读的(read-only)表空间,只要存储系统可以被各个平台所访问并且各个平台具有相同的字节序(endianness) 跨平台表空间传输支持很多,但不是全部的平台。可以通过查询v$transportable_platform视图来查看被支持的平台,和确定每个平台的字节序。 SQL> col platform_name for a40 SQL> select * from v$transportable_platform; 如果源平台和目标平台具有不同的字节序,则需要在源平台或者目标平台上将表空间转换成为目标平台的字节序。如果字节序相同,则无需这一转换。

DO BACKUP your OCR before making a change to RAC

Yazan: jarodwang | 05 March 2008 | 1 Comment
Categories: RAC

Learnt this lesson during recent testing. In 10gR2, we can use: ocrconfig -export <filename> [-s online] to export OCR contents to a file. And use: ocrconfig -import <filename> to import OCR contents from a file.