linux as 4 虚拟机 oracle 10g安装

本文详细介绍了如何使用迅雷下载并安装 Oracle 10g 的过程,包括检查系统需求、安装必备软件、配置网络、创建用户权限、环境变量设置、解压和执行安装脚本等步骤。

因为oracle10g 已经不提供下载地址了,可以根据 oracle下载 提供的下载地址去直接通过迅雷下载,第一次安装,我是根据老师的视频和自己的摸索,搞定了安装。

我结合我看的 那个甲骨论的老相视频 和   ORACLE数据库技术实用详解:教你如何成为10gocp.pdf  搞定了10g的安装。老相视频地址点击打开链接 第2、3部视频讲的就是安装,想学习安装的可以看看。

以下是我写的内容

1.首先肯定是打开官网安装文档 ,看看你的虚拟机上的条件是否满足,我根据多次蛋疼实验,建议硬盘搞个40g,内存1g


确认软件包都安装了,所有的哈,不然后面各种悲剧呀,后面的数字无所谓,可能版本区别。

官网上写的是这些:

查看是否安装,通过命令 rpm -qa |grep compat  来查看  compat 类似的包,其他的安装检测,就把 compat换成其他名字就行,如 rpm -qa |grep binutils

Red Hat Enterprise Linux 4.0 and Asianux 2.0:

binutils-2.15.92.0.2-13.EL4
compat-db-4.1.25-9
compat-libstdc++-296-2.96-132.7.2
control-center-2.8.0-12
gcc-3.4.3-22.1.EL4
gcc-c++-3.4.3-22.1.EL44
glibc-2.3.4-2.9
glibc-common-2.3.4-2.9
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-22.1
libstdc++-devel-3.4.3-22.1
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
setarch-1.6-1

但是千万要注意,你确定还有安装了这几个:

libao-0.8.5-2.EL.0.i386.rpm(这个我是安装在最前面的,注意 libao 和 libaio区别)

libaio-0.3.103-3.i386.rpm

libaio-devel-0.3.103-3.i386.rpm

2.确认这些安装成功后, vi  /etc/sysconfig/network-scripts/ifcfg-eth0查看 自己的ip地址情况,

需要修改的自己修改下,然后保存退出。service network restart 重启网络。

3. 编辑host文件  vi  /etc/hosts

在文件最后面输入如下内容:(rehat 是我的主机名   可以输入hostname 命令查看)

192.168.100.16    rehat
127.0.0.1         localhost                 localhost.localdomain
保存退出。

4。增加组和oracle成员

groupadd oinstall

groupadd dba

useradd -g oinstall -G dba oracle


然后给oracle设置密码,命令如下:

passwd oracle

5.这个是根据官方文档上面的说法: vi /etc/sysctl.conf 文件的最后面输入最先面的那些参数值, 从kernel.shmall 那里开始,前面的一些事有助于理解的东西。

If the value of any kernel parameter is different from the recommended value, then complete the following procedure:

Using any text editor, create or edit the /etc/sysctl.conf file, and add or edit lines similar to the following:

Note:
Include lines only for the kernel parameter values that you want to change. For the semaphore parameters (kernel.sem), you must specify all four values. However, if any of the current values are larger than the recommended value, then specify the larger value.

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
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144


