Quantcast
Channel: Skant Gupta – ORACLE-HELP
Viewing all 171 articles
Browse latest View live

List of Publication

$
0
0

I am listing here 55 articles which I write and are published on the different Oracle Technology Network  (OTN), different Oracle User Group (OUG) and ToadWorld.

OTN Spanish

OTN Portuguese

OTN English

Spain Oracle Users Group (SPOUG)

ToadWorld

Oracle Scene (UKOUG)

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us an Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post List of Publication appeared first on ORACLE-HELP.


ORACLE 19C RPM BASED SOFTWARE INSTALLATION

$
0
0

Oracle 19c can be installed on Oracle Linux using an RPM. This article describes the RPM installation of Oracle Database 19c 64-bit on Oracle Linux 7 (OL7) 64-bit. 

The naming convention for RPM packages is name–version–release.architecture.rpm.

Installing Oracle Database RPM Manually
Login as Root and Download and install the Oracle Preinstallation RPM

[root@oracle19c sw]# curl -o oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 18244  100 18244    0     0  85585      0 --:--:-- --:--:-- --:--:-- 85652

[root@oracle19c sw]# yum -y localinstall oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
Loaded plugins: langpacks, ulninfo
Examining oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm: oracle-database-preinstall-18c-1.0-1.el7.x86_64
oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm: does not update installed package.
Nothing to do

Download the .rpm file from Oracle Technology Network required for performing an RPM-based installation to a directory of your choice. For example, download oracle-database-ee-19c-1.0-1.x86_64.rpm file to the /u01/sw directory. Install the database software using the yum localinstall command.

[root@oracle19c sw]# yum -y localinstall oracle-database-ee-19c-1.0-1.x86_64.rpm
Loaded plugins: langpacks, ulninfo
Examining oracle-database-ee-19c-1.0-1.x86_64.rpm: oracle-database-ee-19c-1.0-1.x86_64
Marking oracle-database-ee-19c-1.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-ee-19c.x86_64 0:1.0-1 will be installed
--> Processing Dependency: oracle-database-preinstall-19c for package: oracle-database-ee-19c-1.0-1.x86_64
ol7_UEKR5                                                                                                                                                             | 1.2 kB  00:00:00
ol7_latest                                                                                                                                                            | 1.4 kB  00:00:00
--> Running transaction check
---> Package oracle-database-preinstall-19c.x86_64 0:1.0-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================
 Package                                                Arch                           Version                            Repository                                                    Size
=============================================================================================================================================================================================
Installing:
 oracle-database-ee-19c                                 x86_64                         1.0-1                              /oracle-database-ee-19c-1.0-1.x86_64                         6.9 G
Installing for dependencies:
 oracle-database-preinstall-19c                         x86_64                         1.0-1.el7                          ol7_latest                                                    18 k

Transaction Summary
=============================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total size: 6.9 G
Total download size: 18 k
Installed size: 6.9 G
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/ol7_latest/packages/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY|    0 B  --:--:-- ETA
Public key for oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm is not installed
oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm                                                                                                                   |  18 kB  00:00:03
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Importing GPG key 0xEC551F03:
 Userid     : "Oracle OSS group (Open Source Software group) "
 Fingerprint: 4214 4123 fecf c55b 9086 313d 72f9 7b74 ec55 1f03
 Package    : 7:oraclelinux-release-7.6-1.0.15.el7.x86_64 (@anaconda/7.6)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : oracle-database-preinstall-19c-1.0-1.el7.x86_64                                                                                                                           1/2
  Installing : oracle-database-ee-19c-1.0-1.x86_64                                                                                                                                       2/2
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-19c configure
  Verifying  : oracle-database-preinstall-19c-1.0-1.el7.x86_64                                                                                                                           1/2
  Verifying  : oracle-database-ee-19c-1.0-1.x86_64                                                                                                                                       2/2

Installed:
  oracle-database-ee-19c.x86_64 0:1.0-1

Dependency Installed:
  oracle-database-preinstall-19c.x86_64 0:1.0-1.el7

Complete!
[root@oracle19c sw]#

The installation of Oracle Database software is now complete. In the next article, we can configure sample database with default listener.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post ORACLE 19C RPM BASED SOFTWARE INSTALLATION appeared first on ORACLE-HELP.

Creating and Configuring an Oracle Database for RPM Based

$
0
0

In the last post, we installed Oracle 19c Database Software by running RPM Package. Now, we are going to create and configure a Database with default Setting.
Log in as root and run the below command to configure an Oracle Database instance.

[root@oracle19c dbhome_1]# /etc/init.d/oracledb_ORCLCDB-19c configure
Configuring Oracle Database ORCLCDB.
[FATAL] [DBT-06103] The port (1,521) is already in use.
   ACTION: Specify a free port.

Database configuration failed.

To resolve the above error, make sure /etc/hosts has configured properly and ping to the server is also working.

[root@oracle19c dbhome_1]# ping oracle19c
ping: oracle19c: Name or service not known

[root@oracle19c dbhome_1]# vi /etc/hosts

[root@oracle19c ~]$ cat /etc/hosts
192.168.2.7 oracle19c oracle19c.localdomain
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

[root@oracle19c ~]$ ping oracle19c
PING oracle19c (192.168.2.7) 56(84) bytes of data.
64 bytes from oracle19c (192.168.2.7): icmp_seq=1 ttl=64 time=0.044 ms
64 bytes from oracle19c (192.168.2.7): icmp_seq=2 ttl=64 time=0.044 ms

Now, re-run the configure for creating database instance.

[root@oracle19c dbhome_1]# /etc/init.d/oracledb_ORCLCDB-19c configure
Configuring Oracle Database ORCLCDB.
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
 /opt/oracle/cfgtoollogs/dbca/ORCLCDB.
Database Information:
Global Database Name:ORCLCDB
System Identifier(SID):ORCLCDB
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details.

Database configuration completed successfully. The passwords were auto generated, you must change them by connecting to the database using 'sqlplus / as sysdba' as the oracle user.
[root@oracle19c dbhome_1]#

Note: You can modify the configuration parameters by changing in a configuration file.

[root@oracle19c sysconfig]# pwd
/etc/sysconfig
[root@oracle19c sysconfig]# cat oracledb_ORCLCDB-19c.conf
#This is a configuration file to setup the Oracle Database.
#It is used when running '/etc/init.d/oracledb_ORCLCDB configure'.
#Please use this file to modify the default listener port and the
#Oracle data location.

# LISTENER_PORT: Database listener
LISTENER_PORT=1521

# ORACLE_DATA_LOCATION: Database oradata location
ORACLE_DATA_LOCATION=/opt/oracle/oradata

# EM_EXPRESS_PORT: Oracle EM Express listener
EM_EXPRESS_PORT=5500
[root@oracle19c sysconfig]#

This script creates a container database (ORCLCDB) with one pluggable database (ORCLPDB1) and configures the listener at the default port (1521). Now, connect to a database with an Oracle user.

[oracle@oracle19c sw]# ps -ef|grep pmon
oracle   29358     1  0 03:47 ?        00:00:00 ora_pmon_ORCLCDB
root     30579 17822  0 03:59 pts/0    00:00:00 grep --color=auto pmon

[oracle@oracle19c sw]$ . oraenv
ORACLE_SID = [oracle] ? ORCLCDB
The Oracle base has been set to /opt/oracle
[oracle@oracle19c sw]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Fri Apr 26 03:59:49 2019
Version 19.3.0.0.0

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


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 ORCLPDB1                       READ WRITE NO

[oracle@oracle19c ~]#

Stop the database instance

[root@oracle19c ~]# /etc/init.d/oracledb_ORCLCDB-19c stop
Shutting down Oracle Database instance ORCLCDB.
Oracle Database instance ORCLCDB shut down.
Stopping Oracle Net Listener.
Oracle Net Listener stopped.

[root@oracle19c ~]#

Start the database instance

[root@oracle19c ~]# /etc/init.d/oracledb_ORCLCDB-19c start
Starting Oracle Net Listener.
Oracle Net Listener started.
Starting Oracle Database instance ORCLCDB.
Oracle Database instance ORCLCDB started.

[root@oracle19c ~]#

Restart the database instance

[root@oracle19c ~]# /etc/init.d/oracledb_ORCLCDB-19c restart
Shutting down Oracle Database instance ORCLCDB.
Oracle Database instance ORCLCDB shut down.
Stopping Oracle Net Listener.
Oracle Net Listener stopped.

Starting Oracle Net Listener.
Oracle Net Listener started.
Starting Oracle Database instance ORCLCDB.
Oracle Database instance ORCLCDB started.

[root@oracle19c ~]#

Delete the database instance

[root@oracle19c ~]# /etc/init.d/oracledb_ORCLCDB-19c delete
Detecting existing Listeners...
Deleting Oracle Listener....
Detecting existing Oracle Databases...
Deleting Oracle Database ORCLCDB.
[WARNING] [DBT-19202] The Database Configuration Assistant will delete the Oracle instances and datafiles for your database. All information in the database will be destroyed.
Prepare for db operation
32% complete
Connecting to database
35% complete
39% complete
42% complete
45% complete
48% complete
52% complete
65% complete
Updating network configuration files
68% complete
Deleting instance and datafiles
84% complete
100% complete
Database deletion completed.
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB0.log" for further details.
[root@oracle19c ~]#

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Creating and Configuring an Oracle Database for RPM Based appeared first on ORACLE-HELP.

Upgrade Oracle DBA 11g or 12c to 12c R2 (1Z0-074)

$
0
0

Hi Readers

Finally, I’ve successfully passed 1Z0-074, Upgrade Oracle DBA 11g or 12c to 12c R2. It was almost more than 3 months that I’ve been preparing for this.

The Exam contains 75 questions related to Oracle Database 12cR2 New Features. To earn this certification you need to get 63% marks.

This was the result of the journey: Oracle Certified Professional, Database 12cR2 Administration.

In this post you will find:

  • A path to achieve it
  • Study Materials
  • Exam Detail & Score

How to Achieve this Certification?

Before appearing to this exam you must have the vast knowledge of Oracle Database 12cR2 and Oracle Database Cloud.

List of exam topics

  • Using CDBs and Application Containers
  • Creating Different Types of PDBs
  • Managing Performance in PDBs and CDBs
  • Creating and Managing Profiles and Privileges
  • Using Data Redaction
  • Using TSPD policies with Auditing and Column Encryption
  • Recovering a database
  • Using Oracle Data Pump, SQL*Loader and External Tables
  • Tuning SQL Statements
  • Applying Different Types of Partitioning
  • Using Diagnostic Enhancements
  • Using SQL Enhancements
  • Administrating Storage
  • Managing Users and Users Access to Data in a Multitenant Environment
  • Recovering and Flashing back CDBs and PDBs
  • Upgrading Database from 11g or 12.1 to 12.2
  • Performing Unified Auditing
  • Using Data Encryption
  • Creating and Managing backup and recovery catalog
  • Transporting a tablespace
  • Performing In-Memory Column Store
  • Memory and Other Performance Enhancements
  • Manageability
  • Managing Oracle Database Cloud Services
  • Using Information Lifecycle Management and Storage Enhancements)

For more detail, you can follow the below link.

https://education.oracle.com/upgrade-oracle-dba-11g-or-12c-to-12c-r2/pexam_1Z0-074

How to prepare for the exam?

There is only one way to study for this exam

  1. Oracle Database 12c R2: New Features for 12c R1 Administrators

How to register for the exam?

If you want to enroll exam, please click on below link.

Exam Number: 1Z0-074

Exam Title: Upgrade Oracle DBA 11g or 12c to 12c R2


https://education.oracle.com/upgrade-oracle-dba-11g-or-12c-to-12c-r2/pexam_1Z0-074

Below are the Exam Details related to scoring.

There is a nice post from my fellow DBA – Alex Zaballa

You Should Avoid Brain Dumps When Preparing for Certifications

Special Thanks

Joel Perez is an Oracle OCM and ACED who gave an opportunity to write him and motivating me to learn new things.  I’m very thankful to him as this was the kick off for my studies.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Upgrade Oracle DBA 11g or 12c to 12c R2 (1Z0-074) appeared first on ORACLE-HELP.

Oracle Cloud Platform Systems Management 2018 Associate (1Z0-930)

$
0
0

Hi Readers

Finally, I’ve successfully passed 1Z0-930, Oracle Cloud Platform Systems Management 2018 Associate. It was almost more than 3 months that I’ve been preparing for this.

The Exam contains 70 questions related to Oracle Management Cloud. To earn this certification you need to get 70% marks.

This was the result of the journey: Oracle Cloud Platform Systems Management 2018 Certified Associate.

In this post you will find:

  • A path to achieve it
  • Study Materials
  • Exam Detail & Score

How to Achieve this Certification?

Before appearing to this exam you must have the vast knowledge of Oracle Management Cloud.

List of exam topics

  • Oracle Management Cloud – Solution Overview
  • Product Area Features and Functions for Technical Individuals
  • Oracle Management Cloud – Standard Edition
  • Oracle Management Cloud Enterprise Edition
  • Oracle Management Cloud Configuration and Compliance Edition
  • Oracle Management Cloud Implementation Readiness
  • Architecture / Service Deployment
  • Oracle Management Cloud – Log Analytics Edition
  • Oracle Management Cloud Security Monitoring and Analytics Edition
  • Oracle Management Cloud Use Cases and Scenarios

For more detail, you can follow the below link.

https://education.oracle.com/oracle-cloud-platform-systems-management-2018-associate/pexam_1Z0-930

How to prepare for the exam?

There is only one way to study for this exam

  1. Oracle Management Cloud Services Learning Subscription

How to register for the exam?

If you want to enrol exam, please click on the below link.

Exam Number: 1Z0-930

Exam Title: Oracle Cloud Platform Systems Management 2018 Associate

https://education.oracle.com/oracle-cloud-platform-systems-management-2018-associate/pexam_1Z0-930

Below are the Exam Details related to scoring.

There is a nice post from my fellow DBA – Alex Zaballa

You Should Avoid Brain Dumps When Preparing for Certifications

Special Thanks

Joel Perez is an Oracle OCM and ACED who gave an opportunity to write him and motivating me to learn new things.  I’m very thankful to him as this was the kick off for my studies.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Oracle Cloud Platform Systems Management 2018 Associate (1Z0-930) appeared first on ORACLE-HELP.

Installing Oracle Database 19c with GitHub Repos

$
0
0

In this post, we can use GitHub reposirotry to fetch the repos and then be installing the Oracle Database 18c.  GitHub must be installed for this feature prerequisite.

In your VM or Bare Metal, check the status and version of GitHub if it is installed.

[root@ORA006 ~]# git version
bash: git: command not found

As GitHub is not configured, we use YUM to install it with root user and recheck for GitHub version.

[root@ORA006 ~]# yum -y install git
[root@ORA006 ~]# git version
git version 1.7.1

In the next step, we need to clone repos from GitHub under the home directory of the root user.

[root@ORA006 ~]# cd
[root@ORA006 ~]# echo $HOME
/root

[root@ORA006 ~]# git clone https://github.com/dockerhelp/docker-oracle-ee-18c.git
Initialized empty Git repository in /root/docker-oracle-ee-18c/.git/
remote: Counting objects: 111, done.
remote: Compressing objects: 100% (101/101), done.
remote: Total 111 (delta 45), reused 9 (delta 1), pack-reused 0
Receiving objects: 100% (111/111), 666.20 KiB, done.
Resolving deltas: 100% (45/45), done.

In the last step, we need to change the permission of a particular file and run it which will perform the following things:

  • Installing required RPMs
  • Configure Oracle user and groups
  • Download the binaries
  • Creating the default directories for Oracle Database
  • Installing the Oracle Software
  • Removing the setup files to save the FS space
  • Installing the default Oracle Database (ORCL19) with one PDB
  • Configure listener and tns entries
[root@instance-20190904-1137 ~]# chmod u+x $HOME/docker-oracle-ee-19c/install/oracle_19c_install.sh

[root@instance-20190904-1137 ~]# sh $HOME/docker-oracle-ee-19c/install/oracle_19c_install.sh
Installing Dependencies
Loaded plugins: langpacks, ulninfo
ol7_UEKR5                                                                                                                                                             | 2.8 kB  00:00:00
ol7_addons                                                                                                                                                            | 2.8 kB  00:00:00
ol7_developer                                                                                                                                                         | 2.8 kB  00:00:00
ol7_developer_EPEL                                                                                                                                                    | 2.8 kB  00:00:00
ol7_ksplice                                                                                                                                                           | 2.8 kB  00:00:00
ol7_latest                                                                                                                                                            | 3.4 kB  00:00:00
ol7_optional_latest                                                                                                                                                   | 2.8 kB  00:00:00
ol7_software_collections                                                                                                                                              | 2.8 kB  00:00:00
(1/17): ol7_UEKR5/x86_64/updateinfo                                                                                                                                   |  49 kB  00:00:00
(2/17): ol7_developer/x86_64/primary_db                                                                                                                               | 423 kB  00:00:00
(3/17): ol7_developer_EPEL/x86_64/updateinfo                                                                                                                          | 4.9 kB  00:00:00
(4/17): ol7_addons/x86_64/primary_db                                                                                                                                  | 128 kB  00:00:00
(5/17): ol7_ksplice/updateinfo                                                                                                                                        | 4.5 kB  00:00:00
(6/17): ol7_ksplice/primary_db                                                                                                                                        | 529 kB  00:00:00
(7/17): ol7_latest/x86_64/group_gz                                                                                                                                    | 148 kB  00:00:00
(8/17): ol7_addons/x86_64/updateinfo                                                                                                                                  |  69 kB  00:00:00
(9/17): ol7_latest/x86_64/updateinfo                                                                                                                                  | 1.1 MB  00:00:00
(10/17): ol7_developer_EPEL/x86_64/primary_db                                                                                                                         |  11 MB  00:00:00
(11/17): ol7_optional_latest/x86_64/updateinfo                                                                                                                        | 851 kB  00:00:00
(12/17): ol7_UEKR5/x86_64/primary_db                                                                                                                                  | 4.7 MB  00:00:00
(13/17): ol7_developer/x86_64/updateinfo                                                                                                                              |   71 B  00:00:00
(14/17): ol7_optional_latest/x86_64/primary_db                                                                                                                        | 4.0 MB  00:00:00
(15/17): ol7_latest/x86_64/primary_db                                                                                                                                 |  14 MB  00:00:00
(16/17): ol7_software_collections/x86_64/updateinfo                                                                                                                   | 8.7 kB  00:00:00
(17/17): ol7_software_collections/x86_64/primary_db                                                                                                                   | 4.7 MB  00:00:00
Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Package unzip-6.0-20.el7.x86_64 already installed and latest version
Package binutils-2.27-41.base.0.1.el7.x86_64 already installed and latest version
Package compat-libcap1-1.10-7.el7.x86_64 already installed and latest version
Package gcc-4.8.5-39.0.1.el7.x86_64 already installed and latest version
Package gcc-c++-4.8.5-39.0.1.el7.x86_64 already installed and latest version
Package glibc-2.17-292.0.1.el7.i686 already installed and latest version
Package glibc-2.17-292.0.1.el7.x86_64 already installed and latest version
Package glibc-devel-2.17-292.0.1.el7.i686 already installed and latest version
Package glibc-devel-2.17-292.0.1.el7.x86_64 already installed and latest version
Package ksh-20120801-139.0.1.el7.x86_64 already installed and latest version
Package compat-libstdc++-33-3.2.3-72.el7.x86_64 already installed and latest version
Package libaio-0.3.109-13.el7.i686 already installed and latest version
Package libaio-0.3.109-13.el7.x86_64 already installed and latest version
Package libaio-devel-0.3.109-13.el7.i686 already installed and latest version
Package libaio-devel-0.3.109-13.el7.x86_64 already installed and latest version
Package libgcc-4.8.5-39.0.1.el7.i686 already installed and latest version
Package libgcc-4.8.5-39.0.1.el7.x86_64 already installed and latest version
Package libstdc++-4.8.5-39.0.1.el7.i686 already installed and latest version
Package libstdc++-4.8.5-39.0.1.el7.x86_64 already installed and latest version
Package libstdc++-devel-4.8.5-39.0.1.el7.i686 already installed and latest version
Package libstdc++-devel-4.8.5-39.0.1.el7.x86_64 already installed and latest version
Package libXi-1.7.9-1.el7.i686 already installed and latest version
Package libXi-1.7.9-1.el7.x86_64 already installed and latest version
Package libXtst-1.2.3-1.el7.i686 already installed and latest version
Package libXtst-1.2.3-1.el7.x86_64 already installed and latest version
Package 1:make-3.82-24.el7.x86_64 already installed and latest version
Package sysstat-10.1.5-18.el7.x86_64 already installed and latest version
Package oracle-database-preinstall-19c-1.0-1.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: langpacks, ulninfo
Cleaning repos: ol7_UEKR5 ol7_addons ol7_developer ol7_developer_EPEL ol7_ksplice ol7_latest ol7_optional_latest ol7_software_collections
Creating Directory
Setting ENV
Downloading oracle database zip
Extracting oracle database zip

setting up Response files
Installing Oracle Binaries
Launching Oracle Database Setup Wizard...

The response file for this session can be found at:
 /u01/app/oracle/product/19.0.0/dbhome_1/install/response/db_2019-09-05_01-03-13PM.rsp

You can find the log of this install session at:
 /u01/app/oraInventory/logs/InstallActions2019-09-05_01-03-13PM/installActions2019-09-05_01-03-13PM.log

As a root user, execute the following script(s):
        1. /u01/app/oracle/product/19.0.0/dbhome_1/root.sh

Execute /u01/app/oracle/product/19.0.0/dbhome_1/root.sh on the following nodes:
[instance-20190904-1137]


Successfully Setup Software.
Done
Last login: Thu Sep  5 13:03:13 GMT 2019 on pts/1
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

SQL*Plus: Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

Default 19c database install with PDB
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
53% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
 /u01/app/oracle/cfgtoollogs/dbca/ORCL19.
Database Information:
Global Database Name:ORCL19
System Identifier(SID):ORCL19
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/ORCL19/ORCL19.log" for further details.
Starting default listener

Parsing command line arguments:
    Parameter "silent" = true
    Parameter "responsefile" = /u01/app/oracle/product/19.0.0/dbhome_1/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Configuring Listener:LISTENER_ORCL19
Listener configuration complete.
Oracle Net Listener Startup:
    Running Listener Control:
      /u01/app/oracle/product/19.0.0/dbhome_1/bin/lsnrctl start LISTENER_ORCL19
    Listener Control complete.
    Listener started successfully.
Profile configuration complete.
Oracle Net Services configuration successful. The exit code is 0
Configuring the TNS
Testing Database
Last login: Thu Sep  5 13:23:05 GMT 2019 on pts/1

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Sep 5 13:23:09 2019
Version 19.3.0.0.0

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


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL>
System altered.

SQL>
NAME      OPEN_MODE
--------- --------------------
ORCL19    READ WRITE

SQL>
    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 PDB19C                         READ WRITE NO
SQL> Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
Cleaning up
DataBase Installed!!!
[root@instance-20190904-1137 ~]#

In the end, it will show you a status of the database.

Note: It is tested on RHELv 6,7  and OEL v6,7 only.

Database Name: ORCL18 with one pluggable database PDB18C has default password Welcome_1. Just switch to oracle user and login to database.

This concept of Oracle Database with GitHub used development, training and learning purpose. We can not recommend using in Production.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Installing Oracle Database 19c with GitHub Repos appeared first on ORACLE-HELP.

Oracle Database Administration 2019 Certified Professional (1Z0-083)

$
0
0

Hi Readers

Finally, I’ve successfully passed 1Z0-083, Oracle Database Administration 2019 Certified Professional. It was almost more than 3 months that I’ve been preparing for this.

The Exam contains 85 questions related to Oracle Database 18c & 19c. To earn this certification you need to get 57% marks. Even with low passing score, it is most toughest OCP exam I had ever.

This was the result of the journey give me 5th OCP (10g, 11g, 12c, 12cR2, 19c) credentials: Oracle Database Administration 2019 Certified Professional.

Prior Certification Requirements

In this post you will find:

  • A path to achieve it
  • Study Materials
  • Exam Detail & Score

How to Achieve this Certification?

Before appearing to this exam you must have the vast knowledge of Oracle Database Administrator.

List of exam topics

  • Oracle Database: Managing Multitenant Architecture Ed 1
    • Creating CDBs and Regular PDBs
    • Manage CDBs and PDBs
    • Upgrading and Transporting CDBs and Regular PDBs
    • Manage Security in Multitenant databases
    • Backup and Duplicate
    • Manage Application PDBs
    • Recovery and Flashback
  • Oracle Database: Backup and Recovery Workshop
    • Backup Strategies and Terminology
    • Configuring and Using RMAN
    • Performing Recovery
    • RMAN Troubleshooting and Tuning
    • Using Flashback Technologies
    • Restore and Recovery Concepts
    • Duplicating a Database
    • Diagnosing Failures
    • Transporting Data
  • Oracle Database: Deploy, Patch and Upgrade Workshop
    • Patching Grid Infrastructure and Oracle Database
    • Creating an Oracle Database by using DBCA
    • Upgrade the Oracle Database
    • Upgrading to Oracle Grid Infrastructure
    • Oracle Restart
    • Install Grid Infrastructure for a Standalone server
  • Oracle Database 18c: New Features
  • Oracle Database 19c: New Features for Administrators
    • Using Availability Enhancements
    • Using General Overall Database Enhancements
  • Oracle Database: Administration Workshop
    • Monitoring and Tuning Database Performance
    • Tuning SQL Statements

For more detail, you can follow the below link.

https://education.oracle.com/oracle-database-administration-ii/pexam_1Z0-083

How to prepare for the exam?

There is only one way to study for this exam

How to register for the exam?

If you want to enroll exam, please click on below link.

Exam Number: 1Z0-083

Exam Title: Oracle Database Administration II

https://education.oracle.com/oracle-database-administration-ii/pexam_1Z0-083

Below are the Exam Details related to scoring.

There is a nice post from my fellow DBA – Alex Zaballa

You Should Avoid Brain Dumps When Preparing for Certifications

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Oracle Database Administration 2019 Certified Professional (1Z0-083) appeared first on ORACLE-HELP.

Jenkins Installation on Oracle Linux

$
0
0

Jenkins is a free and open source automation server. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery.

Let’s begin with installation of jenkins on Linux based server.

  • Login to server and install the java or update the java if it’s already exists. As Jenkins runs on Java.
[opc@bastion filesys]$ sudo yum -y install java
Loaded plugins: langpacks, priorities, ulninfo, versionlock
9 packages excluded due to repository priority protections
Excluding 2 updates due to versionlock (use "yum versionlock status" to show them)
Package 2000:jdk1.8-1.8.0_231-fcs.x86_64 already installed and latest version
Nothing to do
  • After Java installation, we must have the Jenkins YUM repository available.
[opc@bastion filesys]$ sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
Resolving pkg.jenkins-ci.org (pkg.jenkins-ci.org)... 52.202.51.185
Connecting to pkg.jenkins-ci.org (pkg.jenkins-ci.org)|52.202.51.185|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71
Saving to: ‘/etc/yum.repos.d/jenkins.repo’

100%[===================================================>] 71 --.-K/s in 0s

