Sriram Sanka – My Experiences with Databases & More

Oracle-MySQL-SQL SERVER-Python-Azure-AWS-Oracle Cloud-GCP etc

  • Enter your email address to follow this blog and receive notifications of new posts by email.

  • Total Views

    • 588,544 hits
  • $riram $anka


    The experiences, Test cases, views, and opinions etc expressed in this website are my own and does not reflect the views or opinions of my employer. This site is independent of and does not represent Oracle Corporation in any way. Oracle does not officially sponsor, approve, or endorse this site or its content.Product and company names mentioned in this website may be the trademarks of their respective owners.

Archive for the ‘Oracle Server Administration’ Category

Oracle Database 21c Express Edition (XE) RPM Installation On Oracle Linux 9

Posted by Sriram Sanka on March 29, 2023


What is Oracle Express Edition

Oracle Database Express Edition (XE) is a community supported edition of the Oracle Database family. It can be Installed in Linux, Windows, Dockers, and Virtual Machine as well.

Oracle Database Express Edition does not restrict in which environment it can be deployed. However, Oracle Database Express Edition is not supported and does not receive any patches, including security patches.

Oracle Database XE supports up to:

  • 2 CPUs for foreground processes
  • 2GB of RAM (SGA and PGA combined)
  • 12GB of user data on disk (irrespective of compression factor)

You can Download Oracle XE from https://www.oracle.com/nl/database/technologies/xe-downloads.html but its not available for Oracle Linux Version 9, In this article we are going install OL8 Version in OL9.

Pre- Installation

1. Make sure to have FQDN(fully qualified domain name) and an Entry with the same in /etc/hosts file.

2. Install dependent rpm compat-openssl10 , This can be downloaded from https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/Packages/c/compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm

wget https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/Packages/c/compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm
--2022-12-22 07:06:53--  https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/Packages/c/compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm
Resolving dl.rockylinux.org (dl.rockylinux.org)... 199.232.194.132, 199.232.198.132, 2a04:4e42:4d::644, ...
Connecting to dl.rockylinux.org (dl.rockylinux.org)|199.232.194.132|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1182640 (1.1M) [application/x-redhat-package-manager]
Saving to: ‘compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm’
 
compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm                  100%[========================================================================================================================================>]   1.13M  --.-KB/s    in 0.04s
 
2022-12-22 07:06:53 (30.2 MB/s) - ‘compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm’ saved [1182640/1182640]
dnf -y localinstall compat-openssl10-1.0.2o-4.el8_6.x86_64.rpm
Last metadata expiration check: 3:41:22 ago on Thu 22 Dec 2022 03:25:41 AM EST.
Dependencies resolved.
=============================================================================================================================================================================================================================================
 Package                                                    Architecture                                     Version                                                       Repository                                                   Size
=============================================================================================================================================================================================================================================
Installing:
 compat-openssl10                                           x86_64                                           1:1.0.2o-4.el8_6                                              @commandline                                                1.1 M
Installing dependencies:
 make                                                       x86_64                                           1:4.3-7.el9                                                   ol9_baseos_latest                                           571 k
 
Transaction Summary
=============================================================================================================================================================================================================================================
Install  2 Packages
 
Total size: 1.7 M
Total download size: 571 k
Installed size: 4.5 M
Downloading Packages:
make-4.3-7.el9.x86_64.rpm                                                                                                                                                                                    267 kB/s | 571 kB     00:02
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                        267 kB/s | 571 kB     00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                     1/1
  Installing       : make-1:4.3-7.el9.x86_64                                                                                                                                                                                             1/2
  Installing       : compat-openssl10-1:1.0.2o-4.el8_6.x86_64                                                                                                                                                                            2/2
  Running scriptlet: compat-openssl10-1:1.0.2o-4.el8_6.x86_64                                                                                                                                                                            2/2
  Verifying        : make-1:4.3-7.el9.x86_64                                                                                                                                                                                             1/2
  Verifying        : compat-openssl10-1:1.0.2o-4.el8_6.x86_64                                                                                                                                                                            2/2
 
Installed:
  compat-openssl10-1:1.0.2o-4.el8_6.x86_64                                                                                      make-1:4.3-7.el9.x86_64
 
Complete!

Download and Install Required Softwares

Download , Install the PreInstall RPM and Database RPM using dnf / yum .

# OL8
#dnf install -y oracle-database-preinstall-21c
curl -o oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
dnf -y localinstall oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm

Downloading Database Software RPM

curl -o oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 30772  100 30772    0     0   132k      0 --:--:-- --:--:-- --:--:--  132k

Install PreInstall RPM

yum -y localinstall oracle-database-preinstall-21c-1.0-1.el8.x86_64.rpm
Last metadata expiration check: 3:41:31 ago on Thu 22 Dec 2022 03:25:41 AM EST.
Dependencies resolved.
=============================================================================================================================================================================================================================================
 Package                                                             Architecture                                Version                                                        Repository                                              Size
=============================================================================================================================================================================================================================================
Installing:
 oracle-database-preinstall-21c                                      x86_64                                      1.0-1.el8                                                      @commandline                                            30 k
