Apr 30, 2018

Ubuntu: Upgrade from 17.10 to 18.04


Last week ubuntu release 18.10 and i upgraded my notebook to the latest version.
I was running 17.10 with wayland:

$ lsb_release  -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 17.10
Release:    17.10
Codename:    artful

# do-release-upgrade -d
Neue Veröffentlichungen von Ubuntu werden gesucht
Holen:1 Signatur der Aktualisierungsanwendung [819 B]                                                                                                                                                                                   
Holen:2 Aktualisierungsanwendung [1.257 kB]                                                                                                                                                                                             
Es wurden 1.258 kB in 0 s geholt (0 B/s)                                                                                                                                                                                                
»bionic.tar.gz« wird gegenüber »bionic.tar.gz.gpg« legitimiert 
»bionic.tar.gz« wird entpackt

Zwischenspeicher wird gelesen

Paketverwaltung wird überprüft
Paketlisten werden gelesen … Fertig
Abhängigkeitsbaum wird aufgebaut.        
Statusinformationen werden eingelesen. … Fertig
OK http://de.archive.ubuntu.com/ubuntu artful InRelease                                                                                                                                                                                 
OK http://archive.canonical.com/ubuntu xenial InRelease                                                                                                                                                                                 
OK http://security.ubuntu.com/ubuntu artful-security InRelease                                                                                                                                                                          
Ign http://ppa.launchpad.net/librepilot/release/ubuntu artful InRelease                                                                                                                                                                 
OK http://de.archive.ubuntu.com/ubuntu artful-updates InRelease                                                                                                                                                                         
OK https://download.docker.com/linux/ubuntu artful InRelease                                                                                                                                                                            
OK http://de.archive.ubuntu.com/ubuntu artful-backports InRelease                                                                                                                                                                       
Fehl http://ppa.launchpad.net/librepilot/release/ubuntu artful Release                                                                                                                                                                  
  404  Not Found                                                                                                                                                                                                                        
Es wurden 0 B in 0 s geholt (0 B/s)                                                                                                                                                                                                     
Paketlisten werden gelesen … Fertig            
Abhängigkeitsbaum wird aufgebaut.               
Statusinformationen werden eingelesen. … Fertig

Informationen zu Paketquellen werden aktualisiert

Paketquellen von Drittanbietern deaktiviert 

Einige Paketquellen von Drittanbietern wurden deaktiviert. Sie können 
diese nach der Systemaktualisierung mit dem Programm 
»Software-Paketquellen« oder mit »Synaptic« wieder aktivieren. 

Um fortzufahren, drücken Sie [ENTER]



  
Holen:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [65,4 kB]                                                                                                                                                           
Holen:2 http://de.archive.ubuntu.com/ubuntu bionic InRelease [242 kB]                                                                                                                                                                   
Holen:3 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease [65,4 kB]                                                                                                                                                          
Holen:4 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease [65,5 kB]                                                                                                                                                        
Holen:5 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1.019 kB]                                                                                                                                                       
Holen:6 http://de.archive.ubuntu.com/ubuntu bionic/main i386 Packages [1.007 kB]                                                                                                                                                        
Holen:7 http://de.archive.ubuntu.com/ubuntu bionic/main Translation-de [454 kB]                                                                                                                                                         
Holen:8 http://de.archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]                                                                                                                                                         
Holen:9 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 DEP-11 Metadata [477 kB]                                                                                                                                                  
Holen:10 http://de.archive.ubuntu.com/ubuntu bionic/main DEP-11 64x64 Icons [245 kB]                                                                                                                                                    
Holen:11 http://de.archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [9.184 B]                                                                                                                                                 
Holen:12 http://de.archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [9.156 B]                                                                                                                                                  
Holen:13 http://de.archive.ubuntu.com/ubuntu bionic/restricted Translation-de [2.268 B]                                                                                                                                                 
Holen:14 http://de.archive.ubuntu.com/ubuntu bionic/restricted Translation-en [3.584 B]                                                                                                                                                 
Holen:15 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8.570 kB]                                                                                                                                                  
Holen:16 http://de.archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8.531 kB]                                                                                                                                                   
Holen:17 http://de.archive.ubuntu.com/ubuntu bionic/universe Translation-en [4.941 kB]                                                                                                                                                  
Holen:18 http://de.archive.ubuntu.com/ubuntu bionic/universe Translation-de [2.272 kB]                                                                                                                                                  
Holen:19 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 DEP-11 Metadata [3.287 kB]                                                                                                                                           
Holen:20 http://de.archive.ubuntu.com/ubuntu bionic/universe DEP-11 64x64 Icons [8.420 kB]                                                                                                                                              
Holen:21 http://de.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]                                                                                                                                                  
Holen:22 http://de.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]                                                                                                                                                   
Holen:23 http://de.archive.ubuntu.com/ubuntu bionic/multiverse Translation-de [84,5 kB]                                                                                                                                                 
Holen:24 http://de.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]                                                                                                                                                  
Holen:25 http://de.archive.ubuntu.com/ubuntu bionic/multiverse amd64 DEP-11 Metadata [49,7 kB]                                                                                                                                          
Holen:26 http://de.archive.ubuntu.com/ubuntu bionic/multiverse DEP-11 64x64 Icons [225 kB]                                                                                                                                              
Es wurden 41,0 MB in 6 s geholt (5.414 kB/s)                                                                                                                                                                                            

