redhat安装oracle11g单实例软件建库

这篇具有很好参考价值的文章主要介绍了redhat安装oracle11g单实例软件建库。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

1、打开xmanager-passive
redhat安装oracle11g单实例软件建库
2、oracle 用户登录,开始安装

[root@rhel64 database]# su - oracle
[oracle@rhel64 ~]$ evn |grep oracle
-bash: evn: command not found
[oracle@rhel64 ~]$ evn | grep oracle
-bash: evn: command not found
[oracle@rhel64 ~]$ env | grep oracle 
USER=oracle
LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/usr/lib
ORACLE_BASE=/u01/app/oracle
MAIL=/var/spool/mail/oracle
PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
PWD=/home/oracle
HOME=/home/oracle
LOGNAME=oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
[oracle@rhel64 ~]$ more .bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
export PATH
umask 022 
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=PROD
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib 
export LC_CTYPE=en_US.UTF-8 export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
[oracle@rhel64 ~]$ export DISPLAY=192.168.186.1:0.0
[oracle@rhel64 ~]$ echo $DISPLAY
192.168.186.1:0.0
[oracle@rhel64 ~]$ cd /software/
[oracle@rhel64 software]$ ls
database                                p13390677_112040_Linux-x86-64_2of7.zip
grid                                    p13390677_112040_Linux-x86-64_3of7.zip
p13390677_112040_Linux-x86-64_1of7.zip
[oracle@rhel64 software]$ cd database/
[oracle@rhel64 database]$ ls
install      response  runInstaller  stage
readme.html  rpm       sshsetup      welcome.html
[oracle@rhel64 database]$ ./runInstaller 
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 7233 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 8095 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2023-06-17_12-32-30AM. Please wait ...[oracle@rhel64 database]$ 

弹出图形界面,取消勾选
redhat安装oracle11g单实例软件建库
跳过软件更新

redhat安装oracle11g单实例软件建库
选择第二行,只安装软件
redhat安装oracle11g单实例软件建库
安装单实例
redhat安装oracle11g单实例软件建库
英语
redhat安装oracle11g单实例软件建库
选择企业版
redhat安装oracle11g单实例软件建库
保持环境变量设置的默认值
redhat安装oracle11g单实例软件建库
默认补丁包目录,安装失败后该目录必须删除
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
环境检查报错,有需要安装包redhat安装oracle11g单实例软件建库
安装包

[root@rhel64 ~]# yum install elfutils* -y
[root@rhel64 ~]# yum install elfutils* -y
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Package elfutils-libelf-0.152-1.el6.x86_64 already installed and latest version
Package elfutils-0.152-1.el6.x86_64 already installed and latest version
Package elfutils-libs-0.152-1.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package elfutils-devel.x86_64 0:0.152-1.el6 will be installed
---> Package elfutils-libelf-devel.x86_64 0:0.152-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                     Arch         Version            Repository    Size
================================================================================
Installing:
 elfutils-devel              x86_64       0.152-1.el6        rhel64        68 k
 elfutils-libelf-devel       x86_64       0.152-1.el6        rhel64        31 k

Transaction Summary
================================================================================
Install       2 Package(s)

Total download size: 99 k
Installed size: 262 k
Downloading Packages:
--------------------------------------------------------------------------------
Total                                           1.6 MB/s |  99 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : elfutils-libelf-devel-0.152-1.el6.x86_64                     1/2
  Installing : elfutils-devel-0.152-1.el6.x86_64                            2/2
  Verifying  : elfutils-libelf-devel-0.152-1.el6.x86_64                     1/2
  Verifying  : elfutils-devel-0.152-1.el6.x86_64                            2/2

Installed:
  elfutils-devel.x86_64 0:0.152-1.el6
  elfutils-libelf-devel.x86_64 0:0.152-1.el6

Complete!

修改/etc/sysctl.conf,将aio-max-nr参数进行修改

[root@rhel64 ~]# vi /etc/sysctl.conf
[root@rhel64 ~]# tail -10 /etc/sysctl.conf

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
[root@rhel64 ~]# ^C

sysctl -p生效

[root@rhel64 database]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
[root@rhel64 database]#

安装pdksh-5.2.14失败,需要pdksh与 ksh冲突,先卸载rpm -e卸载KSH,后rpm -ivh安装PDKSH
将 pdksh-5.2.14-37.el5.x86_64.rpm上传到database目录,修改属主权限进行安装

