Saturday, 15 June 2019

WARNING OGG-02045 DB does not have streams_pool_size initialization parameter.


WARNING:

2019-06-15 06:40:03  WARNING OGG-02045  Database does not have streams_pool_size initialization
 parameter configured.

Solution :

set streams_pool_size:

SQL> show parameter streams_pool_size

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
streams_pool_size                    big integer 0

---set paramter as per the system: 

SQL> alter system set streams_pool_size=1G scope=spfile;   

System altered.


OGG-02912 Patch 17030189 is required on your Oracle mining databa se


Error Details:

ERROR OGG-02912 Patch 17030189 is required on your Oracle mining databa
se for trail format RELEASE 12.2 or later.

Solution:

==> Got to GG_HOME:
==> Login to database and execute below script

[oracle@source ggs]$ cd /u01/ggs
[oracle@source ggs]$ ls -ltr prvtlmpg.plb
-rw-r-----. 1 oracle oinstall 9487 May 27 2015 prvtlmpg.plb

[oracle@source ggs]$ sqlplus
SQL*Plus: Release 11.2.0.4.0 Production on Sat Jun 15 06:04:29 2019
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Enter user-name: /as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> @prvtlmpg.plb

Oracle GoldenGate Workaround prvtlmpg
This script provides a temporary workaround for bug 17030189.
It is strongly recommended that you apply the official Oracle
Patch for bug 17030189 from My Oracle Support instead of using
this workaround.
This script must be executed in the mining database of Integrated
Capture. You will be prompted for the username of the mining user.
Use a double quoted identifier if the username is case sensitive
or contains special characters. In a CDB environment, this script
must be executed from the CDB$ROOT container and the mining user
must be a common user.
=========================== WARNING ==========================
You MUST stop all Integrated Captures that belong to this mining
user before proceeding!
================================================================
Enter Integrated Capture mining user: ggadmin
Installing workaround...
No errors.
No errors.
No errors.
Installation completed.
SQL> !pwd
/u01/ggs
SQL> exit

==> start extract process:

GGSCI (source.example.com) 2> start extract DATAPMP1

Sending START request to MANAGER ...
EXTRACT DATAPMP1 starting


GGSCI (source.example.com) 3> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DATAPMP1    00:00:00      00:00:00
EXTRACT     RUNNING     EXTRACT1    00:00:05      00:00:00

Friday, 14 June 2019

OGG-02060 The Oracle mining database is not configured properly to support integrated capture

GGSCI (source.example.com as ggadmin@DB11G) 22> register extract extract1 database
2019-06-15 01:25:58 ERROR OGG-02060 The Oracle mining database is not configured properly to support integrated capture. The following configuration error must be fixed: Operation not supported because enable_goldengate_replication is not set to true.

==> alter enable_goldengate_replication to true in database.

SQL> show parameter enable_goldengate_replication
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
enable_goldengate_replication boolean FALSE

SQL> alter system set enable_goldengate_replication=true scope=spfile;
System altered.

SQL> show parameter enable_goldengate_replication
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
enable_goldengate_replication boolean TRUE

GGSCI (source.example.com) 1> dblogin userid ggadmin@srcdb password ********
Successfully logged into database.
GGSCI (source.example.com as ggadmin@DB11G) 2> register extract extract1 database
2019-06-15 01:29:21 INFO OGG-02003 Extract EXTRACT1 successfully registered with database at SCN 1063327.
GGSCI (source.example.com as ggadmin@DB11G) 3>

How to add integrated extract process in GG



GGSCI (source.example.com as ggadmin@DB11G) 15> edit params extract1


-- Add parameters as per your requirement
-- Change Data Capture parameter file to extract
-- source table changes
--
EXTRACT extract1
USERIDALIAS srcdb DOMAIN admin
LOGALLSUPCOLS
UPDATERECORDFORMAT COMPACT
EXTTRAIL ./dirdat/aa
SOURCECATALOG pdb1
TABLE hr.EMPLOYEES;

TABLE hr.DEPARTMENTS; 

GGSCI (source.example.com as ggadmin@DB11G) 16> add extract extract1, integrated tranlog begin now
EXTRACT (Integrated) added.

GGSCI (source.example.com as ggadmin@DB11G) 20> add exttrail ./dirdat/aa, extract extract1, megabytes 100
EXTTRAIL added.

GGSCI (source.example.com as ggadmin@DB11G) 21> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER     RUNNING
EXTRACT     STOPPED     EXTRACT1    00:00:00      00:06:18

GGSCI (source.example.com as ggadmin@DB11G) 22>

ERROR: Entry already exists in credential store.


[oracle@source ggs]$ ./ggsci

GGSCI (source.example.com) 1>