6.也是根据官方文档上 分别  编辑  /etc/security/limits.conf      /etc/pam.d/login     /etc/profile   (注意都是分别加到文件内容的最后面
/etc/pam.d/login

/etc/pam.d/login

To increase the shell limits:

    Add the following lines to the /etc/security/limits.conf file:

    oracle              soft    nproc   2047
    oracle              hard    nproc   16384
    oracle              soft    nofile  1024
    oracle              hard    nofile  65536

    Add or edit the following line in the /etc/pam.d/login file, if it does not already exist:

    session    required     /lib/security/pam_limits.so
    session    required     pam_limits.so

    Depending on the oracle user's default shell, make the following changes to the default shell start-up file:

        For the Bourne, Bash, or Korn shell, add the following lines to the /etc/profile file (or the file on SUSE systems)/etc/profile.local:

        if [ $USER = "oracle" ]; then
                if [ $SHELL = "/bin/ksh" ]; then
                      ulimit -p 16384
                      ulimit -n 65536
                else
                      ulimit -u 16384 -n 65536
                fi
        fi

        For the C shell (csh or tcsh), add the following lines to the /etc/csh.login file (or the file on SUSE systems)/etc/csh.login.local:

        if ( $USER == "oracle" ) then
                limit maxproc 16384
                limit descriptors 65536
        endif

因为我的是linux 版本的,用的不是C shell ,最后一个文件的修改内容是

 if [ $USER = "oracle" ]; then
                if [ $SHELL = "/bin/ksh" ]; then
                      ulimit -p 16384
                      ulimit -n 65536
                else
                      ulimit -u 16384 -n 65536
                fi
        fi

7.创建oracle软件安装的目录:(这个是视频上讲的,放到 /u01 下, 我的由于磁盘问题,最后放到了/oracledir 下面,大体上差不多,主要是创建目录,给oracle权限)

mkdir  /u01/app/oracle -p

chown -R oracle:oinstall /u01

chmod -R 775  /u01

8.切换到oracle用户下,

输入: su - oracle  (注意- 和oracle 有空格 ,上面的所有操作都在root用户下运行,现在su - oracle 切换到oracle用户环境下,)

给oracle用户配置环境变量:

vi  .bash_profile (注意.bash_profile 的那个.)

export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=ora10g
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

(注意最后一个NLS_LANG ,我开始设置成american_america.zhs16gbk 小写的,可是不行,建议先大写,如果后面安装出现NLS错误,请在网上找找问题。)

然后输入 source .bash_profile (刷新oracle的环境)

9.后面就可以开始安装了,

解压10201_database_linux32.zip  ,然后进入解压目录, 找到 runInstaller

输入   ./runInstaller


后面就是普通的安装,但是到了后面安装成功后,需要执行那两个 .sh文件

(1)我的是安装在  /oracledir/app/oracle/oraInventory    一般的应该是在(/u01/app/oracle/oraInventory)

进入到那个目录 执行   ./orainstRoot.sh

(2) /oracledir/app/oracle/product/10.2.0/db1   运行 ./root.sh


大致的就是这些了,如果那里有问题,请大家批评指正,谢谢。














下载前必看:https://renmaiwang.cn/s/bvbfw Verilog设计_串并转换 / 移位寄存器实现了一种串并转换的功能,其核心原理在于移位寄存器的运用。 这里详细展示了串转并以及并转串两种不同的设计方案。 每一种转换模式都设有专属的使能信号,同时并行输出数据的格式提供了两种选择:最低有效位优先(lsb)和最高有效位优先(msb)。 串并转换技术主要应用于串行传输与并行传输这两种数据传输模式之间的相互转换,而移位寄存器是达成这一目标的常用工具,能够支持并行及串行的数据输入与输出操作。 这些移位寄存器通常被设定为“串行输入、并行输出”(SIPO)或“并行输入、串行输出”(PISO)两种工作模式。 在串行数据输出的过程中,构成数据和字符的码元会按照既定的时间顺序逐位进行传输。 相比之下,并行数据传输则是在同一时刻将固定数量(普遍为8位或16位等)的数据和字符码元同时发送至接收端。 数据输入通常采用串行格式进行。 一旦数据成功输入寄存器,它便可以在所有输出端同时被读取,或者选择逐位移出。 寄存器中的每个触发器均设计为边沿触发类型,并且所有触发器均以特定的时钟频率协同工作。 对于每一个输入位而言,它需要经过N个时钟周期才能最终在N个输出端呈现,从而完成并行输出。 值得注意的是,在串行加载数据期间,并行输出端的数据状态应保持稳定。 数据输入则采用并行格式。 在将数据写入寄存器的操作过程中,写/移位控制线必须暂时处于非工作状态;而一旦需要执行移位操作,控制线便会变为激活状态,并且寄存器会被锁定以保持当前状态。 只要时钟周期数不超过输入数据串的长度,数据输出端Q将按照预定的顺序逐位读出并行数据,并且必须明确区分最低有效位(LSB)和最高有效位(MSB)。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值