Samstag, 8. November 2014

Avahi fails on Oracle Linux startup

avahi-daemon fails on startup of Oracle Linux.

What is Avahi? - Please see here in wikipedia.

I decided to disable the daemon on my Oracle Linux Server:
 
service avahi-daemon stop 
chkconfig avahi-daemon off

Freitag, 31. Oktober 2014

Collection of needful Mac OS commands

  • disable. that draft documents will be stored in icloud
    •  defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false

Samstag, 8. Februar 2014

re-use of Oracle Linux VBox image

For every Linux distribution I have created an empty Oracle Linux image, containing all packages and kernel settings to quickly install Oracle Software.

Re-using this image needs some modifications to hostname, naming etc. This blog entry is mainly for me not to forget something.

1. Import Oracle Linux VM.
2. Update packages
    # yum update
    Afertwards reboot to start with updated kernel.
    # reboot
3. Upgrade VBox guest additions
4. Identify Oracle Linux Distribution
    # cat /etc/issue.net
5. Change Hostname
   a) Change Hostname in /etc/sysconfig/network
   b) Change Hostname in /etc/hosts
6. Changefixed IP address
   a) change in Menue -> Preferences -> Network Connections
   b) Change in /etc/hosts
7. Verify all changes during startup
    # reboot
    Hit the esc- button during startup to see detailed startup information.
    Verify that all services are ok.
8. Shrink VBox
    Finally it is good to shrink the image before exporting.
    See: http://fmw-deutsch.blogspot.de/2013/10/vbox-images-schrumpfen.html
    # dd if=/dev/zero of=zero.file
    When the comand has finished, delete the file and shutdown the VM:
    # rm zero.file
    # poweroff
    Navigat in a terminal to the *vdi file. Now shrink the file:
    VBoxManage modifyhd *.vdi --compact
9. Export the VM. Done.
    (Without shrinking my image size was 2.47GB, only 1.58GB after shrinking!)

Donnerstag, 4. Juli 2013

HowTo Install adobe flash player for firefox 64bit on Oracle Linux

  1. Get flash Player for Linux 64bit:
    http://get.adobe.com/flashplayer/
    I downloaded both, the
    - yum for linux (to easy get updates with yum in future)
    - *.tar.gz version
  2. Identify as root user and install yum version download with
    package installer or by command line as user root i.e.:
    # rpm -Uhv adobe-release-x86_64-1.0-1.noarch.rpm
  3. Now we have to move the "libflashplayer.so" into the mozilla plugin directory.
    1. Open a terminal window, become root user:
      # su -
      Unzip the *.tar.gz file
      # gunzip *.tar.gz
      The *.tar file remains.
      # tar -xf *.tar
      This should extract the "libflashplayer.so" file we need to move to the mozilla plugins directory.
    2. Verify the mozilla plugin directory exists:
      /usr/lib64/mozilla/plugins  (if the plugins directory does not exist, create it)
    3. Close your firefox, if it is still running.
    4. Copy the "libflashplayer.so" to the mozilla plugins directory:
      cp libflashplayer.so /usr/lib64/mozilla/plugins
  4. Open Firefox again and test your flash player configuration:
    http://www.adobe.com/uk/software/flash/about/

Freitag, 1. Februar 2013

Installing Oracle JDeveloper 11.1.1.6.0 on Mac OS X 10.8.2 Mountain Lion

1. Take care: Version Oracle JDeveloper 11.1.1.6.0 is not Version Oracle JDeveloper 11.1.1.6.0 !
There are more than one Version of Oracle JDeveloper 11.1.1.6.0
Both start with  Oracle JDeveloper 11.1.1.6.0



The latest version has *CLOUD* within the Version Title.
If you want to try Oracle Cloud, than you need to download this version in order to have the cloud connection availabe within the database navigator.

2. Download the Oracle Software:So you might want to download the latest Version 11.1.1.6.0.
(Although a Version Oracle JDeveloper 11g (11.1.2.3.0) (Build 6276.1) is availabe, this Version is not suitable if you want to build SOA, BPM, WebCenter or Oracle Cloud applications.
Download Oracle JDeveloper 11.1.1.6.0:
http://www.oracle.com/technetwork/developer-tools/jdev/downloads/jdeveloper11116-1377208.html

3. Install Oracle JDeveloper 11.1.1.6.0
ATTENTION: This not trivial as well. If you try to install Oracle JDeveloper 11.1.1.6.0 with JDK 1.7.x it will fail with error: "A fatal error has occurred.  This application will terminate."


So we need to start the installation with JDK 1.6.x.
But: you might kbow, that the responsibility for Java has been moved from Apple to Oracle...

Start your terminal.
java -version

java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)


