使用ORACLE STREAM STRMMON 监控工具

Oracle Streams STRMMON Monitoring
Utility [ID 290605.1]

In this Document

Purpose

Scope and Application

Oracle Streams
STRMMON Monitoring Utility

Installation

Usage

Output

Known problems

References


Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 10.2.0.4 - Release: 9.2 to 10.2

Information in this document applies to any platform.

On release 11G and onwards STRMMON functionality has been replaced by the Streams Performance Advisor distributed within the Streams product and implemented through DBMS_STREAMS_ADVISOR_ADM PL/SQL package. Please refer to chapter "Monitoring the Oracle Streams
Topology and Performance" on "Oracle Streams Concepts and Administration 11g Release 1" guide for further information on the Streams Performace Advisor

strmmon工具适用于oracle9i和10g,在11g中,oracle提供了Streams Performance Advisor来替代strmmon,Streams Performance Advisor通过DBMS_STREAMS_ADVISOR_ADM PL/SQL 实现其功能。

Purpose

***Checked for relevance on 10-Jan-2011***

The purpose of the note is to explain how to install, use and interpret the output of STRMMON utility.

本文的目的旨在说明如何安装,使用strmmon工具,如何理解strmmon工具的输出

Scope and Application

STRMMON is a monitoring tool focused on Oracle Streams. Using this tool,Database administrators get a quick overview of the Streams activity occurring within a database.

STRMMON can also be used to report Streams activity on two databases at a time within the same strmmon session.

strmmon工具可以同时监控两个数据库

In releases 9i and 10G Release 1, STRMMON is not a supported tool, as of Oracle 10g Release 2, STRMMON is distributed as in the demo directory of the database distribution code.

在oracle9i和10g1中,默认没有安装strmmon,需要我们单独下载strmmon压缩包来安装,在10g2中,oracle默认提供strmmon安装文件,位置在$ORACLE_HOME/rdbms/demo

Also note that alternatively and in newer releases of RDA you can get using similar information that STRMMON retrieve by using Streams Monitoring Information module (STM). So you can get this information by running

./rda.sh -vCRP STM or

./rda.sh -vCRP OS DB DBA NET D2PC STC STM

Oracle Streams STRMMON Monitoring Utility

Installation

STRMMON is delivered as a zip file that includes an OCI program and make file for use with Oracle releases prior to 10g Release 2.

Click here to download the STRMMON zip file. Change directory to a new directory. If
necessary transfer the tar file in BINARY mode. Extract the files from the zip file.

For releases prior to Oracle Database 10g Release 2

Create a directory for the STRMMON files. Extracted the files from the downloaded STRMMON.zip file. Before compiling and linking the strmmon program, make sure that the ORACLE_HOME and LD_LIBRARY_PATH environmental variables are set up appropriately. To compile
and link, use the command:

make –f strmmon.mk strmmon

在oracle9i和10g1下,首先我们下载strmmon压缩包,解压后,运行 make -f stmmon.mk  strmmon命令,在运行命令前,需要正确设置ORACLE_HOME和LD_LIBRARY_PATH环境变量。

After the program has been compiled and linked, strmmon can be used for monitoring a Streams environment.

NOTE: STRMMON is an OCI program. If you have difficulty using the supplied make file, follow the recommended procedure for compiling and linking OCI programs for your
platform. (demo_rdbms.mk in the $ORACLE_HOME/rdbms/demo directory).

The strmmon.mk file identified above is a copy of the demo_rdbms.mk file from the Oracle 9i Database Release 2 software for the Solaris 32-bit platform.

如果使用上面的方式无法编译strmmon(压缩包中的 strmmon 是9i下 solaris 32 平台下demo_rdbms.mk的拷贝),可以采用下面的方法试一试

For Oracle Database 10g Release 2

STRMMON is distributed in the rdbms/demo directory on Release 10G release 2.

It is installed when installing "Oracle Database 10G Products" in the Companion CD.

To use the latest version of strmmon in Oracle Database 10g Release 2, archive the existing strmmon.c, strmmon.o, and strmmon files in the $ORACLE_HOME/rdbms/demo directory into a backup location. Then, extract the strmmon.c and the strmmon.html files from
the STRMMON zip file into the rdbms/demo directory. Use the existing make file (demo_rdbms.mk) in the demo directory to generate the strmmon executable.

