CREATE TABLESPACE OGG DATAFILE
'/oracle/oradata/ogg/ogg01.dbf' SIZE 100M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
SEGMENT SPACE MANAGEMENT AUTO
TEMPORARY TABLESPACE TEMP
为易管理和维护统一将权限赋予角色ogg_role:
grant CREATE SESSION,ALTER SESSION,ALTER SYSTEM,RESOURCE,SELECT ANY DICTIONARY,FLASHBACK ANY TABLE,SELECT ANY TABLE,SELECT ANY TRANSACTION,insert any table,update
any table,drop any table,CREATE TABLE to ogg_role;
grant select on dba_clusters to ogg_role;
grant select on v_$database to ogg_role;
grant select on sys.logmnr_buildlog to ogg_role;
grant execute on DBMS_FLASHBACK to ogg_role;
grant execute on DBMS_CAPTURE_ADM to ogg_role
grant execute on DBMS_STREAMS to ogg_role;
grant EXECUTE_CATALOG_ROLE to ogg_role;
grant connect,resource,unlimited tablespace to ggate;
grant connect,resource,dba to ggate;
grant execute on utl_file to ggate;
grant select any dictionary,select any table to ggate;
grant alter any table to ggate;
grant flashback any table to ggate;
grant execute on DBMS_FLASHBACK to ggate;
grant insert any table to ggate;
grant delete any table to ggate;
grant update any table to ggate;
cd /ogg/product/12.2.0.2/dbhome_1
You will be prompted for the name of a schema for the Oracle GoldenGate database objects.
NOTE: The schema must be created prior to running this script.
NOTE: Stop all DDL replication before starting this installation.
Enter Oracle GoldenGate schema name:ggate
Marker setup table script complete, running verification script...
Please enter the name of a schema for the GoldenGate database objects:
Setting schema name to GGATE
--------------------------------------------------------------
--------------------------------------------------------------
Oracle GoldenGate DDL Replication setup script
Verifying that current user has privileges to install DDL Replication...
相关文档
评论