728x90

 

2022-01-27 22:06:12.620 [EVMD(194602)]CRS-8500: Oracle Clusterware EVMD process is starting with operating system process ID 194602
2022-01-27 22:06:13.674 [GPNPD(194631)]CRS-8500: Oracle Clusterware GPNPD process is starting with operating system process ID 194631
2022-01-27 22:06:14.454 [GPNPD(194631)]CRS-2328: GPNPD started on node rac1. 
2022-01-27 22:06:14.747 [GIPCD(194701)]CRS-8500: Oracle Clusterware GIPCD process is starting with operating system process ID 194701
2022-01-27 22:06:18.650 [OSYSMOND(194733)]CRS-8500: Oracle Clusterware OSYSMOND process is starting with operating system process ID 194733
2022-01-27 22:06:18.631 [CSSDMONITOR(194731)]CRS-8500: Oracle Clusterware CSSDMONITOR process is starting with operating system process ID 194731
2022-01-27 22:06:19.246 [CSSDAGENT(194764)]CRS-8500: Oracle Clusterware CSSDAGENT process is starting with operating system process ID 194764
2022-01-27 22:06:19.863 [OCSSD(194781)]CRS-8500: Oracle Clusterware OCSSD process is starting with operating system process ID 194781
2022-01-27 22:06:20.976 [OCSSD(194781)]CRS-1713: CSSD daemon is started in hub mode
2022-01-27 22:06:26.984 [OCSSD(194781)]CRS-1707: Lease acquisition for node rac1 number 1 completed
2022-01-27 22:06:28.150 [OCSSD(194781)]CRS-1621: The IPMI configuration data for this node stored in the Oracle registry is incomplete; details at (:CSSNK00002:) in /oragrid/base/diag/crs/rac1/crs/trace/ocssd.trc
2022-01-27 22:06:28.150 [OCSSD(194781)]CRS-1617: The information required to do node kill for node rac1 is incomplete; details at (:CSSNM00004:) in /oragrid/base/diag/crs/rac1/crs/trace/ocssd.trc
2022-01-27 22:06:28.157 [OCSSD(194781)]CRS-1605: CSSD voting file is online: /dev/ASM/OCR; details in /oragrid/base/diag/crs/rac1/crs/trace/ocssd.trc.




2022-01-27 22:21:41.345 [EVMD(201322)]CRS-8500: Oracle Clusterware EVMD process is starting with operating system process ID 201322
2022-01-27 22:21:42.388 [GPNPD(201363)]CRS-8500: Oracle Clusterware GPNPD process is starting with operating system process ID 201363
2022-01-27 22:21:43.212 [GPNPD(201363)]CRS-2328: GPNPD started on node rac1. 
2022-01-27 22:21:43.488 [GIPCD(201443)]CRS-8500: Oracle Clusterware GIPCD process is starting with operating system process ID 201443
2022-01-27 22:21:47.762 [OSYSMOND(201485)]CRS-8500: Oracle Clusterware OSYSMOND process is starting with operating system process ID 201485
2022-01-27 22:21:47.730 [CSSDMONITOR(201483)]CRS-8500: Oracle Clusterware CSSDMONITOR process is starting with operating system process ID 201483
2022-01-27 22:21:48.309 [CSSDAGENT(201516)]CRS-8500: Oracle Clusterware CSSDAGENT process is starting with operating system process ID 201516
2022-01-27 22:21:48.947 [OCSSD(201533)]CRS-8500: Oracle Clusterware OCSSD process is starting with operating system process ID 201533
2022-01-27 22:21:50.088 [OCSSD(201533)]CRS-1713: CSSD daemon is started in hub mode
2022-01-27 22:21:56.129 [OCSSD(201533)]CRS-1707: Lease acquisition for node rac1 number 1 completed
2022-01-27 22:21:57.302 [OCSSD(201533)]CRS-1621: The IPMI configuration data for this node stored in the Oracle registry is incomplete; details at (:CSSNK00002:) in /oragrid/base/diag/crs/rac1/crs/trace/ocssd.trc
2022-01-27 22:21:57.303 [OCSSD(201533)]CRS-1617: The information required to do node kill for node rac1 is incomplete; details at (:CSSNM00004:) in /oragrid/base/diag/crs/rac1/crs/trace/ocssd.trc
2022-01-27 22:21:57.308 [OCSSD(201533)]CRS-1605: CSSD voting file is online: /dev/ASM/OCR; details in /oragrid/base/diag/crs/rac1/crs/trace/ocssd.trc.
2022-01-27 22:22:03.055 [OCSSD(201533)]CRS-1601: CSSD Reconfiguration complete. Active nodes are rac1 rac2 .
2022-01-27 22:22:04.606 [OCSSD(201533)]CRS-1720: Cluster Synchronization Services daemon (CSSD) is ready for operation.
2022-01-27 22:22:04.978 [OCTSSD(201744)]CRS-8500: Oracle Clusterware OCTSSD process is starting with operating system process ID 201744