在10g2下,oracle默认为我们提供了strmmon,

但是,我们也可以自己来编译,编译方法如下:

1:备份demo下的文件

2:拷贝下载的strmmon下的strmmon.c和strmmon.html文件到demo下

3:使用demo_rdbms.mk来编译strmmon

[[email protected] demo]$ ll
total 452
-rw-r--r-- 1 yue oinstall    190 Aug  9 14:17 aqxml.conf
-rw-r----- 1 yue oinstall    190 Aug  9 13:58 aqxml.conf.ouibak
-rw-r--r-- 1 yue oinstall  10131 May 14  2009 demo_rdbms32.mk
-rw-r--r-- 1 yue oinstall  10118 Sep 28  2007 demo_rdbms64.mk
-rw-r--r-- 1 yue dba        9877 Aug 16 20:00 demo_rdbms.mk
-rw-r--r-- 1 yue dba      131780 Feb  7  2008 strmmon.c
-rw-r--r-- 1 yue dba       45922 Feb 10  2007 strmmon.htm
-rw-r--r-- 1 yue dba        1308 Aug 23  2004 strmmon.mk
-rw-r--r-- 1 yue dba      186688 Aug 16 20:02 strmmon.o
-rw-r--r-- 1 yue dba       31981 Aug 16 19:59 strmmon.zip
[[email protected] demo]$ make -f demo_rdbms.mk strmmon
make -f /u01/app/singleoracle/product/11.2.0/db/rdbms/demo/demo_rdbms.mk build EXE=strmmon OBJS=strmmon.o
make[1]: Entering directory `/u01/app/singleoracle/product/11.2.0/db/rdbms/demo'
/usr/bin/gcc -L/u01/app/singleoracle/product/11.2.0/db/lib/ -L/u01/app/singleoracle/product/11.2.0/db/rdbms/lib/ -o strmmon strmmon.o -lclntsh   `cat /u01/app/singleoracle/product/11.2.0/db/lib/sysliblist` -ldl -lm  -lpthread
make[1]: Leaving directory `/u01/app/singleoracle/product/11.2.0/db/rdbms/demo'
[[email protected] demo]$ ll
total 584
-rw-r--r-- 1 yue oinstall    190 Aug  9 14:17 aqxml.conf
-rw-r----- 1 yue oinstall    190 Aug  9 13:58 aqxml.conf.ouibak
-rw-r--r-- 1 yue oinstall  10131 May 14  2009 demo_rdbms32.mk
-rw-r--r-- 1 yue oinstall  10118 Sep 28  2007 demo_rdbms64.mk
-rw-r--r-- 1 yue dba        9877 Aug 16 20:00 demo_rdbms.mk
-rwxr-xr-x 1 yue dba      129998 Aug 16 23:27 strmmon
-rw-r--r-- 1 yue dba      131780 Feb  7  2008 strmmon.c
-rw-r--r-- 1 yue dba       45922 Feb 10  2007 strmmon.htm
-rw-r--r-- 1 yue dba        1308 Aug 23  2004 strmmon.mk
-rw-r--r-- 1 yue dba      186688 Aug 16 20:02 strmmon.o
-rw-r--r-- 1 yue dba       31981 Aug 16 19:59 strmmon.zip
[[email protected] demo]$ ./strmmon
Usage: strmmon -interval <seconds> -count <number> [-user <user name>]
               [-passw <password>] [-dbname <database name>] [-sysdba]
               [-long]
[[email protected] demo]$ mv strmmon strmmon.bak
[[email protected] demo]$ make -f strmmon.mk strmmon
make -f /u01/app/singleoracle/product/11.2.0/db/rdbms/demo/demo_rdbms.mk build EXE=strmmon OBJS=strmmon.o
make[1]: Entering directory `/u01/app/singleoracle/product/11.2.0/db/rdbms/demo'
/usr/bin/gcc -L/u01/app/singleoracle/product/11.2.0/db/lib/ -L/u01/app/singleoracle/product/11.2.0/db/rdbms/lib/ -o strmmon strmmon.o -lclntsh   `cat /u01/app/singleoracle/product/11.2.0/db/lib/sysliblist` -ldl -lm  -lpthread
make[1]: Leaving directory `/u01/app/singleoracle/product/11.2.0/db/rdbms/demo'
[[email protected] demo]$ ./strmmon -s
Error: option 's' needs a value
[[email protected] demo]$ ./strmmon
Usage: strmmon -interval <seconds> -count <number> [-user <user name>]
               [-passw <password>] [-dbname <database name>] [-sysdba]
               [-long]

