linux下数据库安装详细介绍
一、查看要求的装配包(和RHEL四有些小差别)
rpm -q binutils compat-db control-center gcc gcc-c++ glibc glibc-common libstdc++ libstdc++-devel make ksh sysstat libaio openmotif22 libXp
rpm -ivh compat-db
rpm -ivh kernel-headers
rpm -ivh glibc-headers
rpm -ivh glibc-devel
rpm -ivh libgomp
rpm -ivh gcc
rpm -ivh libstdc++-devel
rpm -ivh gcc-c++
rpm -ivh ksh
rpm -ivh sysstat
rpm -ivh openmotif22
rpm -ivh libXp
二、批改配置文件,增多oracle十G对RHEL五(或许CentOS五的支持)
#vi /etc/redhat-release,
剔除Red Hat Enterprise Linux Server release 五 (Tikanga)
增添redhat-四
#vi /etc/hosts
先诠释 127.0.0.1 localhost.domain localhost(否则也许到印证DHCP那步出现警告 )
增添 192.168.1.177 localhost.domain localhost
可能经过如次的形式,同样可以增多oracle十G对RHEL五的支持
--------------------------------------
#vi /database/install/oraparam.ini
[Certified Versions]
Linux=redhat-三,SuSE-九,redhat-四,redhat-五,UnitedLinux-1.0,asianux-一,asianux-二
and add
[Linux-redhat-5.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
--------------------------------------
三、在装配数据库软件过程中,或者碰到找不到libstdc++.so.五的问题,透过以次形式透过:
ln -s /usr/lib/libstdc++.so.六 /usr/lib/libstdc++.so.五
四、检察系统是不是满足装配oracle十G的最低要求:
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo (最好是内存储器2倍,而且大于即是二G,避免出现警告)
df -h
五、创设用户和组:
#groupadd oinstall
#groupadd dba
#useradd -m -g oinstall -G dba oracle
#id oracle
#passwd oracle
六、创设软件装配索引和数据库索引
mkdir -p /u01/app/oracle
mkdir -p /u02/oradata
chown -R oracle:oinstall /u01 /u02
chmod -R 775 /u01 /u02
七、配备系统内核
7.1
cat >> /etc/sysctl.conf <kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv四.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core
相关文档:
The
Java Console provides information about the Java Runtime Environment
(JRE) version, user home directory, and any error message that occurs
while running an applet or application. You can enable the Java Console
for the Linux platform.
......
Table of Contents, Show Frames, No Frames
第十五章 Linux核心数据结构
本章列出了Linux实用的主要数据结构。
block_dev_struct
此结构用于向核心登记块设备,它还被buffer cache实用。所有此类结构都位于blk_dev数组中。
struct blk_dev_struct {
void (*request_fn)(void);
struct request * curren ......
我们来配置一个filter表的防火墙
1、查看本机关于IPTABLES的设置情况
[root@tp ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source desti ......
可以采用sysV的shmget + shmat 实现。
但是我更喜欢shm_open + mmap 更简单。
#---------------------writer.c----------------------------
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
......
linux目录架构
/ 根目录
/bin 常用的命令 binary file 的目錄
/boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内
/boot/grub/menu.lst GRUB设置
/boot/vmlinuz 内核
&nbs ......