Sunday, 24 July 2016

[INS-41112] Specified network interface doesnt maintain connectivity across cluster nodes


[INS-41112] Specified network interface doesnt maintain connectivity across cluster nodes

issue and solution 01:-

restart both node and excute below command..

[oracle@node02 grid]$ ./runcluvfy.sh comp nodecon -n node01,node02 -verbose

Verifying node connectivity

Checking node connectivity...

Checking hosts config file...
  Node Name                             Status
  ------------------------------------  ------------------------
  node02                                passed
  node01                                passed

Verification of the hosts config file successful


Interface information for node "node02"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.132.180 192.168.132.0   0.0.0.0         192.168.132.2   00:50:56:25:A2:E2 1500
 eth1   192.168.223.180 192.168.223.0   0.0.0.0         192.168.132.2   00:50:56:28:FE:F1 1500


Interface information for node "node01"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth1   192.168.223.182 192.168.223.0   0.0.0.0         192.168.132.2   00:50:56:35:72:E6 1500
 eth0   192.168.132.182 192.168.132.0   0.0.0.0         192.168.132.2   00:50:56:31:79:FD 1500


Check: Node connectivity of subnet "192.168.132.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02[192.168.132.180]         node01[192.168.132.182]         yes
Result: Node connectivity passed for subnet "192.168.132.0" with node(s) node02,node01


Check: TCP connectivity of subnet "192.168.132.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02:192.168.132.180          node01:192.168.132.182          passed
Result: TCP connectivity check passed for subnet "192.168.132.0"


Check: Node connectivity of subnet "192.168.223.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02[192.168.223.180]         node01[192.168.223.182]         yes
Result: Node connectivity passed for subnet "192.168.223.0" with node(s) node02,node01


Check: TCP connectivity of subnet "192.168.223.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02:192.168.223.180          node01:192.168.223.182          passed
Result: TCP connectivity check passed for subnet "192.168.223.0"


Interfaces found on subnet "192.168.132.0" that are likely candidates for VIP are:
node02 eth0:192.168.132.180
node01 eth0:192.168.132.182

Interfaces found on subnet "192.168.223.0" that are likely candidates for a private interconnect are:
node02 eth1:192.168.223.180
node01 eth1:192.168.223.182
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "192.168.132.0".
Subnet mask consistency check passed for subnet "192.168.223.0".
Subnet mask consistency check passed.

Result: Node connectivity check passed


Verification of node connectivity was successful.

issue and solution node2:-

check owner of 'CVU_11.2.0.3.0_oracle' location /tmp

[root@node01 tmp]# ls -ltr
total 56
drwx------ 2 root   root     16384 Jul 16 21:08 lost+found
drwxr-xr-x 3    502 oinstall  4096 Jul 24 21:26 OraInstall2016-07-24_09-24-01PM
drwxr-xr-x 3    502 oinstall  4096 Jul 24 21:33 CVU_11.2.0.3.0_oracle
-rwxr-xr-x 1 root   root      8551 Jul 24 21:47 cvuqdisk-1.0.9-1.rpm
drwxr-xr-x 3 oracle oinstall  4096 Jul 24 22:23 OraInstall2016-07-24_10-21-53PM
drwxr-xr-x 3 oracle oinstall  4096 Jul 24 22:42 OraInstall2016-07-24_10-40-33PM
srwxr-xr-x 1 root   root         0 Jul 24 22:51 mapping-root
drwx------ 2 root   root      4096 Jul 24 22:59 gconfd-root
drwxr-xr-x 3 oracle oinstall  4096 Jul 24 23:03 OraInstall2016-07-24_11-02-03PM

[root@node01 tmp]# chown -R oracle:oinstall OraInstall2016-07-24_09-24-01PM
[root@node01 tmp]# chown -R oracle:oinstall CVU_11.2.0.3.0_oracle

[oracle@node02 grid]$ ./runcluvfy.sh comp nodecon -n node01,node02 -verbose

Verifying node connectivity

Checking node connectivity...

Checking hosts config file...
  Node Name                             Status
  ------------------------------------  ------------------------
  node02                                passed
  node01                                passed

Verification of the hosts config file successful


Interface information for node "node02"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.132.180 192.168.132.0   0.0.0.0         192.168.132.2   00:50:56:25:A2:E2 1500
 eth1   192.168.223.180 192.168.223.0   0.0.0.0         192.168.132.2   00:50:56:28:FE:F1 1500


Interface information for node "node01"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth1   192.168.223.182 192.168.223.0   0.0.0.0         192.168.132.2   00:50:56:35:72:E6 1500
 eth0   192.168.132.182 192.168.132.0   0.0.0.0         192.168.132.2   00:50:56:31:79:FD 1500


Check: Node connectivity of subnet "192.168.132.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02[192.168.132.180]         node01[192.168.132.182]         yes
Result: Node connectivity passed for subnet "192.168.132.0" with node(s) node02,node01


Check: TCP connectivity of subnet "192.168.132.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02:192.168.132.180          node01:192.168.132.182          passed
Result: TCP connectivity check passed for subnet "192.168.132.0"


Check: Node connectivity of subnet "192.168.223.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02[192.168.223.180]         node01[192.168.223.182]         yes
Result: Node connectivity passed for subnet "192.168.223.0" with node(s) node02,node01


Check: TCP connectivity of subnet "192.168.223.0"
  Source                          Destination                     Connected?
  ------------------------------  ------------------------------  ----------------
  node02:192.168.223.180          node01:192.168.223.182          passed
Result: TCP connectivity check passed for subnet "192.168.223.0"