[[email protected] demo]$ ll
total 716
-rw-r--r-- 1 yue oinstall    190 Aug  9 14:17 aqxml.conf
-rw-r----- 1 yue oinstall    190 Aug  9 13:58 aqxml.conf.ouibak
-rw-r--r-- 1 yue oinstall  10131 May 14  2009 demo_rdbms32.mk
-rw-r--r-- 1 yue oinstall  10118 Sep 28  2007 demo_rdbms64.mk
-rw-r--r-- 1 yue dba        9877 Aug 16 20:00 demo_rdbms.mk
-rwxr-xr-x 1 yue dba      129998 Aug 16 23:29 strmmon
-rwxr-xr-x 1 yue dba      129998 Aug 16 23:27 strmmon.bak
-rw-r--r-- 1 yue dba      131780 Feb  7  2008 strmmon.c
-rw-r--r-- 1 yue dba       45922 Feb 10  2007 strmmon.htm
-rw-r--r-- 1 yue dba        1308 Aug 23  2004 strmmon.mk
-rw-r--r-- 1 yue dba      186688 Aug 16 20:02 strmmon.o
-rw-r--r-- 1 yue dba       31981 Aug 16 19:59 strmmon.zip
[[email protected] demo]$ diff strmmon strmmon.bak

从这里可以看出strmmon.mk最后还是通过demo_rdbms.mk来进行编译

Usage

There are 7 command line input parameters for STRMMON: interval, count, user, passwd, dbname, sysdba and long.

The first 2 parameters (interval and count) control the sampling rate and the amount of output. The next 4 parameters specify the connect information to the particular Streams database.

Use multiple occurrences of these 4 parameters to monitor multiple databases within the same strmmon command.

Specifying the last parameter (long) displays more detailed information about each process.

When the command strmmon is issued without any parameters, a usage message is displayed:

strmmon的命令格式如下:

% strmmon

Usage: strmmon -interval <seconds> -count <number> [-user <user name>]

[-passwd <password>] [-dbname <database name>] [-sysdba]

Parameters

Parameter Name Value Units Description
-interval Seconds The interval at which STRMMON will monitor the database. To specify that the sampling rate to be every 3 seconds:

-interval 3

This is a required parameter for strmmon.

采样间隔

-count Number The number of iterations to monitor the Streams environment. To specify 5 iterations, use the following: -count 5

This is a required parameter for strmmon.

采样总次数

-user Username The schema name for logging into the database. Any schema name can be specified. If the SYS schema is specified, additional information is displayed. To specify the SYSTEM schema, use

-user SYSTEM

This parameter should not be specified if logging in as / as sysdba is desired.

-user is an optional parameter for strmmon.

指定登陆用户名,如果不指定,则默认以“/ as sysdba”方式登陆

-passwd password The login password for the schema identified with the -user clause. To specify the password for the SYSTEM schema, use

-passwd oracle

This parameter should not be specified if logging in as / as sysdba is desired

-passwd is an optional parameter for strmmon.

登陆密码

-dbname Service name The connection information or service name from tnsnames.ora for the specific database to be monitored. To specify the connect information for the monitored database, use

-dbname ORCL.WORLD

This is an optional parameter for strmmon.

tnsname.ora文件中的数据库登陆标示

-sysdba This flag indicates that the login role is SYSDBA. This optional parameter is typically used with the SYS schema.

When logging in as / as sysdba, the -user and -passwd parameters are not required

是否以sysdba方式登陆

-long This flag indicates that the more detailed report is desired. This is an optional parameter for STRMMON. By default, only the capture, apply and propagation rates are

displayed.

指定该参数,则输出详细信息

STRMMON have to be used with the Oracle release used for compilation or linking although it can connect to a different release database by using -dbname parameter.

strmmon必须在编译和链接的数据库上运行

Output

