Install Oracle 11gR2 on Debian wheezy (RPM)

Source: Internet
Author: User
Tags ocaml

Install Oracle 11gR2 on Debian wheezy

Source:
http://gaiustech.wordpress.com/2013/06/26/howto-install-oracle-on-debian-wheezy/

Oracle 11gR2 on Debian still isn ' t an officially supported configuration (10g XE were for a while), but it's perfectly do- Able with a little cajoling. Here I am starting with a fresh installation of Debian 7.1 in a VirtualBox VMS with 1G memory and a 40G dynamically alloca Ted Virtual Disk. I installed just the base desktop + system utilities options from the DVD image. Once This is do I take a snapshot of it, which I can quickly clone whenever I need a new VM.

The first thing I want to do are get it set up the the-I like it, including patching to the latest Guest additions. In a root terminal (Applications→accessories→root terminal):
Add the following lines to the file/etc/sysctl.conf:

kernel.shmmax=1073741824
kernel.shmall=262143

and execute the following commands:
# apt-get Remove virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 Gnome-shell
# Apt-get Install Linux-headers-3.2.0-4-all
# Apt-get Autoremove
# Eject
# CD/MEDIA/CDROM0
# sh Vboxlinuxadditions.run
# reboot

After ejecting the distro ISO, insert the Guest Editions. This is a while (esp. the Autoremove).

After the system would boot into the console, Old-skool style. After logging of type startx to get the desktop (but not need if you just want to use the VM to run the DB server). It'll be is the less resource-guzzling Classic desktop only. I also disable screen locking and enable automatic login, since those is actually taken care of by the host machine (an M BP in the case):

Applications→system Tools→preferences→system settings→user accounts→automatic Login
Applications→system Tools→preferences→system settings→brightness and Lock
Now I am ready to begin the actual Oracle installation, starting with the prereqs. Many of these would fail the Oracle installer PreCheck, e.g. it wants make 3.8 whereas Wheezy comes with 3.81!

# apt-get Install Libaio-dev sysstat unixodbc-dev libelf-dev unzip g++ Libstdc++6-4.7-dev libstdc++5

and create the users and groups necessary, and open up the display so this new user can see it:

# Groupadd DBA
# useradd-d/home/oracle-m-C "Oracle Database"-G dba-s ' which bash ' Oracle
# mkdir/opt/oracle
# mkdir/opt/orainventory
# Mkdir/oradata
# chown Oracle:dba/opt/oracle/opt/orainventory/oradata
# Xhost +

Next do some fakery to make it look like Red Hat/oel (all these appear to being hard-coded paths in the Oracle tools):
# ln-s/usr/bin/basename/bin/basename
# ln-s/usr/bin/awk/bin/awk
# ln-s/usr/lib/i386-linux-gnu/libpthread_nonshared.a/usr/lib
# ln-s/usr/lib/i386-linux-gnu/libc_nonshared.a/usr/lib
# ln-s/lib/i386-linux-gnu/libgcc_s.so.1/lib
# ln-s/usr/lib/i386-linux-gnu/libstdc++.so.6/usr/lib

Go and fetch the software from OTN (11.2.0.1) or if you had access to Metalink, just grab patch 10404530 which would take You straight to 11.2.0.3. Unzip these into/home/oracle where it'll create a database/folder. In a Root Terminal, su-oracle and:

$ for f in *.zip; Do unzip $f; Done
$ CD database/
$ Export display=:0.0
$ Export Oracle_base=/opt/oracle
$ export Oracle_home= $ORACLE _base/product/11.2.0.3
$ export path= $PATH: $ORACLE _home/bin
$ export ld_library_path= $LD _library_path:/usr/lib/i386-linux-gnu:/bin/lib:/lib/i386-linux-gnu/:/usr/lib
$./runinstaller

Proceed through the installer, selecting the appropriate options for the installation you want (or just accept the default s If you is not sure). I am using

Oracle_base=/opt/oracle
oracle_home=/opt/oracle/product/11.2.0.3
Datafiles In/oradata, Inventory in/opt/orainventory
Install software only, single instance, Enterprise Edition.
Skip all the prereq checks–they is there even tho ' the GUI installer doesn ' t recognize them as such, the underlying SCR IPTs and the linker would. The installation would fail when relinking "Agent NHMs" due to a change in the behavior of the linker. The clue is in the log message:

/usr/bin/ld:note: ' B_destroykeyobject ' is defined in DSO

/opt/oracle/product/11.2.0.3/lib/libnnz11.so so try adding it to the linker command line

We can fix that in the Makefile $ORACLE _home/sysman/lib/env_emagent.mk by replacing:


nnmefet_stacklibs_link=$ (Ldpathflag) $ (oracle_home)/$ (libdir) $ (ldpathflag) $ (prodlibhome) $ (LLIBNMEMSO) $ (LLIBCORE )-wl,-rpath,$ (Agentrpath): $ (Java_rtlink_path) $ (lib_jvm_link)-wl,--allow-shlib-undefined

With


nnmefet_stacklibs_link=$ (Ldpathflag) $ (oracle_home)/$ (libdir) $ (ldpathflag) $ (prodlibhome) $ (LLIBNMEMSO) $ (LLIBCORE )-lnnz11-wl,-rpath,$ (Agentrpath): $ (Java_rtlink_path) $ (lib_jvm_link)-wl,--allow-shlib-undefined

and clicking Retry. Now I can create a database with DBCA. There is one customization I do to the startup parameters to avoid a crash in the Oracle JVM (still known as Aurora inte rnally!) While creating the data dictionary, set java_jit_enabled from TRUE to FALSE in the advanced Parameters:

Congratulations, you are now having a working Oracle installation on a halfway sane Linux distro! Of course this was all moot since 12c was out now; The same steps should apply, I would update when I had had a chance to try it.

Finally I Install some software that I-like, again in a Root Terminal (you can skip this step if you don ' t plan to does any OCaml development!):

# apt-get Install hardening-wrapper hardening-includes git ocaml-batteries-included ocaml-mode rlwrap gnome-screenshot Strace Valgrind

Settings for environment variables after installation

Export Oracle_base=/u01/app/oracle
Export Oracle_home=/u01/app/oracle
Export Oracle_sid=test
Export path= $ORACLE _home/bin: $PATH: $HOME/bin


Http://www.cnblogs.com/xzpp/p/3572307.html

Install Oracle 11gR2 on Debian wheezy (RPM)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.