[root@rhel64 ~]# yum install pdksh-5.2.14
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
No package pdksh-5.2.14 available.
Error: Nothing to do
[root@rhel64 ~]# cd /software/database/
[root@rhel64 database]# ll
total 268
drwxr-xr-x  4 oracle oinstall   4096 Aug 27  2013 install
-rw-r--r--  1 root   root     210482 Jun 17 01:14 pdksh-5.2.14-37.el5.x86_64.rpm
-rw-r--r--  1 oracle oinstall  30016 Aug 27  2013 readme.html
drwxr-xr-x  2 oracle oinstall   4096 Aug 27  2013 response
drwxr-xr-x  2 oracle oinstall   4096 Aug 27  2013 rpm
-rwxr-xr-x  1 oracle oinstall   3267 Aug 27  2013 runInstaller
drwxr-xr-x  2 oracle oinstall   4096 Aug 27  2013 sshsetup
drwxr-xr-x 14 oracle oinstall   4096 Aug 27  2013 stage
-rw-r--r--  1 oracle oinstall    500 Aug 27  2013 welcome.html
[root@rhel64 database]# ^C
[root@rhel64 database]# chown oracle:oinstall pdksh-5.2.14-37.el5.x86_64.rpm
[root@rhel64 ~]# rpm -e ksh
[root@rhel64 database]# ll
total 268
drwxr-xr-x  4 oracle oinstall   4096 Aug 27  2013 install
-rw-r--r--  1 oracle oinstall 210482 Jun 17 01:14 pdksh-5.2.14-37.el5.x86_64.rpm
-rw-r--r--  1 oracle oinstall  30016 Aug 27  2013 readme.html
drwxr-xr-x  2 oracle oinstall   4096 Aug 27  2013 response
drwxr-xr-x  2 oracle oinstall   4096 Aug 27  2013 rpm
-rwxr-xr-x  1 oracle oinstall   3267 Aug 27  2013 runInstaller
drwxr-xr-x  2 oracle oinstall   4096 Aug 27  2013 sshsetup
drwxr-xr-x 14 oracle oinstall   4096 Aug 27  2013 stage
-rw-r--r--  1 oracle oinstall    500 Aug 27  2013 welcome.html
[root@rhel64 database]# rpm -ivh pdksh-5.2.14-37.el5.x86_64.rpm
warning: pdksh-5.2.14-37.el5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
Preparing...                ########################################### [100%]
   1:pdksh                  ########################################### [100%]
[root@rhel64 database]#

重新检查通过check again,
安装失败,需删除/u01/app/oralnventory /u01/app/oracleredhat安装oracle11g单实例软件建库
提示root用户执行
/u01/app/oraInventory/orainstRoot.sh
redhat安装oracle11g单实例软件建库

[root@rhel64 database]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@rhel64 database]# /u01/app/oracle/product/11.2.0/dbhome_1/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/11.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
[root@rhel64 database]#

数据库软件完成安装
redhat安装oracle11g单实例软件建库
配置监听

用户oracle登录,执行netca

-bash: netcat: command not found
[oracle@rhel64 database]$ netca

Oracle Net Services Configuration:

redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
查看 监听状态

Oracle Net Services configuration terminated by user.  The exit code is -1
[oracle@rhel64 database]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 17-JUN-2023 01:36:29

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     PROD
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                17-JUN-2023 01:34:49
Uptime                    0 days 0 hr. 1 min. 40 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/rhel64/prod/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rhel64)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
[oracle@rhel64 database]$ 

建库dbca

[oracle@rhel64 database]$ dbca

redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
修改字符集
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
redhat安装oracle11g单实例软件建库
占击完成,创建数据库
redhat安装oracle11g单实例软件建库
如果遇到 0ra-00845错误
修改fstab参数,执行

[root@rhel64 database]# vi /etc/fstab
[root@rhel64 database]# more /etc/fstab

#
# /etc/fstab
# Created by anaconda on Fri Jun 16 17:12:35 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_rhel64-lv_root /                       ext4    defaults        1
1
UUID=b17fde30-d52f-4e97-b7e1-4f1bd0b237bc /boot                   ext4    defaul
ts        1 2
/dev/mapper/vg_rhel64-lv_u01 /u01                    ext4    defaults        1 2
/dev/mapper/vg_rhel64-lv_swap swap                    swap    defaults        0
0
tmpfs                   /dev/shm                tmpfs   defaults,size=2800M
  0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc 
[root@rhel64 database]# mount -o remount /dev/shm

redhat安装oracle11g单实例软件建库文章来源地址https://www.toymoban.com/news/detail-497978.html