728x90

'ORACLE' 카테고리의 다른 글

[ORACLE] INCREMENTAL BACKUP (Crontab)  (0) 2022.03.07
[ORACLE] RMAN FULLBACKUP (Crontab)  (1) 2022.03.07
[ORACLE] solaris 11.4 - Oracle Database 12c RAC install  (0) 2022.01.17
[ORACLE] Recyclebin  (0) 2022.01.14
[ORACLE] engine silent 명령어  (0) 2022.01.14
728x90

-- 사전환경

--- IP

ipadm show-if --interface 확인
ipadm create-ip net0 --interface 생성
ipadm delete-ip net0

ipadm create-addr -T static -a local=192.168.223.221/24 net0/prod
ipadm create-addr -T static -a local=10.10.10.211/16 net1
ipadm show-addr

---/etc/hosts

## public
192.168.223.221 solaris1
192.168.223.222 solaris2

## private
10.10.10.221 solaris1-priv
10.10.10.222 solaris2-priv

## vip
192.168.223.223 solaris1-vip
192.168.223.224 solaris2-vip

## scan
192.168.223.225 solaris-scan

--- 방화벽

svcadm disable firewall
svcadm disable network

--- group, user 생성

groupadd dba
useradd -g dba -d /export/home/oracle -m oracle
passwd oracle

--- kernel setting

projadd -U oracle -G dba -K "project.max-shm-memory=(priv,600m,deny)" user.oracle
projmod -U oracle -G dba -K "project.max-shm-memory=(priv,3G,deny)" user.oracle
projmod -s -K "process.max-sem-nsems =(priv,256,deny)" user.oracle
projmod -sK "project.max-sem-ids=(priv,100,deny)" user.oracle
projmod -sK "project.max-shm-ids=(priv,100,deny)" user.oracle
projmod -sK "tcp_smallest_anon_port=(priv,9000,deny)" user.oracle
projmod -sK "tcp_largest_anon_port=(priv,65500,deny)" user.oracle
projmod -sK "udp_smallest_anon_port=(priv,9000,deny)" user.oracle
projmod -sK "udp_largest_anon_port=(priv,65500,deny)" user.oracle
projmod -s -K "process.max-file-descriptor=(priv,4096,deny)" user.oracle

cat /etc/project

--- Disk Partition

root@solaris:~# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c1d0 <VBOX HAR-88343a3a-0b8bca1-0001-50.00GB>
          /pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
       1. c1d1 <VBOX HAR-933a7fed-e636102-0001 cyl 3914 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0
  
Specify disk (enter its number): 1
selecting c1d1
Controller working list found
[disk formatted, defect list found]
No Solaris fdisk partition found.


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        show       - translate a disk address
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show disk ID
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit

format> fdisk
No fdisk table exists. The default partition for the disk is:

  a 100% "SOLARIS System" partition

Type "y" to accept the default partition,  otherwise type "n" to edit the
 partition table.
y

format> p

PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit

partition> print
Current partition table (default):
Total disk cylinders available: 3913 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0         (0/0/0)           0
  1 unassigned    wm       0               0         (0/0/0)           0
  2     backup    wu       0 - 3912       29.98GB    (3913/0/0) 62862345
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6 unassigned    wm       0               0         (0/0/0)           0
  7 unassigned    wm       0               0         (0/0/0)           0
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 alternates    wm       1 -    2       15.69MB    (2/0/0)       32130

partition> 0
Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0               0         (0/0/0)           0

Enter partition id tag[unassigned]: 
Enter partition permission flags[wm]: 
Enter new starting cyl[0]: 3
Enter partition size[0b, 0c, 3e, 0.00mb, 0.00gb]: 10gb --나머지 선택할 경우 $

partition> print
Current partition table (unnamed):
Total disk cylinders available: 3913 + 2 (reserved cylinders)

format> label
Ready to label disk, continue? yes

format> quit

chown -R oracle:dba c1d1*

-- Profile

PATH=$PATH:$HOME/.local/bin:$HOME/bin
export ODI_SUPERVISOR_ENCODED_PASS=LoiOxAMgVygJvPHXOsD7Zw==
export LANG=C
export PATH
export PS1="[\u@\h-$ORACLE_SID:\w]$"
export EDITOR=vi # ed for sqlplus
export ORACLE_BASE=/oracle/base
export GRID_BASE=/oragrid/base
export GRID_HOME=/oragrid/product/12
export ORACLE_HOME=$ORACLE_BASE/product/12
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
export BASE_PATH=/usr/sbin:$PATH
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME:/usr/bin:$GRID_HOME/bin:$GRID_HOME/OPatch
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export NLS_LANG=american_america.AL32UTF8
stty erase ^H

 