Installing dependencies:
 bc                                                                  x86_64                                      1.07.1-14.el9                                                  ol9_baseos_latest                                      135 k
 bind-libs                                                           x86_64                                      32:9.16.23-5.el9_1                                             ol9_appstream                                          1.2 M
 bind-license                                                        noarch                                      32:9.16.23-5.el9_1                                             ol9_appstream                                           13 k
 bind-utils                                                          x86_64                                      32:9.16.23-5.el9_1                                             ol9_appstream                                          224 k
 binutils                                                            x86_64                                      2.35.2-24.0.1.el9                                              ol9_baseos_latest                                      4.8 M
 binutils-gold                                                       x86_64                                      2.35.2-24.0.1.el9                                              ol9_baseos_latest                                      743 k
 checkpolicy                                                         x86_64                                      3.4-1.el9                                                      ol9_appstream                                          355 k
 fstrm                                                               x86_64                                      0.6.1-3.el9                                                    ol9_appstream                                           28 k
 glibc-devel                                                         x86_64                                      2.34-40.0.1.el9                                                ol9_appstream                                           62 k
 glibc-headers                                                       x86_64                                      2.34-40.0.1.el9                                                ol9_appstream                                          910 k
 gssproxy                                                            x86_64                                      0.8.4-4.el9                                                    ol9_baseos_latest                                      120 k
 initscripts                                                         x86_64                                      10.11.5-1.el9                                                  ol9_baseos_latest                                      287 k
 kernel-headers                                                      x86_64                                      5.14.0-162.6.1.el9_1                                           ol9_appstream                                          4.2 M
 keyutils                                                            x86_64                                      1.6.1-4.el9                                                    ol9_baseos_latest                                       74 k
 ksh                                                                 x86_64                                      3:1.0.0~beta.1-2.0.1.el9                                       ol9_appstream                                          891 k
 libICE                                                              x86_64                                      1.0.10-8.el9                                                   ol9_appstream                                           71 k
 libSM                                                               x86_64                                      1.2.3-10.el9                                                   ol9_appstream                                           42 k
 libX11                                                              x86_64                                      1.7.0-7.el9                                                    ol9_appstream                                          648 k
 libX11-common                                                       noarch                                      1.7.0-7.el9                                                    ol9_appstream                                          350 k
 libX11-xcb                                                          x86_64                                      1.7.0-7.el9                                                    ol9_appstream                                           12 k
 libXau                                                              x86_64                                      1.0.9-8.el9                                                    ol9_appstream                                           36 k
 libXcomposite                                                       x86_64                                      0.4.5-7.el9                                                    ol9_appstream                                           29 k
 libXext                                                             x86_64                                      1.3.4-8.el9                                                    ol9_appstream                                           40 k
 libXi                                                               x86_64                                      1.7.10-8.el9                                                   ol9_appstream                                           40 k
 libXinerama                                                         x86_64                                      1.1.4-10.el9                                                   ol9_appstream                                           15 k
 libXmu                                                              x86_64                                      1.1.3-8.el9                                                    ol9_appstream                                           79 k
 libXrandr                                                           x86_64                                      1.5.2-8.el9                                                    ol9_appstream                                           28 k
 libXrender                                                          x86_64                                      0.9.10-16.el9                                                  ol9_appstream                                           28 k
 libXt                                                               x86_64                                      1.2.0-6.el9                                                    ol9_appstream                                          180 k
 libXtst                                                             x86_64                                      1.2.3-16.el9                                                   ol9_appstream                                           21 k
 libXv                                                               x86_64                                      1.0.11-16.el9                                                  ol9_appstream                                           19 k
 libXxf86dga                                                         x86_64                                      1.1.5-8.el9                                                    ol9_appstream                                           21 k
 libXxf86vm                                                          x86_64                                      1.1.4-18.el9                                                   ol9_appstream                                           19 k
 libdmx                                                              x86_64                                      1.1.4-12.el9                                                   ol9_appstream                                           17 k
 libev                                                               x86_64                                      4.33-5.el9                                                     ol9_baseos_latest                                       53 k
 libmaxminddb                                                        x86_64                                      1.5.2-3.el9                                                    ol9_appstream                                           34 k
 libnfsidmap                                                         x86_64                                      1:2.5.4-15.el9                                                 ol9_baseos_latest                                       72 k
 libnsl                                                              x86_64                                      2.34-40.0.1.el9                                                ol9_baseos_latest                                       69 k
 libuv                                                               x86_64                                      1:1.42.0-1.el9                                                 ol9_appstream                                          158 k
 libverto-libev                                                      x86_64                                      0.3.2-3.el9                                                    ol9_baseos_latest                                       14 k
 libxcb                                                              x86_64                                      1.13.1-9.el9                                                   ol9_appstream                                          251 k
 libxcrypt-devel                                                     x86_64                                      4.4.18-3.el9                                                   ol9_appstream                                           42 k
 lm_sensors-libs                                                     x86_64                                      3.6.0-10.el9                                                   ol9_appstream                                           42 k
 net-tools                                                           x86_64                                      2.0-0.62.20160912git.el9                                       ol9_baseos_latest                                      344 k
 nfs-utils                                                           x86_64                                      1:2.5.4-15.el9                                                 ol9_baseos_latest                                      507 k
 pcp-conf                                                            x86_64                                      5.3.7-7.el9                                                    ol9_appstream                                           38 k
 pcp-libs                                                            x86_64                                      5.3.7-7.el9                                                    ol9_appstream                                          612 k
 policycoreutils-python-utils                                        noarch                                      3.4-4.el9                                                      ol9_appstream                                          111 k
 protobuf-c                                                          x86_64                                      1.3.3-12.el9                                                   ol9_baseos_latest                                       40 k
 python3-audit                                                       x86_64                                      3.0.7-103.el9                                                  ol9_appstream                                           88 k
 python3-libsemanage                                                 x86_64                                      3.4-2.el9                                                      ol9_appstream                                           85 k
 python3-policycoreutils                                             noarch                                      3.4-4.el9                                                      ol9_appstream                                          2.3 M
 python3-pyyaml                                                      x86_64                                      5.4.1-6.0.1.el9                                                ol9_baseos_latest                                      258 k
 python3-setools                                                     x86_64                                      4.4.0-5.el9                                                    ol9_baseos_latest                                      795 k
 python3-setuptools                                                  noarch                                      53.0.0-10.el9                                                  ol9_baseos_latest                                      1.3 M
 quota                                                               x86_64                                      1:4.06-6.el9                                                   ol9_baseos_latest                                      212 k
 quota-nls                                                           noarch                                      1:4.06-6.el9                                                   ol9_baseos_latest                                       84 k
 rpcbind                                                             x86_64                                      1.2.6-5.el9                                                    ol9_baseos_latest                                       69 k
 smartmontools                                                       x86_64                                      1:7.2-6.el9                                                    ol9_baseos_latest                                      578 k
 sssd-nfs-idmap                                                      x86_64                                      2.7.3-4.0.1.el9_1.1                                            ol9_baseos_latest                                       45 k
 sysstat                                                             x86_64                                      12.5.4-3.0.1.el9                                               ol9_appstream                                          539 k
 unzip                                                               x86_64                                      6.0-56.0.1.el9                                                 ol9_baseos_latest                                      195 k
 xorg-x11-utils                                                      x86_64                                      7.5-40.el9                                                     ol9_appstream                                          123 k
 xorg-x11-xauth                                                      x86_64                                      1:1.1-10.el9                                                   ol9_appstream                                           36 k
 
Transaction Summary
=============================================================================================================================================================================================================================================
Install  65 Packages
 
