Java Magazine: Using multiple Docker Containers

Interesting How-to article by  Arun Gupta

Java Magazine January/February 2016
 

page  72

 

page 72 Table of Contents

 

Yep, that’s true ;-)

1457920517110835884

Case Study: Docker (1/3)

small_h-dark

Dear friends!

Here I’d like to introduce to you a one of most impressive virtualization technology of the last several years — Docker.

Docker represents a new level of virtual technique — a container. It based on host operating system and is able to use kernel features. Each container can run a different software, such as  Apache, nginx, tomcat, etc, as well as virtual machines and guest operating systems. Unlike of traditional virtualization, like Oracle VM or VmWare, where you need to install a guest operating system, containers use host resources.

Продолжить чтение этой записи

Case Study: Docker (2/3)

small_h-darkWell, in previous post we’ve prepared 5 nodes (manage, registry and 3 compute nodes) for Docker implementation. Also we’ve installed Docker Trusted Registry. In this post I’m going to install Universal Control Plane — UCP.

There are two ways to install UCP — Evaluation and Production installation. In this post Production installation is considered. Documentation hardly recommend to read «Plan a production installation». Read UCP concepts and hardware&software requirements. We’ll follow to this document, but without optional steps, you may do it by yourselves.

Продолжить чтение этой записи

Oracle and a Cloud Slavery

Few month ago I saw that Oracle Corp. announced Oracle Standard Edition 2.

Well, nice to see a progress in product line development. But at first time I couldn’t find any info about edition differences. Oracle’d changed design of it’s web-site,  now it looks like a housewives is it’s marketing target, not a professionals.

Today I’ve found a brief about SE2… In few words, they decided to join SE and SE One.

Well. I’m really shocked! Oracle forces SMB customers to use it’s Cloud… I really couldn’t understand why…

Let’s start the list of sadness:

  1. They had decreased amount of CPU sockets from 4 to 2 (Twice, damn it!!!)
  2. Whatever CPU you have decided to run on, you will be limited to 16 threads for two sockets!!! (WTF?!) Even in RAC environment.

Well.. Quite pity, isn’t it?

Let’s read Q’n’A section:

«Zero-Cost License Migration from SE»

I would like to see that idiot how will agree to change full 4-socket license for this piece of… decide yourselves what is it.

And at last:

«Consider an upgrade to Oracle Enterprise Edition or Oracle Database Cloud Service»

Oh, I see!!! That’s the point! Now your have only to spend a lot of money for EE or trust to a «trusted» company with a very secure data center, but you can’t control a thing in it.

Welcome to a CLOUD SLAVERY!!!

 

chain-of-the-last-slave-lossing1

YUM: can not find RHNS CA file

OELHello my friends, long time! Haven’t written a thing for a long period of time, my fault, I’m sorry🙂

Well, some time ago I started to study OpenStack and it’s implementation in Oracle Enterprise Linux 7.2. Quite interesting way of Cloud Computing.

And today I’ve met some strange behavior of YUM utility. In documentation is written, that you must completely update your host operating system by

[root@localhost ~]# yum update

Well, that’s nice, comfortable and peaceful procedure after those I’ve got the following error:

[root@localhost ~]# yum
Loaded plugins: langpacks, ulninfo
ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

The reason of this is in RHN* packages, which have been installed during update procedure. So, we need to identify them by RPM tool:

[root@localhost ~]# rpm -qa|grep rhn
rhn-check-2.2.6-1.0.2.el7.noarch
rhn-setup-2.2.6-1.0.2.el7.noarch
rhn-setup-gnome-2.2.6-1.0.2.el7.noarch
rhnsd-5.0.14-1.el7.x86_64
yum-rhn-plugin-2.2.6-1.el7.noarch
rhnlib-2.5.71-1.el7.noarch
rhn-client-tools-2.2.6-1.0.2.el7.noarch

and remove from system:

[root@localhost ~]# rpm -e yum-rhn-plugin-2.2.6-1.el7.noarch \ 
                           yum-plugin-ulninfo-0.2-13.el7.noarch \
                           rhn-check-2.2.6-1.0.2.el7.noarch \
                           rhnsd-5.0.14-1.el7.x86_64 \
                           rhn-setup-2.2.6-1.0.2.el7.noarch \
                           rhn-setup-gnome-2.2.6-1.0.2.el7.noarch

And here we are, YUM works nice and smoothly:

[root@localhost ~]# yum
Loaded plugins: langpacks
You need to give some command
Usage: yum [options] COMMAND