-- GRID Install

12c OCR 39G 이상이어야함

 

 

 

728x90

'ORACLE' 카테고리의 다른 글

[ORACLE] INCREMENTAL BACKUP (Crontab)  (0) 2022.03.07
[ORACLE] RMAN FULLBACKUP (Crontab)  (1) 2022.03.07
[ORACLE] RAC interconnect MTU 값이 다를경우 log  (0) 2022.01.28
[ORACLE] Recyclebin  (0) 2022.01.14
[ORACLE] engine silent 명령어  (0) 2022.01.14
728x90
-- 사전 설정 
SQL> show parameter recyclebin; 

NAME      TYPE  VALUE
------------------------------------ ----------- ------------------------------
recyclebin      string  on
 
SQL> alter session set recyclebin=on;
 
-- recyclebin 조회

SQL> drop table oggs.tcustmer;
SQL> drop table oggs.tcustord;

* 일반 유저에서 조회됨 / sys, system 계정에서 조회 안됨

SQL> set line 3000
SQL> col OBJECT_NAME for a40
SQL> col ORIGINAL_NAME for a10
SQL> col PARTITION_NAME for a20
SQL> select * from recyclebin;
OBJECT_NAME  ORIGINAL_N OPERATION TYPE TS_NAME         CREATETIME     DROPTIME   DROPSCN PARTITION_NAME       CAN CAN   RELATED BASE_OBJECT PURGE_OBJECT SPACE
---------------------------------------- ---------- --------- ------------------------- ------------------------------ ------------------- ------------------- ---------- -------------------- --- --- ---------- ----------- ------------ ----------
BIN$1TRHJo4GnongU9MyEKxDHw==$0  SYS_C00621 DROP      INDEX OGG        2022-01-07:03:06:00 2022-01-10:00:04:57   2330551        NO  YES     66008 66008      66009     8
 3
 
BIN$1TRHJo4HnongU9MyEKxDHw==$0  TCUSTMER   DROP      TABLE OGG        2022-01-07:03:06:00 2022-01-10:00:04:57   2330555        YES YES     66008 66008      66008     8
BIN$1TRHJo4JnongU9MyEKxDHw==$0  SYS_C00621 DROP      INDEX OGG        2022-01-07:03:06:00 2022-01-10:00:06:39   2330826        NO  YES     66010 66010      66011     8
 4
 
BIN$1TRHJo4KnongU9MyEKxDHw==$0  TCUSTORD   DROP      TABLE OGG        2022-01-07:03:06:00 2022-01-10:00:06:39   2330831        YES YES     66010 66010      66010     8
 

SQL> select * from "BIN$1TRHJo4HnongU9MyEKxDHw==$0";


CUST NAME     CITY  ST
---- ------------------------------ -------------------- --
WILL BG SOFTWARE CO.     SEATTLE  WA
JANE ROCKY FLYER INC.     DENVER  CO

-- recyclebin 복구

SQL> flashback table tcustmer to before drop;
SQL> flashback table tcustmer to before drop rename to t1;
Flashback complete.

SQL> select * from tcustmer;


CUST NAME     CITY  ST
---- ------------------------------ -------------------- --
WILL BG SOFTWARE CO.     SEATTLE  WA
JANE ROCKY FLYER INC.     DENVER  CO

-- recyclebin 삭제

SQL> purge table "BIN$1TRHJo4KnongU9MyEKxDHw==$0";
Table purged.

SQL> select * from recyclebin;
no rows selected

728x90
728x90

./runInstaller -silent -force -showProgress -waitforcompletion -ignoreSysPrereqs -ignorePrereqFailure \
FROM_LOCATION=/stage/12.2.0.1.0/database/stage/products.xml \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=dba \
ORACLE_HOME=/oracle/app/product/12.2.0.1 \
ORACLE_HOME_NAME="OraDb122_Home1" \
ORACLE_BASE=/oracle/app \
INVENTORY_LOCATION=/oracle/app/oraInventory
oracle.install.db.InstallEdition=EE \
oracle.install.db.isCustomInstall=false \
oracle.install.db.DBA_GROUP=dba \
oracle.install.db.OPER_GROUP=dba \
oracle.install.db.OSBACKUPDBA_GROUP=dba \
oracle.install.db.OSDGDBA_GROUP=dba \
oracle.install.db.OSKMDBA_GROUP=dba \
oracle.install.db.OSRACDBA_GROUP=dba \
DECLINE_SECURITY_UPDATES=true

728x90
728x90

* extract, replicat process DDL parameter 주석처리 or 삭제

 

$sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Jan 13 02:42:06 2022
Version 19.13.0.0.0
Copyright (c) 1982, 2021, Oracle.  All rights reserved.
Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.13.0.0.0

SQL> @ddl_disable
Trigger altered.

SQL> @ddl_remove
DDL replication removal script.
WARNING: this script removes all DDL replication objects and data.
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.
Enter Oracle GoldenGate schema name:oggs
Working, please wait ...
Spooling to file ddl_remove_spool.txt
Script complete.

SQL> select object_name from all_objects where object_type='TABLE' and owner='OGGS';

OBJECT_NAME
--------------------------------------------------------------------------------
GGS_DDL_RULES
GGS_DDL_RULES_LOG
GGS_MARKER
GGS_STICK
GGS_TEMP_COLS
TCUSTMER
TCUSTORD
7 rows selected.

SQL> @marker_remove

Marker removal script.
WARNING: this script removes all marker objects and data.
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.
Enter Oracle GoldenGate schema name:oggs
PL/SQL procedure successfully completed.

DROP SEQUENCE "OGGS" ."GGS_MARKER_SEQ"
                      *
ERROR at line 1:
ORA-02289: sequence does not exist

DROP TABLE "OGGS" ."GGS_MARKER"
                   *
ERROR at line 1:
ORA-00942: table or view does not exist
Script complete.

 

SQL> @ddl_status
Please enter the name of a schema for the GoldenGate database objects:
oggs

Setting schema name to OGGS

CLEAR_TRACE STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

CREATE_TRACE STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

TRACE_PUT_LINE STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

INITIAL_SETUP STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

DDLVERSIONSPECIFIC PACKAGE STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

DDLREPLICATION PACKAGE STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

DDLREPLICATION PACKAGE BODY STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

DDL IGNORE TABLE
-----------------------------------
OK

DDL IGNORE LOG TABLE
-----------------------------------
OK

DDLAUX PACKAGE STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

DDLAUX PACKAGE BODY STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

SYS.DDLCTXINFO PACKAGE STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

SYS.DDLCTXINFO PACKAGE BODY STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

DDL HISTORY TABLE
-----------------------------------
FAILED: Table does not exist

DDL HISTORY TABLE(1)
-----------------------------------
FAILED: Table does not exist

DDL DUMP TABLES
-----------------------------------
FAILED: Table does not exist

DDL DUMP COLUMNS
-----------------------------------
FAILED: Table does not exist

DDL DUMP LOG GROUPS
-----------------------------------
FAILED: Table does not exist

DDL DUMP PARTITIONS
-----------------------------------
FAILED: Table does not exist

DDL DUMP PRIMARY KEYS
-----------------------------------
FAILED: Table does not exist

DDL SEQUENCE
-----------------------------------
FAILED: Sequence does not exist

GGS_TEMP_COLS
-----------------------------------
OK

GGS_TEMP_UK
-----------------------------------
FAILED: Table does not exist

DDL TRIGGER CODE STATUS:

Line/pos
----------------------------------------
Error
-----------------------------------------------------------------
No errors
No errors

DDL TRIGGER INSTALL STATUS
-----------------------------------
FAILED: Trigger not found
FROM "OGGS" ."GGS_SETUP"
             *
ERROR at line 2:
ORA-00942: table or view does not exist

FROM "OGGS" ."GGS_SETUP"
             *
ERROR at line 2:
ORA-00942: table or view does not exist

FROM "OGGS" ."GGS_SETUP"
             *
ERROR at line 2:
ORA-00942: table or view does not exist

LOCATION OF DDL TRACE FILE
--------------------------------------------------------------------------------
/oracle/base/product/19.3/rdbms/log/ggs_ddl_trace.log

Analyzing installation status...

BEGIN :finalRes := "OGGS" .ddlora_verifyDDL (); END;

                    *
ERROR at line 1:
ORA-06550: line 1, column 21:
PLS-00201: identifier 'OGGS.DDLORA_VERIFYDDL' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

SELECT value "VERSION OF DDL REPLICATION" FROM "OGGS" ."GGS_SETUP" WHERE property='LABEL'
                                                       *
ERROR at line 1:
ORA-00942: table or view does not exist


STATUS OF DDL REPLICATION
--------------------------------------------------------------------------------



728x90

'OGG' 카테고리의 다른 글

[OGG] OGG-01496 Failed to open target trail file  (0) 2022.01.14
[OGG] DDL 설정  (3) 2022.01.13
[OGG] Password 암호화  (0) 2022.01.13
[OGG] Process 변경 및 삭제  (0) 2022.01.13
[OGG] Process 연동  (0) 2022.01.13
728x90
OGG-01496  Failed to open target trail file ./dirdat/rx000000000, at RBA 2492.
 
GGSCI (oggsource) 5> alter pmp01 etrollover   
 
2020-07-29 19:22:11  INFO    OGG-01520  Rollover performed.  For each affected output trail of Version 10 or higher format, after starting the source extract, issue ALTER EXTSEQNO for that trail's reader (either pump EXTRACT or REPLICAT) to move the reader's scan to the new trail file;  it will not happen automatically.
EXTRACT altered.
 