Total size: 25 M
Total download size: 25 M
Installed size: 73 M
Downloading Packages:
(1/64): bc-1.07.1-14.el9.x86_64.rpm                                                                                                                                                                           58 kB/s | 135 kB     00:02
(2/64): gssproxy-0.8.4-4.el9.x86_64.rpm                                                                                                                                                                      2.8 MB/s | 120 kB     00:00
(3/64): binutils-gold-2.35.2-24.0.1.el9.x86_64.rpm                                                                                                                                                           286 kB/s | 743 kB     00:02
(4/64): keyutils-1.6.1-4.el9.x86_64.rpm                                                                                                                                                                      2.6 MB/s |  74 kB     00:00
(5/64): libev-4.33-5.el9.x86_64.rpm                                                                                                                                                                          2.2 MB/s |  53 kB     00:00
(6/64): libnfsidmap-2.5.4-15.el9.x86_64.rpm                                                                                                                                                                  2.5 MB/s |  72 kB     00:00
(7/64): binutils-2.35.2-24.0.1.el9.x86_64.rpm                                                                                                                                                                1.7 MB/s | 4.8 MB     00:02
(8/64): libverto-libev-0.3.2-3.el9.x86_64.rpm                                                                                                                                                                208 kB/s |  14 kB     00:00
(9/64): net-tools-2.0-0.62.20160912git.el9.x86_64.rpm                                                                                                                                                        8.0 MB/s | 344 kB     00:00
(10/64): nfs-utils-2.5.4-15.el9.x86_64.rpm                                                                                                                                                                   8.6 MB/s | 507 kB     00:00
(11/64): protobuf-c-1.3.3-12.el9.x86_64.rpm                                                                                                                                                                   39 kB/s |  40 kB     00:01
(12/64): python3-pyyaml-5.4.1-6.0.1.el9.x86_64.rpm                                                                                                                                                           5.1 MB/s | 258 kB     00:00
(13/64): libnsl-2.34-40.0.1.el9.x86_64.rpm                                                                                                                                                                    49 kB/s |  69 kB     00:01
(14/64): python3-setools-4.4.0-5.el9.x86_64.rpm                                                                                                                                                               11 MB/s | 795 kB     00:00
(15/64): initscripts-10.11.5-1.el9.x86_64.rpm                                                                                                                                                                122 kB/s | 287 kB     00:02
(16/64): quota-4.06-6.el9.x86_64.rpm                                                                                                                                                                         153 kB/s | 212 kB     00:01
(17/64): quota-nls-4.06-6.el9.noarch.rpm                                                                                                                                                                     104 kB/s |  84 kB     00:00
(18/64): rpcbind-1.2.6-5.el9.x86_64.rpm                                                                                                                                                                      1.8 MB/s |  69 kB     00:00
(19/64): sssd-nfs-idmap-2.7.3-4.0.1.el9_1.1.x86_64.rpm                                                                                                                                                       1.4 MB/s |  45 kB     00:00
(20/64): unzip-6.0-56.0.1.el9.x86_64.rpm                                                                                                                                                                     3.4 MB/s | 195 kB     00:00
(21/64): bind-libs-9.16.23-5.el9_1.x86_64.rpm                                                                                                                                                                 16 MB/s | 1.2 MB     00:00
(22/64): bind-license-9.16.23-5.el9_1.noarch.rpm                                                                                                                                                             403 kB/s |  13 kB     00:00
(23/64): bind-utils-9.16.23-5.el9_1.x86_64.rpm                                                                                                                                                               3.8 MB/s | 224 kB     00:00
(24/64): checkpolicy-3.4-1.el9.x86_64.rpm                                                                                                                                                                    6.5 MB/s | 355 kB     00:00
(25/64): smartmontools-7.2-6.el9.x86_64.rpm                                                                                                                                                                  560 kB/s | 578 kB     00:01
(26/64): python3-setuptools-53.0.0-10.el9.noarch.rpm                                                                                                                                                         482 kB/s | 1.3 MB     00:02
(27/64): fstrm-0.6.1-3.el9.x86_64.rpm                                                                                                                                                                         17 kB/s |  28 kB     00:01
(28/64): glibc-devel-2.34-40.0.1.el9.x86_64.rpm                                                                                                                                                               40 kB/s |  62 kB     00:01
(29/64): glibc-headers-2.34-40.0.1.el9.x86_64.rpm                                                                                                                                                            428 kB/s | 910 kB     00:02
(30/64): kernel-headers-5.14.0-162.6.1.el9_1.x86_64.rpm                                                                                                                                                      1.6 MB/s | 4.2 MB     00:02
(31/64): libICE-1.0.10-8.el9.x86_64.rpm                                                                                                                                                                       40 kB/s |  71 kB     00:01
(32/64): ksh-1.0.0~beta.1-2.0.1.el9.x86_64.rpm                                                                                                                                                               321 kB/s | 891 kB     00:02
(33/64): libX11-common-1.7.0-7.el9.noarch.rpm                                                                                                                                                                 10 MB/s | 350 kB     00:00
(34/64): libSM-1.2.3-10.el9.x86_64.rpm                                                                                                                                                                        30 kB/s |  42 kB     00:01
(35/64): libXau-1.0.9-8.el9.x86_64.rpm                                                                                                                                                                       1.6 MB/s |  36 kB     00:00
(36/64): libXcomposite-0.4.5-7.el9.x86_64.rpm                                                                                                                                                                1.3 MB/s |  29 kB     00:00
(37/64): libXext-1.3.4-8.el9.x86_64.rpm                                                                                                                                                                      1.8 MB/s |  40 kB     00:00
(38/64): libX11-1.7.0-7.el9.x86_64.rpm                                                                                                                                                                       374 kB/s | 648 kB     00:01
(39/64): libXinerama-1.1.4-10.el9.x86_64.rpm                                                                                                                                                                 703 kB/s |  15 kB     00:00
(40/64): libX11-xcb-1.7.0-7.el9.x86_64.rpm                                                                                                                                                                   6.8 kB/s |  12 kB     00:01
(41/64): libXrandr-1.5.2-8.el9.x86_64.rpm                                                                                                                                                                    1.2 MB/s |  28 kB     00:00
(42/64): libXi-1.7.10-8.el9.x86_64.rpm                                                                                                                                                                        29 kB/s |  40 kB     00:01
(43/64): libXmu-1.1.3-8.el9.x86_64.rpm                                                                                                                                                                        56 kB/s |  79 kB     00:01
(44/64): libXrender-0.9.10-16.el9.x86_64.rpm                                                                                                                                                                  17 kB/s |  28 kB     00:01
(45/64): libXt-1.2.0-6.el9.x86_64.rpm                                                                                                                                                                        112 kB/s | 180 kB     00:01
(46/64): libXtst-1.2.3-16.el9.x86_64.rpm                                                                                                                                                                      15 kB/s |  21 kB     00:01
(47/64): libXxf86dga-1.1.5-8.el9.x86_64.rpm                                                                                                                                                                   15 kB/s |  21 kB     00:01
(48/64): libXv-1.0.11-16.el9.x86_64.rpm                                                                                                                                                                       11 kB/s |  19 kB     00:01
(49/64): libXxf86vm-1.1.4-18.el9.x86_64.rpm                                                                                                                                                                   13 kB/s |  19 kB     00:01
(50/64): libdmx-1.1.4-12.el9.x86_64.rpm                                                                                                                                                                       17 kB/s |  17 kB     00:01
(51/64): libmaxminddb-1.5.2-3.el9.x86_64.rpm                                                                                                                                                                  28 kB/s |  34 kB     00:01
(52/64): libuv-1.42.0-1.el9.x86_64.rpm                                                                                                                                                                        82 kB/s | 158 kB     00:01
(53/64): libxcb-1.13.1-9.el9.x86_64.rpm                                                                                                                                                                      144 kB/s | 251 kB     00:01
(54/64): libxcrypt-devel-4.4.18-3.el9.x86_64.rpm                                                                                                                                                              26 kB/s |  42 kB     00:01
(55/64): lm_sensors-libs-3.6.0-10.el9.x86_64.rpm                                                                                                                                                              42 kB/s |  42 kB     00:00
(56/64): policycoreutils-python-utils-3.4-4.el9.noarch.rpm                                                                                                                                                   4.7 MB/s | 111 kB     00:00
(57/64): python3-audit-3.0.7-103.el9.x86_64.rpm                                                                                                                                                              3.8 MB/s |  88 kB     00:00
(58/64): python3-libsemanage-3.4-2.el9.x86_64.rpm                                                                                                                                                            1.4 MB/s |  85 kB     00:00
(59/64): python3-policycoreutils-3.4-4.el9.noarch.rpm                                                                                                                                                         39 MB/s | 2.3 MB     00:00
(60/64): pcp-conf-5.3.7-7.el9.x86_64.rpm                                                                                                                                                                      28 kB/s |  38 kB     00:01
(61/64): pcp-libs-5.3.7-7.el9.x86_64.rpm                                                                                                                                                                     316 kB/s | 612 kB     00:01
(62/64): sysstat-12.5.4-3.0.1.el9.x86_64.rpm                                                                                                                                                                 246 kB/s | 539 kB     00:02
(63/64): xorg-x11-utils-7.5-40.el9.x86_64.rpm                                                                                                                                                                 62 kB/s | 123 kB     00:01
(64/64): xorg-x11-xauth-1.1-10.el9.x86_64.rpm                                                                                                                                                                 25 kB/s |  36 kB     00:01
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                        1.1 MB/s |  25 MB     00:22
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                     1/1
  Installing       : binutils-gold-2.35.2-24.0.1.el9.x86_64                                                                                                                                                                             1/65
  Installing       : binutils-2.35.2-24.0.1.el9.x86_64                                                                                                                                                                                  2/65
  Running scriptlet: binutils-2.35.2-24.0.1.el9.x86_64                                                                                                                                                                                  2/65
  Installing       : libuv-1:1.42.0-1.el9.x86_64                                                                                                                                                                                        3/65
  Installing       : libXau-1.0.9-8.el9.x86_64                                                                                                                                                                                          4/65
  Installing       : libxcb-1.13.1-9.el9.x86_64                                                                                                                                                                                         5/65
  Installing       : libICE-1.0.10-8.el9.x86_64                                                                                                                                                                                         6/65
  Installing       : protobuf-c-1.3.3-12.el9.x86_64                                                                                                                                                                                     7/65
  Installing       : libnfsidmap-1:2.5.4-15.el9.x86_64                                                                                                                                                                                  8/65
  Installing       : libSM-1.2.3-10.el9.x86_64                                                                                                                                                                                          9/65
  Installing       : python3-libsemanage-3.4-2.el9.x86_64                                                                                                                                                                              10/65
  Installing       : python3-audit-3.0.7-103.el9.x86_64                                                                                                                                                                                11/65
  Installing       : pcp-conf-5.3.7-7.el9.x86_64                                                                                                                                                                                       12/65
  Installing       : pcp-libs-5.3.7-7.el9.x86_64                                                                                                                                                                                       13/65
  Installing       : lm_sensors-libs-3.6.0-10.el9.x86_64                                                                                                                                                                               14/65
  Installing       : sysstat-12.5.4-3.0.1.el9.x86_64                                                                                                                                                                                   15/65
  Running scriptlet: sysstat-12.5.4-3.0.1.el9.x86_64                                                                                                                                                                                   15/65
Created symlink /etc/systemd/system/multi-user.target.wants/sysstat.service → /usr/lib/systemd/system/sysstat.service.
Created symlink /etc/systemd/system/sysstat.service.wants/sysstat-collect.timer → /usr/lib/systemd/system/sysstat-collect.timer.
Created symlink /etc/systemd/system/sysstat.service.wants/sysstat-summary.timer → /usr/lib/systemd/system/sysstat-summary.timer.
 
  Installing       : libmaxminddb-1.5.2-3.el9.x86_64                                                                                                                                                                                   16/65
  Installing       : libX11-xcb-1.7.0-7.el9.x86_64                                                                                                                                                                                     17/65
  Installing       : libX11-common-1.7.0-7.el9.noarch                                                                                                                                                                                  18/65
  Installing       : libX11-1.7.0-7.el9.x86_64                                                                                                                                                                                         19/65
  Installing       : libXext-1.3.4-8.el9.x86_64                                                                                                                                                                                        20/65
  Installing       : libXi-1.7.10-8.el9.x86_64                                                                                                                                                                                         21/65
  Installing       : libXrender-0.9.10-16.el9.x86_64                                                                                                                                                                                   22/65
  Installing       : libXrandr-1.5.2-8.el9.x86_64                                                                                                                                                                                      23/65
  Installing       : libXtst-1.2.3-16.el9.x86_64                                                                                                                                                                                       24/65
  Installing       : libXinerama-1.1.4-10.el9.x86_64                                                                                                                                                                                   25/65
  Installing       : libXv-1.0.11-16.el9.x86_64                                                                                                                                                                                        26/65
  Installing       : libXxf86dga-1.1.5-8.el9.x86_64                                                                                                                                                                                    27/65
  Installing       : libXxf86vm-1.1.4-18.el9.x86_64                                                                                                                                                                                    28/65
  Installing       : libdmx-1.1.4-12.el9.x86_64                                                                                                                                                                                        29/65
  Installing       : libXcomposite-0.4.5-7.el9.x86_64                                                                                                                                                                                  30/65
  Installing       : xorg-x11-utils-7.5-40.el9.x86_64                                                                                                                                                                                  31/65
  Installing       : libXt-1.2.0-6.el9.x86_64                                                                                                                                                                                          32/65
  Installing       : libXmu-1.1.3-8.el9.x86_64                                                                                                                                                                                         33/65
  Installing       : xorg-x11-xauth-1:1.1-10.el9.x86_64                                                                                                                                                                                34/65
  Installing       : ksh-3:1.0.0~beta.1-2.0.1.el9.x86_64                                                                                                                                                                               35/65
  Running scriptlet: ksh-3:1.0.0~beta.1-2.0.1.el9.x86_64                                                                                                                                                                               35/65
  Installing       : kernel-headers-5.14.0-162.6.1.el9_1.x86_64                                                                                                                                                                        36/65
  Installing       : glibc-headers-2.34-40.0.1.el9.x86_64                                                                                                                                                                              37/65
  Installing       : libxcrypt-devel-4.4.18-3.el9.x86_64                                                                                                                                                                               38/65
  Installing       : glibc-devel-2.34-40.0.1.el9.x86_64                                                                                                                                                                                39/65
  Installing       : fstrm-0.6.1-3.el9.x86_64                                                                                                                                                                                          40/65
  Installing       : checkpolicy-3.4-1.el9.x86_64                                                                                                                                                                                      41/65
  Installing       : bind-license-32:9.16.23-5.el9_1.noarch                                                                                                                                                                            42/65
  Installing       : bind-libs-32:9.16.23-5.el9_1.x86_64                                                                                                                                                                               43/65
  Installing       : bind-utils-32:9.16.23-5.el9_1.x86_64                                                                                                                                                                              44/65
  Installing       : unzip-6.0-56.0.1.el9.x86_64                                                                                                                                                                                       45/65
  Installing       : smartmontools-1:7.2-6.el9.x86_64                                                                                                                                                                                  46/65
  Running scriptlet: smartmontools-1:7.2-6.el9.x86_64                                                                                                                                                                                  46/65