Paketverwaltung wird überprüft
Paketlisten werden gelesen … Fertig            
Abhängigkeitsbaum wird aufgebaut.               
Statusinformationen werden eingelesen. … Fertig

Änderungen werden berechnet

Änderungen werden berechnet

Möchten Sie die Systemaktualisierung starten? 


67 Pakete werden nicht mehr von Canonical unterstützt. Sie können 
allerdings immer noch Hilfe von der Gemeinschaft erhalten. 

22 Pakete werden entfernt. 222 neue Pakete werden installiert. 2255 
Pakete werden aktualisiert. 

Insgesamt müssen 1.663 M heruntergeladen werden. Das Herunterladen 
wird bei Ihrer Netzwerkverbindung etwa 5 Minuten dauern. 

Das Installieren der Systemaktualisierung kann mehrere Stunden 
dauern. Sobald das Herunterladen abgeschlossen wurde, kann der 
Vorgang nicht abgebrochen werden. 

 Fortsetzen [j/N]  Details [d]

[snip]
 Processing triggers for shim-signed (1.34.9+13-0ubuntu2) ...
Processing triggers for libvlc-bin:amd64 (3.0.1-3build1) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.36.11-2) ...

Es wird nach veralteten Programmen gesucht
Paketlisten werden gelesen … Fertig            
Abhängigkeitsbaum wird aufgebaut.               
Statusinformationen werden eingelesen. … Fertig
Statusinformationen werden eingelesen. … Fertig

Veraltete Pakete entfernen? 


195 Pakete werden entfernt. 

Das Entfernen der Pakete kann mehrere Stunden dauern. 

 Fortsetzen [j/N]  Details [d]d
Fortsetzen [j/N]  Details [d]d
Fortsetzen [j/N]  Details [d]n

Die Systemaktualisierung ist abgeschlossen.

Neustart erforderlich 

Um die Systemaktualisierung abzuschließen, ist ein Neustart 
erforderlich. 
Wenn Sie »j« wählen, wird das System neu gestartet. 

Fortsetzen [j/N] j

And after the reboot the default is X11 again:
schroff@zerberus:~$ loginctl 

   SESSION        UID USER             SEAT             TTY             

         2       1000 schroff          seat0            tty2            

        c1        126 gdm              seat0            tty1            



2 sessions listed.

schroff@zerberus:~$ loginctl  show-session 2 -p Type

Type=x11
It looks like there is one error left:


But i think i will ignore this error:
check-new-release-gtk: TypeError: Gtk.init_check() takes exactly 0 arguments (1 given)
And finally the check for the new release:
$ lsb_release -a

No LSB modules are available.

Distributor ID:    Ubuntu

Description:    Ubuntu 18.04 LTS

Release:    18.04

Codename:    bionic

Apr 29, 2018

Oracle SOA Suite 12c: complete startup procedure including database and application server