GGSCI (oggsource) 9> info pmp01 detail
 
EXTRACT    PMP01     Last Started 2020-07-29 19:22   Status RUNNING
Checkpoint Lag       00:00:00 (updated 00:00:00 ago)
Process ID           10267
Log Read Checkpoint  File /ogg/oggs/dirdat/ex000000000
                     2020-07-29 18:18:45.134008  RBA 2453
 
  Target Extract Trails:
  Trail Name                                       Seqno        RBA     Max MB Trail Type
  ./dirdat/rx                                          1          0         50 RMTTRAIL  
 
  Extract Source                          Begin             End             
  /ogg/oggs/dirdat/ex000000000            2020-07-29 18:18  2020-07-29 18:18
  /ogg/oggs/dirdat/ex000000000            * Initialized *   2020-07-29 18:18
  /ogg/oggs/dirdat/ex000000000            2020-07-29 18:18  2020-07-29 18:18
  /ogg/oggs/dirdat/ex000000000            2020-07-29 18:18  2020-07-29 18:18
  /ogg/oggs/dirdat/ex000000000            * Initialized *   2020-07-29 18:18
  ./dirdat/ex000000000                    * Initialized *   First Record    
 
Current directory    /ogg/oggs
 
Report file          /ogg/oggs/dirrpt/PMP01.rpt
Parameter file       /ogg/oggs/dirprm/pmp01.prm
Checkpoint file      /ogg/oggs/dirchk/PMP01.cpe
Process file         
Error log            /ogg/oggs/ggserr.log
 
 
GGSCI (oggtarget) 14> stop rep01
 
Sending STOP request to REPLICAT REP01 ...
Request processed.
 
GGSCI (oggtarget) 15> alter rep01 extseqno 1, extrba 0
 
2020-07-30 03:41:27  INFO    OGG-06594  Replicat REP01 has been altered. Even the start up position might be updated, duplicate suppression remains active in next startup. To override duplicate suppression, start REP01 with NOFILTERDUPTRANSACTIONS option.
 
REPLICAT altered.

 

728x90

'OGG' 카테고리의 다른 글

[OGG] DDL Deinstall  (0) 2022.01.14
[OGG] DDL 설정  (3) 2022.01.13
[OGG] Password 암호화  (0) 2022.01.13
[OGG] Process 변경 및 삭제  (0) 2022.01.13
[OGG] Process 연동  (0) 2022.01.13
728x90

GGSCI (single) 1> edit param ./GLOBALS
GGSCHEMA OGGS

SQL> select username, default_tablespace from dba_users where username='OGGS';
USERNAME
--------------------------------------------------------------------------------
DEFAULT_TABLESPACE
------------------------------
OGGS
OGG

SQL> select username from dba_users where default_tablespace='OGG'; -> tablespace를 다른 유저와 공유X
USERNAME
--------------------------------------------------------------------------------
OGGT
OGGS

 

- tablespace 변경

SQL> create tablespace oggt datafile '/oracle/base/oradata/ORCL/oggt.dbf' size 100M autoextend on;
Tablespace created.

SQL> alter user OGGT default tablespace oggt;
User altered.

SQL> select username from dba_users where default_tablespace='OGGT';
USERNAME
--------------------------------------------------------------------------------
OGGT


$sqlplus / as sysdba

SQL> @marker_setup
Marker setup script
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:oggs


Marker setup table script complete, running verification script...
Please enter the name of a schema for the GoldenGate database objects:
Setting schema name to OGGS
MARKER TABLE
-------------------------------
OK
MARKER SEQUENCE
-------------------------------
OK
Script complete.


SQL> @ddl_setup
Oracle GoldenGate DDL Replication setup script
Verifying that current user has privileges to install DDL Replication...
You will be prompted for the name of a schema for the Oracle GoldenGate database objects.
NOTE: For an Oracle 10g source, the system recycle bin must be disabled. For Oracle 11g and later, it can be enabled
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:oggs
Working, please wait ...
Spooling to file ddl_setup_spool.txt
Checking for sessions that are holding locks on Oracle Golden Gate metadata tables ...
Check complete.

Using OGGS as a Oracle GoldenGate schema name.
Working, please wait ...
DDL replication setup script complete, running verification script...
Please enter the name of a schema for the GoldenGate database objects:
Setting schema name to OGGS