The STRMMON output format comes in two formats: default and long.

The default format reports the rate of activity occuring for Streams processes.

The long format provides the detailed information that was available in previous releases of STRMMON. The reporting interval and number of iterations to display are configurable.

The strmmon output begins with a banner line identifying the program parameters and database. This information is followed with a brief description of the major components of the output display.

strmmon工具的首先输出版本信息和格式说明两部分

After this initial information about the program, Strmmon produces a single line of output representing the current status of Oracle Streams after the requested interval for each iteration. For example, if strmmon is invoked with ‘-interval 3 -count 5’, a line
of output will be displayed every 3 seconds. After 5 lines have been displayed (15 seconds), the monitoring will end. .

然后,strmmon每间隔一定时间,输出一次streams的状态信息

Each line is composed of multiple blocks of information dependent on the streams processes configured within the database. These blocks are displayed by a keyword to identify the component followed by the statistics for that particular component. The separator
between the components is the ‘|‘ symbol.

There are 7 components for Streams: LOG, NET, Cxxx, Qx, PRxx, PSxx and Axxx.

strmmon的输出包含7个组件:log net cxxx qx  prxx psxx axxx

Except for the LOG and NET components, multiple occurrences of each component are possible dependent on the streams processes configured at database.

ARxx (Apply Reader) and ASxx (Apply Server) are subcomponents associated with each Axxx component.

An example of this identifying output is shown below:

% strmmon -interval 3 -count 5 -sysdba

STREAMS Monitor, v 2.5 Copyright Oracle Corp. 2002, 2005.

Interval = 3, Count=5

Logon= @ ORACLE 10.2.0.2.0

Streams Pool Size = 152M

LOG : <redo generated per sec>    日志信息

NET: <client bytes per sec> <dblink bytes per sec>  网络信息

Cxxx: <lcrs captured per sec> <lcrs enqueued per sec> <capture latency>  capture信息

MEM : <percent of memory used> % <streams pool size>  stream pool 信息

PRxx: <messages received per sec>  接受的message信息

Qx : <msgs enqueued per sec> <msgs spilled per sec> queue信息

PSxx: <lcrs propagated per sec> <bytes propaged per sec>  propagation信息

Axxx: <lcrs applied per sec> <txns applied per sec> <dequeue latency>   apply信息

<F>: flow control in effect

<B>: potential bottleneck  潜在的瓶颈

AR: apply reader

AS(n): n number of apply server

<x%I x%F x%xx>: <idle wait events percentage> <flow control wait events percentage> <other wait event percentage and name>

xx->: database instance name

To connect to multiple databases, the following command can be issued. inst1 and inst2 are the network service names (tnsnames.ora) for each database.

An example of the identifying output for the long report is shown below

链接多个数据库的示例:

% strmmon -interval 1 -count 1 -user sys -passw change_on_install \

-dbname inst1 -user sys -passw change_on_install -dbname inst2 \

-sysdba -long

STREAMS Monitor, v 2.5 Copyright Oracle Corp. 2002, 2005.

Interval = 3, Count=5

[email protected] ORACLE 10.2.0.2.0

Streams Pool Size = 152M

LOG : <last write scn> <redo blocks written>

NET: <client bytes> <dblink bytes>

Cxxx: <read scn> <msgs captured> <capture scn> <msgs enqueued> <enqueue scn> <capture latency>

MEM : <percent of memory used> % <streams pool size>

PRxx: <number received>/<total time>

Qx : <outstanding mesgs>/<cumulative mesgs> <cumulative spilled>

PSxx: <number propagated> <total bytes>/<total time>

Axxx: <msgs deq‘d> <dequeue scn> <dequeue latency> <txns recv‘d> <txns assigned> <txns applied> <hwm scn> <hwm latency>

<F>: flow control in effect

<B>: potential bottleneck

AR: apply reader

AS(n): n number of apply serve

<x%I x%F x%xx>: <idle wait events percentage> <flow control wait events percentage> <other wait event percentage and name>

xx->: database instance name

STREAMS Monitor, v 2.5 Copyright Oracle Corp. 2002, 2005.

Interval = 3, Count=5

[email protected] ORACLE 10.2.0.2.0

Streams Pool Size = 152M

LOG : <last write scn> <redo blocks written>