Created symlink /etc/systemd/system/multi-user.target.wants/smartd.service → /usr/lib/systemd/system/smartd.service.
 
  Running scriptlet: rpcbind-1.2.6-5.el9.x86_64                                                                                                                                                                                        47/65
  Installing       : rpcbind-1.2.6-5.el9.x86_64                                                                                                                                                                                        47/65
  Running scriptlet: rpcbind-1.2.6-5.el9.x86_64                                                                                                                                                                                        47/65
Created symlink /etc/systemd/system/multi-user.target.wants/rpcbind.service → /usr/lib/systemd/system/rpcbind.service.
Created symlink /etc/systemd/system/sockets.target.wants/rpcbind.socket → /usr/lib/systemd/system/rpcbind.socket.
 
  Installing       : quota-nls-1:4.06-6.el9.noarch                                                                                                                                                                                     48/65
  Installing       : quota-1:4.06-6.el9.x86_64                                                                                                                                                                                         49/65
  Installing       : python3-setuptools-53.0.0-10.el9.noarch                                                                                                                                                                           50/65
  Installing       : python3-setools-4.4.0-5.el9.x86_64                                                                                                                                                                                51/65
  Installing       : python3-policycoreutils-3.4-4.el9.noarch                                                                                                                                                                          52/65
  Installing       : policycoreutils-python-utils-3.4-4.el9.noarch                                                                                                                                                                     53/65
  Installing       : python3-pyyaml-5.4.1-6.0.1.el9.x86_64                                                                                                                                                                             54/65
  Installing       : net-tools-2.0-0.62.20160912git.el9.x86_64                                                                                                                                                                         55/65
  Running scriptlet: net-tools-2.0-0.62.20160912git.el9.x86_64                                                                                                                                                                         55/65
  Installing       : libnsl-2.34-40.0.1.el9.x86_64                                                                                                                                                                                     56/65
  Installing       : libev-4.33-5.el9.x86_64                                                                                                                                                                                           57/65
  Installing       : libverto-libev-0.3.2-3.el9.x86_64                                                                                                                                                                                 58/65
  Installing       : gssproxy-0.8.4-4.el9.x86_64                                                                                                                                                                                       59/65
  Running scriptlet: gssproxy-0.8.4-4.el9.x86_64                                                                                                                                                                                       59/65
  Installing       : keyutils-1.6.1-4.el9.x86_64                                                                                                                                                                                       60/65
  Running scriptlet: nfs-utils-1:2.5.4-15.el9.x86_64                                                                                                                                                                                   61/65
  Installing       : nfs-utils-1:2.5.4-15.el9.x86_64                                                                                                                                                                                   61/65
  Running scriptlet: nfs-utils-1:2.5.4-15.el9.x86_64                                                                                                                                                                                   61/65
  Installing       : initscripts-10.11.5-1.el9.x86_64                                                                                                                                                                                  62/65
  Running scriptlet: initscripts-10.11.5-1.el9.x86_64                                                                                                                                                                                  62/65