2020-02-19 13:27:26 (7.84 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [71/71]

[opc@bastion filesys]$ sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key

[opc@bastion filesys]$ sudo yum -y install jenkins
Loaded plugins: langpacks, priorities, ulninfo, versionlock
jenkins | 2.9 kB 00:00:00
jenkins/primary_db | 139 kB 00:00:00
9 packages excluded due to repository priority protections
Excluding 2 updates due to versionlock (use "yum versionlock status" to show them)
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:2.220-1.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================
Package Arch Version Repository Size
=============================================================================================
Installing:
jenkins noarch 2.220-1.1 jenkins 63 M

Transaction Summary
=============================================================================================
Install 1 Package

Total download size: 63 M
Installed size: 63 M
Downloading packages:
jenkins-2.220-1.1.noarch.rpm | 63 MB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : jenkins-2.220-1.1.noarch 1/1
Verifying : jenkins-2.220-1.1.noarch 1/1

Installed:
jenkins.noarch 0:2.220-1.1
  • Add the HTTP port number and Restart the Jenkins. In my case, I am using port 31308.
[opc@bastion filesys]$ sudo vi /etc/default/jenkins
[opc@bastion filesys]$ sudo cat /etc/default/jenkins
HTTP_PORT="31808"
JENKINS_ARGS="--httpPort=31808"
[opc@jenkinsserver filesys]$ sudo service jenkins restart
Restarting jenkins (via systemctl): [ OK ]
[opc@jenkinsserver filesys]$
  • Now, add Jenkins to allow traffic from firewall.
[opc@bastion filesys]$ sudo firewall-cmd --permanent --zone=public --add-service=jenkins
success
[opc@jenkinsserver filesys]$ sudo firewall-cmd --reload
success
[opc@bastion filesys]$
  • To obtain the administrator password, will use in next step.
[opc@bastion filesys]$ sudo cat /var/lib/jenkins/secrets/initialAdminPassword
870f5bf9ecc6419cb05355e7fe22848f
[opc@bastion filesys]$
  • Go to browser, using public IP with assigned port number, open the URL.
http://bastion.vms.sass.ro:31308/

  • After providing the password, click Continue.

  • Now Click on Install suggested Plugins

  • After the completion, you can create your admin user for all upcoming activities in Jenkins and Press on “Save and Continue” Button.

  • In instance configuration, copy the Jenkins URL and click on “Save and Finish“.

  • In last wizard, Click on “Start using Jenkins”.

Here the Jenkins installation is completed. In the next post, we can install OCI plugin for Oracle Cloud.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Jenkins Installation on Oracle Linux appeared first on ORACLE-HELP.


Jenkins Plugin for Oracle Cloud Infrastructure

$
0
0

Oracle Cloud Infrastructure Compute Plugin allows users to access and manage cloud resources on the Oracle Cloud Infrastructure (OCI) from Jenkins. A Jenkins master instance with Oracle Cloud Infrastructure Compute Plugin can spin up OCI Instances (slaves or agents) on demand within OCI, and remove the Instances and free its resources automatically once the Job completes.

Read more : https://plugins.jenkins.io/oracle-cloud-infrastructure-compute/

Prerequisites:

  • Oracle Cloud Account
  • Jenkins installed with JDK 8 or higher

To install the plug-in in Jenkins:

  • Login to Jenkins with admin account.

  • Click on Manage Jenkins

  • Click on Manage Plugins and Click the Available tab. Search for “Oracle Cloud”

  • Select the available plugin and Click on Install without Restart.

After the installation is complete. Select the Restart Jenkins check box to restart the Jenkins.

In few minutes, Jenkins portal will be back. In the next post, we can configure OCI Credentials and verify it.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Jenkins Plugin for Oracle Cloud Infrastructure appeared first on ORACLE-HELP.

Add OCI Credentials in Jenkins

$
0
0

Oracle Cloud Infrastructure Credentials are required to connect to your Oracle Cloud Infrastructure. 

  • On the Jenkins Server console, click Manage Jenkins, and Configure System.

  • Scroll Down to the end of page under Cloud section, click Add a new cloud and select Oracle Cloud Infrastructure Compute.

  • In Name provide any name & Credentials, click Add and select Jenkins

  • In Add Credentials Screen, select “Oracle Cloud Infrastructure Credentials”.
    • Fingerprint – The Fingerprint for the key pair being used.
    • API Key – The OCI API Signing Private Key.
    • PassPhrase – The PassPhrase for the key pair being used.
    • Tenant Id – The Tenant OCID.
    • User Id – The OCID of the User whose API signing key you are using.
    • Region – The OCI region to use for all OCI API requests.
    • ID – An internal unique ID by which these credentials are identified from jobs and other configuration.

  • Click Test Connection to confirm that the details are correct.

Finally, we are able to connect with OCI. In the next post, we can create. manage & delete Jenkins Slave Instance on OCI.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

 

The post Add OCI Credentials in Jenkins appeared first on ORACLE-HELP.

OCI Cloud Instance with Jenkins

$
0
0

In this post, we can add OCI compute instance with Jenkins. As a prerequisite, we already configured OCI plugins and add the credentails in Jenkins.

On the Jenkins Server console, click Manage Jenkins, and Configure System. Scroll Down to the end of page under Cloud section. Use the credentials which we created in previous post.

  • Click on “Add a new cloud” and fill the Instance Templates.

  • Click on “Add” in SSH credentials  and  provide the username and private SSH Key for accessing the OCI instance and click Add

  • Click on “Advanced” tab and update the fields and then click Save.

  • On the main Jenkins server page, click Build Executor Status on left side.

  • From the drop-down menu under master node, select newly created slave template (JenkinsInstance).

  • Verify that the “Started Provisioning” message is displayed.

  • Go to OCI Console and click on Instance. Check that the new compute node is being provisioned.

  • After sometime compute instance is in running mode.

  • Go back to Jenkins windows and check new node is appears. Click on Refresh Status to ensure that node is accessible.

  • Click on newly created slave instance started with OCI.

  • Click on “Script Console” and perform some basic commands.
    • Note: you might need to installed Groovy Script plugin.

  • To delete the compute instance from Jenkins. Click on Delete Agent on the left pane.

  • Click on Yes and switch to OCI console to check the status of compute instance. It must be in Terminated state.

Finally, we are able to configure and manage OCI compute instance with Jenkins. 

For the more the information:

https://plugins.jenkins.io/oracle-cloud-infrastructure-compute/

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

 

The post OCI Cloud Instance with Jenkins appeared first on ORACLE-HELP.

Installation of Grafana on OCI Instance

$
0
0

In this post, we will show you how to install Grafana from the repository on a OCI Instance which Oracle Linux 7.7 running.

First, connect to the server with private key and the fetch the latest package of Grafana from https://grafana.com/grafana/download.

login as: opc
Authenticating with public key "rsa-key-20200220"
[opc@grafanaoci ~]$ sudo -i
[root@grafanaoci ~]# wget https://dl.grafana.com/oss/release/grafana-6.6.2-1.x86_64.rpm
--2020-02-27 15:26:53--  https://dl.grafana.com/oss/release/grafana-6.6.2-1.x86_64.rpm
Resolving dl.grafana.com (dl.grafana.com)... 199.232.66.217, 2a04:4e42:50::729
Connecting to dl.grafana.com (dl.grafana.com)|199.232.66.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 62807182 (60M) [application/x-redhat-package-manager]
Saving to: ‘grafana-6.6.2-1.x86_64.rpm’

100%[===================================================================================================================================================>] 62,807,182   104MB/s   in 0.6s

2020-02-27 15:26:53 (104 MB/s) - ‘grafana-6.6.2-1.x86_64.rpm’ saved [62807182/62807182]

[root@grafanaoci ~]#

Now install Grafana using the following yum command.

[root@grafanaoci ~]# yum localinstall grafana-6.6.2-1.x86_64.rpm
Loaded plugins: langpacks, ulninfo
Examining grafana-6.6.2-1.x86_64.rpm: grafana-6.6.2-1.x86_64
Marking grafana-6.6.2-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package grafana.x86_64 0:6.6.2-1 will be installed
--> Processing Dependency: fontconfig for package: grafana-6.6.2-1.x86_64
ol7_UEKR5                                                                                                                                                             | 2.8 kB  00:00:00
ol7_addons                                                                                                                                                            | 2.8 kB  00:00:00
ol7_developer                                                                                                                                                         | 2.8 kB  00:00:00
ol7_developer_EPEL                                                                                                                                                    | 3.4 kB  00:00:00
ol7_ksplice                                                                                                                                                           | 2.8 kB  00:00:00
ol7_latest                                                                                                                                                            | 3.4 kB  00:00:00
ol7_oci_included                                                                                                                                                      | 2.9 kB  00:00:00
ol7_optional_latest                                                                                                                                                   | 2.8 kB  00:00:00
ol7_software_collections                                                                                                                                              | 2.8 kB  00:00:00
(1/19): ol7_UEKR5/x86_64/updateinfo                                                                                                                                   |  31 kB  00:00:00
(2/19): ol7_developer/x86_64/primary_db                                                                                                                               | 477 kB  00:00:00
(3/19): ol7_developer_EPEL/x86_64/group_gz                                                                                                                            |  87 kB  00:00:00
(4/19): ol7_developer_EPEL/x86_64/updateinfo                                                                                                                          | 6.0 kB  00:00:00
(5/19): ol7_addons/x86_64/primary_db                                                                                                                                  | 143 kB  00:00:00
(6/19): ol7_ksplice/updateinfo                                                                                                                                        | 5.3 kB  00:00:00
(7/19): ol7_ksplice/primary_db                                                                                                                                        | 619 kB  00:00:00
(8/19): ol7_latest/x86_64/group_gz                                                                                                                                    | 148 kB  00:00:00
(9/19): ol7_addons/x86_64/updateinfo                                                                                                                                  |  83 kB  00:00:00
(10/19): ol7_latest/x86_64/updateinfo                                                                                                                                 | 2.7 MB  00:00:00
(11/19): ol7_oci_included/x86_64/primary_db                                                                                                                           | 118 kB  00:00:00
(12/19): ol7_optional_latest/x86_64/updateinfo                                                                                                                        | 899 kB  00:00:00
(13/19): ol7_developer/x86_64/updateinfo                                                                                                                              |   71 B  00:00:00
(14/19): ol7_software_collections/x86_64/updateinfo                                                                                                                   | 8.7 kB  00:00:00
(15/19): ol7_optional_latest/x86_64/primary_db                                                                                                                        | 4.1 MB  00:00:00
(16/19): ol7_developer_EPEL/x86_64/primary_db                                                                                                                         |  11 MB  00:00:00
(17/19): ol7_software_collections/x86_64/primary_db                                                                                                                   | 4.8 MB  00:00:00
(18/19): ol7_UEKR5/x86_64/primary_db                                                                                                                                  |  10 MB  00:00:00
(19/19): ol7_latest/x86_64/primary_db                                                                                                                                 |  19 MB  00:00:00
--> Processing Dependency: urw-fonts for package: grafana-6.6.2-1.x86_64
--> Running transaction check
---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64
---> Package urw-base35-fonts.noarch 0:20170801-10.el7 will be installed
--> Processing Dependency: urw-base35-fonts-common = 20170801-10.el7 for package: urw-base35-fonts-20170801-10.el7.noarch
--> Processing Dependency: urw-base35-z003-fonts for package: urw-base35-fonts-20170801-10.el7.noarch
--> Processing Dependency: urw-base35-standard-symbols-ps-fonts for package: urw-base35-fonts-20170801-10.el7.noarch
--> Processing Dependency: urw-base35-p052-fonts for package: urw-base35-fonts-20170801-10.el7.noarch
--> Processing Dependency: urw-base35-nimbus-sans-fonts for package: urw-base35-fonts-20170801-10.el7.noarch
--> Processing Dependency: urw-base35-nimbus-roman-fonts for package: urw-base35-fonts-20170801-10.el7.noarch
--> Processing Dependency: urw-base35-nimbus-mono-ps-fonts for package: urw-base35-fonts-20170801-10.el7.noarch
--> Processing Dependency: urw-base35-gothic-fonts for package: urw-base35-fonts-20170801-10.el7.noarch
--> Processing Dependency: urw-base35-d050000l-fonts for package: urw-base35-fonts-20170801-10.el7.noarch
--> Processing Dependency: urw-base35-c059-fonts for package: urw-base35-fonts-20170801-10.el7.noarch
--> Processing Dependency: urw-base35-bookman-fonts for package: urw-base35-fonts-20170801-10.el7.noarch
--> Running transaction check
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package urw-base35-bookman-fonts.noarch 0:20170801-10.el7 will be installed
--> Processing Dependency: xorg-x11-server-utils for package: urw-base35-bookman-fonts-20170801-10.el7.noarch
--> Processing Dependency: xorg-x11-server-utils for package: urw-base35-bookman-fonts-20170801-10.el7.noarch
--> Processing Dependency: xorg-x11-font-utils for package: urw-base35-bookman-fonts-20170801-10.el7.noarch
--> Processing Dependency: xorg-x11-font-utils for package: urw-base35-bookman-fonts-20170801-10.el7.noarch
---> Package urw-base35-c059-fonts.noarch 0:20170801-10.el7 will be installed
---> Package urw-base35-d050000l-fonts.noarch 0:20170801-10.el7 will be installed
---> Package urw-base35-fonts-common.noarch 0:20170801-10.el7 will be installed
---> Package urw-base35-gothic-fonts.noarch 0:20170801-10.el7 will be installed
---> Package urw-base35-nimbus-mono-ps-fonts.noarch 0:20170801-10.el7 will be installed
---> Package urw-base35-nimbus-roman-fonts.noarch 0:20170801-10.el7 will be installed
---> Package urw-base35-nimbus-sans-fonts.noarch 0:20170801-10.el7 will be installed
---> Package urw-base35-p052-fonts.noarch 0:20170801-10.el7 will be installed
---> Package urw-base35-standard-symbols-ps-fonts.noarch 0:20170801-10.el7 will be installed
---> Package urw-base35-z003-fonts.noarch 0:20170801-10.el7 will be installed
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
---> Package xorg-x11-font-utils.x86_64 1:7.5-21.el7 will be installed
--> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-21.el7.x86_64
---> Package xorg-x11-server-utils.x86_64 0:7.7-20.el7 will be installed
--> Processing Dependency: libXxf86vm.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXxf86misc.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXt.so.6()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXrandr.so.2()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXmuu.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXmu.so.6()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXinerama.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXi.so.6()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXext.so.6()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXcursor.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libICE.so.6()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Running transaction check
---> Package libICE.x86_64 0:1.0.9-9.el7 will be installed
---> Package libX11.x86_64 0:1.6.7-2.el7 will be installed
--> Processing Dependency: libX11-common >= 1.6.7-2.el7 for package: libX11-1.6.7-2.el7.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-2.el7.x86_64
---> Package libXcursor.x86_64 0:1.1.15-1.el7 will be installed
--> Processing Dependency: libXfixes.so.3()(64bit) for package: libXcursor-1.1.15-1.el7.x86_64
---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed
---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed
---> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed
---> Package libXmu.x86_64 0:1.1.2-2.el7 will be installed
---> Package libXrandr.x86_64 0:1.5.1-2.el7 will be installed
---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed
---> Package libXt.x86_64 0:1.1.5-3.el7 will be installed
--> Processing Dependency: libSM.so.6()(64bit) for package: libXt-1.1.5-3.el7.x86_64
---> Package libXxf86misc.x86_64 0:1.0.3-7.1.el7 will be installed
---> Package libXxf86vm.x86_64 0:1.1.4-1.el7 will be installed
---> Package libfontenc.x86_64 0:1.1.3-3.el7 will be installed
--> Running transaction check
---> Package libSM.x86_64 0:1.2.2-2.el7 will be installed
---> Package libX11-common.noarch 0:1.6.7-2.el7 will be installed
---> Package libXfixes.x86_64 0:5.0.3-1.el7 will be installed
---> Package libxcb.x86_64 0:1.13-1.el7 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.x86_64
--> Running transaction check
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================
 Package                                                      Arch                           Version                                   Repository                                       Size
=============================================================================================================================================================================================
Installing:
 grafana                                                      x86_64                         6.6.2-1                                   /grafana-6.6.2-1.x86_64                         174 M
Installing for dependencies:
 dejavu-fonts-common                                          noarch                         2.33-6.el7                                ol7_latest                                       64 k
 dejavu-sans-fonts                                            noarch                         2.33-6.el7                                ol7_latest                                      1.4 M
 fontconfig                                                   x86_64                         2.13.0-4.3.el7                            ol7_latest                                      254 k
 libICE                                                       x86_64                         1.0.9-9.el7                               ol7_latest                                       66 k
 libSM                                                        x86_64                         1.2.2-2.el7                               ol7_latest                                       39 k
 libX11                                                       x86_64                         1.6.7-2.el7                               ol7_latest                                      606 k
 libX11-common                                                noarch                         1.6.7-2.el7                               ol7_latest                                      164 k
 libXau                                                       x86_64                         1.0.8-2.1.el7                             ol7_latest                                       28 k
 libXcursor                                                   x86_64                         1.1.15-1.el7                              ol7_latest                                       30 k
 libXext                                                      x86_64                         1.3.3-3.el7                               ol7_latest                                       38 k
 libXfixes                                                    x86_64                         5.0.3-1.el7                               ol7_latest                                       18 k
 libXi                                                        x86_64                         1.7.9-1.el7                               ol7_latest                                       40 k
 libXinerama                                                  x86_64                         1.1.3-2.1.el7                             ol7_latest                                       13 k
 libXmu                                                       x86_64                         1.1.2-2.el7                               ol7_latest                                       70 k
 libXrandr                                                    x86_64                         1.5.1-2.el7                               ol7_latest                                       27 k
 libXrender                                                   x86_64                         0.9.10-1.el7                              ol7_latest                                       25 k
 libXt                                                        x86_64                         1.1.5-3.el7                               ol7_latest                                      172 k
 libXxf86misc                                                 x86_64                         1.0.3-7.1.el7                             ol7_latest                                       19 k
 libXxf86vm                                                   x86_64                         1.1.4-1.el7                               ol7_latest                                       17 k
 libfontenc                                                   x86_64                         1.1.3-3.el7                               ol7_latest                                       30 k
 libxcb                                                       x86_64                         1.13-1.el7                                ol7_latest                                      213 k
 urw-base35-bookman-fonts                                     noarch                         20170801-10.el7                           ol7_latest                                      852 k
 urw-base35-c059-fonts                                        noarch                         20170801-10.el7                           ol7_latest                                      879 k
 urw-base35-d050000l-fonts                                    noarch                         20170801-10.el7                           ol7_latest                                       74 k
 urw-base35-fonts                                             noarch                         20170801-10.el7                           ol7_latest                                      7.1 k
 urw-base35-fonts-common                                      noarch                         20170801-10.el7                           ol7_latest                                       18 k
 urw-base35-gothic-fonts                                      noarch                         20170801-10.el7                           ol7_latest                                      649 k
 urw-base35-nimbus-mono-ps-fonts                              noarch                         20170801-10.el7                           ol7_latest                                      796 k
 urw-base35-nimbus-roman-fonts                                noarch                         20170801-10.el7                           ol7_latest                                      860 k
 urw-base35-nimbus-sans-fonts                                 noarch                         20170801-10.el7                           ol7_latest                                      1.3 M
 urw-base35-p052-fonts                                        noarch                         20170801-10.el7                           ol7_latest                                      977 k
 urw-base35-standard-symbols-ps-fonts                         noarch                         20170801-10.el7                           ol7_latest                                       39 k
 urw-base35-z003-fonts                                        noarch                         20170801-10.el7                           ol7_latest                                      274 k
 xorg-x11-font-utils                                          x86_64                         1:7.5-21.el7                              ol7_latest                                      104 k
 xorg-x11-server-utils                                        x86_64                         7.7-20.el7                                ol7_latest                                      178 k

Transaction Summary
=============================================================================================================================================================================================
Install  1 Package (+35 Dependent packages)

Total size: 184 M
Total download size: 10 M
Installed size: 196 M
Is this ok [y/d/N]: y
Downloading packages:
(1/35): dejavu-fonts-common-2.33-6.el7.noarch.rpm                                                                                                                     |  64 kB  00:00:00
(2/35): fontconfig-2.13.0-4.3.el7.x86_64.rpm                                                                                                                          | 254 kB  00:00:00
(3/35): libICE-1.0.9-9.el7.x86_64.rpm                                                                                                                                 |  66 kB  00:00:00
(4/35): libSM-1.2.2-2.el7.x86_64.rpm                                                                                                                                  |  39 kB  00:00:00
(5/35): dejavu-sans-fonts-2.33-6.el7.noarch.rpm                                                                                                                       | 1.4 MB  00:00:00
(6/35): libX11-1.6.7-2.el7.x86_64.rpm                                                                                                                                 | 606 kB  00:00:00
(7/35): libX11-common-1.6.7-2.el7.noarch.rpm                                                                                                                          | 164 kB  00:00:00
(8/35): libXau-1.0.8-2.1.el7.x86_64.rpm                                                                                                                               |  28 kB  00:00:00
(9/35): libXcursor-1.1.15-1.el7.x86_64.rpm                                                                                                                            |  30 kB  00:00:00
(10/35): libXext-1.3.3-3.el7.x86_64.rpm                                                                                                                               |  38 kB  00:00:00
(11/35): libXfixes-5.0.3-1.el7.x86_64.rpm                                                                                                                             |  18 kB  00:00:00
(12/35): libXi-1.7.9-1.el7.x86_64.rpm                                                                                                                                 |  40 kB  00:00:00
(13/35): libXinerama-1.1.3-2.1.el7.x86_64.rpm                                                                                                                         |  13 kB  00:00:00
(14/35): libXmu-1.1.2-2.el7.x86_64.rpm                                                                                                                                |  70 kB  00:00:00
(15/35): libXrandr-1.5.1-2.el7.x86_64.rpm                                                                                                                             |  27 kB  00:00:00
(16/35): libXrender-0.9.10-1.el7.x86_64.rpm                                                                                                                           |  25 kB  00:00:00
(17/35): libXt-1.1.5-3.el7.x86_64.rpm                                                                                                                                 | 172 kB  00:00:00
(18/35): libXxf86misc-1.0.3-7.1.el7.x86_64.rpm                                                                                                                        |  19 kB  00:00:00
(19/35): libXxf86vm-1.1.4-1.el7.x86_64.rpm                                                                                                                            |  17 kB  00:00:00
(20/35): libfontenc-1.1.3-3.el7.x86_64.rpm                                                                                                                            |  30 kB  00:00:00
(21/35): libxcb-1.13-1.el7.x86_64.rpm                                                                                                                                 | 213 kB  00:00:00
(22/35): urw-base35-bookman-fonts-20170801-10.el7.noarch.rpm                                                                                                          | 852 kB  00:00:00
(23/35): urw-base35-c059-fonts-20170801-10.el7.noarch.rpm                                                                                                             | 879 kB  00:00:00
(24/35): urw-base35-d050000l-fonts-20170801-10.el7.noarch.rpm                                                                                                         |  74 kB  00:00:00
(25/35): urw-base35-fonts-20170801-10.el7.noarch.rpm                                                                                                                  | 7.1 kB  00:00:00
(26/35): urw-base35-fonts-common-20170801-10.el7.noarch.rpm                                                                                                           |  18 kB  00:00:00
(27/35): urw-base35-gothic-fonts-20170801-10.el7.noarch.rpm                                                                                                           | 649 kB  00:00:00
(28/35): urw-base35-nimbus-mono-ps-fonts-20170801-10.el7.noarch.rpm                                                                                                   | 796 kB  00:00:00
(29/35): urw-base35-nimbus-roman-fonts-20170801-10.el7.noarch.rpm                                                                                                     | 860 kB  00:00:00
(30/35): urw-base35-nimbus-sans-fonts-20170801-10.el7.noarch.rpm                                                                                                      | 1.3 MB  00:00:00
(31/35): urw-base35-p052-fonts-20170801-10.el7.noarch.rpm                                                                                                             | 977 kB  00:00:00
(32/35): urw-base35-standard-symbols-ps-fonts-20170801-10.el7.noarch.rpm                                                                                              |  39 kB  00:00:00
(33/35): urw-base35-z003-fonts-20170801-10.el7.noarch.rpm                                                                                                             | 274 kB  00:00:00
(34/35): xorg-x11-font-utils-7.5-21.el7.x86_64.rpm                                                                                                                    | 104 kB  00:00:00
(35/35): xorg-x11-server-utils-7.7-20.el7.x86_64.rpm                                                                                                                  | 178 kB  00:00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                         40 MB/s |  10 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : urw-base35-fonts-common-20170801-10.el7.noarch                                                                                                                           1/36
  Installing : libICE-1.0.9-9.el7.x86_64                                                                                                                                                2/36
  Installing : libSM-1.2.2-2.el7.x86_64                                                                                                                                                 3/36
  Installing : libfontenc-1.1.3-3.el7.x86_64                                                                                                                                            4/36
  Installing : 1:xorg-x11-font-utils-7.5-21.el7.x86_64                                                                                                                                  5/36
  Installing : libXau-1.0.8-2.1.el7.x86_64                                                                                                                                              6/36
  Installing : libxcb-1.13-1.el7.x86_64                                                                                                                                                 7/36
  Installing : libX11-common-1.6.7-2.el7.noarch                                                                                                                                         8/36
  Installing : libX11-1.6.7-2.el7.x86_64                                                                                                                                                9/36
  Installing : libXext-1.3.3-3.el7.x86_64                                                                                                                                              10/36
  Installing : libXrender-0.9.10-1.el7.x86_64                                                                                                                                          11/36
  Installing : libXt-1.1.5-3.el7.x86_64                                                                                                                                                12/36
  Installing : libXmu-1.1.2-2.el7.x86_64                                                                                                                                               13/36
  Installing : libXrandr-1.5.1-2.el7.x86_64                                                                                                                                            14/36
  Installing : libXinerama-1.1.3-2.1.el7.x86_64                                                                                                                                        15/36
  Installing : libXxf86misc-1.0.3-7.1.el7.x86_64                                                                                                                                       16/36
  Installing : libXxf86vm-1.1.4-1.el7.x86_64                                                                                                                                           17/36
  Installing : libXi-1.7.9-1.el7.x86_64                                                                                                                                                18/36
  Installing : libXfixes-5.0.3-1.el7.x86_64                                                                                                                                            19/36
  Installing : libXcursor-1.1.15-1.el7.x86_64                                                                                                                                          20/36
  Installing : xorg-x11-server-utils-7.7-20.el7.x86_64                                                                                                                                 21/36
  Installing : dejavu-fonts-common-2.33-6.el7.noarch                                                                                                                                   22/36
  Installing : dejavu-sans-fonts-2.33-6.el7.noarch                                                                                                                                     23/36
  Installing : fontconfig-2.13.0-4.3.el7.x86_64                                                                                                                                        24/36
  Installing : urw-base35-z003-fonts-20170801-10.el7.noarch                                                                                                                            25/36
  Installing : urw-base35-p052-fonts-20170801-10.el7.noarch                                                                                                                            26/36
  Installing : urw-base35-nimbus-roman-fonts-20170801-10.el7.noarch                                                                                                                    27/36
  Installing : urw-base35-c059-fonts-20170801-10.el7.noarch                                                                                                                            28/36
  Installing : urw-base35-d050000l-fonts-20170801-10.el7.noarch                                                                                                                        29/36
  Installing : urw-base35-nimbus-mono-ps-fonts-20170801-10.el7.noarch                                                                                                                  30/36
  Installing : urw-base35-bookman-fonts-20170801-10.el7.noarch                                                                                                                         31/36
  Installing : urw-base35-nimbus-sans-fonts-20170801-10.el7.noarch                                                                                                                     32/36
  Installing : urw-base35-standard-symbols-ps-fonts-20170801-10.el7.noarch                                                                                                             33/36
  Installing : urw-base35-gothic-fonts-20170801-10.el7.noarch                                                                                                                          34/36
  Installing : urw-base35-fonts-20170801-10.el7.noarch                                                                                                                                 35/36
  Installing : grafana-6.6.2-1.x86_64                                                                                                                                                  36/36
### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
 sudo /bin/systemctl daemon-reload
 sudo /bin/systemctl enable grafana-server.service
### You can start grafana-server by executing
 sudo /bin/systemctl start grafana-server.service
POSTTRANS: Running script
  Verifying  : libXext-1.3.3-3.el7.x86_64                                                                                                                                               1/36
  Verifying  : 1:xorg-x11-font-utils-7.5-21.el7.x86_64                                                                                                                                  2/36
  Verifying  : fontconfig-2.13.0-4.3.el7.x86_64                                                                                                                                         3/36
  Verifying  : libXinerama-1.1.3-2.1.el7.x86_64                                                                                                                                         4/36
  Verifying  : libXrender-0.9.10-1.el7.x86_64                                                                                                                                           5/36
  Verifying  : urw-base35-z003-fonts-20170801-10.el7.noarch                                                                                                                             6/36
  Verifying  : libXxf86misc-1.0.3-7.1.el7.x86_64                                                                                                                                        7/36
  Verifying  : libXxf86vm-1.1.4-1.el7.x86_64                                                                                                                                            8/36
  Verifying  : urw-base35-p052-fonts-20170801-10.el7.noarch                                                                                                                             9/36
  Verifying  : urw-base35-nimbus-roman-fonts-20170801-10.el7.noarch                                                                                                                    10/36
  Verifying  : libXi-1.7.9-1.el7.x86_64                                                                                                                                                11/36
  Verifying  : libXt-1.1.5-3.el7.x86_64                                                                                                                                                12/36
  Verifying  : libICE-1.0.9-9.el7.x86_64                                                                                                                                               13/36
  Verifying  : grafana-6.6.2-1.x86_64                                                                                                                                                  14/36
  Verifying  : urw-base35-c059-fonts-20170801-10.el7.noarch                                                                                                                            15/36
  Verifying  : urw-base35-d050000l-fonts-20170801-10.el7.noarch                                                                                                                        16/36
  Verifying  : dejavu-fonts-common-2.33-6.el7.noarch                                                                                                                                   17/36
  Verifying  : libX11-1.6.7-2.el7.x86_64                                                                                                                                               18/36
  Verifying  : libX11-common-1.6.7-2.el7.noarch                                                                                                                                        19/36
  Verifying  : libxcb-1.13-1.el7.x86_64                                                                                                                                                20/36
  Verifying  : urw-base35-fonts-common-20170801-10.el7.noarch                                                                                                                          21/36
  Verifying  : urw-base35-fonts-20170801-10.el7.noarch                                                                                                                                 22/36
  Verifying  : urw-base35-nimbus-mono-ps-fonts-20170801-10.el7.noarch                                                                                                                  23/36
  Verifying  : dejavu-sans-fonts-2.33-6.el7.noarch                                                                                                                                     24/36
  Verifying  : libXmu-1.1.2-2.el7.x86_64                                                                                                                                               25/36
  Verifying  : libXrandr-1.5.1-2.el7.x86_64                                                                                                                                            26/36
  Verifying  : urw-base35-bookman-fonts-20170801-10.el7.noarch                                                                                                                         27/36
  Verifying  : urw-base35-nimbus-sans-fonts-20170801-10.el7.noarch                                                                                                                     28/36
  Verifying  : libXau-1.0.8-2.1.el7.x86_64                                                                                                                                             29/36
  Verifying  : libSM-1.2.2-2.el7.x86_64                                                                                                                                                30/36
  Verifying  : libXcursor-1.1.15-1.el7.x86_64                                                                                                                                          31/36
  Verifying  : urw-base35-standard-symbols-ps-fonts-20170801-10.el7.noarch                                                                                                             32/36
  Verifying  : xorg-x11-server-utils-7.7-20.el7.x86_64                                                                                                                                 33/36
  Verifying  : libXfixes-5.0.3-1.el7.x86_64                                                                                                                                            34/36
  Verifying  : libfontenc-1.1.3-3.el7.x86_64                                                                                                                                           35/36
  Verifying  : urw-base35-gothic-fonts-20170801-10.el7.noarch                                                                                                                          36/36

Installed:
  grafana.x86_64 0:6.6.2-1

Dependency Installed:
  dejavu-fonts-common.noarch 0:2.33-6.el7                       dejavu-sans-fonts.noarch 0:2.33-6.el7                              fontconfig.x86_64 0:2.13.0-4.3.el7
  libICE.x86_64 0:1.0.9-9.el7                                   libSM.x86_64 0:1.2.2-2.el7                                         libX11.x86_64 0:1.6.7-2.el7
  libX11-common.noarch 0:1.6.7-2.el7                            libXau.x86_64 0:1.0.8-2.1.el7                                      libXcursor.x86_64 0:1.1.15-1.el7
  libXext.x86_64 0:1.3.3-3.el7                                  libXfixes.x86_64 0:5.0.3-1.el7                                     libXi.x86_64 0:1.7.9-1.el7
  libXinerama.x86_64 0:1.1.3-2.1.el7                            libXmu.x86_64 0:1.1.2-2.el7                                        libXrandr.x86_64 0:1.5.1-2.el7
  libXrender.x86_64 0:0.9.10-1.el7                              libXt.x86_64 0:1.1.5-3.el7                                         libXxf86misc.x86_64 0:1.0.3-7.1.el7
  libXxf86vm.x86_64 0:1.1.4-1.el7                               libfontenc.x86_64 0:1.1.3-3.el7                                    libxcb.x86_64 0:1.13-1.el7
  urw-base35-bookman-fonts.noarch 0:20170801-10.el7             urw-base35-c059-fonts.noarch 0:20170801-10.el7                     urw-base35-d050000l-fonts.noarch 0:20170801-10.el7
  urw-base35-fonts.noarch 0:20170801-10.el7                     urw-base35-fonts-common.noarch 0:20170801-10.el7                   urw-base35-gothic-fonts.noarch 0:20170801-10.el7
  urw-base35-nimbus-mono-ps-fonts.noarch 0:20170801-10.el7      urw-base35-nimbus-roman-fonts.noarch 0:20170801-10.el7             urw-base35-nimbus-sans-fonts.noarch 0:20170801-10.el7
  urw-base35-p052-fonts.noarch 0:20170801-10.el7                urw-base35-standard-symbols-ps-fonts.noarch 0:20170801-10.el7      urw-base35-z003-fonts.noarch 0:20170801-10.el7
  xorg-x11-font-utils.x86_64 1:7.5-21.el7                       xorg-x11-server-utils.x86_64 0:7.7-20.el7

Complete!

[root@grafanaoci ~]#

Now Install dependent libraries.

[root@grafanaoci ~]# yum install fontconfig -y
[root@grafanaoci ~]# yum install freetype* -y
[root@grafanaoci ~]# yum install urw-fonts -y

After the installation, we need to reload the systemd manager configuration before starting the Grafana service.

Run the following systemctl command.

[root@grafanaoci ~]# service grafana-server start
Starting grafana-server (via systemctl):
                                                           [  OK  ]

[root@grafanaoci ~]# /sbin/chkconfig --add grafana-server

[root@grafanaoci ~]# systemctl enable grafana-server.service
Created symlink from /etc/systemd/system/multi-user.target.wants/grafana-server.service to /usr/lib/systemd/system/grafana-server.service.

[root@grafanaoci ~]#

Next, start Grafana and then enable it to run automatically everytime the system boots up.

[root@grafanaoci ~]# systemctl start grafana-server

[root@grafanaoci ~]# systemctl enable grafana-server

[root@grafanaoci ~]# systemctl status grafana-server
? grafana-server.service - Grafana instance
   Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2020-02-27 15:28:34 GMT; 46s ago
     Docs: http://docs.grafana.org
 Main PID: 12015 (grafana-server)
   CGroup: /system.slice/grafana-server.service
           +-12015 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/var/run/grafana/grafana-server.pid --packaging=rpm cfg:default.paths.logs=/var/log/grafana cfg:de...

Feb 27 15:28:34 grafanaoci grafana-server[12015]: t=2020-02-27T15:28:34+0000 lvl=info msg="Initializing TracingService" logger=server
Feb 27 15:28:34 grafanaoci grafana-server[12015]: t=2020-02-27T15:28:34+0000 lvl=info msg="Initializing UsageStatsService" logger=server
Feb 27 15:28:34 grafanaoci grafana-server[12015]: t=2020-02-27T15:28:34+0000 lvl=info msg="Initializing CleanUpService" logger=server
Feb 27 15:28:34 grafanaoci grafana-server[12015]: t=2020-02-27T15:28:34+0000 lvl=info msg="Initializing NotificationService" logger=server
Feb 27 15:28:34 grafanaoci grafana-server[12015]: t=2020-02-27T15:28:34+0000 lvl=info msg="Initializing provisioningServiceImpl" logger=server
Feb 27 15:28:34 grafanaoci systemd[1]: Started Grafana instance.
Feb 27 15:28:34 grafanaoci grafana-server[12015]: t=2020-02-27T15:28:34+0000 lvl=info msg="Backend rendering via phantomJS" logger=rendering renderer=phantomJS
Feb 27 15:28:34 grafanaoci grafana-server[12015]: t=2020-02-27T15:28:34+0000 lvl=warn msg="phantomJS is deprecated and will be removed in a future release. You should consider...r=phantomJS
Feb 27 15:28:34 grafanaoci grafana-server[12015]: t=2020-02-27T15:28:34+0000 lvl=info msg="Initializing Stream Manager"
Feb 27 15:28:34 grafanaoci grafana-server[12015]: t=2020-02-27T15:28:34+0000 lvl=info msg="HTTP Server Listen" logger=http.server address=[::]:3000 protocol=http subUrl= socket=
Hint: Some lines were ellipsized, use -l to show in full.

[root@grafanaoci ~]#

Grafana is running on port 3000, So we need open the port in firewall.

[root@grafanaoci ~]# firewall-cmd --add-port=3000/tcp --permanent
success

[root@grafanaoci ~]# firewall-cmd --reload
success

Grafana installation on server has been successful. Now we can open  Grafana console in web-browser.

URL http://<Public IP>:3000

Note: In OCI Instance, we need to set Ingress rule for 3000 port to get Public IP accessible.

Log in to the Grafana Dashboard using default user ‘admin’ and password ‘admin’.

In next post, we can install Oracle Infrastucture OCI plugin and monitor the OCI environment from Grafana.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Installation of Grafana on OCI Instance appeared first on ORACLE-HELP.

Monitoring OCI with Grafana

$
0
0

In previous post, we installed Grafana on server. Now, we are going to install OCI Plugin for Grafana and set up monitoring. 

Login to server and check grafana cli is working or not.

login as: opc
Authenticating with public key "rsa-key-20200220"
[opc@grafanaoci ~]$ sudo -i
[root@grafanaoci ~]# grafana-cli
NAME:
   Grafana cli

USAGE:
   grafana-cli [global options] command [command options] [arguments...]

VERSION:
   6.6.2

AUTHOR:
   Grafana Project <https://github.com/grafana/grafana>

COMMANDS:
     plugins  Manage plugins for grafana
     admin    Grafana admin commands
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --pluginsDir value       path to the grafana plugin directory (default: "/var/lib/grafana/plugins") [$GF_PLUGIN_DIR]
   --repo value             url to the plugin repository (default: "https://grafana.com/api/plugins") [$GF_PLUGIN_REPO]
   --pluginUrl value        Full url to the plugin zip file instead of downloading the plugin from grafana.com/api [$GF_PLUGIN_URL]
   --insecure               Skip TLS verification (insecure)
   --debug, -d              enable debug logging
   --configOverrides value  configuration options to override defaults as a string. e.g. cfg:default.paths.log=/dev/null
   --homepath value         path to grafana install/home path, defaults to working directory
   --config value           path to config file
   --help, -h               show help
   --version, -v            print the version

[root@grafanaoci ~]#

Then list the plug-in from CLI commands.

[root@grafanaoci ~]# grafana-cli plugins list-remote|grep oci
id: oci-datasource version: 1.0.2
[root@grafanaoci ~]#

After that install the plug-in.

[root@grafanaoci ~]# grafana-cli plugins install oci-datasource
installing oci-datasource @ 1.0.2
from: https://grafana.com/api/plugins/oci-datasource/versions/1.0.2/download
into: /var/lib/grafana/plugins

? Installed oci-datasource successfully

Restart grafana after installing plugins . 

[root@grafanaoci ~]#

On sucessful installation of plug-in, restart the grafana server and check the plug-in has installed or not.

[root@grafanaoci ~]# systemctl restart grafana-server

[root@grafanaoci ~]# grafana-cli plugins ls
installed plugins:
oci-datasource @ 1.0.2

Restart grafana after installing plugins . 

[root@grafanaoci ~]#

Now, login to console with admin account.

Click on “Add Data Source“.

Search for “Oracle Cloud Infrastruture” data soucre.

After the data source, the following things:

  • Tenacny OCID
  • Default Region
  • Environment

Click on “Save & Test“. Check the whether data source is working.

Now, press on the “New Dashboard“.

Then select the “Add Query” option.

Then, select the Region, Compartment, Namespace, Metric and Aggreation method the menu.

You can the visualization Graph, Gauge and many more.

Then Click on “Save” icon on the top right side.

You can add user to access as viewer and click on “Add User“.

Then the detail for new users.

To know more about customization in Grafana.

https://grafana.com/grafana/plugins/oci-datasource

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Monitoring OCI with Grafana appeared first on ORACLE-HELP.

Upgrade Oracle Enterprise Manager (OEM) 13.4

$
0
0

As Oracle annouced that new Oracle Enterprise Manager 13.4 release is now available for download!

To download it, you can either visit the Oracle Enterprise Manager downloads page or visit the Oracle Software Delivery Cloud.

We are going to upgrade from OEM 13.3 to OEM 13.4 with repository database 12.2.0.1.

Prerequisites for Upgrading to Enterprise Manager Cloud Control 13c Release 4

Database Patch Requirements

Ensure that you apply the latest PSU on the supported database.

It is mandatory to apply the latest DB PSU on the supported database before upgrading to Enterprise Manager Cloud Control 13.4.0.0.

Database Jan 2020 Release Update : 12.2.0.1.200114 (30593149)

To know how to apply latest PSU

Apply latest PSU (Jan 2020) on Oracle Home
[oracle@oemserver 30593149]$ opatch lspatches
30593149;Database Jan 2020 Release Update : 12.2.0.1.200114 (30593149)
OPatch succeeded.
[oracle@oemserver 30593149]$
 

Optimizer Adaptive Features Disabling Requirements

alter system set "_optimizer_nlj_hj_adaptive_join"= FALSE scope=both sid='*';
alter system set "_optimizer_strans_adaptive_pruning" = FALSE scope=both sid='*';
alter system set "_px_adaptive_dist_method" = OFF scope=both sid='*';
alter system set "_sql_plan_directive_mgmt_control" = 0 scope=both sid='*';
alter system set "_optimizer_dsdir_usage_control" = 0 scope=both sid='*';
alter system set "_optimizer_use_feedback" = FALSE scope=both sid='*';
alter system set "_optimizer_gather_feedback" = FALSE scope=both sid='*';
alter system set "_optimizer_performance_feedback" = OFF scope=both sid='*';
alter system set _allow_insert_with_update_check=true scope=both;
alter system set job_queue_processes=0 scope=both;

Repository Table Snapshot Verification Requirements

SELECT COUNT (trigger_name) FROM sys.dba_triggers WHERE TRIGGERING_EVENT LIKE 'LOGON%' AND status='ENABLED';
SELECT trigger_name FROM sys.dba_triggers WHERE TRIGGERING_EVENT LIKE 'LOGON%' AND status='ENABLED';
SELECT COUNT (trigger_name) FROM sys.dba_triggers WHERE TRIGGERING_EVENT LIKE 'LOGOFF%' AND status='ENABLED';
SELECT trigger_name FROM sys.dba_triggers WHERE TRIGGERING_EVENT LIKE 'LOGOFF%' AND status='ENABLED';
Example
alter trigger gsmadmin_internal.gsmlogoff disable;
Drop snapshot log on em-violations;

EMKEY Copy Requirements

[oracle@oemserver ~]$ $OMS_HOME/bin/emctl config  emkey -copy_to_repos

Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
The EMKey has been copied to the Management Repository. This operation will cause the EMKey to become unsecure.
After the required operation has been completed, secure the EMKey by running "emctl config emkey -remove_from_repos".
[oracle@oemserver ~]$ $OMS_HOME/bin/emctl status emkey

Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
The EMKey  is configured properly, but is not secure. Secure the EMKey by running "emctl config emkey -remove_from_repos".

OMS Backup Requirements

  • Take a backup at OS level with tar.
  • Take configuration backup.
 [oracle@oemserver ~]$ $OMS_HOME/bin/emctl exportconfig oms   -dir /u01/sw/dump
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
ExportConfig started...
Backup directory is /u01/sw/dump
Machine is Admin Server host. Performing Admin Server backup...
Exporting emoms properties...
Exporting secure properties...
Export has determined that the OMS is not fronted by an SLB. The local hostname was NOT exported.
The exported data can be imported on any host but resecure of all agents will be required. Please see the EM Advanced Configuration Guide for moredetails.
Exporting configuration for pluggable modules...
Preparing archive file...

Backup has been written to file: /u01/sw/dump/opf_ADMIN_20200224_222406.bka

The export file contains sensitive data. You must keep it secure.
ExportConfig completed successfully!

Management Agent and OMS Shutdown Requirements

[oracle@oemserver ~]$ $OMS_HOME/bin/emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation.  All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server is Up
[oracle@oemserver ~]$ $OMS_HOME/bin/emctl stop oms -all
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation.  All rights reserved.
Stopping Oracle Management Server...
WebTier Successfully Stopped
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
JVMD Engine is Down
Stopping BI Publisher Server...
BI Publisher Server Successfully Stopped
AdminServer Successfully Stopped
BI Publisher Server is Down
[oracle@oemserver ~]$ $AGENT_HOME/bin/emctl stop agent
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.

Then once the oms and the management agent are stopped, you can create one directory for new middleware home and go the directory and run the installer.

[oracle@oemserver sw]$ mkdir -p /u01/app/oracle/middleware_new

[oracle@oemserver sw]$ cd oem_13.4/  -- where software has been download

[oracle@oemserver oem_13.4]$ ls
em13400_linux64-2.zip  em13400_linux64-3.zip  em13400_linux64-4.zip  em13400_linux64-5.zip  em13400_linux64-6.zip  em13400_linux64-7.zip  em13400_linux64.bin

[oracle@oemserver oem_13.4]$ chmod u+x em13400_linux64.bin 

[oracle@oemserver oem_13.4]$ ./em13400_linux64.bin

I do not want to receive the security updates, so uncheck the box and click on “Next“.

Select “Skip” as I will completed all prerequisite and click on “Next“.

Make sure that all prerequisite should be succeeded and click on “Next“.

Note: I am ignoring the warning due to RAM crunch on my system.

Select the option ” Upgrade an existing EM System” and click on “Next“.

Enter the new location for middleware home which we created earlier and click on “Next“.

Confirm that you have backed up the Management Repository. As a prerequisite, you must back up the Management Repository before starting the upgrade process. If you have not already taken a backup, then do so immediately, and then return to the installer to continue with the upgrade.

Provide the SYS password and SYSMAN password and click on “Next“.

Review the plug-ins and click on “Next“.

Select the plug-ins which you want to use and click on “Next“.

Fill the detail for admin server and weblogic username & password and click on “Next“.

Check the “Enable BI Publisher” if you are using and click on “Next“.

Set the port if you are required and click on “Next“.

Review all the provided information and click on “Upgrade“.

Monitor the progress and keep checking the database as well & errors in logs.

At the end of the upgrade, you have to run connected as root from the new OMS home the shell root.sh. 

Check the details for URL and click on “Close”

Check the version OEM and status of OMS after login to console.

You also check the version from command line.

[oracle@oemserver ~]$ $OMS_HOME/bin/emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server is Up
[oracle@oemserver ~]$

After OMS upgrade has been completed. Now, we can upgrade the agents.

  • From the Setup menu, select Manage Cloud Control, then select Upgrade Agents.
  • For Job Name, accept the default job name, or enter a unique job name.
  • Click Add to select the Management Agents you want to upgrade.
  • Click Submit.

Postupgrade steps after Upgrading to Enterprise Manager Cloud Control 13c Release 4.

  • Delete the old OMS HOME
  • Remove emkey copy.
    [oracle@oemserver ~]$ $OMS_HOME/bin/emctl config emkey -remove_from_repos
    Oracle Enterprise Manager Cloud Control 13c Release 4
    Copyright (c) 1996, 2020 Oracle Corporation.  All rights reserved.
    Enter Enterprise Manager Root (SYSMAN) Password :
    The EMKey has already been removed from the Management Repository.
    [oracle@oemserver ~]$
  • Reset Optimizer Adaptive Features for Oracle Database
    alter system set job_queue_processes=100 scope=both;
    alter system reset "_optimizer_nlj_hj_adaptive_join" scope=both sid='*';
    alter system reset "_optimizer_strans_adaptive_pruning" scope=both sid='*';
    alter system reset "_px_adaptive_dist_method" scope=both sid='*';
    alter system reset "_sql_plan_directive_mgmt_control" scope=both sid='*';
    alter system reset "_optimizer_dsdir_usage_control" scope=both sid='*';
    alter system reset "_optimizer_use_feedback" scope=both sid='*';
    alter system reset "_optimizer_gather_feedback" scope=both sid='*';
    alter system reset "_optimizer_performance_feedback" scope=both sid='*';
    Enjoy Oracle Enterprise Manager 13c Release 4!

    Thank you for giving your valuable time to read the above information.

    If you want to be updated with all our articles send us the Invitation or Follow us:

    Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

    LinkedIn Group: Oracle Cloud DBAAS

    Facebook Page: OracleHelp

The post Upgrade Oracle Enterprise Manager (OEM) 13.4 appeared first on ORACLE-HELP.

Apply latest PSU (Jan 2020) on Oracle Home

$
0
0

In this article we will apply the latest PSU applied to Database Home. 

Latest Patch : Database Jan 2020 Release Update : 12.2.0.1.200114 (30593149)

We need to initially download the desired PSU and My Oracle Support compatible OPatch utility (support.oracle.com).

  • Doc ID 2118136.2 -> Quick References to Patch Numbers for Database / GI PSU, SPU (CPU), Bundle Patches and Patchsets.
  • Doc ID 274526.1 -> How To Download And Install The Latest OPatch (6880880) Version.

The next step is to install OPatch in Database Home:

  • Find the Database Home.
  • Back up the old OPatch utility
  • Unzip the new OPatch in Oracle Home

Check the OPatch version. We upgrade the opatch utility as per README file in patch.

[oracle@oemserver ~]$ export PATH=$ORACLE_HOME/OPatch:$PATH
[oracle@oemserver ~]$ opatch version
OPatch Version: 12.2.0.1.19

OPatch succeeded.
[oracle@oemserver ~]$
 

Now, shutdown the database.

[oracle@oemserver ~]$ . oraenv
ORACLE_SID = [oracle] ? oem02
The Oracle base has been set to /u01/app/oracle/product/12.2.0/dbhome_1_oem

[oracle@oemserver ~]$

[oracle@oemserver ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Tue Feb 25 00:11:53 2020

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


Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

[oracle@oemserver ~]$

Then stop the listener before patching.

[oracle@oemserver ~]$ lsnrctl stop LISTENER_OEM

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 25-FEB-2020 00:12:38

Copyright (c) 1991, 2016, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oemserver)(PORT=1521)))
The command completed successfully