After the first reboot i had to work hard to get the complete system up again. So here a list of all commands:


  1. database
    export ORACLE_HOME=/home/oracle/app/oracle/product/12.2.0/dbhome_1
    export PATH=$PATH:$ORACLE_HOME/bin
    export ORACLE_SID=orcl

    $ sqlplus / as sysdba

    SQL*Plus: Release 12.2.0.1.0 Production on Fri Feb 16 20:53:02 2018

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

    Connected to an idle instance.

    SQL> startup
    ORACLE instance started.

    Total System Global Area 1560281088 bytes
    Fixed Size            8793160 bytes
    Variable Size         1006633912 bytes
    Database Buffers      536870912 bytes
    Redo Buffers            7983104 bytes
    Datenbank mounted.
    Datenbank geoffnet.
    SQL> alter pluggable database soasuite12c open;

    Integrierbare Datenbank geandert.
  2. listener
    $ lsnrctl start

    LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 16-FEB-2018 21:09:17

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

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

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

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
    Start Date                16-FEB-2018 21:09:17
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/oracle/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /home/oracle/app/oracle/diag/tnslsnr/mywww/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    The listener supports no services
    The command completed successfully

    Wait some seconds and then:$ lsnrctl status

    LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 16-FEB-2018 21:09:35

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

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
    Start Date                16-FEB-2018 21:09:17
    Uptime                    0 days 0 hr. 0 min. 18 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /home/oracle/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /home/oracle/app/oracle/diag/tnslsnr/mywww/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=mywww)(PORT=5500))(Security=(my_wallet_directory=/home/oracle/app/oracle/product/12.2.0/dbhome_1/admin/orcl/xdb_wallet))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "5a81d0aff5393ed2e055000000000001" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "5af731f7368117fbe055000000000001" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclpdb" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "soasuite12c" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully

    and a check with sqlplus:
    $  sqlplus bpeladmin@soasuite12c

    SQL*Plus: Release 12.2.0.1.0 Production on Fri Feb 16 21:09:40 2018

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

    Enter password:
    Letzte erfolgreiche Anmeldezeit: So Jan 21 2018 21:05:53 +01:00

    Verbunden mit:
    Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
  3. application server
    export PATH=/home/data/opt/jdk1.8.0_131/bin:$PATH
    export JAVA_HOME=/home/data/opt/jkd1.8.0_131

    $cd Oracle/Middleware/Oracle_Home/user_projects/domains/_domain/bin/
    $ nohup ./startNodeManager.sh &

    start the AdminServer
    $nohup ./startWeblogic.sh &

    and wait for:

    <16 .02.2018="" 21:20="" mez="" uhr="">
    <16 .02.2018="" 21:17="" mez="" uhr="">
    via tail -f nohup.out
    start the soa_server

    ./startManagedWebLogic.sh soa_server1 t3://localhost:7001

    and enter user and password when prompted

       
And then check via http://192.168.178.49:7001/console:




All installation steps can be found here:

 i had to run the

Apr 22, 2018

Oracle VM Server: How to add ISO images to your repository

After  setting up
you have to upload some ISO images to your repository, so that your virtual machines can boot with these ISO images.

So inside Oracle VM Manager go to the "Repositories" tab and use the "import iso icon" (the blue arrow):

The only way to import ISO images is to give a URL to Oracle VM Manager:


And after pushing the ok button you can monitor the download inside the job summary tab:



Inside the repository tab you will find the ISO image after a successful download:

This ISO image can now be used inside the configuration of your VMs. (Take a look here)


Apr 21, 2018

Oracle VM Server: my first vm: Error: HVM guest support is unavailable

All my tests with Oracle VM Server are running inside Oracle Virtualbox. If you want to do some tests yourself with this setup, you can easily get this error message after powering on your VM:

Server error: Command: ['xm', 'create', '/OVS/Repositories/0004fb0000030000dad74d9c43176d2e/VirtualMachines/0004fb00000600005e79798ecb1a63cf/vm.cfg'] failed (1): stderr: Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?
stdout: Using config file "/OVS/Repositories/0004fb0000030000dad74d9c43176d2e/VirtualMachines/0004fb00000600005e79798ecb1a63cf/vm.cfg".
To get your system running, you have to change this for your Oracle VM Server node on VirtualBox:


After that you get:

Server error: Command: ['xm', 'create', '/OVS/Repositories/0004fb0000030000dad74d9c43176d2e/VirtualMachines/0004fb0000060000b5dca8dccb8b74f6/vm.cfg'] failed (1): stderr: Error: Boot loader didn't return any data!
stdout: Using config file "/OVS/Repositories/0004fb0000030000dad74d9c43176d2e/VirtualMachines/0004fb0000060000b5dca8dccb8b74f6/vm.cfg".
But this is due to specifying no boot media at your VM. Therefore you have to add an ISO image to your Oracle VM Server repository.