Interfaces found on subnet "192.168.132.0" that are likely candidates for VIP are:
node02 eth0:192.168.132.180
node01 eth0:192.168.132.182

Interfaces found on subnet "192.168.223.0" that are likely candidates for a private interconnect are:
node02 eth1:192.168.223.180
node01 eth1:192.168.223.182
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "192.168.132.0".
Subnet mask consistency check passed for subnet "192.168.223.0".
Subnet mask consistency check passed.

Result: Node connectivity check passed


Verification of node connectivity was successful.

Friday, 1 April 2016

Create duplicate(clone) database,Using Rman Duplicate command.

OS details of Both node:-

Linux stand.example.com 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

Red Hat Enterprise Linux Server release 5.4 (Tikanga)

DB name:

SQL> select name from v$database;

NAME
---------
DB11G

Node1 hostname:

stand.example.com

Node2 hostname:

prim.example.com

step1)

create pfile for spfile for duplicate database.

SQL> create pfile from spfile;

File created.

step2)

move password file and pfile to target location.

[oracle@prim dbs]$ scp initDB11G.ora oracle@stand.example.com:/u01/app/oracle/product/11.2.0/db_1/dbs/
oracle@stand.example.com's password:
initDB11G.ora 100% 997 1.0KB/s 00:00

[oracle@prim dbs]$ scp orapwDB11G oracle@stand.example.com:/u01/app/oracle/product/11.2.0/db_1/dbs/
oracle@stand.example.com's password:
orapwDB11G 100% 1536 1.5KB/s 00:00
[oracle@prim dbs]$

step3)

Create directory structure, same as primory database.

$ mkdir -p /u01/app/oracle/oradata/DB11G
$ mkdir -p /u01/app/oracle/fast_recovery_area/DB11G
$ mkdir -p /u01/app/oracle/admin/DB11G/adump

step4)

Start duplicate (tareget) database in nomount.

[oracle@stand admin]$ export $ORACLE_SID=DB11G
[oracle@stand admin]$ echo $ORACLE_SID
DB11G
[oracle@stand admin]$ sqlplus

SQL*Plus: Release 11.2.0.3.0 Production on Fri Apr 1 21:50:36 2016
Copyright (c) 1982, 2011, Oracle. All rights reserved.

Enter user-name: /as sysdba

Connected to an idle instance.

SQL> startup nomount;

ORACLE instance started.
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 503319896 bytes
Database Buffers 331350016 bytes
Redo Buffers 2379776 bytes

SQL> exit

step5)

-->connect rman using target and auxilary command.

[oracle@stand admin]$ rman TARGET sys/Admin123@DB11G AUXILIARY sys/Admin123@TARGET_DB11G

---> run duplicate database command.

RMAN> DUPLICATE DATABASE TO DB11G
FROM ACTIVE DATABASE
SPFILE
NOFILENAMECHECK;