[oracle@oemserver ~]$

Go to the directory where the patch has downloaded and unzip it.

[oracle@oemserver ~]$ cd /u01/sw

[oracle@oemserver sw]$ ls
30593149  PatchSearch.xml

[oracle@oemserver sw]$ cd 30593149/

[oracle@oemserver 30593149]$ ls
custom  etc  files  README.html  README.txt
[oracle@oemserver sw]$

Now, set the environmental varible and run the precheck for conflicts. If there is any conflicts, then contact Oracle Support for validation or merge patch if needed.

 [oracle@oemserver 30593149]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 12.2.0.1.19
Copyright (c) 2020, Oracle Corporation.  All rights reserved.

PREREQ session

Oracle Home       : /u01/app/oracle/product/12.2.0/dbhome_1_oem
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/12.2.0/dbhome_1_oem/oraInst.loc
OPatch version    : 12.2.0.1.19
OUI version       : 12.2.0.1.4
Log file location : /u01/app/oracle/product/12.2.0/dbhome_1_oem/cfgtoollogs/opatch/opatch2020-02-29_23-18-17PM_1.log

Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.
[oracle@oemserver 30593149]$

Finally, you can apply the patch.

Note: -silent is used to suppresses any user-interaction
[oracle@oemserver 30593149]$ opatch apply -silent
Oracle Interim Patch Installer version 12.2.0.1.19
Copyright (c) 2020, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/12.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/12.2.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.19
OUI version       : 12.2.0.1.4
Log file location : /u01/app/oracle/product/12.2.0/dbhome_1/cfgtoollogs/opatch/opatch2020-02-25_00-21-28AM_1.log

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   30593149

Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/12.2.0/dbhome_1')


Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '30593149' to OH '/u01/app/oracle/product/12.2.0/dbhome_1'
ApplySession: Optional component(s) [ oracle.network.cman, 12.2.0.1.0 ] , [ oracle.oid.client, 12.2.0.1.0 ] , [ oracle.ons.daemon, 12.2.0.1.0 ] , [ oracle.has.crs, 12.2.0.1.0 ] , [ oracle.rdbms.drdaas, 12.2.0.1.0 ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.rdbms.util, 12.2.0.1.0...

Patching component oracle.rdbms.rsf, 12.2.0.1.0...

Patching component oracle.network.rsf, 12.2.0.1.0...

Patching component oracle.rdbms, 12.2.0.1.0...

Patching component oracle.ctx, 12.2.0.1.0...

Patching component oracle.ctx.rsf, 12.2.0.1.0...

Patching component oracle.has.common.cvu, 12.2.0.1.0...

Patching component oracle.ldap.rsf, 12.2.0.1.0...

Patching component oracle.rdbms.dbscripts, 12.2.0.1.0...

Patching component oracle.rdbms.deconfig, 12.2.0.1.0...

Patching component oracle.rdbms.rsf.ic, 12.2.0.1.0...

Patching component oracle.sdo, 12.2.0.1.0...

Patching component oracle.sdo.locator, 12.2.0.1.0...

Patching component oracle.sqlplus.ic, 12.2.0.1.0...

Patching component oracle.tfa, 12.2.0.1.0...

Patching component oracle.precomp.rsf, 12.2.0.1.0...

Patching component oracle.rdbms.oci, 12.2.0.1.0...

Patching component oracle.xdk, 12.2.0.1.0...

Patching component oracle.rdbms.crs, 12.2.0.1.0...

Patching component oracle.sqlplus, 12.2.0.1.0...

Patching component oracle.assistants.server, 12.2.0.1.0...

Patching component oracle.rdbms.dv, 12.2.0.1.0...

Patching component oracle.assistants.acf, 12.2.0.1.0...

Patching component oracle.oraolap, 12.2.0.1.0...

Patching component oracle.rdbms.rman, 12.2.0.1.0...

Patching component oracle.rdbms.lbac, 12.2.0.1.0...

Patching component oracle.ldap.client, 12.2.0.1.0...

Patching component oracle.xdk.rsf, 12.2.0.1.0...

Patching component oracle.install.deinstalltool, 12.2.0.1.0...

Patching component oracle.rdbms.install.plugins, 12.2.0.1.0...

Patching component oracle.ons, 12.2.0.1.0...

Patching component oracle.oracore.rsf, 12.2.0.1.0...

Patching component oracle.assistants.deconfig, 12.2.0.1.0...

Patching component oracle.ldap.rsf.ic, 12.2.0.1.0...

Patching component oracle.xdk.parser.java, 12.2.0.1.0...

Patching component oracle.nlsrtl.rsf, 12.2.0.1.0...

Patching component oracle.precomp.common, 12.2.0.1.0...

Patching component oracle.precomp.lang, 12.2.0.1.0...

Patching component oracle.jdk, 1.8.0.91.0...
Patch 30593149 successfully applied.
Log file location: /u01/app/oracle/product/12.2.0/dbhome_1/cfgtoollogs/opatch/opatch2020-02-25_00-21-28AM_1.log

OPatch succeeded.
[oracle@oemserver 30593149]$

You can cross check the patch with opatch utility.

[oracle@oemserver 30593149]$ opatch lspatches
30593149;Database Jan 2020 Release Update : 12.2.0.1.200114 (30593149)

OPatch succeeded.
[oracle@oemserver 30593149]$

Now, start the database & listener.

[oracle@oemserver 30593149]$ lsnrctl start LISTENER_OEM

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 25-FEB-2020 00:28:18

Copyright (c) 1991, 2016, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/12.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 12.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/oemserver/listener_oem/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oemserver)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oemserver)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_OEM
Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date                25-FEB-2020 00:28:18
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/oemserver/listener_oem/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oemserver)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully

[oracle@oemserver 30593149]$ sqlplus / as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Sat Feb 29 23:22:53 2020

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

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 3070230528 bytes
Fixed Size                  8625416 bytes
Variable Size            1862271736 bytes
Database Buffers         1191182336 bytes
Redo Buffers                8151040 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
[oracle@oemserver 30593149]$

Run the datapatch to make the entry in database registry. 

[oracle@oemserver 30593149]$ datapatch -verbose
SQL Patching tool version 12.2.0.1.0 Production on Sat Feb 29 23:23:23 2020
Copyright (c) 2012, 2019, Oracle.  All rights reserved.

Log file for this invocation: /u01/app/oracle/product/12.2.0/dbhome_1_oem/cfgtoollogs/sqlpatch/sqlpatch_10590_2020_02_29_23_23_23/sqlpatch_invocation.log

Connecting to database...OK
Bootstrapping registry and package to current versions...done
Determining current state...done

Current state of SQL patches:
Bundle series DBRU:
  ID 191015 in the binary registry and ID 200114 in the SQL registry

Adding patches to installation queue and performing prereq checks...
Installation queue:
  The following patches will be rolled back:
    30593149 (DATABASE JAN 2020 RELEASE UPDATE 12.2.0.1.200114)
  Nothing to apply

Installing patches...
Patch installation complete.  Total patches installed: 1

