Home » Infrastructure » Linux » ORA-27125 on Fedora Core 2
ORA-27125 on Fedora Core 2 [message #99091] Sat, 10 July 2004 11:12 Go to next message
Frank Naude
Messages: 4579
Registered: April 1998
Senior Member
Hi,

I had problems installing Oracle 10g on a FC2 (Fedore Core 2 Linux) machine a thought I'll share the solution here:

Problem: DBCA (Database Configuration Assistant) aborts with ORA-27125: unable to create shared memory segment

Solution: Execute the following commands from the "oracle" user:

cd $ORACLE_HOME/bin

mv oracle oracle.bin

cat >oracle <<"EOF"
#!/bin/bash
 
export DISABLE_HUGETLBFS=1
exec $ORACLE_HOME/bin/oracle.bin $@
EOF
 
chmod +x oracle


Best regards.

Frank
Re: ORA-27125 on Fedora Core 2 [message #99092 is a reply to message #99091] Mon, 12 July 2004 04:12 Go to previous messageGo to next message
Daljit Singh
Messages: 290
Registered: October 2003
Location: Texas
Senior Member
Hi Frank,

Well i am not aware about Fedore Core 2 Linux, but i also got the same problem on RedHat Linux AS 3.0 with oracle 9.2.

I resolved this problem by properly setting some kernel parameters like SHMMAX, SHMMIN etc. You also check whether this setting is required on Fedore Linux or not. if yes so, have u properly initialized that variables. After setting proper values to these variables i was able to resolve this problem, and i hope you would be too.

By the way, its nice to answering you.

Daljit Singh
Re: ORA-27125 on Fedora Core 2 [message #99094 is a reply to message #99092] Mon, 12 July 2004 08:07 Go to previous messageGo to next message
Frank Naude
Messages: 4579
Registered: April 1998
Senior Member
Hi,

Yes, nevertheless, I haven't mentioned it, as it is kind of "standard". The changes in my fist post was required because FC2 is using the 2.6 kernel.

For completeness sake, the following additional changes were made:

1) Added the following to /etc/sysctl.conf file and rebooted the machine:

# Kernel Parameters for Oracle 10.1.0 
kernel.shmall = 2097152 
kernel.shmmax = 2147483648 
kernel.shmmni = 4096 
kernel.sem = 250 32000 100 128 
fs.file-max = 65536 
net.ipv4.ip_local_port_range = 1024 65000


2) Changed my /etc/redhat-release file so runInstaller thinks it's a supported release:

Red Hat Enterprise Linux AS release 3 (Taroon)


3) Created "oracle" user with "dba" group, set ORACLE_HOME, ORACLE_SID , DISPLAY environment variables.

Etc...

Best regards.

