没有合适的资源?快使用搜索试试~ 我知道了~
首页ubuntu14、16安装Oracle数据库的详细文档
资源详情
资源评论
资源推荐

ubuntu-14.04.1-server-amd64安装 Oracle_linux.x64_11gR2_database
1 参考《Ubuntu 系统安装.mm》《安装和配置 ubuntu 系统.doc》文档安装系统,并配置网络连接;
2 更新系统(联网情况下可选,需测试离线安装)
● 工具和用户:Xshell、root
● 1)使用 root 用户登录;
● 2)执行更新系统命令:
○ >>apt-get update
○ >>apt-get dist-upgrade
■ PS:须确认安装,选择 Y
3 安装 Ubuntu 桌面应用程序
● 工具和用户:Xshell、root
● 1)安装桌面程序命令:
○ >>apt-get install xubuntu-desktop
■ PS:须确认安装,选择 Y
4 安装 Oracle 所需的依赖包
● 工具和用户:Xshell、root
● 1)下载依赖包列表的命令:
○ >>apt-get install automake autotools-dev binutils bzip2 elfutils expat gawk gcc gcc-multilib
g++-multilib ia32-libs ksh less lesstif2 lesstif2-dev lib32z1 libaio1 libaio-dev libc6-dev
libc6-dev-i386 libc6-i386 libelf-dev libltdl-dev libmotif4 libodbcinstq4-1 libodbcinstq4-1:i386
libpth-dev libpthread-stubs0 libpthread-stubs0-dev libstdc++5 lsb-cxx make openssh-server pdksh
rlwrap rpm sysstat unixodbc unixodbc-dev unzip x11-utils zlibc
● 2)逐个安装依赖包列表
○ apt-get install automake
■ PS:更新
○ apt-get install autotools-dev
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install binutils
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install bzip2
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install elfutils
■ PS:更新
○ apt-get install expat
■ PS:更新
○ apt-get install gawk
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install gcc
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install gcc-multilib
■ PS:更新
○ apt-get install g++-multilib
■ PS:更新
○ apt-get install ia32-libs
■ PS:报错,提示见样例,安装替换文件
● 报错样例:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
lib32z1 lib32ncurses5 lib32bz2-1.0
○ apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
■ PS:更新
○ apt-get install ksh
■ PS:更新
○ apt-get install less
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install lesstif2
■ PS:报错,提示【Unable to locate package lesstif2】
■ PS:跳过
○ apt-get install lesstif2-dev
■ PS:报错,提示见样例,安装替换文件
● 报错样例:
root@VYSer13:~# apt-get install lesstif2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package lesstif2-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
■ PS:替换
● Replaces:
lesstif-dev
lesstifg-dbg
lesstifg-dev
libmotif-dev
○ apt-get install libmotif4
■ PS:更新
○ apt-get install lib32z1
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install libaio1
■ PS:更新
○ apt-get install libaio-dev
■ PS:更新
○ apt-get install libc6-dev
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install libc6-dev-i386
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install libc6-i386
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install libelf-dev
■ PS:更新
○ apt-get install libltdl-dev
■ PS:更新
○ apt-get install libodbcinstq4-1 libodbcinstq4-1:i386
■ PS:更新
○ apt-get install libpth-dev
■ PS:更新
○ apt-get install libpthread-stubs0
■ PS:报错,提示【Unable to locate package libpthread-stubs0】
○ apt-get install libpthread-stubs0-dev
■ PS:更新
○ apt-get install libstdc++5
■ PS:更新

○ apt-get install lsb-cxx
■ PS:更新
○ apt-get install make
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install openssh-server
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install pdksh
■ PS:更新
○ apt-get install rlwrap
■ PS:更新
○ apt-get install rpm
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install sysstat
■ PS:更新
○ apt-get install unixodbc
■ PS:更新
○ apt-get install unixodbc-dev
■ PS:更新
○ apt-get install unzip
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install x11-utils
■ PS:已存在【0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded】
○ apt-get install zlibc
■ PS:更新
5 创建用户(此步不能省略,不能使用 root 用户安装)
● 工具和用户:Xshell、root
● 参考命令
○ >>groupadd oinstall
○ >>groupadd dba
○ >>useradd -g oinstall -G dba -d /opt/oracle -s /bin/bash oracle
○ >>passwd oracle
■ oracle/oracle
● 使用 root 用户修改 oracle 用户密码
○ >>passwd oracle
■ oracle/oracle
6 检查并更新系统变量
● 工具和用户:Xshell、root
● 1)检查并记录系统变量
○ /sbin/sysctl -a | grep sem
■ root@VYSer13:~# /sbin/sysctl -a | grep sem
kernel.sem = 250 32000 32 128
kernel.sem_next_id = -1
○ /sbin/sysctl -a | grep shm
■ root@VYSer13:~# /sbin/sysctl -a | grep shm
kernel.shm_next_id = -1
kernel.shm_rmid_forced = 0
kernel.shmall = 2097152
kernel.shmmax = 33554432
kernel.shmmni = 4096
vm.hugetlb_shm_group = 0
○ /sbin/sysctl -a | grep file-max
■ root@VYSer13:~# /sbin/sysctl -a | grep file-max
fs.file-max = 200672
○ /sbin/sysctl -a | grep aio-max
剩余12页未读,继续阅读

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0