Validating logfiles...
Patch 30593149 rollback: SUCCESS
  logfile: /u01/app/oracle/product/12.2.0/dbhome_1_oem/cfgtoollogs/sqlpatch/30593149/23299902/30593149_rollback_OEM02_2020Feb29_23_24_21.log (no errors)
SQL Patching tool complete on Sat Feb 29 23:26:40 2020

[oracle@oemserver 30593149]$ sqlplus / as sysdba
SQL> set lines 200
SQL> set pages 200
SQL> col DESCRIPTION for a70

SQL> SELECT patch_id,DESCRIPTION,version, status, bundle_id, bundle_series FROM dba_registry_sqlpatch;

  PATCH_ID DESCRIPTION                                                            VERSION              STATUS                     BUNDLE_ID BUNDLE_SERIES
---------- ---------------------------------------------------------------------- -------------------- ------------------------- ---------- ------------------------------
  30593149 DATABASE JAN 2020 RELEASE UPDATE 12.2.0.1.200114                       12.2.0.1             SUCCESS                       200114 DBRU

If you are getting the error related to extjob0 and opatch has warning.

OPatch found the word "error" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
chmod: changing permissions of ‘/u01/app/oracle/product/12.2.0/dbhome_1/bin/extjobO’: Operation not permitted
make: [iextjob] Error 1 (ignored)


Patch 30593149 successfully applied.
OPatch Session completed with warnings.

Then you need to rollback the patch and re-apply the patch. It will resolve your error.

[oracle@oemserver 30593149]$ opatch rollback -id 30593149
[oracle@oemserver 30593149]$ opatch apply -silent

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Apply latest PSU (Jan 2020) on Oracle Home appeared first on ORACLE-HELP.


Installation of Oracle RAC on Oracle Cloud Infrastructure(OCI)

$
0
0

In this post, we will see the creation of Oracle RAC on Oracle Cloud Infrastructure (OCI)

After login to your OCI account, Click on the Menu and choose Bare Metal, VM, Exadata option under Database category.

First, you need to select the compartment name and then click on “Create DB System

As shown in the below image. Provide all the information.

  • Select a compartment
  • Name your DB system – DBSVM
  • Select an availablity domain as per your subscription
  • Select a shape type – Virtual Machine
  • Select a shape – VM.Standard.2.2
Note: VM.Standard.2.2 shape contains 2 nodes.
  • Set the Total node count is 2.
  • OCI for storage management : Grid infrastructure
  • Choose default Available Storage: 256
  • Provide the Cluster Name : SKANTCLST
  • Upload your Public Key
  • Choose a license type : License Included

Step 7 :Next in network information ,provide  VCN detail and client subnet detail. Then provide host prefix. According to the host prefix provided by you , you will see host and domain URL.

  • Database name : SKANTORC
  • Check the Display all available versions.
  • Database version – 19.5.0.0.
  • PDB name : SKANTPDB1
  • Password of sys user.
  • Select the workload type : OLTP (as per your requirement)
  • Optionally, select enable automatic backups

Click on Create DB System.

Wait for few mins and your RAC db will be ready for use.

Click on DBSVM database and you will able to get all the information.

By selecting Nodes from left side panel, you can see nodes information.

Now, use the private key and public IP of any node and connect to server with OPC user for getting the more details.