GGSCI (source.example.com) 2> alter credentialstore add user ggadmin@srcdb alias srcdb domain admin
Password:

ERROR: Entry already exists in credential store.

GGSCI (source.example.com) 3> DELETE CREDENTIALSTORE

Credential store deleted from ./dircrd/.

GGSCI (source.example.com) 5> add credentialstore

Credential store created in ./dircrd/.
GGSCI (source.example.com) 7> alter credentialstore add user ggadmin@srcdb alias srcdb domain admin
Password:

Credential store in ./dircrd/ altered.

GGSCI (source.example.com) 8> dblogin userid ggadmin@srcdb password *******
Successfully logged into database.

How to create credentialstore on 12c GG


==> create wallet first
==> create credentialstore init.
==> add ggadmin user in credentialstore
==> validate credentialstore.

GGSCI (source.example.com) 1> create wallet
Created wallet at location 'dirwlt'.
Opened wallet at location 'dirwlt'.

GGSCI (source.example.com) 2> add credentialstore
Credential store created in ./dircrd/.

GGSCI (source.example.com) 3> alter credentialstore add user ggadmin@source alias srcdb domain admin
Password:
Credential store in ./dircrd/ altered.

GGSCI (source.example.com) 4> info credentialstore domain admin
Reading from ./dircrd/:
Domain: admin
  Alias: srcdb
  Userid: ggadmin@source
GGSCI (source.example.com) 5>

Wednesday, 12 June 2019

Install jenkins on cent OS 7.6


1] Create user jenkins
[root@localhost ~]# adduser jenkins
[root@localhost ~]# passwd jenkins
Changing password for user jenkins.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]#
2] Provide sudo access to user jenkins
3] Enable the Jenkins repository
[jenkins@localhost ~]$ curl --silent --location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
[sudo] password for jenkins:
[jenkins]
name=Jenkins-stable
baseurl=http://pkg.jenkins.io/redhat-stable
gpgcheck=1
[jenkins@localhost ~]$ cat /etc/yum.repos.d/jenkins.repo
[jenkins]
name=Jenkins-stable
baseurl=http://pkg.jenkins.io/redhat-stable
gpgcheck=1
[jenkins@localhost ~]$ sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
4] Install jenkins package.
[jenkins@localhost ~]$ sudo yum install jenkins
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
jenkins                                                                 | 2.9 kB  00:00:00
jenkins/primary_db                                                      |  29 kB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:2.176.1-1.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================
 Package              Arch                Version                   Repository            Size
===============================================================================================
Installing:
 jenkins              noarch              2.176.1-1.1               jenkins               74 M

Transaction Summary
===============================================================================================
Install  1 Package
Total download size: 74 M
Installed size: 74 M
Is this ok [y/d/N]: y
Downloading packages:
jenkins-2.176.1-1.1.noarch.rpm                                          |  74 MB  00:01:08
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : jenkins-2.176.1-1.1.noarch                                                  1/1
  Verifying  : jenkins-2.176.1-1.1.noarch                                                  1/1
Installed:
  jenkins.noarch 0:2.176.1-1.1
Complete!
5] Start jenkins service
[jenkins@localhost ~]$ sudo systemctl start jenkins
[jenkins@localhost ~]$ sudo systemctl status jenkins
● jenkins.service - LSB: Jenkins Automation Server
   Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
   Active: active (running) since Wed 2019-06-12 15:05:15 IST; 6s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 22471 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=0/SUCCESS)
    Tasks: 21
   CGroup: /system.slice/jenkins.service
           └─22492 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headl...
Jun 12 15:05:13 localhost.localdomain systemd[1]: Starting LSB: Jenkins Automation Server...
Jun 12 15:05:13 localhost.localdomain runuser[22476]: pam_unix(runuser:session): session o...0)
Jun 12 15:05:15 localhost.localdomain jenkins[22471]: Starting Jenkins [  OK  ]
Jun 12 15:05:15 localhost.localdomain systemd[1]: Started LSB: Jenkins Automation Server.
Hint: Some lines were ellipsized, use -l to show in full.
[jenkins@localhost ~]$
[jenkins@localhost ~]$ sudo systemctl enable jenkins
6] Enable port on machine for jenkins URL
[jenkins@localhost ~]$ sudo firewall-cmd --permanent --zone=public --add-port=8080/tcp
sudo firewall-cmd --reload
[jenkins@localhost ~]$ netstat -tulpn | grep :8080
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp6       0      0 :::8080                 :::*                    LISTEN      22492/java    
7] Connect jenkins using below link
8] Select password from given location file.
[jenkins@localhost ~]$ cat /var/lib/jenkins/secrets/initialAdminPassword
c548bf029c674115b99ea3b0f25203e2
9] Click on install suggested plugin.
           
Add caption








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...