CLEAR_TRACE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
CREATE_TRACE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
TRACE_PUT_LINE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
INITIAL_SETUP STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDLVERSIONSPECIFIC PACKAGE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDLREPLICATION PACKAGE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDLREPLICATION PACKAGE BODY STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDL IGNORE TABLE
-----------------------------------
OK
DDL IGNORE LOG TABLE
-----------------------------------
OK
DDLAUX PACKAGE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDLAUX PACKAGE BODY STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
SYS.DDLCTXINFO PACKAGE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
SYS.DDLCTXINFO PACKAGE BODY STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDL HISTORY TABLE
-----------------------------------
OK
DDL HISTORY TABLE(1)
-----------------------------------
OK
DDL DUMP TABLES
-----------------------------------
OK
DDL DUMP COLUMNS
-----------------------------------
OK
DDL DUMP LOG GROUPS
-----------------------------------
OK
DDL DUMP PARTITIONS
-----------------------------------
OK
DDL DUMP PRIMARY KEYS
-----------------------------------
OK
DDL SEQUENCE
-----------------------------------
OK
GGS_TEMP_COLS
-----------------------------------
OK
GGS_TEMP_UK
-----------------------------------
OK
DDL TRIGGER CODE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDL TRIGGER INSTALL STATUS
-----------------------------------
OK
DDL TRIGGER RUNNING STATUS
------------------------------------------------------------------------------------------------------------------------
ENABLED
STAYMETADATA IN TRIGGER
------------------------------------------------------------------------------------------------------------------------
OFF
DDL TRIGGER SQL TRACING
------------------------------------------------------------------------------------------------------------------------
0
DDL TRIGGER TRACE LEVEL
------------------------------------------------------------------------------------------------------------------------
NONE
LOCATION OF DDL TRACE FILE
------------------------------------------------------------------------------------------------------------------------
/oracle/base/product/19.3/rdbms/log/ggs_ddl_trace.log
Analyzing installation status...

VERSION OF DDL REPLICATION
------------------------------------------------------------------------------------------------------------------------
OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054

STATUS OF DDL REPLICATION
------------------------------------------------------------------------------------------------------------------------
SUCCESSFUL installation of DDL Replication software components

Script complete.

SQL> @role_setup
GGS Role setup script
This script will drop and recreate the role GGS_GGSUSER_ROLE
To use a different role name, quit this script and then edit the params.sql script to change the gg_role parameter to the preferred name. (Do not run the script.)
You will be prompted for the name of a schema for the GoldenGate database objects.
NOTE: The schema must be created prior to running this script.
NOTE: Stop all DDL replication before starting this installation.
Enter GoldenGate schema name:oggs
Wrote file role_setup_set.txt
PL/SQL procedure successfully completed.
Role setup script complete
Grant this role to each user assigned to the Extract, GGSCI, and Manager processes, by using the following SQL command:
GRANT GGS_GGSUSER_ROLE TO <loggedUser>
where <loggedUser> is the user assigned to the GoldenGate processes.


SQL> GRANT GGS_GGSUSER_ROLE TO oggs;
Grant succeeded.

SQL> @ddl_enable
Trigger altered.

SQL> @ddl_status
Please enter the name of a schema for the GoldenGate database objects:
oggs
Setting schema name to OGGS

CLEAR_TRACE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
CREATE_TRACE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
TRACE_PUT_LINE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
INITIAL_SETUP STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDLVERSIONSPECIFIC PACKAGE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDLREPLICATION PACKAGE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDLREPLICATION PACKAGE BODY STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors

DDL IGNORE TABLE
-----------------------------------
OK
DDL IGNORE LOG TABLE
-----------------------------------
OK
DDLAUX PACKAGE STATUS:

Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDLAUX PACKAGE BODY STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
SYS.DDLCTXINFO PACKAGE STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
SYS.DDLCTXINFO PACKAGE BODY STATUS:
Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDL HISTORY TABLE
-----------------------------------
OK
DDL HISTORY TABLE(1)
-----------------------------------
OK
DDL DUMP TABLES
-----------------------------------
OK
DDL DUMP COLUMNS
-----------------------------------
OK
DDL DUMP LOG GROUPS
-----------------------------------
OK
DDL DUMP PARTITIONS
-----------------------------------
OK
DDL DUMP PRIMARY KEYS
-----------------------------------
OK
DDL SEQUENCE
-----------------------------------
OK
GGS_TEMP_COLS
-----------------------------------
OK
GGS_TEMP_UK
-----------------------------------
OK
DDL TRIGGER CODE STATUS:

Line/pos  Error
---------------------------------------- -----------------------------------------------------------------
No errors  No errors
DDL TRIGGER INSTALL STATUS
-----------------------------------
OK
DDL TRIGGER RUNNING STATUS
------------------------------------------------------------------------------------------------------------------------
ENABLED
STAYMETADATA IN TRIGGER
------------------------------------------------------------------------------------------------------------------------
OFF
DDL TRIGGER SQL TRACING
------------------------------------------------------------------------------------------------------------------------
0
DDL TRIGGER TRACE LEVEL
------------------------------------------------------------------------------------------------------------------------
NONE
LOCATION OF DDL TRACE FILE
------------------------------------------------------------------------------------------------------------------------
/oracle/base/product/19.3/rdbms/log/ggs_ddl_trace.log
Analyzing installation status...
VERSION OF DDL REPLICATION
------------------------------------------------------------------------------------------------------------------------
OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054
STATUS OF DDL REPLICATION
------------------------------------------------------------------------------------------------------------------------
SUCCESSFUL installation of DDL Replication software components