Created symlink /etc/systemd/system/sysinit.target.wants/import-state.service → /usr/lib/systemd/system/import-state.service.
Created symlink /etc/systemd/system/sysinit.target.wants/loadmodules.service → /usr/lib/systemd/system/loadmodules.service.
 
  Installing       : bc-1.07.1-14.el9.x86_64                                                                                                                                                                                           63/65
  Installing       : oracle-database-preinstall-21c-1.0-1.el8.x86_64                                                                                                                                                                   64/65
  Installing       : sssd-nfs-idmap-2.7.3-4.0.1.el9_1.1.x86_64                                                                                                                                                                         65/65
  Running scriptlet: oracle-database-preinstall-21c-1.0-1.el8.x86_64                                                                                                                                                                   65/65
  Running scriptlet: sssd-nfs-idmap-2.7.3-4.0.1.el9_1.1.x86_64                                                                                                                                                                         65/65
  Verifying        : bc-1.07.1-14.el9.x86_64                                                                                                                                                                                            1/65
  Verifying        : binutils-2.35.2-24.0.1.el9.x86_64                                                                                                                                                                                  2/65
  Verifying        : binutils-gold-2.35.2-24.0.1.el9.x86_64                                                                                                                                                                             3/65
  Verifying        : gssproxy-0.8.4-4.el9.x86_64                                                                                                                                                                                        4/65
  Verifying        : initscripts-10.11.5-1.el9.x86_64                                                                                                                                                                                   5/65
  Verifying        : keyutils-1.6.1-4.el9.x86_64                                                                                                                                                                                        6/65
  Verifying        : libev-4.33-5.el9.x86_64                                                                                                                                                                                            7/65
  Verifying        : libnfsidmap-1:2.5.4-15.el9.x86_64                                                                                                                                                                                  8/65
  Verifying        : libnsl-2.34-40.0.1.el9.x86_64                                                                                                                                                                                      9/65
  Verifying        : libverto-libev-0.3.2-3.el9.x86_64                                                                                                                                                                                 10/65
  Verifying        : net-tools-2.0-0.62.20160912git.el9.x86_64                                                                                                                                                                         11/65
  Verifying        : nfs-utils-1:2.5.4-15.el9.x86_64                                                                                                                                                                                   12/65
  Verifying        : protobuf-c-1.3.3-12.el9.x86_64                                                                                                                                                                                    13/65
  Verifying        : python3-pyyaml-5.4.1-6.0.1.el9.x86_64                                                                                                                                                                             14/65
  Verifying        : python3-setools-4.4.0-5.el9.x86_64                                                                                                                                                                                15/65
  Verifying        : python3-setuptools-53.0.0-10.el9.noarch                                                                                                                                                                           16/65
  Verifying        : quota-1:4.06-6.el9.x86_64                                                                                                                                                                                         17/65
  Verifying        : quota-nls-1:4.06-6.el9.noarch                                                                                                                                                                                     18/65
  Verifying        : rpcbind-1.2.6-5.el9.x86_64                                                                                                                                                                                        19/65
  Verifying        : smartmontools-1:7.2-6.el9.x86_64                                                                                                                                                                                  20/65
  Verifying        : sssd-nfs-idmap-2.7.3-4.0.1.el9_1.1.x86_64                                                                                                                                                                         21/65
  Verifying        : unzip-6.0-56.0.1.el9.x86_64                                                                                                                                                                                       22/65
  Verifying        : bind-libs-32:9.16.23-5.el9_1.x86_64                                                                                                                                                                               23/65
  Verifying        : bind-license-32:9.16.23-5.el9_1.noarch                                                                                                                                                                            24/65
  Verifying        : bind-utils-32:9.16.23-5.el9_1.x86_64                                                                                                                                                                              25/65
  Verifying        : checkpolicy-3.4-1.el9.x86_64                                                                                                                                                                                      26/65
  Verifying        : fstrm-0.6.1-3.el9.x86_64                                                                                                                                                                                          27/65
  Verifying        : glibc-devel-2.34-40.0.1.el9.x86_64                                                                                                                                                                                28/65
  Verifying        : glibc-headers-2.34-40.0.1.el9.x86_64                                                                                                                                                                              29/65
  Verifying        : kernel-headers-5.14.0-162.6.1.el9_1.x86_64                                                                                                                                                                        30/65
  Verifying        : ksh-3:1.0.0~beta.1-2.0.1.el9.x86_64                                                                                                                                                                               31/65
  Verifying        : libICE-1.0.10-8.el9.x86_64                                                                                                                                                                                        32/65
  Verifying        : libSM-1.2.3-10.el9.x86_64                                                                                                                                                                                         33/65
  Verifying        : libX11-1.7.0-7.el9.x86_64                                                                                                                                                                                         34/65
  Verifying        : libX11-common-1.7.0-7.el9.noarch                                                                                                                                                                                  35/65
  Verifying        : libX11-xcb-1.7.0-7.el9.x86_64                                                                                                                                                                                     36/65
  Verifying        : libXau-1.0.9-8.el9.x86_64                                                                                                                                                                                         37/65
  Verifying        : libXcomposite-0.4.5-7.el9.x86_64                                                                                                                                                                                  38/65
  Verifying        : libXext-1.3.4-8.el9.x86_64                                                                                                                                                                                        39/65
  Verifying        : libXi-1.7.10-8.el9.x86_64                                                                                                                                                                                         40/65
  Verifying        : libXinerama-1.1.4-10.el9.x86_64                                                                                                                                                                                   41/65
  Verifying        : libXmu-1.1.3-8.el9.x86_64                                                                                                                                                                                         42/65
  Verifying        : libXrandr-1.5.2-8.el9.x86_64                                                                                                                                                                                      43/65
  Verifying        : libXrender-0.9.10-16.el9.x86_64                                                                                                                                                                                   44/65
  Verifying        : libXt-1.2.0-6.el9.x86_64                                                                                                                                                                                          45/65
  Verifying        : libXtst-1.2.3-16.el9.x86_64                                                                                                                                                                                       46/65
  Verifying        : libXv-1.0.11-16.el9.x86_64                                                                                                                                                                                        47/65
  Verifying        : libXxf86dga-1.1.5-8.el9.x86_64                                                                                                                                                                                    48/65
  Verifying        : libXxf86vm-1.1.4-18.el9.x86_64                                                                                                                                                                                    49/65
  Verifying        : libdmx-1.1.4-12.el9.x86_64                                                                                                                                                                                        50/65
  Verifying        : libmaxminddb-1.5.2-3.el9.x86_64                                                                                                                                                                                   51/65
  Verifying        : libuv-1:1.42.0-1.el9.x86_64                                                                                                                                                                                       52/65
  Verifying        : libxcb-1.13.1-9.el9.x86_64                                                                                                                                                                                        53/65
  Verifying        : libxcrypt-devel-4.4.18-3.el9.x86_64                                                                                                                                                                               54/65
  Verifying        : lm_sensors-libs-3.6.0-10.el9.x86_64                                                                                                                                                                               55/65
  Verifying        : pcp-conf-5.3.7-7.el9.x86_64                                                                                                                                                                                       56/65
  Verifying        : pcp-libs-5.3.7-7.el9.x86_64                                                                                                                                                                                       57/65
  Verifying        : policycoreutils-python-utils-3.4-4.el9.noarch                                                                                                                                                                     58/65
  Verifying        : python3-audit-3.0.7-103.el9.x86_64                                                                                                                                                                                59/65
  Verifying        : python3-libsemanage-3.4-2.el9.x86_64                                                                                                                                                                              60/65
  Verifying        : python3-policycoreutils-3.4-4.el9.noarch                                                                                                                                                                          61/65
  Verifying        : sysstat-12.5.4-3.0.1.el9.x86_64                                                                                                                                                                                   62/65
  Verifying        : xorg-x11-utils-7.5-40.el9.x86_64                                                                                                                                                                                  63/65
  Verifying        : xorg-x11-xauth-1:1.1-10.el9.x86_64                                                                                                                                                                                64/65
  Verifying        : oracle-database-preinstall-21c-1.0-1.el8.x86_64                                                                                                                                                                   65/65
 
Installed:
  bc-1.07.1-14.el9.x86_64                              bind-libs-32:9.16.23-5.el9_1.x86_64       bind-license-32:9.16.23-5.el9_1.noarch          bind-utils-32:9.16.23-5.el9_1.x86_64               binutils-2.35.2-24.0.1.el9.x86_64
  binutils-gold-2.35.2-24.0.1.el9.x86_64               checkpolicy-3.4-1.el9.x86_64              fstrm-0.6.1-3.el9.x86_64                        glibc-devel-2.34-40.0.1.el9.x86_64                 glibc-headers-2.34-40.0.1.el9.x86_64
  gssproxy-0.8.4-4.el9.x86_64                          initscripts-10.11.5-1.el9.x86_64          kernel-headers-5.14.0-162.6.1.el9_1.x86_64      keyutils-1.6.1-4.el9.x86_64                        ksh-3:1.0.0~beta.1-2.0.1.el9.x86_64
  libICE-1.0.10-8.el9.x86_64                           libSM-1.2.3-10.el9.x86_64                 libX11-1.7.0-7.el9.x86_64                       libX11-common-1.7.0-7.el9.noarch                   libX11-xcb-1.7.0-7.el9.x86_64
  libXau-1.0.9-8.el9.x86_64                            libXcomposite-0.4.5-7.el9.x86_64          libXext-1.3.4-8.el9.x86_64                      libXi-1.7.10-8.el9.x86_64                          libXinerama-1.1.4-10.el9.x86_64
  libXmu-1.1.3-8.el9.x86_64                            libXrandr-1.5.2-8.el9.x86_64              libXrender-0.9.10-16.el9.x86_64                 libXt-1.2.0-6.el9.x86_64                           libXtst-1.2.3-16.el9.x86_64
  libXv-1.0.11-16.el9.x86_64                           libXxf86dga-1.1.5-8.el9.x86_64            libXxf86vm-1.1.4-18.el9.x86_64                  libdmx-1.1.4-12.el9.x86_64                         libev-4.33-5.el9.x86_64
  libmaxminddb-1.5.2-3.el9.x86_64                      libnfsidmap-1:2.5.4-15.el9.x86_64         libnsl-2.34-40.0.1.el9.x86_64                   libuv-1:1.42.0-1.el9.x86_64                        libverto-libev-0.3.2-3.el9.x86_64
  libxcb-1.13.1-9.el9.x86_64                           libxcrypt-devel-4.4.18-3.el9.x86_64       lm_sensors-libs-3.6.0-10.el9.x86_64             net-tools-2.0-0.62.20160912git.el9.x86_64          nfs-utils-1:2.5.4-15.el9.x86_64
  oracle-database-preinstall-21c-1.0-1.el8.x86_64      pcp-conf-5.3.7-7.el9.x86_64               pcp-libs-5.3.7-7.el9.x86_64                     policycoreutils-python-utils-3.4-4.el9.noarch      protobuf-c-1.3.3-12.el9.x86_64
  python3-audit-3.0.7-103.el9.x86_64                   python3-libsemanage-3.4-2.el9.x86_64      python3-policycoreutils-3.4-4.el9.noarch        python3-pyyaml-5.4.1-6.0.1.el9.x86_64              python3-setools-4.4.0-5.el9.x86_64
  python3-setuptools-53.0.0-10.el9.noarch              quota-1:4.06-6.el9.x86_64                 quota-nls-1:4.06-6.el9.noarch                   rpcbind-1.2.6-5.el9.x86_64                         smartmontools-1:7.2-6.el9.x86_64
  sssd-nfs-idmap-2.7.3-4.0.1.el9_1.1.x86_64            sysstat-12.5.4-3.0.1.el9.x86_64           unzip-6.0-56.0.1.el9.x86_64                     xorg-x11-utils-7.5-40.el9.x86_64                   xorg-x11-xauth-1:1.1-10.el9.x86_64
 
Complete!

Install Database XE RPM

dnf -y localinstall oracle-database-xe-21c-1.0-1.ol8.x86_64.rpm
Last metadata expiration check: 3:43:34 ago on Thu 22 Dec 2022 03:25:41 AM EST.
Dependencies resolved.
=============================================================================================================================================================================================================================================
 Package                                                             Architecture                                        Version                                             Repository                                                 Size
=============================================================================================================================================================================================================================================
Installing:
 oracle-database-xe-21c                                              x86_64                                              1.0-1                                               @commandline                                              2.2 G
 
Transaction Summary
=============================================================================================================================================================================================================================================
Install  1 Package
 