Now we create a dummy folder with a symbolic link:
sudo mkdir -p /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/jre/lib

cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/jre/lib/

sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/classes/classes.jar rt.jar

Now we set the environment to Java 1.6.x:

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
export PATH=$JAVA_HOME/bin:$PATH

Now check the java version, again:
java -version

java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)


Perfect.
Now we can navigare to the download folder and start the installer:
java -jar jdevstudio11116install.jar

Your Oracle JDeveloper 11.1.1.6.0 install shoud be successful.

And now you should also be able to see the cloud connection option in the Database Navigator:
Enjoy!

Dienstag, 13. November 2012

Install and configure VirtualBox Image with Oracle Linux for Oracle Database and Oracle Fusion Middleware

Download required Software
- Oracle Linux 6
Install Virtual Box
- There should not be any difficulty. 
- After installing, start Virtual Box
  - Menue: Virtual Box - preferences:
    Tab Extensions: Install the Virtual Box Extensions if needed.

Create Virtual Maschine
- Menue: Maschine - New
- Name and operating system:
  - Name: OL6
  - Type: Linux
  - Version: Oracle (64 bit)
  -> continue
- Choose Memory size
  - depending on your host capabilities chaoose Memory size. For Oracle Database you shoud not
    start below 2GB of memory.
  - I choose 2048 MB
  -> continue
 - select to create a virtual hard drive now
   -> create
 - select hard drive type
   - VDI
   -> continue
 - select method to create storage
   - dynamically allocated
     (Tip: if you plan to install Oracle RAC choose fixed size to allocate the storage now)
   -> continue
 - file location and size
   (the file location is suggested by default - see VirtualBox preferences)
   - I use the suggested location and name: OL6
   - 100 GB (so it can grow)
   -> create
 - The VM envelope is created.

Configure VM settings
- We need to change some settings:
- Menue: Maschine - Settings
 - Tab: System
   - de-select Floppy
 - Tab: Storage
   - for the IDE controller point the location where you stored your Oracle Linux iso image:
     (I choose OracleLinux-R6-U3-Server-x86_64-dvd.iso)
 - Tab: Network
   - select to
     - create Adapter 2 - "host-only"
       (I do this, because my host is a laptop and I want to use it in several locations. So with adapter 1 I
       will configure a DHCP network, that always connect to the internet by defauld, so I am able to
       get packages etc. Databases and application servers need a fixed IP adress, so I will configure
       adapter 2 with a fixed IP adress, later.)
 - Tab: Shared Folders
   - enables to mount this location within my VM, so I can exchange files between Host and Guest.
   - I choose my Downloads directory, where I have downloaded the Oracle Datbase and WebLogic
     Server.
   - Folder name: Downloads
   - select auto-mount (so the folder will be mounted automatically when starting the VM)
   -> OK
------------------------
Sometimes, in addition the Host-only network needs defining:



 Thanks to Christian for the screen shots!
------------------------

Install Oracle Linux
- start the VM

- choose install or upgrade
-> enter
- once you have checkt the install media is ok ...
-> skip
 -> next
- choose the language for installation
-> next
- choose your keyboard
-> next
- choose the storage devices. I choose
- Basic Storage Devices
-> next
- specify the hostname. (i.e. ol6.de.oracle.com)
- ATTENTION:
-> click network settings
- select "connect automatically" in order to DHCP on startup
-> apply
-> next
- choose your time zone settings
-> next
- select and remember! your password for the admin user "root"
-> next
- as the 100GB parition is empty choose
- replace existing Linux Systems
- ATTENTION:
- "select "review and modify partitioning layout"
-> next
- the partition layout is not ideal. We will delete the "lv_home" partion and add this partion space to
  the "lv_root" partion