NET: <client bytes> <dblink bytes>

Cxxx: <read scn> <msgs captured> <capture scn> <msgs enqueued> <enqueue scn> <capture latency>

MEM : <percent of memory used> % <streams pool size>

PRxx: <number received>/<total time>

Qx : <outstanding mesgs>/<cumulative mesgs> <cumulative spilled>

PSxx: <number propagated> <total bytes>/<total time>

Axxx: <msgs deq‘d> <dequeue scn> <dequeue latency> <txns recv‘d> <txns assigned> <txns applied> <hwm scn> <hwm latency>

<F>: flow control in effect

<B>: potential bottleneck

AR: apply reader

AS(n): n number of apply serve

<x%I x%F x%xx>: <idle wait events percentage> <flow control wait events percentage> <other wait event percentage and name>

xx->: database instance name

NOTE: The information about the Streams Pool Size is displayed only for database versions greater than or equal to 10gR1.

LOG

Information about the redo log activity is written in this block.

The first statistic following the LOG: keyword is the current SCN that has been written to the redo log. This number represents the current activity within the database. If this number does not increase, no activity is occurring on the database.

The second statistic is the last block number written in the redo log. Redo blocks are always 512 bytes, so this statistic can be used to calculate the amount of redo generated between intervals.

The output for the LOG component under the -long option is always the first entry after the timestamp and the database name on the display and appears as follows:

2005-08-13 18:05:23 || lnxmain-> | LOG 2952151 812574 |

2005-08-13 18:05:23 || lnxmain-> | LOG 2952151 812574 |

2005-08-13 18:05:27 || lnxmain-> | LOG 2952155 812576 |

2005-08-13 18:05:30 || lnxmain-> | LOG 2952156 812577 |

2005-08-13 18:05:33 || lnxmain-> | LOG 2952156 812577 |

In the above example, the current scn that written to the redo log is 2952151 and the last block number is 812574. Since the strmmon command was issued with –interval 3 –count 5, 5 lines of output are displayed with a 3 second interval between them. The activity
on this database is very low, as seen by the fact that the current scn increases infrequently (note change between 18:05:23 and 18:05:27 and 18:05:30).

For the default output, the LOG component entry shows the rate at which redo information is generated:

2005-08-13 18:08:51 || lnxmain-> | LOG 1K |

2005-08-13 18:08:54 || lnxmain-> | LOG 341 |

2005-08-13 18:08:57 || lnxmain-> | LOG 170 |

2005-08-13 18:09:00 || lnxmain-> | LOG 0 |

The printed value is the average number of bytes of redo generated per

日志的统计信息,很容易明白,不过多解释

NET

For the default output, the average number of bytes per second generated over the network by clients and dblinks is reported. For the -long output, the current values for the statistics of client and dblink network activity are reported.

Cxxx

For each capture process configured in the database, a separate block will be displayed. Each block displays the number of lcrs captured per sec, number of lcrs enqueued per sec and the capture latency. If "-long" option is specified, then in each block, the
Logminer read scn, the total number of messages captured from the redo log and the most recent scn captured from the redo log are shown. In addition, the number of messages that match the rules specified for the capture process including the most recent message
scn enqueued are shown along with the capture latency.

One can also use the difference between successive capture "messages captured" statistics to determine the rate at which capture is mining the redo log. The enqueue scn of capture is an indicator of where the capture process will restart, if capture is stopped
and restarted while the database is running. This statistic can also be used for comparison with the appropriate database Apply process high-water mark scn. If these statistics match, the capture and apply are caught up and the data is synchronized.

MEM%

If strmmon is run from the SYS schema connected as SYSDBA, and the database version is 10gR1 or higher, then this displays the percentage of Streams Pool memory currently in use and the size of the Streams Pool. These statistics are reported in both the default
and –long output formats.

Qx

For each streams queue in the database, a separate block displays the queue identifier, the cumulative message rate and the spill rate. If "-long" option is specified, then for each streams queue in the database, a separate block will display the queue identifier
as well as the number of outstanding messages in the buffered queue, the cumulative number of messages that have been in the queue and the number of messages spilled from memory to disk. In version 9iR2, the number of messages currently spilled is displayed.
In 10gR1, the cumulative number of messages spilled is displayed. For 9iR2, the default and the "-long" option display the same data.