Total size: 2.2 G
Installed size: 5.8 G
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                     1/1
  Running scriptlet: oracle-database-xe-21c-1.0-1.x86_64                                                                                                                                                                                 1/1
  Installing       : oracle-database-xe-21c-1.0-1.x86_64                                                                                                                                                                                 1/1
  Running scriptlet: oracle-database-xe-21c-1.0-1.x86_64                                                                                                                                                                                 1/1
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure Oracle Database XE, optionally modify the parameters in '/etc/sysconfig/oracle-xe-21c.conf' and then execute '/etc/init.d/oracle-xe-21c configure' as root.
 
  Verifying        : oracle-database-xe-21c-1.0-1.x86_64                                                                                                                                                                                 1/1
 
Installed:
  oracle-database-xe-21c-1.0-1.x86_64
 
Complete!

This Completes the Required RPM and Database Installation

Configuring the Database

# /etc/init.d/oracle-xe-21c configure
Oracle Net Listener configured.
Specify a password to be used for database accounts. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. Note that the same password will be used for SYS, SYSTEM and PDBADMIN accounts:
Confirm the password:
Configuring Oracle Listener.
Listener configuration succeeded.
Configuring Oracle Database XE.
Enter SYS user password:
************
Enter SYSTEM user password:
**************
Enter PDBADMIN User Password:
**************
[WARNING] [INS-08109] Unexpected error occurred while validating inputs at state 'DBCreationOptions'.
   CAUSE: No additional information available.
   ACTION: Contact Oracle Support Services or refer to the software manual.
   SUMMARY:
       - java.lang.NullPointerException
 
Database configuration failed. Check logs under '/opt/oracle/cfgtoollogs/dbca'.

Set the CV_ASSUME_DISTID variable as its coming as NULL, to proceed further.

export CV_ASSUME_DISTID=OEL8.4
# /etc/init.d/oracle-xe-21c configure
Oracle Net Listener configured.
Specify a password to be used for database accounts. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. Note that the same password will be used for SYS, SYSTEM and PDBADMIN accounts:
Confirm the password:
Configuring Oracle Listener.
Listener configuration succeeded.
Configuring Oracle Database XE.
Enter SYS user password:
*************
Enter SYSTEM user password:
*************
Enter PDBADMIN User Password:
************
Prepare for db operation
7% complete
Copying database files
29% complete
Creating and starting Oracle instance
30% complete
33% complete
37% complete
40% complete
43% complete
Completing Database Creation
47% complete
50% complete
Creating Pluggable Databases
54% complete
71% complete
Executing Post Configuration Actions
93% complete
Running Custom Scripts
100% complete
Database creation complete. For details check the logfiles at:
 /opt/oracle/cfgtoollogs/dbca/XE.
Database Information:
Global Database Name:XE
System Identifier(SID):XE
Look at the log file "/opt/oracle/cfgtoollogs/dbca/XE/XE.log" for further details.
 
Connect to Oracle Database using one of the connect strings:
     Pluggable database: masked_FQDN:1523/XEPDB1
     Multitenant container database: masked_FQDN:1523
Use https://localhost:5500/em to access Oracle Enterprise Manager for Oracle Database XE

This Completes the Oracle Database 21c Express Edition Installation on Oracle Linux 9

$ sqlplus /nolog
 
SQL*Plus: Release 21.0.0.0.0 - Production on Thu Dec 22 08:03:44 2022
Version 21.3.0.0.0
 
Copyright (c) 1982, 2021, Oracle.  All rights reserved.
 
 
SQL> exit
Disconnected from Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production
Version 21.3.0.0.0

Hope this is useful. , Have a good day.

Posted in oracle, Oracle Administration, Oracle Database 21c, Oracle Server Administration, Oracle XE | Tagged: , , , , , , , | 1 Comment »

Quick Steps to Install Oracle 19c in Windows

Posted by Sriram Sanka on June 14, 2019


 

Step 1 : Download Oracle 19c DB software for Windows using https://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

Step 2 : Unzip using 7-Zip to your Destination folder.

Step 3 : Navigate to the Extracted Home Folder and Click on Setup.Exe.   

 

These 3 Simple Steps will launch “OUI” for Installing 19c , go-ahead and  proceed with the Interactive ” Next ” Options.

Happy Reading !

Posted in Installation, Oracle Administration, Oracle Server Administration, Windows | Leave a Comment »

ORA-00600: Internal error code, arguments: [kcratr_nab_less_than_odr]

Posted by Sriram Sanka on March 19, 2014


Today,  I had an Issue with My Oracle DB V 11.2.0.1  and It was Corrupted due to unexpected power failures More than 10 times 😉 !.

As Its a Test DB, I don`t have  regular backups.  It was an Internal Error with ORA-00600: internal error code, arguments: [kcratr_nab_less_than_odr]   As I don`t have complete backup to recover , I can recover using  ICR ( Incomplete recovery)

image1 image2

image3

 

Thanks for your time , Happy reading & Have a Good day 😉

Posted in Oracle Server Administration | Tagged: | 13 Comments »

ORA-27102: out of memory” While Creating a Database

Posted by Sriram Sanka on September 24, 2012


Today ,While Installing Oracle V 10g Using DBCA On a 32 bit Linux machine with 16 GB of RAM,(allocated 5GB as SGA ) We were encountered with this Error and unable to go further.

[oracle@db ~]$ oerr ORA 27102
27102, 00000, “out of memory”
// *Cause: Out of memory
// *Action: Consult the trace file for details
[oracle@db ~]$

 

This is Because of  On 32 Bit version,It cannot allocate more than 4 GB of Memory  to a process Directly.For this either we need to upgrade to 64 bit and start the Installation or decrease the Memory total value.

So we decreased the total memory size to 2.5 GB and It went successful without any issues.

Read Oracle Meta link Document ID 430492.1  to get  More Information on this.

 

Happy reading 😉

 

 

Posted in Oracle Server Administration | Tagged: | 6 Comments »

SCN – What, why, and how?

Posted by Sriram Sanka on January 20, 2012


Here is a good article about SCN see the link below

SCN – What, why, and how?

Posted in Oracle Server Administration | Tagged: | Leave a Comment »

ORA-06544: PL/SQL: internal error, arguments: [ph2_cly out of bounds in PH2POP.], [0], [1240], [], [], [], [], []

Posted by Sriram Sanka on January 11, 2012


Recently we upgraded Our Development Database  from Oracle V10.2.0.1 to V10.2.0.5.
Today While I was  Compiling an Invalid procedure,

ORA-06544: PL/SQL: internal error, arguments: [ph2_cly out of
bounds in PH2POP.], [0], [1240], [], [], [], [], []
Encountered.

No clues available On “alert-log” file.
Verified with Oracle Support about it and found that its a Bug{Bug 10400244} on 10.2.0.5.
Oracle Meta-link Document [ID 1358114.1] Will give some clues about it.
Fixing errors other than this Internal error will resolved this issue.

Posted in Oracle Server Administration | Tagged: , , | 11 Comments »

“racgmain” Processes

Posted by Sriram Sanka on October 3, 2011


Some good Experience for Me today.Early in the Morning ……

One of Our RAC node  filled up with 100% CPU usage.As part of Investigation We found that this was because of  racgmain  Process.

It was filled-up with more than 250 racgmain process which are consuming  CPU a lot.Due this Our System got Very slow.

To avoid this, we should apply latest patch which is > 10.2.0.5 and CRS patch too.There was a temporary workaround for this ..you can see that in Metalink Doc ID 732086.1 and ID 6196746.8

 

Posted in Oracle Server Administration, Uncategorized | Leave a Comment »

Password Hash In Oracle 11g

Posted by Sriram Sanka on June 7, 2011


