您的位置:首页 > 数据库 > Oracle

ogg installation

2016-01-11 12:45 495 查看
Oracle golden gate is installed by oracle.

Gernerally, the location is /u01/app/ogg

Unzip the archive tag fo ogg and locate taht to /u01/app/ogg

It should set the environment value of LD_LIBRARY_PATH as LDLIBRARYPATH:ORACLE_HOME/lib

Then change the directory to ogg home, and execute ggsci to configure ogg contents.

[oracle@HWZX-DB-BI ogg]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle

Version 11.2.1.0.26 19362036 OGGCORE_11.2.1.0.0OGGBP_PLATFORMS_140909.0853_FBO

Linux, x64, 64bit (optimized), Oracle 11g on Sep 9 2014 13:51:14

Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.

GGSCI (HWZX-DB-BI) 1> create subdirs

Creating subdirectories under current directory /u01/app/ogg

Parameter files /u01/app/ogg/dirprm: already exists

Report files /u01/app/ogg/dirrpt: created

Checkpoint files /u01/app/ogg/dirchk: created

Process status files /u01/app/ogg/dirpcs: created

SQL script files /u01/app/ogg/dirsql: created

Database definitions files /u01/app/ogg/dirdef: created

Extract data files /u01/app/ogg/dirdat: created

Temporary files /u01/app/ogg/dirtmp: created

Stdout files /u01/app/ogg/dirout: created

Edit parameter file for manager process which is named mgr

PORT 7809

DYNAMICPORTLIST 7810-1820, 7830

AUTOSTART ER t*

AUTORESTART ER t*, RETRIES 4, WAITMINUTES 4

STARTUPVALIDATIONDELAY 5

PURGEOLDEXTRACTS /u01/app/ogg/dirdat/tt*, USECHECKPOINTS, MINKEEPHOURS 2

Describe the mgr parameters

Port

You can specify 5000 ports in any comunitcation of following formations:

7830 7833 7835

7830-7835

7830-7835, 7839

And the port must be unreserved and unrestricted, each manager instance on a system must have a different port.

DYNAMICPORTLIST is not a requried parameter, but it is strongly recommended for best performance. The collector process is responsible for finding and binding to a avaiable port, and having a known list of qualified speed this process.

In absence fo DYNANAMICPORTLIST, collector tries to use port 7840 to remote request, if the port 7840 is not available, collector increment by one until it finds an available port. This can delay the acceptance of the rrmote request.

If collector runs out of DYNAMICPORTLIST, the following occurs:

Manager process report an error in process report and in ORACLE GOLDENGATE ggserr log.

Collector retires based on the rules in the ORACLE GOLDENGATE tcperr file.

The rest of parameters :

●AUTOSTART: Starts Extract and Replicat processes when Manager starts. This

parameter is required in a cluster configuration, and is useful when Oracle GoldenGate

activities must begin immediately at system startup. (Requires Manager to be part of

the startup routine.) You can use multiple AUTOSTART statements in the same

parameter file.

● AUTORESTART: Starts Extract and Replicat processes again after abnormal termination.

This parameter is required in a cluster configuration, but is also useful in any

configuration to ensure continued processing.

● PURGEOLDEXTRACTS: Purges trail files when Oracle GoldenGate is finished processing

them. Without PURGEOLDEXTRACTS, no purging is performed and trail files can consume

significant disk space. For best results, use PURGEOLDEXTRACTS as a Manager parameter,

not as an Extract or Replicat parameter.

● STARTUPVALIDATIONDELAY | STARTUPVALIDATIONDELAYCSECS: Sets a delay time after which

Manager validates the run status of a process. Startup validation makes Oracle

GoldenGate users aware of processes that fail before they can generate an error

message or process report.

GGSCI (HWZX-DB-BI) 2> START MGR

Manager started.

GGSCI (HWZX-DB-BI) 3> INFO mgr

Manager is running (IP port HWZX-DB-BI.7809).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  oracle