Welcome to the Oracle community forum and interact with 2 million technical staff to view available RAM and swap space. Run the following command: Example: # grepMemTotalprocmeminfoMemTotal: 512236kB # grepSwapTotalprocme
Welcome to the Oracle community forum and interact with 2 million technical staff> go to view available RAM and swap space, and run the following command: grep MemTotal/proc/meminfo grep SwapTotal/proc/meminfo example: # grep MemTotal/proc/meminfo MemTotal: 512236 kB # grep SwapTotal/proc/me
Welcome to the Oracle community forum and interact with 2 million technical staff> enter
To view the available RAM and swap space, run the following command:
Grep MemTotal/proc/meminfo grep SwapTotal/proc/meminfo example: # grep MemTotal/proc/meminfo MemTotal: 512236 kB # grep SwapTotal/proc/meminfo SwapTotal: 1574360 kB
Next, create a Linux Group and user account for installing and maintaining the Oracle 10g software. User accounts are called oracle, while groups are called oinstall and dba. Run the following command as the root user: /usr/sbin/groupadd oinstall/usr/sbin/groupadd dba/usr/sbin/useradd-m-g oinstall-G dba oracle id oracle example: #/usr/sbin/groupadd oinstall #/usr/sbin/groupadd dba #/usr/sbin/useradd-m-g oinstall-G dba oracle # id oracle uid = 501 (oracle) gid = 501 (oinstall) groups = 501 (oinstall), 502 (dba)
Set the password for the oracle account: passwd oracle example: # passwd oracle Changing password for user oracle. New password: Retype new password: passwd: all authentication tokens updated successfully.
Run the following command as the root user: mkdir-p/u01/app/oracle mkdir-p/u02/oradata chown-R oracle: oinstall/u01/app/oracle/u02/oradata chmod-R 775/u01/app/oracle/u02/oradata example: # mkdir-p/u01/app/oracle # mkdir-p/u02/oradata # chown-R oracle: oinstall/u01/app/oracle/u02/oradata # chmod-R 775/u01/app/oracle/u02/oradata
The Linux kernel is excellent. Unlike most other * NIX systems, Linux allows you to modify most Kernel Parameters during system startup and runtime. You do not have to restart the system after the Kernel Parameter is changed. The following Kernel Parameter settings are required for Oracle Database 10 GB. The minimum value is given, so if your system uses a large value, do not change it. 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
If you have installed Linux according to the preceding instructions and all kernel parameters use the default values, you only need to log on as the root user and run the following command. Cat>/etc/sysctl. conf <EOF 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 EOF/sbin/sysctl-p example: # cat>/etc/sysctl. conf <EOF> 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> EOF #/sbin/sysctl-p net. ipv4.ip _ forward = 0 net. ipv4.conf. default. rp_filter = 1 kernel. sysrq = 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/sbin/sysctl-a | grep shm/sbin/sysctl-a | grep sem/sbin/sysctl-a | grep file-max/sbin/sysctl- a | grep ip_local_port_range example: #/sbin/sysctl-a | grep shm kernel. shmmni = 4096 kernel. shmall = 2097152 kernel. shmmax = 2147483648 kernel. shm-use-bigpages = 0 #/sbin/sysctl-a | grep sem kernel. sem = 250 32000 100 128 #/sbin/sysctl-a | grep file-max fs. file-max = 65536 #/sbin/sysctl-a | grep ip_local_port_range net. ipv4.ip _ local_port_range = 1024 65000
If the system parameter settings are smaller than the preceding parameter values, edit the/etc/sysctl. conf file and add or modify these parameters. After completion, run the following command to activate the change:/sbin/sysctl-p
Source: http://blog.chinaunix.net/u/7369/showart_367279.html