Instalar Oracle 10g en Ubuntu La Efectiva
Instalar Oracle 10g en Ubuntu La Efectiva
Instalar Oracle 10g en Ubuntu La Efectiva
y y y
Then
extract
the
downloaded
file:
For the rest of this howto, we suppose Oracle will be installed at /opt/oracle Root directory.
We will have to: Create required users and groups accounts Set required system parameters in /etc/sysctl.conf Installing complementary packages
y y y
Creating Oracle user home and account: sudo mkdir -p /opt/oracle sudo useradd -g oinstall -G dba oracle sudo passwd oracle sudo chown -R oracle:oinstall /opt/oracle -d /opt/oracle -s /bin/bash
Adding nobody group to nobody user: sudo addgroup nobody sudo usermod -g nobody nobody
Check commands in Oracle documentation for this, section 6 Configuring Kernel Parameters. Then, edit the file /etc/sysctl.conf as described below:
Add the following lines: # Oracle 10g kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 32768 65000 # Replace kernel.shmmax with the half of your memory in bytes # 1073741824 is 1 GigaBytes kernel.shmmax=1073741824 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144 # To allow dba to allocate hugetlbfs pages # 1002 is your DBA group, id. grep dba /etc/group will give this value vm.hugetlb_shm_group = 1002
About HUGE
TLB.
This is needed on Ubuntu Karmic and was not required on Ubuntu Jaunty (kernel parameters Without this were parameters your apparently Oracle instance won't different). start.
You have to replace the value of 1002 with the group ID of the DBA group. Read this great howto install Oracle on debian to know more about huge tlb parameter.
# Oracle oracle oracle oracle oracle soft hard soft hard nproc nproc nofile nofile 2047 16384 1024 65536
Check that /etc/pam.d/login contains a line like this one: session required pam_limits.so
Install the following additional packages: sudo apt-get install gcc make binutils gawk x11 -utils rpm alien ksh lsb-rpm sudo apt-get install autotools -dev libltdl -dev sudo apt-get install --yes autoconf automake binutils bzip2 doxygen gcc less libc6 -dev make perl -doc unzip zlibc sudo apt-get install libaio1 lesstif2 libmotif3 libaio-dev
# Some of the ones below may not be needed, but as of many failures before getting it doing right, all these have been installed. sudo apt-get install libpthread -stubs0 libpthread -stubs0-dev libpth-dev libc6-i386 libc6 -dev-i386 sudo apt-get install g++ -multilib gcc -multilib
And also these below to try to get ride of link errors. sudo aptitude install lesstif2 -dev lib32stdc++6 lib32z1 sysstat rlwrap unixodbc unixodbc -dev elfutils
And to prevent from runInstaller terrific ./runInstaller: line 54: ./install/.oui: No such file or directoryerror message: sudo apt-get install ia32 -libs
Oracle 10g also needs libstdc++5 that is not provided with Ubuntu Karmic. There are many ways to install it, I have followed this howto to install libstdc++5 on Ubuntu Karmic
Aunque supongo que esta informacin es, probablemente, en otro lugar, puede ser difcil de encontrar.Por lo tanto, est a es la forma de instalar el de 32 bits. Deb de libstdc + +5 en un 64 bits del sistema Ubuntu.
1: Descargar el paquete deb de http://software.rachaelbond.com/libstdc++5_3.3. 6-15ubuntu4_i386.deb en su directorio home. 2: Abre un terminal y escriba los siguientes comandos: 3: ~ $ ar libstdc + +5 _3.3.6 vx -15ubuntu4_i386.deb 4: ~ $ tar xzvf data.tar . gz 5: ~ $ sudo instalar usr / lib / libstdc + + so.5.0.7 / usr/lib32. 6: ~ $ cd / usr/lib32 7:.. lib32 $ sudo ln-s libstdc + + so.5.0.7 libstdc + + para 0.5 8: cd ~ 9: rm-rf data.tar.gz usr control.tar.gz debian -binary libstdc + +5 _3.3.6-15ubuntu4_i386.deb Eso es todo!
mkdir /tmp/libstdc++5 cd /tmp/libstdc++5 wget http://mirrors.kernel.org/ubuntu/pool/u niverse/g/gcc 3.3/libstdc++5_3.3.... wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc 3.3/libstdc++5_3.3....
Now reboot your system to be sure these parameters will be taken in account for the next part of the installation.
Others configurations
Now, change default sh script by bash:
Then some others commands used by Oracle installer: sudo ln -s /usr/bin/awk /bin/awk sudo ln -s /usr/bin/rpm /bin/rpm sudo ln -s /usr/bin/basename /bin/basename
Connect as Oracle user and set some default startup file sudo su - oracle cd touch .bashrc ln -s .bashrc .bash_profile
Installing Oracle
Now we can start the installation of the Oracle 10g archive.
Allow others users to connect to your X session, by entering in a bash shell: xhost +
Go in the extracted database folder and run the following commands: export DISPLAY=:0 unset ORACLE_HOME unset TNS_ADMIN
./runInstaller -ignoreSysPrereqs
You will encounter this issue while linking : INFO: /usr/bin/ld: i386 architecture of input file `/product/10.2.0/db_1/sysman/lib/snmccolm.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `/product/10.2.0/db_1/sysman/lib/libnmccol.a(nmccole.o)' is incompatible with i386:x86 -64 output /usr/bin/ld: i386 architecture of input file `/product/10.2.0/db_1/sysman/lib/libnmcbuf.a(nmcbuft.o)' is incompatible with i386:x86 -64 output /usr/bin/ld: i386 architectur INFO: e of input file `/product/10.2.0/db_1/sysman/lib/libnmcbuf.a(nmcbufw.o)' is incompatible with i386:x86 -64 output /usr/bin/ld: i386 architecture of input file `/product/10.2.0/db_1/sysman/lib/libnmcbuf.a(nmcbufu.o)' is incompatible with i 386:x86-64 output /usr/bin/ld: i386 architecture of input file `/product/10.2.0/db_1/sysman/lib/libnmcbuf.a(snmcbufm.o)' is incompatible with i386:x86 -64 output /usr/bin/ld: i386 architecture of input file INFO: `/product/10.2.0/db_1/sysman/lib/libnmcbuf. a(nmcbuff.o)' is incompatible with i386:x86 -64 output /usr/bin/ld: i386 architecture of input file `/product/10.2.0/db_1/sysman/lib//libnmadbg.a(nmadbg.o)' is incompatible with i386:x86 -64 output /usr/bin/ld: i386 architecture of input file `/product/10.2. 0/db_1/sysman/lib//libnmadbg.a(snmadbg.o)' is incompatible with i386:x86 -64 output
Just ignore this error for the moment: I quote This can be ignored as we will not be using this function. (Its used by Oracle to check data on Oracle. Since Karmic isn't a supported o/s this can be ignored...) y I quote You can use "SQL Access" mode instead of "Memory Access" mode to check performance. So you can ignore this error. If you apply patchset 10.2.0.3 or 10.2.0.4 then relink of nmccollector will be succesfull.
The install process will finally ask you to execute scripts as root user, just do so: sudo /opt/oracle/oracle10gse/product/10.2.0/db_1/root.sh
First,
add
the
following
variable
declaration
in
your
oracle
user .profile, .bashrc or .bash_profile scripts: export ORACLE_HOME=/opt/oracle/oracle10gse/product/10.2.0/db_1 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib export PATH=$PATH:$ORACLE_HOME/bin
Then start a new shell or execute one of the updated files: source .bashrc
Finally, to manually start Oracle, run these commands as oracle user lsnrctl start dbstart
You may encounter this error Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr. Also your database may not start. Then, first check in /etc/oratab that it has the 'Y' flag, if not, set it. sudo gedit /etc/oratab
And replace N by Y
orcl:/opt/oracle/oracle10gse/product/10.2.0/db_1:Y
To
get
ride
of
this
the Failed
to
auto-start
Oracle
Net
Listene
using
/ade/vikrkuma_new/oracle/bin/tnslsnr message, edit dbstart script and replace the hardcoded path with $ORACLE_HOME which dbstart #/opt/oracle/oracle10gse/product/10.2.0/db_1/bin/dbstart gedit /opt/oracle/oracle10gse/product/10.2.0/db_1/bin/dbstart
And edit this part of script # Set this to bring up Oracle Net Listener ORACLE_HOME_LISTNER=$ORACLE_HOME
Just entry the following commands with Oracle user: dbshut lsnrctl stop