viernes, 7 de abril de 2023

Instalando imágen con el manejador de contenedores PODMAN de Oracle Database 23c-Free for Developers.



[root@dbsystem01 opc]# podman run -d --name db23cfree container-registry.oracle.com/database/free:latest
bash: podman: command not found
[root@dbsystem01 opc]# yum install podman
Loaded plugins: langpacks, ulninfo
docker-ce-stable                                                  | 3.5 kB  00:00:00
ol7_MySQL80                                                       | 3.0 kB  00:00:00
ol7_MySQL80_connectors_community                                  | 2.9 kB  00:00:00
ol7_MySQL80_tools_community                                       | 2.9 kB  00:00:00
ol7_UEKR6                                                         | 3.0 kB  00:00:00
ol7_addons                                                        | 3.0 kB  00:00:00
ol7_ksplice                                                       | 3.0 kB  00:00:00
ol7_latest                                                        | 3.6 kB  00:00:00
ol7_oci_included                                                  | 2.9 kB  00:00:00
ol7_optional_latest                                               | 3.0 kB  00:00:00
ol7_software_collections                                          | 3.0 kB  00:00:00
(1/6): ol7_ksplice/primary_db                                     | 3.7 MB  00:00:00
(2/6): docker-ce-stable/7Server/x86_64/primary_db                 | 101 kB  00:00:00
(3/6): ol7_optional_latest/x86_64/updateinfo                      | 1.4 MB  00:00:00
(4/6): ol7_optional_latest/x86_64/primary_db                      | 5.9 MB  00:00:00
(5/6): ol7_latest/x86_64/updateinfo                               | 3.5 MB  00:00:00
(6/6): ol7_latest/x86_64/primary_db                               |  45 MB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package podman.x86_64 0:1.6.4-29.0.1.el7_9 will be installed
--> Processing Dependency: containers-common >= 0.1.29-3 for package: podman-1.6.4-29.0.1.el7_9.x86_64
--> Processing Dependency: containernetworking-plugins >= 0.8.1-1 for package: podman-1.6.4-29.0.1.el7_9.x86_64
--> Processing Dependency: nftables for package: podman-1.6.4-29.0.1.el7_9.x86_64
--> Processing Dependency: conmon for package: podman-1.6.4-29.0.1.el7_9.x86_64
--> Running transaction check
---> Package conmon.x86_64 3:2.0.26-2.el7 will be installed
---> Package containernetworking-plugins.x86_64 0:0.8.1-2.el7 will be installed
---> Package containers-common.x86_64 1:0.1.37-3.0.1.el7 will be installed
---> Package nftables.x86_64 1:0.8-14.el7 will be installed
--> Processing Dependency: libnftnl.so.7(LIBNFTNL_5)(64bit) for package: 1:nftables-0.8-14.el7.x86_64
--> Processing Dependency: libnftnl.so.7()(64bit) for package: 1:nftables-0.8-14.el7.x86_64
--> Running transaction check
---> Package libnftnl.x86_64 0:1.0.8-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================
 Package                          Arch       Version             Repository         Size
=========================================================================================
Installing:
 podman                           x86_64     1.6.4-29.0.1.el7_9  ol7_oci_included   13 M
Installing for dependencies:
 conmon                           x86_64     3:2.0.26-2.el7      ol7_oci_included   36 k
 containernetworking-plugins      x86_64     0.8.1-2.el7         ol7_addons         20 M
 containers-common                x86_64     1:0.1.37-3.0.1.el7  ol7_addons         21 k
 libnftnl                         x86_64     1.0.8-3.el7         ol7_latest         77 k
 nftables                         x86_64     1:0.8-14.el7        ol7_latest        185 k

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

