ALTER SESSION
lock ANY TABLE
delete any table
insert any table
update any table
--2 安装 ogg(注意 RAC 要装在共享存储里)
--2.1 项目需求了解
--2.2 ogg 安装要求
--2.3 环境及测试数据准备
--2.4 ogg 11.2 安装
2.4.1 安装相关的软件包
rlwrap
readline
2.4.2 准备 ogg 安装的环境变量
两台都安装
PATH=/ggs:$ORACLE_HOME/bin:$PATH; export PATH
此条需要添加
LD_LIBRARY_PATH=/ggs:$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
创建单独的 ggs 目录(2 台机器)
[root@itpux ~]# vi /etc/fstab
[root@itpux ~]# chown -R oracle:dba /ggs
[root@itpux ~]# chmod -R 777 /ggs
-2.4.3 上传并安装 OGG 软件
[root@itpux ggs]# scp Oracle\ GoldenGate\ V11.2.1.0.3\ for\ Oracle\ 11g\ on\
Linux\ x86-64.zip 192.168.2.163:/ggs
root@192.168.2.163's password:
Oracle GoldenGate V11.2.1.0 100% 88MB 88.3MB/s 00:01
[root@itpux ggs]# unzip Oracle\ GoldenGate\ V11.2.1.0.3\ for\ Oracle\ 11g\ on\
Linux\ x86-64.zip
[root@itpux ggs]# tar xvf fbo_ggs_Linux_x64_ora11g_64bit.tar
创建 ogg 目录(2 台)
[oracle@itpux ggs]$ ./ggsci
GGSCI (itpux) 1>
create subdirs
--2.5 ogg 配置运行环境准备 01.源端一定要打开归档,目标端一般不需要。
SQL>
alter system set db_recovery_file_dest_size=1g;
SQL>
alter system set db_recovery_file_dest='/oracle/archive';
SQL>
alter database archivelog;
SQL>
评论