Starting Duplicate Db at 01-APR-16
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=19 device type=DISK
contents of Memory Script:
{
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfileDB11G.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileDB11G.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileDB11G.ora''";
}
executing Memory Script
Starting backup at 01-APR-16
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=17 device type=DISK
Finished backup at 01-APR-16
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileDB11G.ora''
contents of Memory Script:
{
sql clone "alter system set db_name =
''DB11G'' comment=
''duplicate'' scope=spfile";
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
sql statement: alter system set db_name = ''DB11G'' comment= ''duplicate'' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 503319896 bytes
Database Buffers 331350016 bytes
Redo Buffers 2379776 bytes
contents of Memory Script:
{
sql clone "alter system set db_name =
''DB11G'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''DB11G'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format '/u01/app/oracle/oradata/DB11G/control01.ctl';
restore clone controlfile to '/u01/app/oracle/fast_recovery_area/DB11G/control02.ctl' from
'/u01/app/oracle/oradata/DB11G/control01.ctl';
alter clone database mount;
}
executing Memory Script
sql statement: alter system set db_name = ''DB11G'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''DB11G'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 503319896 bytes
Database Buffers 331350016 bytes
Redo Buffers 2379776 bytes
Starting backup at 01-APR-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying current control file
output file name=/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_DB11G.f tag=TAG20160401T215156 RECID=4 STAMP=908056317
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 01-APR-16
Starting restore at 01-APR-16
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=18 device type=DISK
channel ORA_AUX_DISK_1: copied control file copy
Finished restore at 01-APR-16
database mounted
RMAN-05538: WARNING: implicitly using DB_FILE_NAME_CONVERT
contents of Memory Script:
{
set newname for datafile 1 to
"/u01/app/oracle/oradata/DB11G/system01.dbf";
set newname for datafile 2 to
"/u01/app/oracle/oradata/DB11G/sysaux01.dbf";
set newname for datafile 3 to
"/u01/app/oracle/oradata/DB11G/undotbs01.dbf";
set newname for datafile 4 to
"/u01/app/oracle/oradata/DB11G/users01.dbf";
set newname for datafile 5 to
"/u01/app/oracle/oradata/DB11G/example01.dbf";
backup as copy reuse
datafile 1 auxiliary format
"/u01/app/oracle/oradata/DB11G/system01.dbf" datafile
2 auxiliary format
"/u01/app/oracle/oradata/DB11G/sysaux01.dbf" datafile
3 auxiliary format
"/u01/app/oracle/oradata/DB11G/undotbs01.dbf" datafile
4 auxiliary format
"/u01/app/oracle/oradata/DB11G/users01.dbf" datafile
5 auxiliary format
"/u01/app/oracle/oradata/DB11G/example01.dbf" ;
sql 'alter system archive log current';
}
executing Memory Script
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting backup at 01-APR-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/DB11G/system01.dbf
output file name=/u01/app/oracle/oradata/DB11G/system01.dbf tag=TAG20160401T215203
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting datafile copy
input datafile file number=00002 name=/u01/app/oracle/oradata/DB11G/sysaux01.dbf
output file name=/u01/app/oracle/oradata/DB11G/sysaux01.dbf tag=TAG20160401T215203
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting datafile copy
input datafile file number=00005 name=/u01/app/oracle/oradata/DB11G/example01.dbf
output file name=/u01/app/oracle/oradata/DB11G/example01.dbf tag=TAG20160401T215203
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
input datafile file number=00003 name=/u01/app/oracle/oradata/DB11G/undotbs01.dbf
output file name=/u01/app/oracle/oradata/DB11G/undotbs01.dbf tag=TAG20160401T215203
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
channel ORA_DISK_1: starting datafile copy
input datafile file number=00004 name=/u01/app/oracle/oradata/DB11G/users01.dbf
output file name=/u01/app/oracle/oradata/DB11G/users01.dbf tag=TAG20160401T215203
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 01-APR-16
sql statement: alter system archive log current
contents of Memory Script:
{
backup as copy reuse
archivelog like "/u01/Archive/1_78_907544441.dbf" auxiliary format
"/u01/Archive/1_78_907544441.dbf" ;
catalog clone archivelog "/u01/Archive/1_78_907544441.dbf";
switch clone datafile all;
}
executing Memory Script
Starting backup at 01-APR-16
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log copy
input archived log thread=1 sequence=78 RECID=76 STAMP=908056394
output file name=/u01/Archive/1_78_907544441.dbf RECID=0 STAMP=0
channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:01
Finished backup at 01-APR-16
cataloged archived log
archived log file name=/u01/Archive/1_78_907544441.dbf RECID=76 STAMP=908056396
datafile 1 switched to datafile copy
input datafile copy RECID=4 STAMP=908056396 file name=/u01/app/oracle/oradata/DB11G/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=5 STAMP=908056396 file name=/u01/app/oracle/oradata/DB11G/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=6 STAMP=908056396 file name=/u01/app/oracle/oradata/DB11G/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=7 STAMP=908056396 file name=/u01/app/oracle/oradata/DB11G/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=8 STAMP=908056396 file name=/u01/app/oracle/oradata/DB11G/example01.dbf
contents of Memory Script:
{
set until scn 1084167;
recover
clone database
delete archivelog
;
}
executing Memory Script
executing command: SET until clause
Starting recover at 01-APR-16
using channel ORA_AUX_DISK_1
starting media recovery
archived log for thread 1 with sequence 78 is already on disk as file /u01/Archive/1_78_907544441.dbf
archived log file name=/u01/Archive/1_78_907544441.dbf thread=1 sequence=78
media recovery complete, elapsed time: 00:00:01
Finished recover at 01-APR-16
Oracle instance started
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 503319896 bytes
Database Buffers 331350016 bytes
Redo Buffers 2379776 bytes
contents of Memory Script:
{
sql clone "alter system set db_name =
''DB11G'' comment=
''Reset to original value by RMAN'' scope=spfile";
sql clone "alter system reset db_unique_name scope=spfile";
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
sql statement: alter system set db_name = ''DB11G'' comment= ''Reset to original value by RMAN'' scope=spfile
sql statement: alter system reset db_unique_name scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 839282688 bytes
Fixed Size 2233000 bytes
Variable Size 503319896 bytes
Database Buffers 331350016 bytes
Redo Buffers 2379776 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "DB11G" RESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 SIZE 50 M ,
GROUP 2 SIZE 50 M ,
GROUP 3 SIZE 50 M
DATAFILE
'/u01/app/oracle/oradata/DB11G/system01.dbf'
CHARACTER SET WE8MSWIN1252
contents of Memory Script:
{
set newname for tempfile 1 to
"/u01/app/oracle/oradata/DB11G/temp01.dbf";
switch clone tempfile all;
catalog clone datafilecopy "/u01/app/oracle/oradata/DB11G/sysaux01.dbf",
"/u01/app/oracle/oradata/DB11G/undotbs01.dbf",
"/u01/app/oracle/oradata/DB11G/users01.dbf",
"/u01/app/oracle/oradata/DB11G/example01.dbf";
switch clone datafile all;
}
executing Memory Script
executing command: SET NEWNAME
renamed tempfile 1 to /u01/app/oracle/oradata/DB11G/temp01.dbf in control file
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/DB11G/sysaux01.dbf RECID=1 STAMP=908056426
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/DB11G/undotbs01.dbf RECID=2 STAMP=908056426
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/DB11G/users01.dbf RECID=3 STAMP=908056426
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/DB11G/example01.dbf RECID=4 STAMP=908056426
datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=908056426 file name=/u01/app/oracle/oradata/DB11G/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=908056426 file name=/u01/app/oracle/oradata/DB11G/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=908056426 file name=/u01/app/oracle/oradata/DB11G/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=908056426 file name=/u01/app/oracle/oradata/DB11G/example01.dbf
contents of Memory Script:
{
Alter clone database open resetlogs;
}
executing Memory Script
database opened
Finished Duplicate Db at 01-APR-16

step6)

Validation primary database and target database.
on target database side

SQL> select name from v$database;

NAME
---------
DB11G

SQL> !hostname
stand.example.com

SQL> conn scott/******

SQL> show user

USER is "SCOTT"

SQL> select OBJECT_TYPE,count(*) from user_objects group by object_type;

OBJECT_TYPE COUNT(*)
------------------- ----------
INDEX 2
TABLE 5

on primary database side

SQL> select name from v$database;

NAME
---------
DB11G

SQL> !hostname
prim.example.com

SQL> conn scott/******
Connected.

SQL> show user
USER is "SCOTT"

SQL> select OBJECT_TYPE,count(*) from user_objects group by object_type;

OBJECT_TYPE COUNT(*)
------------------- ----------
INDEX 2
TABLE 5

Monday, 7 March 2016

Create and Assign Tablespace to local user in 12c pluggable database.


[oracle@localhost admin]$ sqlplus

SQL*Plus: Release 12.1.0.2.0 Production on Mon Mar 7 16:58:58 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Enter user-name: /as sysdba

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> show con_id

CON_ID
------------------------------
1

SQL> select name,CON_ID from v$tablespace;

NAME                               CON_ID
------------------------------ ----------
SYSAUX                                  1
SYSTEM                                  1
UNDOTBS1                                1
USERS                                   1
TEMP                                    1
SYSTEM                                  2
SYSAUX                                  2
TEMP                                    2
SYSTEM                                  3
SYSAUX                                  3
TEMP                                    3

NAME                               CON_ID
------------------------------ ----------
USERS                                   3

12 rows selected.

SQL> select T.name,T.con_id,C.name
from v$tablespace T,v$containers C
where C.con_id= T.con_id ;  2    3

NAME                               CON_ID NAME
------------------------------ ---------- ------------------------------
TEMP                                    1 CDB$ROOT
USERS                                   1 CDB$ROOT
UNDOTBS1                                1 CDB$ROOT
SYSTEM                                  1 CDB$ROOT
SYSAUX                                  1 CDB$ROOT
TEMP                                    2 PDB$SEED
SYSAUX                                  2 PDB$SEED
SYSTEM                                  2 PDB$SEED
USERS                                   3 PDB1
TEMP                                    3 PDB1
SYSAUX                                  3 PDB1

NAME                               CON_ID NAME
------------------------------ ---------- ------------------------------
SYSTEM                                  3 PDB1

12 rows selected.

SQL> alter session set container=pdb1;

Session altered.

SQL> show con_id;

CON_ID
------------------------------
3
SQL> select con_id, name from v$containers;

    CON_ID NAME
---------- ------------------------------
         3 PDB1

SQL> show user;
USER is "SYS"
SQL> select FILE_NAME from dba_data_files;

FILE_NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/CDB1/2D689955A3305006E055000000000001/datafile/o1_mf_sys
tem_cfs6gb0d_.dbf

/u01/app/oracle/oradata/CDB1/2D689955A3305006E055000000000001/datafile/o1_mf_sys
aux_cfs6gb0v_.dbf

/u01/app/oracle/oradata/CDB1/2D689955A3305006E055000000000001/datafile/o1_mf_use
rs_cfs6h1n7_.dbf


SQL> select T.name,T.con_id,C.name
from v$tablespace T,v$containers C
where C.con_id= T.con_id ;  2    3

NAME                               CON_ID NAME
------------------------------ ---------- ------------------------------
USERS                                   3 PDB1
TEMP                                    3 PDB1
SYSAUX                                  3 PDB1
SYSTEM                                  3 PDB1

SQL> create TABLESPACE test
  DATAFILE '/u01/app/oracle/oradata/CDB1/2D689955A3305006E055000000000001/datafile/test.dbf' SIZE 10M
  AUTOEXTEND ON NEXT 10M;  2    3

Tablespace created.

SQL> select T.name,T.con_id,C.name
from v$tablespace T,v$containers C
where C.con_id= T.con_id ;  2    3

NAME                               CON_ID NAME
------------------------------ ---------- ------------------------------
TEST                                    3 PDB1
USERS                                   3 PDB1
TEMP                                    3 PDB1
SYSAUX                                  3 PDB1
SYSTEM                                  3 PDB1

SQL> create user test
  2  identified by test
  3  default tablespace test
  4  CONTAINER=CURRENT;

User created.

SQL>  select username,DEFAULT_TABLESPACE as usr_T from dba_users where username='TEST';

USERNAME            USR_T                                                                                                        USR_T
-------------------------
TEST                TEST                                                                                                         TEST

SQL> grant connect,resource to test;

Grant succeeded.

SQL> conn test/test@pdb1
Connected.

SQL> create table test01(id number);

Table created.

SQL> insert into test01 values(1);

1 row created.

SQL> /

1 row created.

SQL> /

1 row created.

SQL> commit;

Commit complete.

SQL>  select * from test01;

        ID
----------
         1
         1
         1

SQL> set lines 200
SQL> select TABLE_NAME,TABLESPACE_NAME from user_tables where TABLE_NAME='TEST01';

TABLE_NAME              TABLESPACE_NAME
---------------- ------------------------------
TEST01                     TEST

SQL>
                                       ************END***************

Saturday, 6 February 2016

Oracle 12c database software installation steps .

Oracle 12c database software  installation steps .

Figure1:- deselect  check box and click next button


Figure2:- select install database software and click next

 Figure3:- select single instance database installation and click next button


 Figure4:- select language and click next button

 Figure5:- select enterprise edition and click next button

 Figure6:- specify the oracle base and software location and click next button.

 Figure7:- specify the Inventory Directory location.

 Figure8:- click next button

Figure 9:- click installation button.


Figure10:- run the orainstRoot.sh and root.sh using root user.

Figure11:- click close button.


Thursday, 31 December 2015

Bidirectional DDL replication in goldengate

=====>Node 1 details

OS details:
[oracle@gg1 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

hostname: gg1.example.com

database details:
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production

Database name : Dev1

golden gate details:

Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Apr 23 2012 08:32:14

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


====>Node2 details

OS details:

[oracle@gg2 ~]$ cat /etc/redhat-release

Red Hat Enterprise Linux Server release 5.4 (Tikanga)

hostname: gg2.example.com

database details:
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production

Database name : Dev2

golden gate details:

Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Apr 23 2012 08:32:14

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


====>TNS configuration both node..

edit tnsname.ora

node 1:

DEV2 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = gg2.example.com)(PORT = 1522))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = dev2)
    )
  )

DEV1 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = gg1.example.com)(PORT = 1522))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = dev1)
    )
  )

node 2:


DEV2 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = gg2.example.com)(PORT = 1522))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = dev2)
    )
  )

DEV1 =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = gg1.example.com)(PORT = 1522))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = dev1)
    )
  )


====>On source database


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> SELECT log_mode FROM v$database;

LOG_MODE
------------
ARCHIVELOG

SQL> SELECT force_logging, supplemental_log_data_min FROM v$database;

FOR SUPPLEME
--- --------
NO  NO

SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;

Database altered.

SQL> SELECT force_logging, supplemental_log_data_min FROM v$database;

FOR SUPPLEME
--- --------
NO  YES

SQL> ALTER DATABASE FORCE LOGGING;

Database altered.

SQL> SELECT force_logging, supplemental_log_data_min FROM v$database;

FOR SUPPLEME
--- --------
YES YES

SQL> ALTER SYSTEM SWITCH LOGFILE;

System altered.

SQL> CREATE USER ggate IDENTIFIED BY oracle;

User created.

SQL> grant create session to ggate;

Grant succeeded.


SQL> grant dba to ggate;

Grant succeeded.


SQL> alter system set undo_retention=86400 scope=both;

System altered.

SQL> grant flashback any table to ggate;

Grant succeeded.

SQL>



==>On target server


SQL> SELECT log_mode FROM v$database;

LOG_MODE
------------
ARCHIVELOG

SQL> SELECT force_logging, supplemental_log_data_min FROM v$database;

FOR SUPPLEME
--- --------
NO  NO

SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;

Database altered.

SQL> SELECT force_logging, supplemental_log_data_min FROM v$database;

FOR SUPPLEME
--- --------
NO  YES

SQL> ALTER DATABASE FORCE LOGGING;

Database altered.

SQL> SELECT force_logging, supplemental_log_data_min FROM v$database;

FOR SUPPLEME
--- --------
YES YES

SQL> ALTER SYSTEM SWITCH LOGFILE;

System altered.

SQL> CREATE USER ggate IDENTIFIED BY ggate;

User created.

SQL> grant create session to ggate;

Grant succeeded.

SQL> grant dba to ggate;

Grant succeeded.


SQL> alter system set undo_retention=86400 scope=both;

System altered.

SQL> grant flashback any table to ggate;

Grant succeeded.

SQL>

============> run below sql script on both node(server)

scrip location GG_HOME:
/u01/app/oracle/product/gg

SQL> @marker_setup.sql
SQL> @ddl_setup.sql
SQL> @role_setup.sql
SQL> grant GGS_GGSUSER_ROLE to ggate;
SQL> @/ddl_enable.sql


====>Source

GGSCI (gg1.example.com) 3> dblogin userid ggate, Password ggate
Successfully logged into database.

GGSCI (gg1.example.com) 4> ADD CHECKPOINTTABLE ggate.OGGCHKPT

GGSCI (gg1.example.com) 5> add trandata scott.*

=====>target

GGSCI (gg1.example.com) 3> dblogin userid ggate, Password ggate
Successfully logged into database.

GGSCI (gg1.example.com) 4> ADD CHECKPOINTTABLE ggate.OGGCHKPT

GGSCI (gg1.example.com) 5> add trandata scott.*


Note:creating extract and replicate process on both server.

====>Source

GGSCI (gg1.example.com) 2> edit param mgr

PORT 7809
DYNAMICPORTLIST 7810-7820
PURGEOLDEXTRACTS /u01/app/oracle/product/gg/dirdat/rx*, USECHECKPOINTS, MINKEEPHOURS 2


GGSCI (gg1.example.com) 4> edit param RX1        -----extract process

EXTRACT rx1
USERID ggate, PASSWORD ******
EXTTRAIL /u01/app/oracle/product/gg/dirdat/rx
DDL INCLUDE ALL
TranLogOptions ExcludeUser ggate
TABLE scott.*;

GGSCI (gg1.example.com) 5> edit param DP1       -------datapump process

EXTRACT dp1
USERID ggate, PASSWORD ******
RMTHOST gg2.example.com, MGRPORT 7809
RMTTRAIL /u01/app/oracle/product/gg/dirdat/rt
DDL INCLUDE ALL
TABLE scott.*;


GGSCI (gg1.example.com) 6> edit param REP1      ------replication process

REPLICAT rep1
USERID ggate, PASSWORD ******
ASSUMETARGETDEFS
DISCARDFILE /u01/app/oracle/product/gg/discards, PURGE
HANDLECOLLISIONS
--COMPARECOLS (ON UPDATE ALL, ON DELETE ALL),
--RESOLVECONFLICT (DELETEROWEXISTS, (DEFAULT, IGNORE)),
--RESOLVECONFLICT (UPDATEROWMISSING, (DEFAULT, OVERWRITE)),
--RESOLVECONFLICT (DELETEROWMISSING, (DEFAULT, DISCARD));
DDL INCLUDE ALL
DDLERROR DEFAULT IGNORE
MAP scott.*, TARGET scott.*;

GGSCI (gg1.example.com) 7> ADD EXTRACT rx1, TRANLOG, BEGIN NOW

GGSCI (gg1.example.com) 8> ADD EXTTRAIL /u01/app/oracle/product/gg/dirdat/rx, EXTRACT rx1

GGSCI (gg1.example.com) 9> ADD EXTRACT dp1 EXTTRAILSOURCE /u01/app/oracle/product/gg/dirdat/rx

GGSCI (gg1.example.com) 10> ADD RMTTRAIL /u01/app/oracle/product/gg/dirdat/rt, EXTRACT dp1

GGSCI (gg1.example.com) 11> ADD REPLICAT rep1, EXTTRAIL /u01/app/oracle/product/gg/dirdat/rt CHECKPOINTTABLE rx025n.OGGCHKPT
REPLICAT added.

GGSCI (gg1.example.com) 20> Info ExtTrail *

       Extract Trail: /u01/app/oracle/product/gg/dirdat/rt
             Extract: DP1
               Seqno: 3
                 RBA: 1513
           File Size: 100M

       Extract Trail: /u01/app/oracle/product/gg/dirdat/rx
             Extract: EX1
               Seqno: 3
                 RBA: 1243
           File Size: 100M


========> On targate

GGSCI (gg2.example.com) 2> edit param mgr

PORT 7809
DYNAMICPORTLIST 7810-7820
PURGEOLDEXTRACTS /u01/app/oracle/product/gg/dirdat/rx*, USECHECKPOINTS, MINKEEPHOURS 2


GGSCI (gg2.example.com) 4> edit param RX1        -----extract process

EXTRACT rx1
USERID ggate, PASSWORD ******
EXTTRAIL /u01/app/oracle/product/gg/dirdat/rx
DDL INCLUDE ALL
TranLogOptions ExcludeUser ggate
TABLE scott.*;

GGSCI (gg2.example.com) 5> edit param DP1       -------datapump process

EXTRACT dp1
USERID ggate, PASSWORD ******
RMTHOST gg2.example.com, MGRPORT 7809
RMTTRAIL /u01/app/oracle/product/gg/dirdat/tx
DDL INCLUDE ALL
TABLE scott.*;


GGSCI (gg2.example.com) 6> edit param REP1      ------replication process

REPLICAT rep1
USERID ggate, PASSWORD ******
ASSUMETARGETDEFS
DISCARDFILE /u01/app/oracle/product/gg/discards, PURGE
HANDLECOLLISIONS
--COMPARECOLS (ON UPDATE ALL, ON DELETE ALL),
--RESOLVECONFLICT (DELETEROWEXISTS, (DEFAULT, IGNORE)),
--RESOLVECONFLICT (UPDATEROWMISSING, (DEFAULT, OVERWRITE)),
--RESOLVECONFLICT (DELETEROWMISSING, (DEFAULT, DISCARD));
DDL INCLUDE ALL
DDLERROR DEFAULT IGNORE
MAP scott.*, TARGET scott.*;


GGSCI (gg2.example.com) 7> ADD EXTRACT ex1, TRANLOG, BEGIN NOW
EXTRACT added.

GGSCI (gg2.example.com) 8> ADD EXTTRAIL /u01/app/oracle/product/gg/dirdat/rx, EXTRACT rx1
EXTTRAIL added.

GGSCI (gg2.example.com) 9> ADD EXTRACT dp1 EXTTRAILSOURCE /u01/app/oracle/product/gg/dirdat/rx
EXTRACT added.

GGSCI (gg2.example.com) 10> ADD RMTTRAIL /u01/app/oracle/product/gg/dirdat/tx, EXTRACT dp1
RMTTRAIL added

GGSCI (gg2.example.com) 11> ADD REPLICAT rep1, EXTTRAIL /u01/app/oracle/product/gg/dirdat/tx CHECKPOINTTABLE rx025n.OGGCHKPT
REPLICAT added.


GGSCI (gg2.example.com) 30> Info ExtTrail *

       Extract Trail: /u01/app/oracle/product/gg/dirdat/tx
             Extract: DP1
               Seqno: 0
                 RBA: 0
           File Size: 100M

       Extract Trail: /u01/app/oracle/product/gg/dirdat/rx
             Extract: EX1
               Seqno: 0
                 RBA: 0
           File Size: 100M


======> start gg extract,datapump process on source

- start manager process
- start extract process
- start datapump process

GGSCI (gg1.example.com) 33> start manager

Manager started.


GGSCI (gg1.example.com) 34> start EXTRACT EX1

Sending START request to MANAGER ...
EXTRACT EX1 starting


GGSCI (gg1.example.com) 35> start EXTRACT DP1

Sending START request to MANAGER ...
EXTRACT DP1 starting                       


GGSCI (gg1.example.com) 36> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DP1         00:00:00      00:00:10
EXTRACT     RUNNING     RX1         00:00:00      00:00:03
REPLICAT    STOPPED     REP1        00:00:00      00:20:17

note: replicate process we will start after target extract and replication process.

======> start gg extract,datapump process on targate

- start manager process
- start extract process
- start datapump process

GGSCI (gg2.example.com) 47> start extract EX1

Sending START request to MANAGER ...
EXTRACT EX1 starting


GGSCI (gg2.example.com) 48>  start extract DP1

Sending START request to MANAGER ...
EXTRACT DP1 starting


GGSCI (gg2.example.com) 49> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DP1         00:00:00      00:00:07
EXTRACT     RUNNING     RX1         00:00:00      00:00:04
REPLICAT    STOPPED     REP1        00:00:00      00:00:09

note: replicate process we will start after target extract and replication process.

=======> start gg replicate process on target

GGSCI (gg2.example.com) 50> start REPLICAT REP1

Sending START request to MANAGER ...
REPLICAT REP1 starting

GGSCI (gg1.example.com) 52> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DP1         00:00:00      00:00:03
EXTRACT     RUNNING     RX1         00:00:00      00:00:01
REPLICAT    RUNNING     REP1        00:00:00      00:00:04


=====> start gg replicate process on source

GGSCI (gg1.example.com) 66> start REPLICAT REP1

Sending START request to MANAGER ...
REPLICAT REP1 starting


GGSCI (gg1.example.com) 67> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DP1         00:00:00      00:00:07
EXTRACT     RUNNING     RX1         00:00:00      00:00:04
REPLICAT    RUNNING     REP1        00:00:00      00:00:09

======> create on table on source database (on source)

SQL> create table t2(id number(10) primary key);

Table created.

SQL> select TABLE_NAME from user_tables;

TABLE_NAME
------------------------------
DEPT
EMP
BONUS
SALGRADE
EMP1
T1
T2

7 rows selected.

===> insert one row into dept

SQL> select * from dept;

    DEPTNO DNAME          LOC
---------- -------------- -------------
        66 marketing      new york
        68 testing        perth
        10 ACCOUNTING     NEW YORK
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
        40 OPERATIONS     BOSTON

6 rows selected.

SQL> insert into dept values(11,'test','BROOME');

1 row created.

SQL> commit;

Commit complete.

====> GG process stats


GGSCI (gg1.example.com) 9> stats EX1

Sending STATS request to EXTRACT EX1 ...

Start of Statistics at 2016-01-01 02:39:45.

DDL replication statistics (for all trails):

*** Total statistics since extract started     ***
        Operations                                         1.00
        Mapped operations                                  1.00
        Unmapped operations                                0.00
        Other operations                                   0.00
        Excluded operations                                0.00

Extracting from SCOTT.DEPT to SCOTT.DEPT:

*** Total statistics since 2016-01-01 02:27:07 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Daily statistics since 2016-01-01 02:27:07 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Hourly statistics since 2016-01-01 02:27:07 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Latest statistics since 2016-01-01 02:27:07 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

End of Statistics.

GGSCI (gg1.example.com) 7> stats DP1

Sending STATS request to EXTRACT DP1 ...

Start of Statistics at 2016-01-01 02:31:14.

DDL replication statistics (for all trails):

*** Total statistics since extract started     ***
        Operations                                         1.00
        Mapped operations                                  0.00
        Unmapped operations                                0.00
        Other operations                                   0.00
        Excluded operations                                0.00

Output to /u01/app/oracle/product/gg/dirdat/rt:

Extracting from SCOTT.DEPT to SCOTT.DEPT:

*** Total statistics since 2016-01-01 02:30:56 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Daily statistics since 2016-01-01 02:30:56 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Hourly statistics since 2016-01-01 02:30:56 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Latest statistics since 2016-01-01 02:30:56 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

End of Statistics.

====> replication checking (on target)

GGSCI (gg2.example.com) 8> stats rep1

Sending STATS request to REPLICAT REP1 ...

Start of Statistics at 2016-01-01 02:35:39.

DDL replication statistics:

*** Total statistics since replicat started     ***
        Operations                                         1.00
        Mapped operations                                  1.00
        Unmapped operations                                0.00
        Other operations                                   0.00
        Excluded operations                                0.00
        Errors                                             0.00
        Retried errors                                     0.00
        Discarded errors                                   0.00
        Ignored errors                                     0.00

Replicating from SCOTT.DEPT to SCOTT.DEPT:

*** Total statistics since 2016-01-01 02:35:29 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Daily statistics since 2016-01-01 02:35:29 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Hourly statistics since 2016-01-01 02:35:29 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Latest statistics since 2016-01-01 02:35:29 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

End of Statistics.

SQL> conn scott
Enter password:
Connected.
SQL> select TABLE_NAME from user_tables;

TABLE_NAME
------------------------------
DEPT
EMP
BONUS
SALGRADE
T1
T2

6 rows selected.

SQL> select * from dept;

    DEPTNO DNAME          LOC
---------- -------------- -------------
        68 testing        perth
        10 ACCOUNTING     NEW YORK
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
        40 OPERATIONS     BOSTON
        66 marketing      new york
        11 test           BROOME

7 rows selected.

======> perform DDL and DML opration target

SQL> conn scott
Enter password:
Connected.
SQL> select TABLE_NAME from user_tables;

TABLE_NAME
------------------------------
DEPT
EMP
BONUS
SALGRADE
T1
T2

6 rows selected.

SQL> insert into t2 values(11);

1 row created.

SQL> commit;

Commit complete.

SQL> create table t3(id number(10) primary key);

Table created.

SQL> select TABLE_NAME from user_tables;

TABLE_NAME
------------------------------
DEPT
EMP
BONUS
SALGRADE
T1
T2
T3

7 rows selected.

SQL> select * from t2;

        ID
----------
        11

====> target gg process stats

GGSCI (gg2.example.com) 2> stats EX1

Sending STATS request to EXTRACT EX1 ...

Start of Statistics at 2016-01-01 02:55:17.

DDL replication statistics (for all trails):

*** Total statistics since extract started     ***
        Operations                                        12.00
        Mapped operations                                  2.00
        Unmapped operations                                7.00
        Other operations                                   3.00
        Excluded operations                                0.00

Output to /u01/app/oracle/product/gg/dirdat/ex:

Extracting from RX025N.GGS_MARKER to RX025N.GGS_MARKER:

*** Total statistics since 2016-01-01 02:49:00 ***

        No database operations have been performed.

*** Daily statistics since 2016-01-01 02:49:00 ***

        No database operations have been performed.

*** Hourly statistics since 2016-01-01 02:49:00 ***

        No database operations have been performed.

*** Latest statistics since 2016-01-01 02:49:00 ***

        No database operations have been performed.

Extracting from SCOTT.DEPT to SCOTT.DEPT:

*** Total statistics since 2016-01-01 02:49:00 ***
        Total inserts                                      5.00
        Total updates                                      2.00
        Total deletes                                      4.00
        Total discards                                     0.00
        Total operations                                  11.00

*** Daily statistics since 2016-01-01 02:49:00 ***
        Total inserts                                      5.00
        Total updates                                      2.00
        Total deletes                                      4.00
        Total discards                                     0.00
        Total operations                                  11.00

*** Hourly statistics since 2016-01-01 02:49:00 ***
        Total inserts                                      5.00
        Total updates                                      2.00
        Total deletes                                      4.00
        Total discards                                     0.00
        Total operations                                  11.00

*** Latest statistics since 2016-01-01 02:49:00 ***
        Total inserts                                      5.00
        Total updates                                      2.00
        Total deletes                                      4.00
        Total discards                                     0.00
        Total operations                                  11.00

Extracting from SCOTT.T2 to SCOTT.T2:

*** Total statistics since 2016-01-01 02:49:00 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Daily statistics since 2016-01-01 02:49:00 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Hourly statistics since 2016-01-01 02:49:00 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Latest statistics since 2016-01-01 02:49:00 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

GGSCI (gg2.example.com) 4> stats DP1

Sending STATS request to EXTRACT DP1 ...

Start of Statistics at 2016-01-01 02:55:53.

DDL replication statistics (for all trails):

*** Total statistics since extract started     ***
        Operations                                        12.00
        Mapped operations                                  0.00
        Unmapped operations                                0.00
        Other operations                                   0.00
        Excluded operations                                0.00

Output to /u01/app/oracle/product/gg/dirdat/tx:

Extracting from SCOTT.DEPT to SCOTT.DEPT:

*** Total statistics since 2016-01-01 02:50:01 ***
        Total inserts                                      5.00
        Total updates                                      2.00
        Total deletes                                      4.00
        Total discards                                     0.00
        Total operations                                  11.00

*** Daily statistics since 2016-01-01 02:50:01 ***
        Total inserts                                      5.00
        Total updates                                      2.00
        Total deletes                                      4.00
        Total discards                                     0.00
        Total operations                                  11.00

*** Hourly statistics since 2016-01-01 02:50:01 ***
        Total inserts                                      5.00
        Total updates                                      2.00
        Total deletes                                      4.00
        Total discards                                     0.00
        Total operations                                  11.00

*** Latest statistics since 2016-01-01 02:50:01 ***
        Total inserts                                      5.00
        Total updates                                      2.00
        Total deletes                                      4.00
        Total discards                                     0.00
        Total operations                                  11.00

Extracting from SCOTT.T2 to SCOTT.T2:

*** Total statistics since 2016-01-01 02:50:01 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Daily statistics since 2016-01-01 02:50:01 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Hourly statistics since 2016-01-01 02:50:01 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Latest statistics since 2016-01-01 02:50:01 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

End of Statistics.

=====> cheking replication on source database

GGSCI (gg1.example.com) 17> stats rep1

Sending STATS request to REPLICAT REP1 ...

Start of Statistics at 2016-01-01 03:05:12.

DDL replication statistics:

*** Total statistics since replicat started     ***
        Operations                                        12.00
        Mapped operations                                  1.00
        Unmapped operations                                8.00
        Other operations                                   3.00
        Excluded operations                                0.00
        Errors                                             0.00
        Retried errors                                     0.00
        Discarded errors                                   0.00
        Ignored errors                                     0.00

Replicating from SCOTT.DEPT to SCOTT.DEPT:

*** Total statistics since 2016-01-01 03:05:06 ***
        Total inserts                                      9.00
        Total updates                                      4.00
        Total deletes                                      9.00
        Total discards                                     0.00
        Total operations                                  22.00

*** Daily statistics since 2016-01-01 03:05:06 ***
        Total inserts                                      9.00
        Total updates                                      4.00
        Total deletes                                      9.00
        Total discards                                     0.00
        Total operations                                  22.00

*** Hourly statistics since 2016-01-01 03:05:06 ***
        Total inserts                                      9.00
        Total updates                                      4.00
        Total deletes                                      9.00
        Total discards                                     0.00
        Total operations                                  22.00

*** Latest statistics since 2016-01-01 03:05:06 ***
        Total inserts                                      9.00
        Total updates                                      4.00
        Total deletes                                      9.00
        Total discards                                     0.00
        Total operations                                  22.00

Replicating from SCOTT.T2 to SCOTT.T2:

*** Total statistics since 2016-01-01 03:05:06 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Daily statistics since 2016-01-01 03:05:06 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Hourly statistics since 2016-01-01 03:05:06 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

*** Latest statistics since 2016-01-01 03:05:06 ***
        Total inserts                                      1.00
        Total updates                                      0.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   1.00

End of Statistics.


SQL>  select TABLE_NAME from user_tables;

TABLE_NAME
------------------------------
DEPT
   
EMP
BONUS
SALGRADE    
EMP1
T1
T2
T3

8 rows selected.

SQL>  select * from t2;

        ID
----------
        11


                                    *********END**********


Login to the database as user C##GGUSER failed because of error Error while trying to retrieve text for error ORA-01804.

 Error :  2026-09-19 11:28:18  ERROR   OGG-00303  Unable to connect to database using user C##GGUSER@CDB. Ensure that the necessary privileg...