The queue identifier (QID) can be used to identify the name of the queue. Use the QID in queries against the DBA_QUEUES view to identify the particular queue in the database. In Oracle Database 9i Release 2, the number of outstanding messages in the buffered
queue is only displayed if strmmon is run from the SYS schema as SYSDBA. In 9iR2, if the number of spilled messages becomes non-zero, consider stopping capture temporarily to slow down the flow of data. See Metalink Note
259609.1
 for an example flow control script.

PSxx

For each propagation sender, the number of lcrs propagated per sec is displayed. If "-long" option is specified, the for each propagation, the total number of messages and the total number of bytes propagated to the destination site and the total time needed
to propagate those messages is displayed.

PRxx

For each propagation receiver, the number of lcrs received per sec is displayed. If "-long" option is specified, the for each propagation, the total number of messages received and the total time to receive those messages is displayed

Axxx

For each apply process, the number of lcrs applied per sec, the number of transactions applied per second, and the apply latency are displayed. If the "-long" option is specified, then for each apply process in the database, the total messages dequeued and
the most recent scn dequeued by the apply reader, the dequeue latency, the total number of transactions received, assigned and applied by the coordinator are displayed. The apply high water mark scn along with the apply high water mark latency is also shown.
This statistic records the most recent scn from the source site that has been applied at the destination site.

AR

This subcomponent lists the percentage of idle events, flow control events, and the single most significant wait event for the apply reader process if the database version is 10gR1 or higher.

AS(n)

This subcomponent lists the percentage of idle events, flow control events, and the single most significant wait event for the apply server process(es) if the database version is 10gR1 or higher. When apply parallelism is enabled, the values reflect the sum
of all associated apply servers in each category: idle, flow control, and wait event.

Flags

- Flow Control <F>

This indicates that the capture process is blocked due to flow control.

- Potential Bottlenecks <B>

This indicates that the capture or apply process is currently a bottleneck.

- <x%I x%F x%xx>

When displayed for a component, x%I indicates the percentage(x%) of idle(I) time for the component. x%F indicates the percentage(x%) of time waiting on flow control events(F). The event with the highest percent (x%)
of time waited is indicated(xx)the percentage of time(x%) spent waiting on <other wait event percentage and name>

- Instance <xx>

This indicates the name of the database instance for which the data follows.

Known problems

Compilation/Linking errors while running make command

Error: sh: cc: not found

Cause : C compiler can not be found in the path.

Solution: Include the path to the C compiler in the PATH environmental variable.

Error:

strmmon.c:1114: parse error before "ub8"

strmmon.c:1114: warning: no semicolon at end of struct or union

strmmon.c:1115: warning: data definition has no type or storage class