SQL>select object_name from all_objects where object_type='TABLE' and owner='OGGS' ->GGS_* table이 생성

OBJECT_NAME
------------------------------------------------------------------------------------------------------------------------
GGS_DDL_COLUMNS
GGS_DDL_HIST
GGS_DDL_HIST_ALT
GGS_DDL_LOG_GROUPS
GGS_DDL_OBJECTS
GGS_DDL_PARTITIONS
GGS_DDL_PRIMARY_KEYS
GGS_DDL_RULES
GGS_DDL_RULES_LOG
GGS_MARKER
GGS_SETUP
GGS_STICK
GGS_TEMP_COLS
GGS_TEMP_UK
TCUSTMER
TCUSTORD
16 rows selected.

GGSCI (single) 1> edit param ext01

--# DDL
DDL INCLUDE ALL
DDLOPTIONS REPORT

GGSCI (single) 2> add extract ext01, tranlog begin now
EXTRACT added.

GGSCI (single) 3> add exttrail ./dirdat/ea, extract ext01, megabytes 1024
EXTTRAIL added.

GGSCI (single) 4> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER     RUNNING                                           
EXTRACT     STOPPED     EXT01       00:00:00      00:00:50    
EXTRACT     RUNNING     PMP01       00:00:00      00:00:00    
REPLICAT    ABENDED     REP01       00:00:00      29:05:35    

GGSCI (single) 5> start ext01
Sending START request to MANAGER ...
EXTRACT EXT01 starting

GGSCI (single) 6> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER     RUNNING                                           
EXTRACT     RUNNING     EXT01       00:00:55      00:00:01    
EXTRACT     RUNNING     PMP01       00:00:00      00:00:05    
REPLICAT    ABENDED     REP01       00:00:00      29:05:40    

GGSCI (single) 7> edit param rep01
--# DDL
DDL INCLUDE ALL
DDLOPTIONS REPORT

GGSCI (single) 8> start rep01
Sending START request to MANAGER ...
REPLICAT REP01 starting

 

GGSCI (single) 9> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER     RUNNING                                           
EXTRACT     RUNNING     EXT01       00:00:00      00:00:08    
EXTRACT     RUNNING     PMP01       00:00:00      00:00:01    
REPLICAT    RUNNING     REP01       00:00:00      00:00:02    

-- replicat process report 조회

2022-01-13 01:24:28  INFO    OGG-00487  DDL operation included [INCLUDE ALL], optype [CREATE], objtype [TABLE], objowner "OGGT", objname "TCUSTORD".
2022-01-13 01:24:28  INFO    OGG-00484  Executing DDL operation.
2022-01-13 01:24:28  INFO    OGG-00483  DDL operation successful.

728x90

'OGG' 카테고리의 다른 글

[OGG] DDL Deinstall  (0) 2022.01.14
[OGG] OGG-01496 Failed to open target trail file  (0) 2022.01.14
[OGG] Password 암호화  (0) 2022.01.13
[OGG] Process 변경 및 삭제  (0) 2022.01.13
[OGG] Process 연동  (0) 2022.01.13
728x90
-- credentialstore
-- 생성
 
>add credentialstore
>alter credentialstore add user oggs password ogg alias ogg1
 
>edit param exta
>useridalias ogg1
 
>dblogin useridalias ogg1
 
-- 확인 
>info credentialstore
 
-- keygen
$cd ogg_home
$keygen 128 5 
-> 128bit 5개 비번 생성
$cd ogg_home
$vi ENCKEYS
-> 확장자 없어야 됨
-> windows : rename ENCKEYS.txt ENCKEYs
 
key1 0x06698F15FD959774D19FD93622AF2367
key2 0x3AB1AB665009D87A9AE721173C73A846
key3 0x6FF9C737A47C1801622F6A7756372D26
key4 0xA441E408F7EF58072B77B25770FBB105
key5 0xD889005A4A63990DF4BEFA3789BF3665
 
$ggsci
>encrypt password ogg AES128 encryption key1
>dblogin userid oggs, password (encrypted password) AES128 encryption key1
 

 

728x90

'OGG' 카테고리의 다른 글

[OGG] OGG-01496 Failed to open target trail file  (0) 2022.01.14
[OGG] DDL 설정  (3) 2022.01.13
[OGG] Process 변경 및 삭제  (0) 2022.01.13
[OGG] Process 연동  (0) 2022.01.13
[OGG] Checkpointtable  (0) 2022.01.13
728x90
-- process 변경
GGSCI (single) 1> stop ext01
Sending STOP request to EXTRACT EXT01 ...
Request processed.
 
