Quck installing Oracle10g-x86_64 on debian-amd64 HOW-TO (courtesy of Vladimir Olenin)
I will not cover all the details of installing oracle in this HOW-TO - there are plenty of these
in internet, while instead i will focus on on debian-amd64
specific parts and known errors
so that anyone googling would find this brief explanation.
Step 1: downloading =)
Step 2: tweaking system
** Oracle checks operating system version: it must be
redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0,
asianux-1 or asianux-2 to continue. for some reason
--ignoreSysPrereqs option did not with me on
Oracle 10.2 (while working on Oracle 10.1), so I had
to imitate some redhat release:
vaha:~# echo "Red Hat Linux release 3.0"> /etc/redhat-release
** Some binary file locations differ on redhat and debian,
so you shall have to create several symlinks:
vaha:~# ln -s /usr/bin/awk /bin/awk
vaha:~# ln -s /usr/bin/rpm /bin/rpm
vaha:~# ln -s /etc /etc/rc.d
vaha:~# ln -s /usr/bin/basename /bin/basename
not symlinking basename will lead to strange linking errors
(I am posting them so anyone googling will find this lines)
/home/oracle/OraHome10g/lib//libagtsh.so: undefined reference to `nnfyboot'
** Download latest libaio source package,
build and install it (I used RedHat's srpm) - debian-amd64 does
not have it in repository (though it compiles clean out of the box).
The other way is (thanx to directhex@irc#debian-amd64)
to use debian source packages:
apt-get source libaio
cd libaio*
vim debian/control # add "amd64" to the Architecture line
dpkg-buildpackage -rfakeroot
dpkg -i .deb
NOT HAVING INSTALLED libaio will make dbca (or sqlplus) bail out with:
ORA-12547: TNS: Lost contact message.
** Install ia32 x11-locales into /emul directory.
(oracle itself is 64-bit, but installer is 32-bit
and bails out wanting original 32-bit locales).
3. TEMPORARY!!! Change x11-locales
vaha:~# cd /usr/X11R6/lib/X11
vaha:/usr/X11R6/lib/X11# mv locale locale.original
IXDBA.NET社区论坛
vaha:/usr/X11R6/lib/X11# ln -s /emul/ia32-linux/usr/X11R6/lib/X11/locale locale
4. run the ./runInstaller file
Everything should go smooth...
5. after all installation is complete RETURN BACK THE ORIGINAL
LOCALES!!!
vaha:~# cd /usr/X11R6/lib/X11
vaha:/usr/X11R6/lib/X11# rm locale
vaha:/usr/X11R6/lib/X11# mv locale.original locale
6. Create init scripts
vaha:~# cat >/etc/init.d/oracle
#!/bin/bash --login
#
# Run-level Startup script for the Oracle Instance and Listener
#
# chkconfig: 345 91 19
# description: Startup/Shutdown Oracle listener and instance
ORA_OWNR="oracle"
# if the executables do not exist -- display error
if [ ! -f $ORACLE_HOME/bin/dbstart -o ! -d $ORACLE_HOME ]
then
echo "Oracle startup: cannot start"
exit 1
fi
# depending on parameter -- startup, shutdown, restart