Total download size: 33 M
Installed size: 129 M
Is this ok [y/d/N]: y
Downloading packages:
(1/6): conmon-2.0.26-2.el7.x86_64.rpm                                    |  36 kB  00:00:00
(2/6): containers-common-0.1.37-3.0.1.el7.x86_64.rpm                     |  21 kB  00:00:00
(3/6): nftables-0.8-14.el7.x86_64.rpm                                    | 185 kB  00:00:00
(4/6): libnftnl-1.0.8-3.el7.x86_64.rpm                                   |  77 kB  00:00:00
(5/6): containernetworking-plugins-0.8.1-2.el7.x86_64.rpm                |  20 MB  00:00:19
(6/6): podman-1.6.4-29.0.1.el7_9.x86_64.rpm                              |  13 MB  00:00:19
------------------------------------------------------------------------------------------------
Total                                                           1.6 MB/s |  33 MB  00:00:20
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:containers-common-0.1.37-3.0.1.el7.x86_64           1/6
  Installing : libnftnl-1.0.8-3.el7.x86_64                           2/6
  Installing : 1:nftables-0.8-14.el7.x86_64                          3/6
  Installing : 3:conmon-2.0.26-2.el7.x86_64                          4/6
  Installing : containernetworking-plugins-0.8.1-2.el7.x86_64        5/6
  Installing : podman-1.6.4-29.0.1.el7_9.x86_64                      6/6
  Verifying  : containernetworking-plugins-0.8.1-2.el7.x86_64        1/6
  Verifying  : podman-1.6.4-29.0.1.el7_9.x86_64                      2/6
  Verifying  : 1:nftables-0.8-14.el7.x86_64                          3/6
  Verifying  : 3:conmon-2.0.26-2.el7.x86_64                          4/6
  Verifying  : libnftnl-1.0.8-3.el7.x86_64                           5/6
  Verifying  : 1:containers-common-0.1.37-3.0.1.el7.x86_64           6/6

Installed:
  podman.x86_64 0:1.6.4-29.0.1.el7_9

Dependency Installed:
  conmon.x86_64 3:2.0.26-2.el7  containernetworking-plugins.x86_64 0:0.8.1-2.el7  
  containers-common.x86_64 1:0.1.37-3.0.1.el7  libnftnl.x86_64 0:1.0.8-3.el7
  nftables.x86_64 1:0.8-14.el7

Complete!
[root@dbsystem01 opc]# podman run -d --name db23cfree container-registry.oracle.com/database/free:latest
Trying to pull container-registry.oracle.com/database/free:latest...
Getting image source signatures
Copying blob 480f5079c729 done
Copying blob 4f739c567988 done
Copying blob def8df68f6e5 done
Copying blob 579d0ff24aa5 done
Copying config 7c64410c08 done
Writing manifest to image destination
Storing signatures
baffef0c8749948427c6a3090fcac02cf82491d30a1e6eeb592d54ac5c75e8be
[root@dbsystem01 opc]# docker logs db23cfree
Error response from daemon: No such container: db23cfree
[root@dbsystem01 opc]# podman exec db23cfree ./setPassword.sh Mexico$2023
The Oracle base remains unchanged with value /opt/oracle

SQL*Plus: Release 23.0.0.0.0 - Developer-Release on Tue Apr 4 22:18:46 2023
Version 23.2.0.0.0

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


Connected to:
Oracle Database 23c Free, Release 23.0.0.0.0 - Developer-Release
Version 23.2.0.0.0

SQL>
User altered.

SQL>
User altered.

SQL>
Session altered.

SQL>
User altered.

SQL> Disconnected from Oracle Database 23c Free, Release 23.0.0.0.0 - Developer-Release
Version 23.2.0.0.0
[root@dbsystem01 opc]# podman logs
login as: opc
Authenticating with public key "rsa-key-20200507"
Passphrase for key "rsa-key-20200507":
Last login: Tue Apr  4 21:58:14 2023 from 201.198.177.118
[opc@dbsystem01 ~]$ sudo -s /bin/bash
[root@dbsystem01 opc]#  podman logs db23cfree
Starting Oracle Net Listener.
Oracle Net Listener started.
Starting Oracle Database instance FREE.
Oracle Database instance FREE started.