strmmon.c: In function `print_prop_stats‘:

Cause : strmmon make use of ub8 definition, sometimes the expansion for this definition has failed.

Solution: Include the definition of ub8 in the strmmon file, just before the definition of prop struct.

Definition of ub8 is as follows:

#define ub8 unsigned long long

Execution errors while running strmmon utility

Error: Strmmon dump a core or raise a Memory fault

Cause : Compilation parameters are not the best for this platform

Solution : Use -user and -passwd parameters with user SYSTEM

Error: Error while loading shared libraries

Cause: LD_LIBRARY_PATH not defined

Solution : Define LD_LIBRARY_PATH

Error: OCIEnvCreate() failed

Cause : strmmon has been compiled/linked with a release different to the one that is being used now.

Solution : Use the right ORACLE_HOME and use -dbname parameter to access a different database release

Still have questions ?

To discuss this information further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the My Oracle Support Streams
and Distributed Database Community

使用ORACLE STREAM STRMMON 监控工具,布布扣,bubuko.com

时间: 2024-10-06 03:51:47

使用ORACLE STREAM STRMMON 监控工具的相关文章

Oracle Stream配置详细步骤

1 引言 Oracle Stream功能是为提高数据库的高可用性而设计的,在Oracle 9i及之前的版本这个功能被称为Advance Replication.Oracle Stream利用高级队列技术,通过解析归档日志,将归档日志解析成DDL及DML语句,从而实现数据库之间的同步.这种技术可以将整个数据库.数据库中的对象复制到另一数据库中,通过使用Stream的技术,对归档日志的挖掘,可以在对主系统没有任何压力的情况下,实现对数据库对象级甚至整个数据库的同步. 解析归档日志这种技术现在应用的比

Oracle Stream 同步数据

1 引言     Oracle官方网: http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10727/strmover.htm     Oracle Stream功能是为提高数据库的高可用性而设计的,在Oracle 9i及之前的版本这个功能被称为Advance Replication.Oracle Stream利用高级队列技术,通过解析归档日志,将归档日志解析成DDL及DML语句,从而实现数据库之间的同步.这种技术可以将整

Oracle stream容灾的配置

Oracle stream流复制的配置 配置:主库 100.100.100.20  linux系统,  数据库实例名db1  版本10.2.0.1 备库 100.100.100.254 windows系统数据库名     dbwin2 版本10.2.0.1 过程为:备库捕捉主库 u1用户下所有表的变化,实时同步 1.1 主库的配置 1.1.1 主库oracle参数配置 alter system set aq_tm_processes=2 scope=both; alter system set

oracle体系结构-内存管理

一.Oracle体系结构概述 数据库--驻留在磁盘上的--各种磁盘文件(数据文件.控制文件.日志文件) 实例--驻留在内存--内存组件+进程---------------一旦数据库关闭,不存在了 数据库和实例的关系 A 一个数据库对一个实例(单节点) 数据库--实例 B 一个数据库对N个实例(多节点)--防止单点故障(oracle高可用架构)--7*24的系统 实例1     实例2      实例3    ... 实例n    ----每个实例都独立安装在独自的虚拟机上            

Oracle体系概述

1.1 Oracle结构概述 Oracle体系包括: 1)实例instance( SGA系统全局区 + N多后台进程) 2)数据库(Datafile,  control file, redo log file) 3)用户进程(每个用户连接Oracle数据库,都会启动一个用户进程) 4)系统进程 5)其他文件(参数文件parameter file,  密码文件passwordfile,  归档日志文件Archived log file等) SGA本质,就是一大块内存,根据作用细分为多个Pool和C

Oracle流复制

Stream 是Oracle 的消息队列(也叫Oracle Advanced Queue)技术的一种扩展应用. Oracle 的消息队列是通过发布/订阅的方式来解决事件管理.流复制(Stream replication)只是基于它的一个数据共享技术,也可以被用作一个可灵活定制的高可用性方案. 它可以实现两个数据库之间数据库级,schema级,Table级的数据同步,并且这种同步可以是双向的. Oracle Stream也是通过数据冗余来提高可用性,这一点和Data Guard 类型. Oracl

Oracle 调度程序(scheduler)摘自一位大神

在11g中,Oracle提供了一个新建的Scheduler特性,帮助将作业实现自动化.它还可以帮助你控制资源的利用与并可以将数据库中的作业按优先顺序执行.传统的dbms_jobs的一个限制是它只能调度基于PL/SQL的作业,不能用来调度操作系统的可执行文件或脚本. Scheduler包括如下权限: scheduler_admin角色包含所有的scheduler系统权限,授权如下: SQL> grant scheduler_admin to djp01 2  / Grant succeeded.

oracle数据库多实例实时同步(利用oracle管理平台实现)

环境: Windows 2008 服务器,Oracle 11g  r2 数据库 任务要求: 有三个数据库实例,一个实例供管理子系统使用,一个实例供利用子系统使用,还有一个实例专门做备份. 选择的技术: Oracle Stream Replication(流复制) 创建另外两个实例 源实例:orcl 目标1:target 目标2:target2 停止应用服务器,防止用户因为使用应用服务器而对数据库做出的改变. 并导出 orcl 实例中用户的数据,用 exp 命令 例如 exp nt_gxt/[em

ORACLE 11G内存管理方式

SGA包含的组件: 组件名 说明 参数 buffer cache 存放从数据文件中读取的数据拷贝,所有用户之间是可以共享的 db_cache_size db_keep_cache_size db_recycle_cache_size db_nk_cache_size redo log buffer redo数据 log_buffer shared pool 存放库缓存和数据字典缓存,结果缓存,并行执行消息缓存,以及控制结构信息 shared_pool_size shared_pool_reser