- choose "lv_home" partition
- delete 
- select the "lv_root" partion and enlarge it to the max available space (Max size is ...).
- 97864
-> OK
-> next
-> Format
- I do not change the boot loader settings
-> next
- for the software of the Linux Server select
- Basic Server
- ATTENTION:
- select "Customize now"
-> next 
 - Base System
   - select: Base
- Servers
  - select: Server Platform
- Desktop
  - select: Desktop, Graphical Administration Tools, X-Window System
- Applications
  - select: Internet Browser
- redy to install ...
-> next
- once the install and configuration finishs, click
-> Reboot
-> Forward 
- read the License Information
- choose to agree or not agree
-> Forward
- if you have an Oracle support contract, or like to initiate one, do so. For this howto I will do so later.
-> Forward
- skip to create a user. We will add a package in a later step, that not only creates a user, but also adds
  required groups and kernel settings and so on
-> Forward
- You can choose to sysnc system time. I do not choose this for this document
-> Forward 
- I skipp Kdump, although there might be a good reason for Kdump
- Finish
- the login screen appears. As we have only the root user so far, log in as
- root
- password you have set before
-> Log In
- first I add a Terminal start button to the panel
- then I delete the Mail Icon - we will not need it
- now we configure the server with a public-yum server, where to get the latest packages and security
  updates from Oracle
- start the firefox browser. Navigate tothe page
- public-yum.oracle.com
- scroll down the web page for the "howto configure with Oracle Linux 6"
- open a Terminal
- change to the directory: ("cd" means: change directory)
- cd /etc/yum.repos.d              (Linux differs between capital letters!)
- now we download the configuration fire with a command line browser wget:
- wget http://public-yum.oracle.com/public-yum-ol6.repo
- the file shoud be configured to automatically suggest the latest repoitory and Oracle Kernel setting
- if not, edit the file with the famous editor vi:
- vi public-yum-ol6.repo
- change enabled=0 to enable=1 if needed 
- now update the Linux packages:
- yum update
- y to update suggested updates.
- y for the keys
- the kernel updates need a restart of the system:
- reboot
- the following comands are just to chek the running kernel:
- uname -a
- while the lollowing lists installed Oracle kernels:
- rpm -q kernel-uek
- next we will prepare the Linux Server for Oracle. In Oracle Linux 5 the Package oracle-validated
  represented a package which creates the oracle user, required groups, sets kernel and security 
  parameters, limits etc. and required packages. With Oracle Linux 6 oracle-validated has been
  replaced by the package "oracle-rdbms-server-11gR2-preinstall" 
 
- to install the package is easy:
- yum install oracle-rdbms-server-11gR2-preinstall
- enter
- click y to apply
- now, the system also has all required files to build the vboxadditions:
- escape out of the VM (keys are shown in the corner right down: Left "cmd")
- autorun
-> OK
- now we need to set the password for the oracle user:
- passwd oracle
- (remember the password you set!)
- only a few steps to do
- define the fixed IP adress:
- Menue: System - Preferences - Network Connections
- System eth1 - edit
- ATTENTION:
- select connect automatically
- IPv4 Settings:
- Method: Manual
- Address: 192.168.56.60   (192.168.56.x is the defauld VBox network configuration)
- Netmask: 255.255.255.0
- Gateway: 192.168.56.1
-> apply
- now we need to configure the shared folder between Host and Guest VM. We need to add the VBox
  shared folder Group to the oracle user:
- Menue: System - Administration -Users and Groups
- select the oracle user:
  - properties - scroll down and select
  - vboxsf
  -> OK
- just before the final reboot we need to edit the hosts file:
- vi /etc/hosts
- add the following line:
- IP Address               fully qualifies hostname           alias
- 192.168.56.60          ol6.de.oracle.com                    ol6
- safe and close the file:
- esc
- :
- wq!
- check the network and loopback settings
- ping ol6
- ping ol6.de.oracle.com
- hostname


- create the folders for the oracle software install:
- mkdir /opt/oracle        (mkdir: make directory)
- chown -R oracle:oinstall /opt/oracle  (chown: change owner des verzeichnisses von root an oracle)
- chmod -R 775 /opt/oracle    (Berechtigungen ändern)

- finaly it is a good moment to backup our work:
- poweroff the VM.
- export the VM:
- Menue: File - export Appliance