Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 450
  • Last Modified:

command not found

To install Oracle, i'm supposed to configure some parameters as follows

kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144


when i enter kernel.shmall = 2097152 at the command line
it returns :
bash: kernel.shmall:command not found.
The same for all the others.

# uname -r
will give me
2.6.9-34.EL
Running RedHat 4.
0
xoxomos
Asked:
xoxomos
  • 2
  • 2
1 Solution
 
ozoCommented:
Are you sure there should be . in the paramer names?
Are you sure they are supposed to be bash parameters?
0
 
xoxomosAuthor Commented:
No.  
Out of frustration i'm reinstalling from scratch.
KDe too confusing.
I just cut and pasted the commands from Oracle instructions.  I recall having done this part:
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
some time ago with no problem.
0
 
ozoCommented:
I suspect they must have been meant to be parameters for something other than bash
Was there anything before the commands that you cut?
0
 
xoxomosAuthor Commented:
I'm lots of fun to watch ozo1.  I'm supposed to concatenate that into /etc/sysctl.config file rather than trying to enter them as commands.

Configuring the Linux Kernel Parameters

The Linux kernel is a wonderful thing. Unlike most other *NIX systems, Linux allows modification of most kernel parameters while the system is up and running. There's no need to reboot the system after making kernel parameter changes. Oracle Database 10g Release 2 requires the kernel parameter settings shown below. The values given are minimums, so if your system uses a larger value, don't change it.

kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=262144net.core.wmem_default=262144net.core.rmem_max=262144net.core.wmem_max=262144
If you're following along and have just installed Linux, the kernel parameters will all be at their default values and you can just cut and paste the following commands while logged in as root.

cat >> /etc/sysctl.conf <<EOFkernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=262144net.core.wmem_default=262144net.core.rmem_max=262144net.core.wmem_max=262144EOF/sbin/sysctl -p

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now