到了这里,关于redhat安装oracle11g单实例软件建库的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • oracle11g 下载和安装

    下载Oracle11g软件 在Oracle官方网站上下载Oracle11g软件,官方网址为:https://www.oracle.com/database/technologies/112010-win64soft.html。 安装Oracle11g软件 下载完Oracle11g软件后,你需要按照以下步骤进行安装: 步骤1:解压缩下载的文件,找到setup.exe文件,并双击运行。 步骤2:在“选择安装类

    2024年02月14日
    浏览(39)
  • Oracle 11g图解安装方法

    Oracle 11g安装 解压下载的包,然后进入包内,点击setup.exe开始安装 。 出现如下:一般把那个小对勾取消,点击下一步进行, 弹出下图这个后点‘是’ 下图后,选择创建和配置数据库,点击下一步。 下图,选择服务器类,因为桌面类没有高级选项的功能,下一步。 下图,选

    2024年02月04日
    浏览(47)
  • Docker 安装Oracle 11g

    前言 想装个oracle又怕占内存,于是就想用docker装一个,在网上找了很多资料,期间遇见过很多的坑。下面是我总结并实验成功的方法,直接无脑粘贴复制 就行 docker-compose文件 创建文件夹 放入yml文件至/usr/local/docker/oracle 启动oracle 配置oracle 进入docker容器内部 使用内部root 用户

    2024年02月15日
    浏览(47)
  • Docker安装Oracle11g(安装简单)

    背景 在Linux中安装oracle非常麻烦,相信每个人也会遇到各种坑。为了一次装好,也方便将来直接可以导出镜像在各平台移植使用,所以选择用docker安装 Oracle。 使用官方镜像下载速度非常慢,因此,我们可以使用阿里镜像。 拉取镜像 拉取oracle_11g镜像 拉取oracle镜像(oracle 11.0

    2024年02月13日
    浏览(39)
  • Centos 7 安装 Oracle 11G

    准备环境 p13390677_112040_Linux-x86-64_1of7.zip p13390677_112040_Linux-x86-64_2of7.zip Centos 7- rhel7- 英文版的系统 –不想换语言的执行(LANG=en_US)– 传输 文件到服务器上 创建用户和组 解压文件 安装 ps: 最好使用代图形化界面的系统安装,使用xhell 会提示下载xmanager… 或者使用vnc 5.2 解决报错

    2024年02月16日
    浏览(43)
  • docker 方式安装ORACLE 11g

    参考:Docker 下拉取oracle 11g镜像配置_只叹奈何的博客-CSDN博客            https://blog.csdn.net/qq_38380025/article/details/80647620            docker 安装 oracle11g_征尘bjajmd的博客-CSDN博客 开始:  ①、开始拉取镜像-执行命令:          docker pull registry.cn-hangzhou.aliyuncs.com/helowin/or

    2024年02月13日
    浏览(39)
  • Oracle入门——Oracle 11g的下载安装与卸载

    官方地址:https://www.oracle.com/cn/database/technologies/microsoft-windows.html 下载这两个文件即可 下载后的文件如下 将他们同时解压 此时生成了一个database文件 进入database,双击setup安装 出现这种情况直接选是 去掉这个选项直接下一步 这里不用管他,直接选是 选择服务器类 选择高级

    2024年02月11日
    浏览(82)
  • docker下安装oracle11g(一次安装成功)

    本文参考:https://blog.csdn.net/Alex_81D/article/details/123995878 本文主要记录在docker下安装oracle11g的整体流程; 拉取 oracle 11g 镜像(有6g,要等较长的时间): 执行以下命令以创建并运行 Oracle 11g 容器(其中: 30026 为映射主机端口, 8081 为管理界面端口, helowin 为Oracle数据库唯一实例

    2024年02月08日
    浏览(37)
  • Oracle 11g版本下载及安装超详细教程图解

    目录 一、11g版本下载 1.oracle 11g官网(各个版本及服务端、客户端) 2.oracle 11g 迅雷下载地址(两个文件,下载完成后解压到一起,安装即可) 二、Oracle安装步骤图解 1.解压后放在同一路径,双击可执行安装文件【 setup.exe 】,等待文件加载。 2.如提示该窗口,点击【是】即可

    2024年01月16日
    浏览(39)
  • CentOS 7 上安装 Oracle 11g 数据库

    本博客将向您介绍在 CentOS 7 操作系统上安装 Oracle 11g 数据库的步骤,以及在 Oracle 数据库中创建表空间和用户的脚本。 首先,我们需要安装一些必要的软件和依赖项。在终端中执行以下命令: 为了确保安装的顺利进行,我们需要暂时关闭防火墙和 SELinux: Oracle 安装过程需要

    2024年02月10日
    浏览(48)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包