selectlog_mode,supplemental_log_data_min,force_logging from v$database;
启动归档模式、附加日志、强制日志。其中开启归档模式需要重启数据库,开启附加日志、强制日志不需要重启数据库。
SQL> shutdown immediate;
SQL> startup mount;
SQL> alter database archivelog;
SQL> alter database force logging;
SQL> alter database add supplemental logdata;
SQL> alter database open;
$OGG_HOME
$LD_LIBRARY_PATH
Windows创建服务
install addservice
GGSCI (HjsWin0001) 2> create subdirs
目录
说明
dirprm
参数文件
dirrpt
报告文件
dirchk
检查点文件
dirpcs
状态文件
dirsql
sql脚本文件
dirdef
数据定义文件
dirdat
跟踪文件和抽取文件
dirtmp
临时文件
sqlplus / as sysdba
create user ogg identified by oracle;
grant connect,resource to ogg;
grant unlimited tablespace to ogg;
grant execute on utl_file to ogg;
GRANT CREATE TABLE,CREATE SEQUENCE TO OGG;
markker_setup.sql,ddl_setup.sql,role_setup.sql,
GRANT GGS_GGSUSER_ROLE TO ogg;
ddl_enable.sql
GGSCI> dblogin userid ogg
配置oggmanager&启动manager
GGSCI> edit param mgr
PORT7809
DYNAMICPORTLIST7840-7850 --远程队列端口范围
GGSCI(local) 1> info all(查看当前mgr状态)