GGSCI (single) 2> alter exttrail ./dirdat/ea, extract ext01, megabytes 50
EXTTRAIL altered.
 
GGSCI (single) 3> start ext01
Sending START request to MANAGER ...
EXTRACT EXT01 starting
alter exttrail <trail 경로>, extract <프로세스명>, megabytes <trail file size>
 
-- process 삭제 - classic mode
GGSCI (single) 1> stop ext01
Sending STOP request to EXTRACT EXT01 ...
Request processed.

GGSCI (single) 2> dblogin userid oggs/ogg
Successfully logged into database.

GGSCI (single as oggt@orcl) 3> delete extract ext01
Deleted EXTRACT EXT01.
 

 

728x90

'OGG' 카테고리의 다른 글

[OGG] DDL 설정  (3) 2022.01.13
[OGG] Password 암호화  (0) 2022.01.13
[OGG] Process 연동  (0) 2022.01.13
[OGG] Checkpointtable  (0) 2022.01.13
[OGG] INSTALL _ Redhat  (0) 2022.01.13
728x90
-- Manager process 
$ggsci
GGSCI (single) 1> edit param mgr
PORT 9020
DYNAMICPORTLIST 9011-9019
PURGEOLDEXTRACTS ./dirdat/ea*, MINKEEPFILES 20
LAGCRITICALSECONDS 60 
LAGREPORTMINUTES 5 
LAGINFOMINUTE 5 
GGSCI (single) 2> start mgr
Manager started.
GGSCI (single) 3> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER     RUNNING                                           
EXTRACT     STOPPED     EXT01       00:00:00      00:04:08    
 
-- Extract process

GGSCI (single) 1> edit param ext01

extract ext01
userid oggs, password ogg
exttrail ./dirdat/ea
reportrollover at 00:00
reportcount every 1000, records
table oggs.*;
 
GGSCI (single) 2> add extract ext01, tranlog begin now
EXTRACT added.
 
GGSCI (single) 3> add exttrail ./dirdat/ea, extract ext01
EXTTRAIL added.
 
GGSCI (single) 4> start ext01
 
Sending START request to MANAGER ...
EXTRACT EXT01 starting
 
GGSCI (single) 5> info all
 
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER     RUNNING                                           
EXTRACT     RUNNING     EXT01       00:05:24      00:00:00  
 

-- Data insert

$sqlplus oggs/ogg
 
SQL> @demo_ora_insert
 
1 row created.
1 row created.
1 row created.
1 row created.
Commit complete.
 
SQL> disconn
Disconnected from Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.13.0.0.0
 
SQL> conn oggt
Enter password: 
Connected.
 
SQL> @demo_ora_insert
 
1 row created.
1 row created.
1 row created.
1 row created.
Commit complete.
 
-- Pump process

GGSCI (single) 1> edit param pmp01

extract pmp01
rmthost localhost, mgrport 7840
passthru
rmttrail ./dirdat/ra
table oggs.*;

GGSCI (single) 2> add extract pmp01, exttrailsource ./dirdat/ea

EXTRACT added.
 
GGSCI (single) 3> add rmttrail ./dirdat/ra, extract pmp01
RMTTRAIL added.
 
GGSCI (single) 4> start pmp01
 
Sending START request to MANAGER ...
EXTRACT PMP01 starting
 
GGSCI (single) 5> info all
 
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
 
MANAGER     RUNNING                                           
EXTRACT     RUNNING     EXT01       00:00:00      00:00:06    
EXTRACT     RUNNING     PMP01       00:00:00      00:00:02    
 
-- Replicat process
GGSCI (single) 1> edit param rep01
replicat rep01
userid oggt, password ogg
map oggs.*, target oggt.*;
GGSCI (single) 2> add replicat rep01, exttrail ./dirdat/ra, nodbcheckpoint
REPLICAT added.
 
GGSCI (single) 3> start rep01
Sending START request to MANAGER ...
REPLICAT REP01 starting
 
GGSCI (single) 4> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
 
MANAGER     RUNNING                                           
EXTRACT     RUNNING     EXT01       00:00:00      00:00:08    
EXTRACT     RUNNING     PMP01       00:00:00      00:00:09    
REPLICAT    RUNNING     REP01       00:00:00      00:00:07  
 
728x90

'OGG' 카테고리의 다른 글

[OGG] DDL 설정  (3) 2022.01.13
[OGG] Password 암호화  (0) 2022.01.13
[OGG] Process 변경 및 삭제  (0) 2022.01.13
[OGG] Checkpointtable  (0) 2022.01.13
[OGG] INSTALL _ Redhat  (0) 2022.01.13

+ Recent posts