Frank
Re: ORA-27125 on Fedora Core 2 [message #99098 is a reply to message #99091] Wed, 21 July 2004 02:00 Go to previous messageGo to next message
pete jackson
Messages: 1
Registered: July 2004
Junior Member
Hi,

applied Frank's fix DBCA starts but then seems to hang
at around 87% complete.

Pete
Re: ORA-27125 on Fedora Core 2 [message #99100 is a reply to message #99091] Wed, 21 July 2004 13:57 Go to previous messageGo to next message
Alejandro Almaraz
Messages: 1
Registered: July 2004
Junior Member
It works perfectly,

Thanks
Re: ORA-27125 on Fedora Core 2 [message #99103 is a reply to message #99091] Thu, 22 July 2004 16:07 Go to previous messageGo to next message
Hansjoerg
Messages: 3
Registered: July 2004
Junior Member
A shimmer of hope! Had tried several weeks now to come around this.

Unfortunately I do not yet succeed. When executing the above commands, my console closes when executing the "exec $ORACLE_HOME/bin/oracle.bin $@" command. Shell is bash. A text-only mode console logs out. I cannot enter the mentionned EOF <ctrl-d>.

So for a linux semi-administrator: what do the commands do? What do I do wrong?

Thx for help
Hansjoerg
Re: ORA-27125 on Fedora Core 2 - It runs! [message #99104 is a reply to message #99103] Thu, 22 July 2004 18:06 Go to previous messageGo to next message
Hansjoerg
Messages: 3
Registered: July 2004
Junior Member
Previous post of me is an error. I did not correctly "read" and understand that a script is created with the commands...

So not good enough yet for linux?

Thx
Hansjoerg
Re: ORA-27125 on Fedora Core 2 [message #99109 is a reply to message #99091] Tue, 27 July 2004 07:36 Go to previous messageGo to next message
john van der pol
Messages: 1
Registered: July 2004
Junior Member
Hi all

I tried it and many other solutions
I get DBCA running,but it dies telling it could not start PMON after 120 seconds
I tried making a database using http://www.akadia.com/services/ora_linux_install_10g.html
The database i got created after fixing a BUG in sql.bsq
(remove the return at line 5744)
After creating the paswd file (not mentioned in the above link)
orapwd file=orapwd<SID> password=secret
The script did work
after rebooting though it keeps complaining in Alert log
ORA-30012: undo tablespace 'UNDOTBS1' does not exist or of wrong type

isn't there a way to export the environment variable DISABLE_HUGETLBFS=1 so it will be part of all environments. somewhere when it boots. I also noticed that when oracle wants to bring online its database on boot time it crashes with the same old shared mem error.

In short can it be done or should i just install an older version of linux or oracle.

anyway i am quit stuck and about togive upuntil oracle delivers something decent ->no stupid error in scripts, better dealing with HUGETLBFS,or on FC3

whatever will be first.

Greetings and good luck John
Re: ORA-27125 on Fedora Core 2 [message #99112 is a reply to message #99109] Tue, 03 August 2004 19:45 Go to previous messageGo to next message
Saurabh Garg
Messages: 2
Registered: August 2004
Junior Member
Hey John,

No need to install the stuff at gentoo page. I was also getting the PMON thing. The trouble was because of previous instances of Oracle that I had installed. I deleted those directories completely. This time when I started the installer, it asked me to run a script as root - this script brought up CRS. I think CRS takes care of PMON. Hence this time around, combined with the Frank's trick, the dbca worked for me.

Best of luck,
-Saurabh
Re: ORA-27125 on Fedora Core 2 [message #99118 is a reply to message #99091] Tue, 10 August 2004 03:28 Go to previous messageGo to next message
Louise Martin
Messages: 1
Registered: August 2004
Junior Member
Thanks for sharing that ... it fixed my instance that would not start too!
Re: ORA-27125 on Fedora Core 2 [message #99120 is a reply to message #99094] Wed, 11 August 2004 08:39 Go to previous messageGo to next message
Harvinder
Messages: 1
Registered: August 2004
Junior Member
Well, I guess there is a bug in Oracle which they should fix.

I did the strace on the sqlplus and tracked the binary with tracing enabled for the child processes.

I came out the one of the child process is calling shmget wrongly. They are calling shmget(<foo>, <bar>, IPC_CREAT&#124IPC_EXCL&#124IPC_NOWAIT&#56443;&#56856;)) and its the IPC_NOWAIT which is failing in linux 2.6.x.

If you see the manpage of shmget, there is no such flag IPC_NOWAIT mentioned.

I guess the posix manpage of shmget also doesn't talk about IPC_NOWAIT flag.

So, in short its a bug in oracle and not an issue with linux 2.6.x
Re: ORA-27125 on Fedora Core 2 [message #99179 is a reply to message #99091] Sat, 18 September 2004 12:40 Go to previous messageGo to next message
Don
Messages: 24
Registered: June 2001
Junior Member
Hi Frank,

I have tried intalling 10g on core 2 several times. Everything seems to install but when it gets to the optional database creator assistant it has trouble. My question is do you put these commands in--before i launch the installer or when??

cd $ORACLE_HOME/bin

mv oracle oracle.bin

cat >oracle <<"EOF"
#!/bin/bash

export DISABLE_HUGETLBFS=1
exec $ORACLE_HOME/bin/oracle.bin $@
EOF

chmod +x oracle
Re: ORA-27125 on Fedora Core 2 [message #99184 is a reply to message #99092] Fri, 24 September 2004 07:39 Go to previous messageGo to next message
Karl Bergerson
Messages: 1
Registered: September 2004
Junior Member
I am looking forward to trying Frank's suggestion.
Relative to SHMMAX and SHMMNI, the settings of
2147483648 and 4096 respectively seem to be the
agreed upon values to be placed in /etc/sysctl.conf
Re: ORA-27125 on Fedora Core 2 [message #99192 is a reply to message #99091] Sat, 09 October 2004 06:24 Go to previous messageGo to next message
Christer
Messages: 2
Registered: October 2001
Junior Member
Works perfect.

Another installation issue is adding fedora-2 to the list of supported configurations. The file is in the distribution directory Disk1/install/oraparam.ini. Linux item should be :

Linux=redhat-2.1,UnitedLinux-1.0,redhat-3,fedora-2
Re: ORA-27125 on Fedora Core 2 [message #99206 is a reply to message #99179] Fri, 22 October 2004 19:07 Go to previous messageGo to next message
Kevin Ross
Messages: 3
Registered: October 2004
Junior Member
Here's what I did:

1. Ran the installer per oracle instructions
2. Waited to get the ORA-27125
3. Left the error dialog up and performed the fix
4. Pressed Abort
5. Retry failed configuration assistant

Success!
Re: ORA-27125 on Fedora Core 2 [message #99209 is a reply to message #99206] Wed, 27 October 2004 16:22 Go to previous message
Jiming LIu
Messages: 1
Registered: October 2004
Junior Member
Hi Kevin,
I did step 1, 2, 3, 4 showed in your note. When I continued the installation, the "Database Configuration Assistant" (Copy database files/Clone database creation in process) runs so slow, 2% forever. What am I missing?
Thanks.
Previous Topic: help: Oracle 9i on RH 7.3
Next Topic: install oracle 9.2.0.1.0 on RedHat 9.0
Goto Forum:
  


Current Time: Thu Apr 18 21:53:16 CDT 2024