Let `s discuss about The Changes Of  DBA_USERS Especially In PASSWORD Column In Oracle 11g and 10g.

DBA_USERS   Gives Us Information about all users of the database.

And it contains password hash value In its PASSWORD Column

ind>  col TABLE_NAME format a10
ind> col COLUMN_NAME format a10
ind> col COMMENTS format a25
ind>  select TABLE_NAME,COLUMN_NAME, COMMENTS
  2   from dict_columns
  3   where TABLE_NAME='DBA_USERS' and COLUMN_NAME='PASSWORD';

TABLE_NAME COLUMN_NAM COMMENTS
---------- ---------- -------------------------
DBA_USERS  PASSWORD   Encrypted password

1 row selected.

Yes..It contains the encrypted value Based On Concatenation of Username and Password
This Is How/why two Users with same password can have different Encrypted hash values.

ind> create user satya identified by satya;

User created.

ind>  create user kalyani identified by satya;

User created.

ind> select username,password
  2  from dba_users
  3  where USERNAME in ('KALYANI','SATYA');

USERNAME                       PASSWORD
------------------------------ ------------------------------
KALYANI                        E81F7CB996A56BA9
SATYA                          218ED5615AAE5F6B

2 rows selected.

ind> drop user satya;

User dropped.

ind> drop user satyab;
drop user satyab
          *
ERROR at line 1:
ORA-01918: user 'SATYAB' does not exist

ind> create user satya identified by backpain;

User created.

ind> create user satyab identified by ackpain;

User created.

ind> select username,password
  2  from dba_users
  3  where username like 'SATYA%';

USERNAME                       PASSWORD
------------------------------ ------------------------------
SATYA                          458070F68E74206E
SATYAB                         458070F68E74206E

2 rows selected.

Here You can Observe that User SATYA and SATYAB with same hash value,
as the Concatenation of USERNAME and PASSWORD are Same.

But In Oracle 11g Oracle Wont store any password hash values in DBA_USERS.PASSWORD column.As Per the Document

http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/statviews_5081.htm#REFRN23302

Password Column  is deprecated in favor of   the AUTHENTICATION_TYPE column

But You can get the password from “User$“.

SQL> create User a identified by "a";

User created.

SQL> create User b identified by "a";

User created.

SQL> select dbms_metadata.get_ddl('USER','A') from dual;

DBMS_METADATA.GET_DDL('USER','A')
--------------------------------------------------------------------------------

   CREATE USER "A" IDENTIFIED BY VALUES 'S:298EDEE1721E71B950D55CCB9ABA7EE5C596E
A6B0CCFF098E88889B98BD5;AFCC9478DFBF9029'
      DEFAULT TABLESPACE "USERS"
      TEMPORARY TABLESPACE "TEMP"

SQL> select dbms_metadata.get_ddl('USER','B') from dual;

DBMS_METADATA.GET_DDL('USER','B')
--------------------------------------------------------------------------------

   CREATE USER "B" IDENTIFIED BY VALUES 'S:25E85C1466288EE377681D131DF1920B33448
CD4108F8DDFC580A3315A39;9017AAA5BF2D9732'
      DEFAULT TABLESPACE "USERS"
      TEMPORARY TABLESPACE "TEMP"

SQL> select name, password, spare4 from sys.user$ where name ='A'
  2  ;

NAME                           PASSWORD
------------------------------ ------------------------------
SPARE4
--------------------------------------------------------------------------------
A                              AFCC9478DFBF9029
S:298EDEE1721E71B950D55CCB9ABA7EE5C596EA6B0CCFF098E88889B98BD5

SQL> select password,username from dba_users
  2  where length(username)=1;

PASSWORD                       USERNAME
------------------------------ ------------------------------
                               A
                               B

SQL>

You can Find My Post here at Orafaq.
http://www.orafaq.com/forum/mv/msg/171754/510127/136607/#msg_510127
For more reference
http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/statviews_5081.htm#REFRN23302
Hope You enjoyed It 🙂
Sriram

Posted in Oracle Server Administration | 103 Comments »

ORA-00059: maximum number of DB_FILES exceeded

Posted by Sriram Sanka on May 27, 2011


This is all about the Relation B/W  MAXDATAFILES and DB_FILES In Oralce Database.

–This will Give Us db_files value. max no of data files that we can add.

select value from v$parameter where name = ‘db_files’;

This will give the MAXDATAFILES specified at Control file level while creating Database.

select records_total from v$controlfile_record_section where type = ‘DATAFILE’;

Lets Start with a small case. I have Created My database with DB_FILES   as 10.

C:\Windows\System32>sqlplus system/tejajun20

SQL*Plus: Release 11.2.0.1.0 Production on Fri May 27 20:20:19 2011

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

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

SQL> select value from v$parameter where name = 'db_files';

VALUE
--------------------------------------------------------------------------------
10

SQL> select records_total from v$controlfile_record_section where type = 'DATAFILE';

RECORDS_TOTAL
-------------
          100

Let us have a look at the no of data files I have.

SQL> select file_name from dba_data_files;

FILE_NAME
--------------------------------------------------------------------------------
D:\APP1\SRIRAM\ORADATA\ORAFAQ\USERS01.DBF
D:\APP1\SRIRAM\ORADATA\ORAFAQ\UNDOTBS01.DBF
D:\APP1\SRIRAM\ORADATA\ORAFAQ\SYSAUX01.DBF
D:\APP1\SRIRAM\ORADATA\ORAFAQ\SYSTEM01.DBF
D:\APP1\SRIRAM\ORADATA\ORAFAQ\EXAMPLE01.DBF</pre>

Let me add some data files to users tables

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User2.dbf' size 100m ;

Tablespace altered.

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User3.dbf' size 100m ;

Tablespace altered.

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User4.dbf' size 100m ;

Tablespace altered.

SQL> select count(*) from v$datafile;

  COUNT(*)
----------
         8

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User5.dbf' size 100m ;

Tablespace altered.

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User6.dbf' size 100m ;

Tablespace altered.

SQL> select count(*) from v$datafile;

  COUNT(*)
----------
        10

SQL> select value from v$parameter where name = 'db_files';

VALUE
--------------------------------------------------------------------------------
10

SQL> select records_total from v$controlfile_record_section where type = 'DATAFILE';

RECORDS_TOTAL
-------------
          100

As I have already reached the max limit 10,Adding one more file will raise an Error.

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User7.dbf' size 100m ;
alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User7.dbf' size 100m
*
ERROR at line 1:
ORA-00059: maximum number of DB_FILES exceeded

ORA-00059:

maximum number of DB_FILES exceeded
Cause: The value of the DB_FILES initialization parameter was exceeded.
Action: Increase the value of the DB_FILES parameter and warm start.

Lets Try to increase the value to a small number.

SQL> alter system set db_files=20 scope=spfile;

System altered.

SQL> conn sys as sysdba
Enter password:
Connected.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area  401743872 bytes
Fixed Size                  1374892 bytes
Variable Size             268436820 bytes
Database Buffers          125829120 bytes
Redo Buffers                6103040 bytes
Database mounted.
Database opened.
SQL> select value from v$parameter where name = 'db_files';

VALUE
--------------------------------------------------------------------------------
20

SQL> select records_total from v$controlfile_record_section where type = 'DATAFILE';

RECORDS_TOTAL
-------------
          100

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User7.dbf' size 100m ;

Tablespace altered.

SQL>

See now it allowing us to add datafiles.what about Exceeding MAXDATAFILES? (i.e more than 100 data files).

Lets do that And verify what `ll happen.


SQL> alter system set db_files=150 scope=spfile;

System altered.

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area  401743872 bytes
Fixed Size                  1374892 bytes
Variable Size             268436820 bytes
Database Buffers          125829120 bytes
Redo Buffers                6103040 bytes
Database mounted.
Database opened.
SQL> select value from v$parameter where name = 'db_files';

VALUE
--------------------------------------------------------------------------------
150

SQL> select records_total from v$controlfile_record_section where type = 'DATAFILE';

RECORDS_TOTAL
-------------
          100

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User8.dbf' size 1m ;

Tablespace altered.

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User9.dbf' size 1m ;

Tablespace altered.

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User10.dbf' size 1m ;

Tablespace altered.

SQL> select count(*) from v$datafile;

  COUNT(*)
----------
        14
--- In another window I am adding datafiles upto the limit "100"
SQL> /

  COUNT(*)
----------
        48

SQL> /

  COUNT(*)
----------
        55

SQL> /

  COUNT(*)
----------
        82

SQL> /

  COUNT(*)
----------
        98

SQL> /

  COUNT(*)
----------
        98

SQL> /

  COUNT(*)
----------
        98

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User95.dbf' size 1m ;

Tablespace altered.

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User96.dbf' size 1m ;

Tablespace altered.

SQL>
SQL> select value from v$parameter where name = 'db_files';

VALUE
--------------------------------------------------------------------------------
150

SQL> select records_total from v$controlfile_record_section where type = 'DATAFILE';

RECORDS_TOTAL
-------------
          100

SQL> alter tablespace users add datafile 'D:\APP1\SRIRAM\ORADATA\ORAFAQ\User97.dbf' size 1m ;

Tablespace altered.

SQL> select value from v$parameter where name = 'db_files';

VALUE
--------------------------------------------------------------------------------
150

SQL> select records_total from v$controlfile_record_section where type = 'DATAFILE';

RECORDS_TOTAL
-------------
          200

----Observe it Automatically changed..

SQL>

As Per Oracle Documents :

Consider Possible Limitations When Adding Datafiles to a Tablespace:

  1. You can add datafiles to traditional smallfile tablespaces, subject to the following limitations:
  2. Operating systems often impose a limit on the number of files a process can open simultaneously. More datafiles cannot be created when the operating system limit of open files is reached.
  3. Operating systems impose limits on the number and size of datafiles.
  4. The database imposes a maximum limit on the number of datafiles for any Oracle Database opened by any instance. This limit is operating system specific.

You cannot exceed the number of datafiles specified by the DB_FILES initialization parameter.

When you issue CREATE DATABASE or CREATE CONTROLFILE statements, the MAXDATAFILES parameter specifies an initial size of the datafile portion of the control file. However,if you attempt to add a new file whose number is greater than MAXDATAFILES, but less than or equal to DB_FILES, the control file will expand automatically so that the datafiles section can accommodate more files.

DB_FILES specifies the maximum number of database files that can be opened for this database.The maximum valid value is the maximum number of files, subject to operating system constraint,that will ever be specified for the database, including files to be added by ADD DATAFILE statements.If you increase the value of DB_FILES, then you must shut down and restart all instances accessing the database before the new value can take effect. If you have a primary and standby database,then they should have the same value for this parameter.

For More Information Please Read:

http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dfiles.htm#sthref1343

http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dfiles.htm#sthref1343

Posted in Oracle Server Administration | 98 Comments »

How to read Oracle Explain Plan

Posted by Sriram Sanka on May 10, 2011


The EXPLAIN PLAN statement displays execution plans chosen by the Oracle optimizer.A statement’s execution plan is the sequence of operations Oracle performs to run the statement.execution plans are read inside-out.if there are two statements at the same level, the first statement is executed first.

You can use “Explain plan statement for this.” which should be explained first.
The basic syntax to get explain plan is explain plan set statement_id= for

For Ex:
ind> explain plan set statement_id=’ORAFAQ’ for
2 select
3 a.empno,
4 a.ename,
5 b.dname
6 from
7 emp_sriram a,
8 dept b
9 where
10 a.deptno=b.deptno
11 /

Explained.
Now the sequential steps of this sql statement is stored in a Table called PLAN_TABLE.

Lets have a look at the table.

ind> select LPad(‘ ‘, 2*(Level-1)) || Level || ‘.’ || Nvl(Position,0)|| ‘ ‘ ||
2 Operation || ‘ ‘ || Options || ‘ ‘ || Object_Name || ‘ ‘ || Object_Type
3 || ‘ ‘ || Decode(id, 0, Statement_Id ||’ Cost = ‘ || Position) || cost
4 || ‘ ‘ || Object_Node “Query Plan”
5 from plan_table
6 start with id = 0 And statement_id=’ORAFAQ’
7 connect by prior id = parent_id
8 and statement_id=’ORAFAQ’
9 /

Query Plan
———————————————————————————————–
1.4 SELECT STATEMENT ORAFAQ Cost = 44
2.1 NESTED LOOPS 4
3.1 TABLE ACCESS FULL EMP_SRIRAM TABLE 3
3.2 TABLE ACCESS BY INDEX ROWID DEPT TABLE 1
4.1 INDEX UNIQUE SCAN PK_DEPT INDEX (UNIQUE) 0

5 rows selected.

You can Also Use DBMS_XPLAN.DISPLAY.
ind> SELECT *
2 FROM TABLE(DBMS_XPLAN.DISPLAY(‘PLAN_TABLE’,’ORAFAQ’,’BASIC’));

PLAN_TABLE_OUTPUT
———————————————————————————-
Plan hash value: 2868360194

—————————————————
| Id | Operation | Name |
—————————————————
| 0 | SELECT STATEMENT | |
| 1 | NESTED LOOPS | |
| 2 | TABLE ACCESS FULL | EMP_SRIRAM |
| 3 | TABLE ACCESS BY INDEX ROWID| DEPT |
| 4 | INDEX UNIQUE SCAN | PK_DEPT |
—————————————————

11 rows selected.

The basic structure of this package is
dbms_xplan.display(
table_name IN VARCHAR2 DEFAULT ‘PLAN_TABLE’,
statement_id IN VARCHAR2 DEFAULT NULL,
format IN VARCHAR2 DEFAULT ‘TYPICAL’);

Format choices are
BASIC ….. displays minimum information
TYPICAL … displays most relevant information
SERIAL …. like TYPICAL but without parallel information
ALL ……. displays all information

SQL plus autotrace also produce the explain  plan …..

set autotrace off
set autotrace on
set autotrace traceonly

set autotrace on explain
set autotrace on statistics
set autotrace on explain statistics

set autotrace traceonly explain
set autotrace traceonly statistics
set autotrace traceonly explain statistics

set autotrace off explain
set autotrace off statistics
set autotrace off explain statistics
Setting autotrace allows to display some statistics and/or an query execution plan for DML statements.
set autotrace on:	Shows the execution plan as well as statistics of the statement.
set autotrace on explain:	Displays the execution plan only.
set autotrace on statistics:	Displays the statistics only.
set autotrace traceonly:	Displays the execution plan and the statistics (as set autotrace on does), but doesn't print a query's result.
set autotrace off:	Disables all autotrace

Now lets have a look at execution plan order ….

ind> select LPAD(‘ ‘,2*(LEVEL-1))||operation “OPERATION”, options “OPTIONS”,
2 DECODE(TO_CHAR(id),’0’,’COST = ‘ || NVL(TO_CHAR(position),’n/a’),
3 object_name) “OBJECTNAME”, id ||’-‘|| NVL(parent_id, 0)||’-‘||
4 NVL(position, 0) “ORDER”, SUBSTR(optimizer,1,6) “OPT”
5 from plan_table
6 start with id = 0
7 and statement_id=’ORAFAQ’
8 connect by prior id = parent_id
9 and statement_id=’ORAFAQ’;

OPERATION OPTIONS OBJECTNAME ORDER OPT
—————————— —————————— —————————— ——-
SELECT STATEMENT COST = 4 0-0-4 ALL_RO
NESTED LOOPS 1-0-1
TABLE ACCESS FULL EMP_SRIRAM 2-1-1 ANALYZ
TABLE ACCESS BY INDEX ROWID DEPT 3-1-2 ANALYZ
INDEX UNIQUE SCAN PK_DEPT 4-3-1 ANALYZ

5 rows selected.

ind> select LPAD(‘ ‘,2*(LEVEL-1))||operation “OPERATION”, options “OPTIONS”,

2 DECODE(TO_CHAR(id),’0’,’COST = ‘ || NVL(TO_CHAR(position),’n/a’),

3 object_name) “OBJECTNAME”, id ||’-‘|| NVL(parent_id, 0)||’-‘||

4 NVL(position, 0) “ORDER”

5 from plan_table

6 start with id = 0

7 and statement_id=’ORAFAQ’

8 connect by prior id = parent_id

9 and statement_id=’ORAFAQ’;

OPERATION OPTIONS OBJECTNAME ORDER

—————————— —————————— —————————— ——-

SELECT STATEMENT COST = 4                      0-0-4

NESTED LOOPS                                                      1-0-1

TABLE ACCESS FULL EMP_SRIRAM             2-1-1

TABLE ACCESS BY INDEX ROWID DEPT      3-1-2

INDEX UNIQUE SCAN PK_DEPT                        4-3-1

5 rows selected.

On  0-0-4  it is in an order like ID and parent id nad its position.

Like wise if we can order them

00
10
21
31
43
here Level 1 has 2 childs(2,3) and  3 has 1 child(4).
So the execution steps sequential order will be 2,4,3,1
i.e
TABLE ACCESS               FULL                           EMP_SRIRAM  
INDEX                    UNIQUE SCAN                    PK_DEPT
TABLE ACCESS               BY INDEX ROWID                 DEPT  
Produce the result
SELECT STATEMENT Indicates that its a "SELECT STATEMENT"

Here First it will read data from emp_sriram then a unique Index scan  on dept (step 4) 
which gives the rowids and based the rowid input it goes to the step 1
(we can say for understanding) and produce the result.

For More Information Please have a look at Oracle documents.

Posted in Oracle Server Administration | 2 Comments »

 
Tales From A Lazy Fat DBA

Its all about Databases & their performance, troubleshooting & much more .... ¯\_(ツ)_/¯

Thinking Out Loud

Michael T. Dinh, Oracle DBA

Notes On Oracle

by Mehmet Eser

Oracle Diagnostician

Performance troubleshooting as exact science

deveshdba

get sum oracle stuffs

Data Warehousing with Oracle

Dani Schnider's Blog

ORASteps

Oracle DBA's Daily Work

DBAspaceblog.com

Welcome everyone!! The idea of this blog is to help the DBA in their daily tasks. Enjoy.

Anand's Data Stories

Learn. Share. Repeat.

Tanel Poder's blog: Core IT for geeks and pros

Oracle Performance Tuning, Troubleshooting, Internals

Yet Another OCM

Journey as an Oracle Certified Master

DBAtricksWorld.com

Sharing Knowledge is ultimate key to Gaining knowledge...

Neil Chandler's DB Blog

A resource for Database Professionals

DBA Kevlar

Tips, tricks, (and maybe a few rants) so more DBA's become bulletproof!

OraExpert Academy

Consulting and Training