login as: opc
Authenticating with public key "rsa-key-20200220"
Last login: Thu Feb 27 17:01:07 2020 from 183.83.146.62
[opc@skanthost2 ~]$ sudo su - grid
Last login: Thu Feb 27 17:26:46 UTC 2020
[grid@skanthost2 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.COMMONSTORE.advm
               ONLINE  ONLINE       skanthost1               STABLE
               ONLINE  ONLINE       skanthost2               STABLE
ora.LISTENER.lsnr
               ONLINE  ONLINE       skanthost1               STABLE
               ONLINE  ONLINE       skanthost2               STABLE
ora.chad
               ONLINE  ONLINE       skanthost1               STABLE
               ONLINE  ONLINE       skanthost2               STABLE
ora.data.commonstore.acfs
               ONLINE  ONLINE       skanthost1               mounted on /opt/orac
                                                             le/dcs/commonstore,S
                                                             TABLE
               ONLINE  ONLINE       skanthost2               mounted on /opt/orac
                                                             le/dcs/commonstore,S
                                                             TABLE
ora.net1.network
               ONLINE  ONLINE       skanthost1               STABLE
               ONLINE  ONLINE       skanthost2               STABLE
ora.ons
               ONLINE  ONLINE       skanthost1               STABLE
               ONLINE  ONLINE       skanthost2               STABLE
ora.proxy_advm
               ONLINE  ONLINE       skanthost1               STABLE
               ONLINE  ONLINE       skanthost2               STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
      1        ONLINE  ONLINE       skanthost1               STABLE
      2        ONLINE  ONLINE       skanthost2               STABLE
ora.DATA.dg(ora.asmgroup)
      1        ONLINE  ONLINE       skanthost1               STABLE
      2        ONLINE  ONLINE       skanthost2               STABLE
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       skanthost2               STABLE
ora.LISTENER_SCAN2.lsnr
      1        ONLINE  ONLINE       skanthost1               STABLE
ora.LISTENER_SCAN3.lsnr
      1        ONLINE  ONLINE       skanthost1               STABLE
ora.RECO.dg(ora.asmgroup)
      1        ONLINE  ONLINE       skanthost1               STABLE
      2        ONLINE  ONLINE       skanthost2               STABLE
ora.asm(ora.asmgroup)
      1        ONLINE  ONLINE       skanthost1               Started,STABLE
      2        ONLINE  ONLINE       skanthost2               Started,STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
      1        ONLINE  ONLINE       skanthost1               STABLE
      2        ONLINE  ONLINE       skanthost2               STABLE
ora.cvu
      1        ONLINE  ONLINE       skanthost1               STABLE
ora.qosmserver
      1        ONLINE  ONLINE       skanthost1               STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       skanthost2               STABLE
ora.scan2.vip
      1        ONLINE  ONLINE       skanthost1               STABLE
ora.scan3.vip
      1        ONLINE  ONLINE       skanthost1               STABLE
ora.skanthost1.vip
      1        ONLINE  ONLINE       skanthost1               STABLE
ora.skanthost2.vip
      1        ONLINE  ONLINE       skanthost2               STABLE
ora.skantorc_iad19m.db
      1        ONLINE  ONLINE       skanthost1               Open,HOME=/u01/app/o
                                                             racle/product/19.0.0
                                                             .0/dbhome_1,STABLE
      2        ONLINE  ONLINE       skanthost2               Open,HOME=/u01/app/o
                                                             racle/product/19.0.0
                                                             .0/dbhome_1,STABLE
--------------------------------------------------------------------------------

[grid@skanthost2 ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

[grid@skanthost2 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node skanthost2
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node skanthost1
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node skanthost1

[grid@skanthost2 ~]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node skanthost2
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node skanthost1
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node skanthost1

[grid@skanthost2 ~]$ olsnodes -n
skanthost1      1
skanthost2      2

[grid@skanthost2 ~]$ ps -ef|grep pmon
oracle     546     1  0 16:05 ?        00:00:00 ora_pmon_SKANTORC2
grid     54703     1  0 15:30 ?        00:00:00 asm_pmon_+ASM2
grid     62375     1  0 15:32 ?        00:00:00 apx_pmon_+APX2
grid     65260 60830  0 17:33 pts/0    00:00:00 grep --color=auto pmon
[grid@skanthost2 ~]$

In the next post, we will create the Data Gaurd for this RAC setup on OCI.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Installation of Oracle RAC on Oracle Cloud Infrastructure(OCI) appeared first on ORACLE-HELP.

Configuring Data Guard in Oracle Cloud Infrastructure (OCI)

$
0
0

In previous article, we saw the creation of Oracle RAC on Oracle Cloud Infrastructure (OCI)

Installation of Oracle RAC on Oracle Cloud Infrastructure(OCI)

In this post, we will see how to configure data guard with RAC on OCI.

  • Assumption : Oracle RAC database is already installed and configured on OCI.

  • Click on Displa Name: DBSVM

  • Click on Databases on Resources in left side pane. Then click on Database Name – SKANTORC

  • Click on Data Guard Association on Resources in left side pane. Then click on Enable Data Guard button.

As shown in the below image. Provide all the information. 

  • Display Name : SKANTDRVM
  • Availability Domain : aXWk:US-ASHBURN-AD-1
  • Shape : VM.Standard2.2
  • Client Subnet : Public Subnet-SKANTVCN(regional)
  • Hostname Prefix : SKANTDR
  • Protection Mode is Maximum Performance by default
  • Transport type is ASYNC.
  • Provide admin password
  • Click on Enable Data Guard.

After sometimes, data guard has been created.

  • Click on the Display Name for Data Guard: SKANTDRVM

 Now, use the private key and public IP of any node and connect to server with OPC user for getting the more details.  

login as: opc
Authenticating with public key "rsa-key-20200220"
[opc@skantdr1 ~]$ sudo su - oracle
Last login: Fri Feb 28 02:51:45 UTC 2020

[oracle@skantdr1 ~]$ ps -ef|grep pmon
oracle   12510     1  0 Feb27 ?        00:00:02 ora_pmon_SKANTORC1
grid     71169     1  0 Feb27 ?        00:00:02 asm_pmon_+ASM1
grid     80533     1  0 Feb27 ?        00:00:01 apx_pmon_+APX1
oracle   99783 99546  0 02:53 pts/0    00:00:00 grep --color=auto pmon

[oracle@skantdr1 ~]$ sqlplus / as sysdba

Connected to:
Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Version 19.5.0.0.0

SQL> select NAME,INSTANCE_NAME,HOST_NAME,OPEN_MODE,LOG_MODE,DATABASE_ROLE,CREATED from gv$database d ,gv$instance i where d.inst_id=i.inst_id;

SQL> set lines 200 pages 200

NAME      INSTANCE_NAME    HOST_NAME                                                        OPEN_MODE            LOG_MODE     DATABASE_ROLE    CREATED
--------- ---------------- ---------------------------------------------------------------- -------------------- ------------ ---------------- ---------
SKANTORC  SKANTORC1        skantdr1                                                         READ ONLY WITH APPLY ARCHIVELOG   PHYSICAL STANDBY 27-FEB-20
SKANTORC  SKANTORC2        skantdr2                                                         READ ONLY WITH APPLY ARCHIVELOG   PHYSICAL STANDBY 27-FEB-20

SQL> exit
Disconnected from Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production
Version 19.5.0.0.0

[oracle@skantdr1 ~]$ dgmgrl /
DGMGRL for Linux: Release 19.0.0.0.0 - Production on Fri Feb 28 02:55:28 2020
Version 19.5.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

Welcome to DGMGRL, type "help" for information.
Connected to "SKANTORC_iad134"
Connected as SYSDG.
DGMGRL> show configuration

Configuration - SKANTORC_iad19m_SKANTORC_iad13

  Protection Mode: MaxPerformance
  Members:
  SKANTORC_iad19m - Primary database
    SKANTORC_iad134 - Physical standby database

Fast-Start Failover:  Disabled

Configuration Status:
SUCCESS   (status updated 103 seconds ago)

DGMGRL> exit

In the next post, we will perform switchover in Data Gaurd for this RAC setup on OCI.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Configuring Data Guard in Oracle Cloud Infrastructure (OCI) appeared first on ORACLE-HELP.

Patch the 2 node RAC in OCI with DBCLI

$
0
0

In this post,  we will perform patching on BM (Bare Metals) and VM ( Virtuals Machine) database systems by using DBCLI on the 2-Node RAC running on Oracle Database 19c.

Note: This tool is not applicable to Exadata DB systems.

Prerequisites

  • The /u01 directory has at least 15 GB of free space.
  • The Oracle Clusterware is up and running on the DB system.
  • All nodes of the DB system are up and running.

Before starting the patching, we need to upgrade the DBCLI utility. For that perform the below steps

  • Login to OPC user with Public IP/Private IP by using private key. Switch the user to root.
login as: opc
Authenticating with public key "rsa-key-20200220"
Last login: Fri Feb 28 02:53:09 2020 from 183.83.146.62
[opc@skantdr1 ~]$ sudo su -
[root@skantdr1 ~]#
  • Update the CLI by using the cliadm update-dbcli command.
[root@skantdr1 bin]# export PATH=/opt/oracle/dcs/bin:$PATH
[root@skantdr1 bin]# cliadm update-dbcli

Job details
----------------------------------------------------------------
                     ID:  5e290489-2ec9-4b2b-919b-5c82ddbd489a
            Description:  DcsCli patching
                 Status:  Created
                Created:  February 28, 2020 4:40:08 AM UTC
                Message:  Dcs cli will be updated

Task Name                                                                Start Time                          End Time                            Status
------------------------------------------------------------------------ ----------------------------------- ----------------------------------- ----------

[root@skantdr1 bin]#
  • Wait for the update job to complete successfully. Check the status of the job by using the dbcli list-jobs command.
[root@skantdr1 bin]# dbcli list-jobs

ID                                       Description                                                                 Created                             Status
---------------------------------------- --------------------------------------------------------------------------- ----------------------------------- ----------
9cd00f1c-38c6-4cd5-99b7-513b60f7deb4     Provisioning service creation                                               February 27, 2020 5:31:12 PM UTC    Success
4439c4c8-aa73-4974-a44c-21b6496009f2     Authentication key update for DCS_ADMIN                                     February 27, 2020 6:14:08 PM UTC    Success
2639eca4-c0ee-4e5f-9eab-d0c77620150e     Authentication key update for DCS_ADMIN                                     February 27, 2020 6:15:59 PM UTC    Success
07128924-bdd0-4445-b577-54d11f38ef98     DG Config service creation                                                  February 27, 2020 6:23:16 PM UTC    Success
67ba7f6b-dcd7-420b-8ab9-662f96644d56     DG Status service creation                                                  February 27, 2020 6:39:59 PM UTC    Success
9062d19f-0b8a-4fd1-b2d8-a711d2af5936     SSH keys update                                                             February 27, 2020 6:44:02 PM UTC    Success
cb7c59a9-4be5-4180-8c2a-75ceb63729d0     SSH key delete                                                              February 27, 2020 6:44:23 PM UTC    Success
4983e150-3876-4342-af60-5c2b791a9098     SSH key delete                                                              February 27, 2020 6:44:24 PM UTC    Success
5e290489-2ec9-4b2b-919b-5c82ddbd489a     DcsCli patching                                                             February 28, 2020 4:40:08 AM UTC    Success
  • Display the installed patch versions by using the dbcli describe-component command.
[root@skantdr1 bin]# dbcli describe-component
System Version
---------------
19.4.3.3.0

Component                                Installed Version    Available Version
---------------------------------------- -------------------- --------------------
GI                                        19.5.0.0.191015       19.6.0.0.200114
DB                                        19.5.0.0.191015       19.6.0.0.200114

[root@skantdr1 bin]#
  • Display the latest patch versions available in Object Storage by using the dbcli describe-latestpatch command.
[root@skantdr1 bin]# dbcli describe-latestpatch

componentType   availableVersion
--------------- --------------------
gi              12.2.0.1.200114
gi              12.1.0.2.200114
gi              18.9.0.0.200114
gi              19.6.0.0.200114
db              11.2.0.4.200114
db              12.2.0.1.200114
db              12.1.0.2.200114
db              18.9.0.0.200114
db              19.6.0.0.200114
[root@skantdr1 bin]#
  • Now, we can perform the prechecks on the server components (Grid InfraStruture) by using the dbcli update-server command with -p argument. Note the Job Id.
[root@skantdr1 bin]# dbcli update-server -p
{
  "jobId" : "ed8f348e-c7e5-4cf7-9bfa-23a0b54dbc8d",
  "status" : "Created",
  "message" : null,
  "reports" : [ ],
  "createTimestamp" : "February 28, 2020 04:42:15 AM UTC",
  "resourceList" : [ ],
  "description" : "Server Patching Prechecks",
  "updatedTime" : "February 28, 2020 04:42:15 AM UTC",
  "percentageProgress" : null
}
[root@skantdr1 bin]#
  • Check the job output by using the dbcli list-job command.
[root@skantdr1 bin]# dbcli list-jobs

ID                                       Description                                                                 Created                             Status
---------------------------------------- --------------------------------------------------------------------------- ----------------------------------- ----------
9cd00f1c-38c6-4cd5-99b7-513b60f7deb4     Provisioning service creation                                               February 27, 2020 5:31:12 PM UTC    Success
4439c4c8-aa73-4974-a44c-21b6496009f2     Authentication key update for DCS_ADMIN                                     February 27, 2020 6:14:08 PM UTC    Success
2639eca4-c0ee-4e5f-9eab-d0c77620150e     Authentication key update for DCS_ADMIN                                     February 27, 2020 6:15:59 PM UTC    Success
07128924-bdd0-4445-b577-54d11f38ef98     DG Config service creation                                                  February 27, 2020 6:23:16 PM UTC    Success
67ba7f6b-dcd7-420b-8ab9-662f96644d56     DG Status service creation                                                  February 27, 2020 6:39:59 PM UTC    Success
9062d19f-0b8a-4fd1-b2d8-a711d2af5936     SSH keys update                                                             February 27, 2020 6:44:02 PM UTC    Success
cb7c59a9-4be5-4180-8c2a-75ceb63729d0     SSH key delete                                                              February 27, 2020 6:44:23 PM UTC    Success
4983e150-3876-4342-af60-5c2b791a9098     SSH key delete                                                              February 27, 2020 6:44:24 PM UTC    Success
5e290489-2ec9-4b2b-919b-5c82ddbd489a     DcsCli patching                                                             February 28, 2020 4:40:08 AM UTC    Success
ed8f348e-c7e5-4cf7-9bfa-23a0b54dbc8d     Server Patching Prechecks                                                   February 28, 2020 4:42:15 AM UTC    Running
  • Apply the patch by using the dbcli update-server command. Note the Job Id.
[root@skantdr1 log]# dbcli update-server
{
  "jobId" : "fa0996a6-7f99-48b2-92dc-5c1fb8e20481",
  "status" : "Created",
  "message" : null,
  "reports" : [ ],
  "createTimestamp" : "February 28, 2020 05:03:24 AM UTC",
  "resourceList" : [ ],
  "description" : "Server Patching",
  "updatedTime" : "February 28, 2020 05:03:24 AM UTC",
  "percentageProgress" : null
}
[root@skantdr1 log]#
  • Check the job output by using the dbcli describe-job command with the job ID.
[root@skantdr1 log]# dbcli describe-job -i fa0996a6-7f99-48b2-92dc-5c1fb8e20481

Job details
----------------------------------------------------------------
                     ID:  fa0996a6-7f99-48b2-92dc-5c1fb8e20481
            Description:  Server Patching
                 Status:  Running
                Created:  February 28, 2020 5:03:24 AM UTC
                Message:

Task Name                                                                Start Time                          End Time                            Status
------------------------------------------------------------------------ ----------------------------------- ----------------------------------- ----------
Create Patching Repository Directories[skantdr1]                         February 28, 2020 5:03:24 AM UTC    February 28, 2020 5:03:24 AM UTC    Success
Create Patching Repository Directories[skantdr2]                         February 28, 2020 5:03:24 AM UTC    February 28, 2020 5:03:24 AM UTC    Success
Download latest patch metadata[skantdr1]                                 February 28, 2020 5:03:24 AM UTC    February 28, 2020 5:03:45 AM UTC    Success
Download latest patch metadata[skantdr2]                                 February 28, 2020 5:03:45 AM UTC    February 28, 2020 5:04:05 AM UTC    Success
Update Patching Repository[skantdr1]                                     February 28, 2020 5:04:06 AM UTC    February 28, 2020 5:06:40 AM UTC    Success
Update Patching Repository[skantdr2]                                     February 28, 2020 5:06:40 AM UTC    February 28, 2020 5:06:40 AM UTC    Running
  • Once the patching has been completed on Grid Infrastructure of 2-Node RAC. You can verify by using list-jobs, describe-component and describe-job with DBCLI utility.
[root@skantdr1 log]# dbcli describe-job -i fa0996a6-7f99-48b2-92dc-5c1fb8e20481

Job details
----------------------------------------------------------------
                     ID:  fa0996a6-7f99-48b2-92dc-5c1fb8e20481
            Description:  Server Patching
                 Status:  Running
                Created:  February 28, 2020 5:03:24 AM UTC
                Message:

Task Name                                                                Start Time                          End Time                            Status
------------------------------------------------------------------------ ----------------------------------- ----------------------------------- ----------
Create Patching Repository Directories[skantdr1]                         February 28, 2020 5:03:24 AM UTC    February 28, 2020 5:03:24 AM UTC    Success
Create Patching Repository Directories[skantdr2]                         February 28, 2020 5:03:24 AM UTC    February 28, 2020 5:03:24 AM UTC    Success
Download latest patch metadata[skantdr1]                                 February 28, 2020 5:03:24 AM UTC    February 28, 2020 5:03:45 AM UTC    Success
Download latest patch metadata[skantdr2]                                 February 28, 2020 5:03:45 AM UTC    February 28, 2020 5:04:05 AM UTC    Success
Update Patching Repository[skantdr1]                                     February 28, 2020 5:04:06 AM UTC    February 28, 2020 5:06:40 AM UTC    Success
Update Patching Repository[skantdr2]                                     February 28, 2020 5:06:40 AM UTC    February 28, 2020 5:08:29 AM UTC    Success
Opatch updation[skantdr2]                                                February 28, 2020 5:08:32 AM UTC    February 28, 2020 5:08:36 AM UTC    Success
Opatch updation[skantdr1]                                                February 28, 2020 5:08:32 AM UTC    February 28, 2020 5:08:36 AM UTC    Success
Patch conflict check[skantdr1]                                           February 28, 2020 5:08:36 AM UTC    February 28, 2020 5:10:30 AM UTC    Success
Patch conflict check[skantdr2]                                           February 28, 2020 5:10:30 AM UTC    February 28, 2020 5:12:22 AM UTC    Success
apply clusterware patch[skantdr1]                                        February 28, 2020 5:12:22 AM UTC    February 28, 2020 5:41:58 AM UTC    Success
apply clusterware patch[skantdr2]                                        February 28, 2020 5:41:58 AM UTC    February 28, 2020 6:10:57 AM UTC    Success
Updating GiHome version[skantdr1]                                        February 28, 2020 6:10:58 AM UTC    February 28, 2020 6:11:22 AM UTC    Success
Updating GiHome version[skantdr2]                                        February 28, 2020 6:10:58 AM UTC    February 28, 2020 6:11:27 AM UTC    Success

[root@skantdr1 log]# dbcli list-jobs

ID                                       Description                                                                 Created                             Status
---------------------------------------- --------------------------------------------------------------------------- ----------------------------------- ----------
9cd00f1c-38c6-4cd5-99b7-513b60f7deb4     Provisioning service creation                                               February 27, 2020 5:31:12 PM UTC    Success
4439c4c8-aa73-4974-a44c-21b6496009f2     Authentication key update for DCS_ADMIN                                     February 27, 2020 6:14:08 PM UTC    Success
2639eca4-c0ee-4e5f-9eab-d0c77620150e     Authentication key update for DCS_ADMIN                                     February 27, 2020 6:15:59 PM UTC    Success
07128924-bdd0-4445-b577-54d11f38ef98     DG Config service creation                                                  February 27, 2020 6:23:16 PM UTC    Success
67ba7f6b-dcd7-420b-8ab9-662f96644d56     DG Status service creation                                                  February 27, 2020 6:39:59 PM UTC    Success
9062d19f-0b8a-4fd1-b2d8-a711d2af5936     SSH keys update                                                             February 27, 2020 6:44:02 PM UTC    Success
cb7c59a9-4be5-4180-8c2a-75ceb63729d0     SSH key delete                                                              February 27, 2020 6:44:23 PM UTC    Success
4983e150-3876-4342-af60-5c2b791a9098     SSH key delete                                                              February 27, 2020 6:44:24 PM UTC    Success
5e290489-2ec9-4b2b-919b-5c82ddbd489a     DcsCli patching                                                             February 28, 2020 4:40:08 AM UTC    Success
ed8f348e-c7e5-4cf7-9bfa-23a0b54dbc8d     Server Patching Prechecks                                                   February 28, 2020 4:42:15 AM UTC    Success
fa0996a6-7f99-48b2-92dc-5c1fb8e20481     Server Patching                                                             February 28, 2020 5:03:24 AM UTC    Success

[root@skantdr1 log]# dbcli describe-component
System Version
---------------
19.4.3.0.0

Component                                Installed Version    Available Version
---------------------------------------- -------------------- --------------------
GI                                        19.6.0.0.200114       up-to-date
DB                                        19.5.0.0.191015       19.6.0.0.200114
  • Before run the precheck, we need the database home ID by using dbcli list-dbhomes.
[root@skantdr1 log]# dbcli list-dbhomes

ID                                       Name                 DB Version                               Home Location                                 Status
---------------------------------------- -------------------- ---------------------------------------- --------------------------------------------- ----------
c177404f-d22e-46b5-95ac-28ed5b2da50d     OraDB19000_home1     19.5.0.0.191015                          /u01/app/oracle/product/19.0.0.0/dbhome_1     Configured

[root@skantdr1 log]#
  • Now, we can start the precheck for the database home by using the dbcli update-dbhome command with -p argument . Note the Job Id.
[root@skantdr1 log]# dbcli update-dbhome -i c177404f-d22e-46b5-95ac-28ed5b2da50d -p
{
  "jobId" : "53aecb87-33a5-4e0d-b430-db563402a8d8",
  "status" : "Created",
  "message" : null,
  "reports" : [ ],
  "createTimestamp" : "February 28, 2020 06:14:37 AM UTC",
  "resourceList" : [ ],
  "description" : "DB Home Prechecks",
  "updatedTime" : "February 28, 2020 06:14:37 AM UTC",
  "percentageProgress" : null
}
Note: -i is used for Database home ID and -p to run the prechecks.
  • Check the job output by using the dbcli list-job command.
[root@skantdr1 log]# dbcli list-jobs

ID                                       Description                                                                 Created                             Status
---------------------------------------- --------------------------------------------------------------------------- ----------------------------------- ----------
9cd00f1c-38c6-4cd5-99b7-513b60f7deb4     Provisioning service creation                                               February 27, 2020 5:31:12 PM UTC    Success
4439c4c8-aa73-4974-a44c-21b6496009f2     Authentication key update for DCS_ADMIN                                     February 27, 2020 6:14:08 PM UTC    Success
2639eca4-c0ee-4e5f-9eab-d0c77620150e     Authentication key update for DCS_ADMIN                                     February 27, 2020 6:15:59 PM UTC    Success
07128924-bdd0-4445-b577-54d11f38ef98     DG Config service creation                                                  February 27, 2020 6:23:16 PM UTC    Success
67ba7f6b-dcd7-420b-8ab9-662f96644d56     DG Status service creation                                                  February 27, 2020 6:39:59 PM UTC    Success
9062d19f-0b8a-4fd1-b2d8-a711d2af5936     SSH keys update                                                             February 27, 2020 6:44:02 PM UTC    Success
cb7c59a9-4be5-4180-8c2a-75ceb63729d0     SSH key delete                                                              February 27, 2020 6:44:23 PM UTC    Success
4983e150-3876-4342-af60-5c2b791a9098     SSH key delete                                                              February 27, 2020 6:44:24 PM UTC    Success
5e290489-2ec9-4b2b-919b-5c82ddbd489a     DcsCli patching                                                             February 28, 2020 4:40:08 AM UTC    Success
ed8f348e-c7e5-4cf7-9bfa-23a0b54dbc8d     Server Patching Prechecks                                                   February 28, 2020 4:42:15 AM UTC    Success
fa0996a6-7f99-48b2-92dc-5c1fb8e20481     Server Patching                                                             February 28, 2020 5:03:24 AM UTC    Success
53aecb87-33a5-4e0d-b430-db563402a8d8     DB Home Prechecks                                                           February 28, 2020 6:14:37 AM UTC    Running

[root@skantdr1 log]#
  • Apply the patch by using the dbcli update-dbhome command. Note the Job Id.
[root@skantdr1 log]# dbcli update-dbhome -i c177404f-d22e-46b5-95ac-28ed5b2da50d
{
  "jobId" : "1de24101-07e0-4031-835d-de912c35656f",
  "status" : "Created",
  "message" : null,
  "reports" : [ ],
  "createTimestamp" : "February 28, 2020 06:29:35 AM UTC",
  "resourceList" : [ ],
  "description" : "DB Home Patching: Home Id is c177404f-d22e-46b5-95ac-28ed5b2da50d",
  "updatedTime" : "February 28, 2020 06:29:35 AM UTC",
  "percentageProgress" : null
}
[root@skantdr1 log]#
  • Check the job output by using the dbcli describe-job command with the job ID.
[root@skantdr1 log]# dbcli describe-job -i 1de24101-07e0-4031-835d-de912c35656f

Job details
----------------------------------------------------------------
                     ID:  1de24101-07e0-4031-835d-de912c35656f
            Description:  DB Home Patching: Home Id is c177404f-d22e-46b5-95ac-28ed5b2da50d
                 Status:  Running
                Created:  February 28, 2020 6:29:35 AM UTC
                Message:

Task Name                                                                Start Time                          End Time                            Status
------------------------------------------------------------------------ ----------------------------------- ----------------------------------- ----------
Create Patching Repository Directories[skantdr1]                         February 28, 2020 6:29:36 AM UTC    February 28, 2020 6:29:36 AM UTC    Success
Create Patching Repository Directories[skantdr2]                         February 28, 2020 6:29:36 AM UTC    February 28, 2020 6:29:36 AM UTC    Success
Download latest patch metadata[skantdr1]                                 February 28, 2020 6:29:36 AM UTC    February 28, 2020 6:29:56 AM UTC    Success
Download latest patch metadata[skantdr2]                                 February 28, 2020 6:29:56 AM UTC    February 28, 2020 6:30:17 AM UTC    Success
checking GiHome version[skantdr2]                                        February 28, 2020 6:30:17 AM UTC    February 28, 2020 6:31:23 AM UTC    Success
checking GiHome version[skantdr1]                                        February 28, 2020 6:30:17 AM UTC    February 28, 2020 6:31:21 AM UTC    Success
Update System version[skantdr1]                                          February 28, 2020 6:31:24 AM UTC    February 28, 2020 6:31:24 AM UTC    Success
Update System version[skantdr2]                                          February 28, 2020 6:31:24 AM UTC    February 28, 2020 6:31:24 AM UTC    Success
Update Patching Repository[skantdr1]                                     February 28, 2020 6:31:24 AM UTC    February 28, 2020 6:32:52 AM UTC    Success
Update Patching Repository[skantdr2]                                     February 28, 2020 6:32:52 AM UTC    February 28, 2020 6:32:52 AM UTC    Running

[root@skantdr1 log]#
  • Once the patching has been completed on Grid Infrastructure of 2-Node RAC. You can verify by using list-jobs, describe-component and describe-job with DBCLI utility.
[root@skantdr1 log]# dbcli list-jobs

ID                                       Description                                                                 Created                             Status
---------------------------------------- --------------------------------------------------------------------------- ----------------------------------- ----------
9cd00f1c-38c6-4cd5-99b7-513b60f7deb4     Provisioning service creation                                               February 27, 2020 5:31:12 PM UTC    Success
4439c4c8-aa73-4974-a44c-21b6496009f2     Authentication key update for DCS_ADMIN                                     February 27, 2020 6:14:08 PM UTC    Success
2639eca4-c0ee-4e5f-9eab-d0c77620150e     Authentication key update for DCS_ADMIN                                     February 27, 2020 6:15:59 PM UTC    Success
07128924-bdd0-4445-b577-54d11f38ef98     DG Config service creation                                                  February 27, 2020 6:23:16 PM UTC    Success
67ba7f6b-dcd7-420b-8ab9-662f96644d56     DG Status service creation                                                  February 27, 2020 6:39:59 PM UTC    Success
9062d19f-0b8a-4fd1-b2d8-a711d2af5936     SSH keys update                                                             February 27, 2020 6:44:02 PM UTC    Success
cb7c59a9-4be5-4180-8c2a-75ceb63729d0     SSH key delete                                                              February 27, 2020 6:44:23 PM UTC    Success
4983e150-3876-4342-af60-5c2b791a9098     SSH key delete                                                              February 27, 2020 6:44:24 PM UTC    Success
5e290489-2ec9-4b2b-919b-5c82ddbd489a     DcsCli patching                                                             February 28, 2020 4:40:08 AM UTC    Success
ed8f348e-c7e5-4cf7-9bfa-23a0b54dbc8d     Server Patching Prechecks                                                   February 28, 2020 4:42:15 AM UTC    Success
fa0996a6-7f99-48b2-92dc-5c1fb8e20481     Server Patching                                                             February 28, 2020 5:03:24 AM UTC    Success
53aecb87-33a5-4e0d-b430-db563402a8d8     DB Home Prechecks                                                           February 28, 2020 6:14:37 AM UTC    Success
1de24101-07e0-4031-835d-de912c35656f     DB Home Patching: Home Id is c177404f-d22e-46b5-95ac-28ed5b2da50d           February 28, 2020 6:29:35 AM UTC    Success

[root@skantdr1 log]# dbcli describe-job -i 1de24101-07e0-4031-835d-de912c35656f

Job details
----------------------------------------------------------------
                     ID:  1de24101-07e0-4031-835d-de912c35656f
            Description:  DB Home Patching: Home Id is c177404f-d22e-46b5-95ac-28ed5b2da50d
                 Status:  Success
                Created:  February 28, 2020 6:29:35 AM UTC
                Message:

Task Name                                                                Start Time                          End Time                            Status
------------------------------------------------------------------------ ----------------------------------- ----------------------------------- ----------
Create Patching Repository Directories[skantdr1]                         February 28, 2020 6:29:36 AM UTC    February 28, 2020 6:29:36 AM UTC    Success
Create Patching Repository Directories[skantdr2]                         February 28, 2020 6:29:36 AM UTC    February 28, 2020 6:29:36 AM UTC    Success
Download latest patch metadata[skantdr1]                                 February 28, 2020 6:29:36 AM UTC    February 28, 2020 6:29:56 AM UTC    Success
Download latest patch metadata[skantdr2]                                 February 28, 2020 6:29:56 AM UTC    February 28, 2020 6:30:17 AM UTC    Success
checking GiHome version[skantdr2]                                        February 28, 2020 6:30:17 AM UTC    February 28, 2020 6:31:23 AM UTC    Success
checking GiHome version[skantdr1]                                        February 28, 2020 6:30:17 AM UTC    February 28, 2020 6:31:21 AM UTC    Success
Update System version[skantdr1]                                          February 28, 2020 6:31:24 AM UTC    February 28, 2020 6:31:24 AM UTC    Success
Update System version[skantdr2]                                          February 28, 2020 6:31:24 AM UTC    February 28, 2020 6:31:24 AM UTC    Success
Update Patching Repository[skantdr1]                                     February 28, 2020 6:31:24 AM UTC    February 28, 2020 6:32:52 AM UTC    Success
Update Patching Repository[skantdr2]                                     February 28, 2020 6:32:52 AM UTC    February 28, 2020 6:34:00 AM UTC    Success
Validating dbHome available space[skantdr1]                              February 28, 2020 6:34:01 AM UTC    February 28, 2020 6:34:01 AM UTC    Success
Validating dbHome available space[skantdr2]                              February 28, 2020 6:34:01 AM UTC    February 28, 2020 6:34:01 AM UTC    Success
Opatch updation[skantdr2]                                                February 28, 2020 6:34:04 AM UTC    February 28, 2020 6:34:07 AM UTC    Success
Opatch updation[skantdr1]                                                February 28, 2020 6:34:04 AM UTC    February 28, 2020 6:34:07 AM UTC    Success
Patch conflict check[skantdr1]                                           February 28, 2020 6:34:07 AM UTC    February 28, 2020 6:36:55 AM UTC    Success
Patch conflict check[skantdr2]                                           February 28, 2020 6:36:55 AM UTC    February 28, 2020 6:39:45 AM UTC    Success
db upgrade  to version [skantdr1]                                        February 28, 2020 6:39:45 AM UTC    February 28, 2020 7:17:08 AM UTC    Success
db upgrade  to version [skantdr2]                                        February 28, 2020 7:17:08 AM UTC    February 28, 2020 8:00:19 AM UTC    Success
SqlPatch upgrade                                                         February 28, 2020 8:00:19 AM UTC    February 28, 2020 8:04:09 AM UTC    Success
updating the Database version                                            February 28, 2020 8:04:41 AM UTC    February 28, 2020 8:05:09 AM UTC    Success

[root@skantdr1 log]# dbcli describe-component
System Version
---------------
19.4.3.0.0

Component                                Installed Version    Available Version
---------------------------------------- -------------------- --------------------
GI                                        19.6.0.0.200114       up-to-date
DB                                        19.6.0.0.200114       up-to-date

[root@skantdr1 log]# dbcli list-databases

ID                                       DB Name    DB Type  DB Version           CDB        Class    Shape    Storage    Status        DbHomeID
---------------------------------------- ---------- -------- -------------------- ---------- -------- -------- ---------- ------------ ----------------------------------------
a1e7854d-5441-4468-91cc-e071aeddf90b     SKANTORC   Rac      19.6.0.0.200114      true       Oltp              ASM        Configured   c177404f-d22e-46b5-95ac-28ed5b2da50d
[root@skantdr1 log]#

In the next post, we will see more usage of DBCLI utility.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Patch the 2 node RAC in OCI with DBCLI appeared first on ORACLE-HELP.

New Feature: Changing the shape of a virtual machine DB system OCI

$
0
0

Finally, Oracle OCI come up with new feature of changing the shape of VM in Database system without termination.

For an instance, you are running DB system on OCI VM, as time passes, you may required more CPU or less CPU to reduce the costAfter you provision a virtual machine DB system, you can change the shape. New Shape does not impact the amount of storage available to the DB system, it only changes the CPU, Memory and Network bandwidth.

To change the VM shape in DB system, perform the below steps

  • Open the navigation menu. Under Database, click Bare Metal, VM, and Exadata.

  • Choose the compartment and click on DB system from list from list provided.

  • Click on button: Change Shape

  • Select the desired shape, you want to upgrade/downgrade and provide the confirmation.

  • Now wait for sometime, you will able to DB system is updating phase.

  • In few mintues, Shape of VM has been update with new Shape.

Note: If the current shape supports RAC, you can only change that shape to another shape that also supports RAC. For example, you cannot change the shape from VM.Standard2.2 to VM.Standard2.1.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post New Feature: Changing the shape of a virtual machine DB system OCI appeared first on ORACLE-HELP.

Oracle Data Guard Switchover in Oracle Cloud Infrastructure (OCI)

$
0
0

To  view how to configure Data Guard in OCI please check 

Configuring Data Guard in Oracle Cloud Infrastructure (OCI)

Assumptions: Oracle Data Guard is configured in OCI and it is up, running and synchronized.

You can check the dgmgrl configuration before starting switchover by login to the server using Public IP.

[oracle@skantdr1 ~]$ dgmgrl /
DGMGRL for Linux: Release 19.0.0.0.0 - Production on Fri Feb 28 02:55:28 2020
Version 19.5.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

Welcome to DGMGRL, type "help" for information.
Connected to "SKANTORC_iad134"
Connected as SYSDG.
DGMGRL> show configuration

Configuration - SKANTORC_iad19m_SKANTORC_iad13

  Protection Mode: MaxPerformance
  Members:
  SKANTORC_iad19m - Primary database
    SKANTORC_iad134 - Physical standby database

Fast-Start Failover:  Disabled

Configuration Status:
SUCCESS   (status updated 103 seconds ago)

You can see SKANTORC_iad19m is in primary state and SKANTORC_iad134 is in a standby state.

Now in OCI console open Data Guard Association tab in the primary database. Click on that vertical ellipsis sign near Launched option.

You will see 3 options

  • Switchover
  • Copy Peer Database OCID
  • Copy Peer System DBID

Click on switchover.

Next, you will be asked for the database admin password. Enter the password and click on OK.

You will see Database in updating state and in few mins database role will be switchover.

You can check dgmgrl setting to view successful switchover operation.

DGMGRL> SHOW CONFIGURATION;

Configuration - SKANTORC_iad19m_SKANTORC_iad13

  Protection Mode: MaxPerformance
  Members:
  SKANTORC_iad134 - Primary database
    SKANTORC_iad19m - Physical standby database

Fast-Start Failover:  Disabled

Configuration Status:
SUCCESS   (status updated 65 seconds ago)

You can see SKANTORC_iad19m was on primary role before and now is in standby role.

In the next post, we can perform patching of RAC in OCI.

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Telegram Channel: https://t.me/helporacle

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

The post Oracle Data Guard Switchover in Oracle Cloud Infrastructure (OCI) appeared first on ORACLE-HELP.

Viewing all 171 articles
Browse latest View live