The Oracle base remains unchanged with value /opt/oracle
#########################
DATABASE IS READY TO USE!
#########################
The following output is now a tail of the alert.log:
PDB$SEED(2):Opening pdb with Resource Manager plan: DEFAULT_PLAN
FREEPDB1(3):SUPLOG: Initialize PDB SUPLOG SGA, old value 0x0, new value 0x18
FREEPDB1(3):Autotune of undo retention is turned on.
FREEPDB1(3):Undo initialization recovery: Parallel FPTR failed: start:173647808 end:173647813 diff:5 ms (0.0 seconds)
FREEPDB1(3):[186] Successfully onlined Undo Tablespace 2.
FREEPDB1(3):SUPLOG: Set PDB SUPLOG SGA at PDB OPEN, old 0x18, new 0x0 (no suplog)
2023-04-04T22:16:06.264372+00:00
FREEPDB1(3):Opening pdb with Resource Manager plan: DEFAULT_PLAN
Completed: Pluggable database FREEPDB1 opened read write
Completed: ALTER DATABASE OPEN
2023-04-04T22:18:47.119156+00:00
FREEPDB1(3):TABLE AUDSYS.AUD$UNIFIED: ADDED INTERVAL PARTITION SYS_P451 (3200) VALUES LESS THAN (TIMESTAMP' 2023-04-05 00:00:00')
2023-04-04T22:21:48.140839+00:00
Resize operation completed for file# 201, fname /opt/oracle/oradata/FREE/temp01.dbf, old size 20480K, new size 86016K
2023-04-04T22:21:49.349843+00:00
Resize operation completed for file# 201, fname /opt/oracle/oradata/FREE/temp01.dbf, old size 86016K, new size 151552K
2023-04-04T22:21:50.547475+00:00
Resize operation completed for file# 201, fname /opt/oracle/oradata/FREE/temp01.dbf, old size 151552K, new size 217088K
2023-04-04T22:21:51.773856+00:00
Resize operation completed for file# 201, fname /opt/oracle/oradata/FREE/temp01.dbf, old size 217088K, new size 282624K
2023-04-04T22:21:52.938738+00:00
Resize operation completed for file# 201, fname /opt/oracle/oradata/FREE/temp01.dbf, old size 282624K, new size 348160K
[root@dbsystem01 opc]# podman exec -it db23cfree sqlplus / as sysdba

SQL*Plus: Release 23.0.0.0.0 - Developer-Release on Tue Apr 4 22:25:42 2023
Version 23.2.0.0.0

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


Connected to:
Oracle Database 23c Free, Release 23.0.0.0.0 - Developer-Release
Version 23.2.0.0.0

SQL> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 FREEPDB1                       READ WRITE NO
SQL> alter session set container=FREEPDB1;

Session altered.

SQL> exit
Disconnected from Oracle Database 23c Free, Release 23.0.0.0.0 - Developer-Release
Version 23.2.0.0.0

[root@dbsystem01 opc]# podman images
REPOSITORY                                    TAG      IMAGE ID       CREATED      SIZE
container-registry.oracle.com/database/free   latest   7c64410c08d5   7 days ago   10.3 GB
[root@dbsystem01 opc]# podman ps -a
CONTAINER ID  IMAGE                                               COMMAND               CREATED         STATUS             PORTS  NAMES
baffef0c8749  container-registry.oracle.com/database/free:latest  /bin/sh -c exec $...  15 minutes ago  Up 15 minutes ago         db23cfree
[root@dbsystem01 opc]# podman exec -t db23cfree /bin/sh
sh-4.4$

No hay comentarios:

Publicar un comentario

Te agradezco tus comentarios. Te esperamos de vuelta.

Todos los Sábados a las 8:00PM

Optimismo para una vida Mejor

Optimismo para una vida Mejor
Noticias buenas que comentar