List of Commands:

check          Check for problems in the rpmdb

Wierd Things with Oracle :-)

Few weeks ago one of my clients had met a really wierd thing: there were 2 logfiles with CURRENT status:

SQL> select GROUP#,SEQUENCE#,BYTES,MEMBERS,STATUS from v$log
  2  ;
    GROUP#  SEQUENCE#      BYTES    MEMBERS STATUS
     ———- ———- ———- ———- —————-
         1       5651   52428800          2 INACTIVE
         3       5653   52428800          2 CURRENT
         2       5652   52428800          2 CURRENT
Here is the error from alertlog:
ORA-00600: internal error code, arguments: [3705], [1], [3], [2], [8], [], [], []

We had to perform point-in-time recovery up to 5652 sequence and DB felt much better🙂

Books: Oracle Data Guard 11gR2 Administration…

Useful scripts: Get DDL for jobs, created by DBMS_JOB…

Here is a script, which is dedicated to generate DDL commands to recreate jobs, created by DBMS_JOB package.

DECLARE
 CURSOR job_list
 IS
 SELECT JOB FROM dba_jobs;
mysql VARCHAR2 (32767);
BEGIN
 FOR job_id IN job_list
 LOOP
 mysql := '';
 DBMS_OUTPUT.put_line ('BEGIN');
 DBMS_OUTPUT.put_line ('DBMS_JOB.REMOVE(' || job_id.job || ');');
 DBMS_JOB.user_export (job_id.job, mysql);
 DBMS_OUTPUT.put_line (mysql);
 DBMS_OUTPUT.put_line ('END;');
 DBMS_OUTPUT.put_line ('/');
 END LOOP;
END;
/

Useful scripts: Log file switch frequency statistsic

Very nice and easy to use query.

SELECT trunc(first_time) "Date",
 to_char(first_time, 'Dy') "Day",
 count(1) "Total",
 SUM(decode(to_char(first_time, 'hh24'), '00', 1, 0)) "h0",
 SUM(decode(to_char(first_time, 'hh24'), '01', 1, 0)) "h1",
 SUM(decode(to_char(first_time, 'hh24'), '02', 1, 0)) "h2",
 SUM(decode(to_char(first_time, 'hh24'), '03', 1, 0)) "h3",
 SUM(decode(to_char(first_time, 'hh24'), '04', 1, 0)) "h4",
 SUM(decode(to_char(first_time, 'hh24'), '05', 1, 0)) "h5",
 SUM(decode(to_char(first_time, 'hh24'), '06', 1, 0)) "h6",
 SUM(decode(to_char(first_time, 'hh24'), '07', 1, 0)) "h7",
 SUM(decode(to_char(first_time, 'hh24'), '08', 1, 0)) "h8",
 SUM(decode(to_char(first_time, 'hh24'), '09', 1, 0)) "h9",
 SUM(decode(to_char(first_time, 'hh24'), '10', 1, 0)) "h10",
 SUM(decode(to_char(first_time, 'hh24'), '11', 1, 0)) "h11",
 SUM(decode(to_char(first_time, 'hh24'), '12', 1, 0)) "h12",
 SUM(decode(to_char(first_time, 'hh24'), '13', 1, 0)) "h13",
 SUM(decode(to_char(first_time, 'hh24'), '14', 1, 0)) "h14",
 SUM(decode(to_char(first_time, 'hh24'), '15', 1, 0)) "h15",
 SUM(decode(to_char(first_time, 'hh24'), '16', 1, 0)) "h16",
 SUM(decode(to_char(first_time, 'hh24'), '17', 1, 0)) "h17",
 SUM(decode(to_char(first_time, 'hh24'), '18', 1, 0)) "h18",
 SUM(decode(to_char(first_time, 'hh24'), '19', 1, 0)) "h19",
 SUM(decode(to_char(first_time, 'hh24'), '20', 1, 0)) "h20",
 SUM(decode(to_char(first_time, 'hh24'), '21', 1, 0)) "h21",
 SUM(decode(to_char(first_time, 'hh24'), '22', 1, 0)) "h22",
 SUM(decode(to_char(first_time, 'hh24'), '23', 1, 0)) "h23",
 round(count(1) / 24, 2) "Avg"
 FROM V$log_history
 group by trunc(first_time), to_char(first_time, 'Dy')
 Order by 1
Отслеживать

Настройте получение новых записей по электронной почте.

Присоединиться к ещё 65 подписчикам

%d такие блоггеры, как: