Forums | Aggregator | Books | Industry News | Firefox Plugins | Social | Links

Comments

Oracle Database 10g (10.1.0.2) Installation On Fedora Core 4 - A brief guide to installing Oracle 10g (10.1.0.2) on Fedora Core 4.



Frank Vogel said...

Some problems I encountered (plus solutions):

When starting runInstaller:

Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2005-06-18_07-40-17PM/jre/1.4.2/lib/i386/libawt.so: /tmp/OraInstall2005-06-18_07-40-17PM/jre/1.4.2/lib/i386/libawt.so:

Tim... said...

Hi.

I've not seen any problems when the installation is done as specified in the article.

Cheers

Tim...

mehran said...

Followed instruction to the tee, no luck
Tried Both Enterprise & standard oracle
The software installation goes without any problem.
dabase creation (custom database) fails on Oracle Text/Intermedia or OLAP. basically when module issues
call dbms_java.grant_permission ('SYSTEM', java.io.FilePermission', '<>', 'read')
it crashes. alert.log reports ORA-07445. relink did not help. netmgr & lsnrctl working fine.
Back to FC3 :(

Tim... said...

Hi.

I've installed it a few times on Core 4 with no problems. All I can say is make sure you have the correct packages and kernel parameters and make sure secure linux is off.

Cheers

Tim...

Mehran said...

Hi
Tried again installing it via scripts. failes on
dbms_java.grant_permission('SYSTEM','java.io.FilePermission','<>', 'read');

in /home/oracle/10g/ord/im/admin/imprv.sql
kernel 2.6.11-1.1369_FC4smp (tried the latest kernel too)
oracle Auto mem 450M, pga 50 MB, 120 process dedicated server
NOTE: I have installed sample database via dbca, no problem there. custom database however fails

Tim... said...

Hi.

The custom database option works fine for me. Sorry, can't replicate your problem!

Perhaps you should try 10g Release 2. You might have better luck with that on FC4. I can't get either version to fail on FC4 with this error.

Cheers

Tim...

CD said...

Hi Everyone,

I followed these directions to install Oracle on Fedora Core, and it worked great. But, since I am not that advanced in linux, I had really hard time starting/stopping oracle automatically via init.d scripts.

After debugging rc calls, figured out the /etc/init.d/dbora script provided there and relevant directions does not work. Hence, I wanted to share my experience with you.

First of all, I looked at mysqld/httpd scripts in /etc/init.d and start run level there is 5, and stop runlevel is 6, so instead of 0 & 3 suggested on the web page above, I used the following links as follows:

ln -s /etc/init.d/dbora /etc/rc6.d/K10dbora
ln -s /etc/init.d/dbora /etc/rc5.d/S99dbora


Furthermore, the dbora script provided on the web page does not shutdown Oracle during a reboot, because fedora's /etc/rc.d/rc script checks to see if there is a file named /var/lock/subsys/dbora during the shutdown and if it can not find this file, it does not try to stop that service (simply skips it). Hence, the dbora script should be modified as below.

Hope this helps people.
Thanks...

#!/bin/bash

# Oracle auto start-stop script.
# Set ORA_HOME to be equivalent to the $ORACLE_HOME from which you wish to execute
# dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.

ORA_HOME=/home/oracle/dbms/product
ORA_OWNER=oracle

if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart
RETVAL=$?
[ $RETVAL = 0 ] && touch /var/lock/subsys/dbora
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop"
RETVAL=$?
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/dbora
;;
esac

Tim... said...

That's interesting. You're the second person that says the startup/shutdown script does not work for you. This is very odd as these scripts are provided by Oracle and are running perfectly for me in several environments on several linux versions, including FC4.

I guess your OS installation must be different to mine.

Thanks for the input.

Cheers

Tim...

CD said...

I don't remember if startup was working fine, I mean it worked fine, but I am not sure if it was working at runlevel 0 or 5.

shutdown was definitely not working, and the reason as I said is because /etc/rc.d/rc script explicitly checks for this /var/lock/subsys/dbora file and if it is not there, it does not even attempt to call dbora stop.

rcolmegna said...

with 512MByte RAM I needed to:

put into "/etc/rc.local" this lines:
echo "2097152" > /proc/sys/kernel/shmall
echo "250000000" > /proc/sys/kernel/shmmax

modify all "init*.ora" files under oracle-dir changing/adding
param value "shared_pool_size" setting it to "100000000".

Murat said...

Hi

These packages must be installed for FC4 and 10GR2

binutils-2.15.92.0.2-10.EL4
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2


Tim... said...

If you did the OS installation I suggested at the top of the article, many of these packages would be installed already. I only listed the additional packages, not provided by the base install.

Cheers

Tim...

Bill said...

I installed per directions. Additionally I used the following setup:

-------------------------
Windows 2000 client with:
WinSCP
Cygwin with X windows server
Putty with X11 forwarding enabled
Fedora Core 4 server:
Set up as recommended with DHCP option
Linksys router setup as DHCP server
All 100MB connctions.
-------------------------

Did the entire installation via Putty (with an X server running). Ran like a champ!! I run Oracle EM from the FC4 server over X using my client X server. I know this sounds like extra work, but it emulates my work environment to a tee.

Tips:
Get FC4 from BitTorrent. The ISOs I got from RedHat site wouldn't pass validity check.
I did have to install FC4 using a monitor, Kybd, and mouse to correctly setup X. After reboot, I was able to use cat5 cable only to access.

Thanks for the great info!!

mirats@vnn.vn said...

Hi, I want to install Oracle Database R1 (10.1.0.2) on FC4, but when runInstaller and there are message: "Operating system must be: redhat 2-1, United Linux 1.0 or Redhat 3.0"

Thanks for your helping

Tran

Tim... said...

Hi.

Read the article again and you will see it tells you to alter the contents of the "/etc/redhat-release" file. This allows the prerequisite check to pass.

Cheers

Tim...
PS. Please ask technical question in the forum. These notes are about aricle content only.

niru said...

Hi,

The following problem is on Oracle 10.1.0.5 on linux Linux 2.6.5-7.201-smp.

We installed a patch for 10.1.0.5 for Oracle on Linux which corrects a problem of removing unnecessary trace output from the kernel. However, after installing the patch, the Oracle server is core dumping and ending the client on the following SQL call.

SQL> call dbms_java.grant_permission('WLSQA2', 'java.io.FilePermission', '/tmp/Solbright.properties', 'read, write');
call dbms_java.grant_permission('WLSQA2', 'java.io.FilePermission', '/tmp/Solbright.properties', 'read, write')
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel

Any idea why this would happen?

Thanks
Niru

Tim... said...

Hi.

The fact that you are applying patches and worrying about core dump makes me believe you are using this system for more than just quck tests. You really need to use a supported OS if you are using this installation in anger. That way you can ask Oracle support for help.

Cheers

Tim...

prashant said...

hi,

i am installing oracle 10g R2 on fedora 5

after executing this command i got following java exceptions




[oracle@amdp2 ~]$ /osource/database/runInstaller -ignoreSysPrereqs
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Failed <<<<


>>> Ignoring required pre-requisite failures. Continuing...

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2006-07-28_01-09-18PM. Please wait ...[oracle@amdp2 ~]$ Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.

Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2006-07-28_01-09-18PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError: /tmp/OraInstall2006-07-28_01-09-18PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.(Unknown Source)
at java.awt.Component.(Unknown Source)
at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.(OiifmGraphicInterfaceManager.java:222)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)
at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
Exception in thread "main" java.lang.NoClassDefFoundError
at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.(OiifmGraphicInterfaceManager.java:222)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
at oracle.sysman.oii.oiif.oiifm.OiifmAlert.(OiifmAlert.java:151)
at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)



Tim... said...

Hi.

Try followng the installation guide for FC5, rather than thi FC4 guide, and read the last couple of comments that talk about the changes necessary when installing on a 64 bit environment.

Cheers

Tim...

sandro said...

Hi all did any one installed the oracle 8i on fedor 4..if plse can anyone explain me the procedure as i need it very uregently.

thanks in advance.!
:)

sandro said...

when i was trying to install iam getting this below error..!

[oracle@localhost linux]$ ./runInstaller
Initializing Java Virtual Machine from ../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/bin/jre. Please wait...
/media/cdrecorder/stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/lib/linux/native_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
Unable to initialize threads: cannot find class java/lang/Thread
Could not create Java VM


can any one help me..!

radhika said...

how can i check alert log

Tim... said...

Questions in the forum, not the comments please.

The alert log is located in the following directory:

$ORACLE_BASE/admin/SID/bdump/

Cheers

Tim...

Robert Bowell said...

I ran into a problem when odbca was running.. the error i got was Error ORA-12547: TNS: lost contact to solve this issue i ran the following -->> yum install libaio libaio-devel and restarted the installer.



vinod said...

sir i was trying to install oracle 10g (R1) on fedora core 4 .
i have followed all the steps given by you in your website sir .but i was no successful to start ./runInstaller.
the problem is with rpm - Uvh compat-gcc-32* & rpm -
Uvh compat- gcc-32-c++-3*
sir i was unable to install this to rpm downloaded
from www.redhat.com/fedora_project ..

plz help me sir
your student
vinod kumar

vinod kumar said...

sir n one more thing when i stated ./runInstaller
i am faceing d problem of java exception ( unknown)
i mean to say if i install those two rpm can i start
the ./runInstaller again and get oracle installed
successfully on my fedora core 4 system ?
and please tell me how can i install oracle 10g
(R1) on redhat 9.0

plz help me sir
your student
vinod

Tim... said...

Please ask questions in the forum. It's a lot easier to manage them there.

You have not explained why you can't install the RPMs. Open a forum thread and explain why the installation fails.

Cheers

Tim...

vinod said...

sir what rpm are required to install oracle 10g (R1) on fedora 7 .
i know all the steps of installation of oracle on fedora 7 but i do not know which rpm and which version has to be installed .




10q sir ...........
vinod

vinod said...

sir in your website u has explained about the installation of oracle 10g R2 on fedora 7. sir can i use the same steps and install oracle 10g R1 on fedora 7 . I mean to say that same rpms and same command .......





10q sir
vinod

S VISWANATHAN said...

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-08-25_11-13-07AM. Please wait ...bash-4.1$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-08-25_11-13-07AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.

Tim... said...

Hi.

Looks like you missed out the "rpm -Uvh xorg-x11-deprecated-libs-6*" package when you prepared your OS.

Fedora4 is very old. You should use Oracle Linux. It's free and supported for Oracle installations.

Cheers

Tim...
Prepared Statement Error: Table './oraclebasecms/cms_page_comment_uuids' is marked as crashed and should be repaired