前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >专栏 >安装Oracle时可能碰到的常见问题-1

安装Oracle时可能碰到的常见问题-1

作者头像
bisal
发布于 2019-01-29 03:23:10
发布于 2019-01-29 03:23:10
9450
举报

安装Oracle可能有些人认为是一件很简单的事情,但其实是在安装的过程中蕴含着丰富的知识点,尤其安装在Linux平台,可能会碰到这样或那样各种诡异的问题,透过问题看到本质,这才是从深处理解Oracle的精髓,至少我是这样认为的,欢迎拍砖。。。

下面就分几个场景,说明下安装过程中可能碰到的一些问题或知识点,也欢迎其他朋友碰到过其他一些安装问题的,可以补充进来,一是让我们温故知新,二是可以给其他人提供一些借鉴,少走一些弯路。

场景1:安装VNC Server

因为大多数的安装都是从远程客户端登录进行的,不是直接登录到服务器上操作,但如果没有选择silent静默安装,则需要图形化界面的支持,所以常用的方法就是首先在服务器上安装VNC Server,然后使用VNC远程登录到服务器图形界面中执行安装操作。

Linux安装VNC Server有几种方法:

1. 下载VNC的rpm,使用rpm -ivh ***安装,例如:rpm -ivh vnc-E4_2_8-x64_linux.rpm,然后需要输入License,才能使用。我之前用过的一个License是WHJRK-UXY7V-Q34M9-CZU8L-8KGFA,但不保证一定可用。

2. 使用Linux安装光盘上的VNC。

3. 安装使用yum,(yum全称为Yellow dog Updater, Modified,是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。基於RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。)

例如:

[root@localhost software]# yum install vnc Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package tigervnc.x86_64 0:1.0.90-0.17.20110314svn4359.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================== Package                    Arch                     Version                                            Repository             Size ==================================================================================================================================== Installing: tigervnc                   x86_64                   1.0.90-0.17.20110314svn4359.el6                    dvd                   260 k Transaction Summary ==================================================================================================================================== Install       1 Package(s) Total size: 260 k Installed size: 651 k Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum.   Installing : tigervnc-1.0.90-0.17.20110314svn4359.el6.x86_64                                                                  1/1 Installed products updated.   Verifying  : tigervnc-1.0.90-0.17.20110314svn4359.el6.x86_64                                                                  1/1 Installed:   tigervnc.x86_64 0:1.0.90-0.17.20110314svn4359.el6                                                                                 Complete! 执行: [root@localhost bin]# ls -l vn* -rwxr-xr-x. 1 root root 594840 Nov 10  2011 vncviewer 查看到已经安装的是vncviewer,相当于客户端。 还需要安装server端: [root@localhost bin]# yum install tigervnc-server Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package tigervnc-server.x86_64 0:1.0.90-0.17.20110314svn4359.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================================================== Package                         Arch                   Version                                           Repository           Size ==================================================================================================================================== Installing: tigervnc-server                 x86_64                 1.0.90-0.17.20110314svn4359.el6                   dvd                 1.1 M Transaction Summary ==================================================================================================================================== Install       1 Package(s) Total download size: 1.1 M Installed size: 2.8 M Is this ok [y/N]: y Downloading Packages: tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64.rpm                                                   | 1.1 MB     00:00     Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction   Installing : tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64                                                           1/1 Installed products updated.   Verifying  : tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64                                                           1/1 Installed:   tigervnc-server.x86_64 0:1.0.90-0.17.20110314svn4359.el6                                                                          Complete! 再执行[root@localhost bin]# ls -l vn* -rwxr-xr-x. 1 root root  86472 Nov 10  2011 vncconfig -rwxr-xr-x. 1 root root  19912 Nov 10  2011 vncpasswd -rwxr-xr-x. 1 root root  20085 Nov 10  2011 vncserver -rwxr-xr-x. 1 root root 594840 Nov 10  2011 vncviewer 可以看到服务端需要的可执行文件都已经安装了,其中vncconfig是用于配置,vncpasswd是用于密码管理。 设置好VNC的密码之后,就可以启动VNC Server了。 [root@localhost ~]# vncserver New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/localhost.localdomain:1.log 但此时如果想登录到界面,还需要配置: 1. 防火墙,上面显示的是:1,就需要配置5901端口: [root@localhost ~]# iptables -I INPUT -p tcp --dport 5901 -j ACCEPT 2. 执行xhost +和配置DISPLAY,指示控制台可以显示到哪里, [root@localhost ~]# xhost + xhost:  unable to open display "" 直接执行xhost +会提示错误,此时应先配置DISPLAY变量: [root@localhost ~]# export DISPLAY=:0.0 再次执行: [root@localhost ~]# xhost + access control disabled, clients can connect from any host 客户端可以从任意host连接。 现在从本机使用vncviewer打开IP,可以显示一个图形界面,但奇怪的是只能看到一些选项,不能登录到界面:

如果配置VNC图形桌面环境为KDEGNOME桌面环境,还需要配置一个xstartup文件, [root@testdb ~]# vi /root/.vnc/xstartup 修改文件: #!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & twm & 保存之后重启一下VNCserver服务,方法: [root@localhost .vnc]# vncserver -kill :1 Killing Xvnc process ID 1527 [root@localhost .vnc]# vncserver New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/localhost.localdomain:1.log

再次使用vncviewer登录,就可以看到图形界面了。

场景2:系统配置参数

Linux安装Oracle,我认为最繁琐的地方就是设置系统配置参数,但Oracle 11g提供了更简洁的方法:

安装到最后一步,会检查不符合要求的环节,如上图所示,此时可以选择“Fix & Check Again”,提示需要执行脚本runfixup.sh,这个脚本的作用就是为适应安装会自动修改和配置这些不符合条件的系统参数,对于广大用户来说,绝对是件好事。

[root@localhost CVU_11.2.0.1.0_ora11g]# ./runfixup.sh

Response file being used is :./fixup.response

Enable file being used is :./fixup.enable

Log file location: ./orarun.log

Setting Kernel Parameters...

kernel.sem = 250 32000 100 128

fs.file-max = 6815744

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.wmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_max = 1048576

fs.aio-max-nr = 1048576

uid=501(ora11g) gid=102(oinstall) groups=102(oinstall),101(dba)

关于此脚本的说明,可以看下侯大师的介绍(http://blog.itpub.net/519536/viewspace-619629/),同时他指出如果研究下这些脚本,亦可写出一个通用的系统配置参数自动修正脚本,这样其他版本的安装仍可使用,但前提是要绝对通用。

场景3:未做的配置

按照官方文档,可能有些操作未必是需要的,至少我安装的过程中,以下步骤是没做的:

1. selinux未关。

2. /etc/pam.d/login未配置。

3. 未在profile中配置:

if [ $USER = "oracle" ]; then

    if [ $SHELL = "/bin/ksh" ]; then

        ulimit -p 16384

        ulimit -n 65536

    else

        ulimit -u 16384 -n 65536

    fi

fi

To be continued ...

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2014年08月01日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
centos7安装配置vncserver
在windows下载vncvivewer。安装。打开。 在Linux界面(你自己的用户下)运行vncserver(就是在cmd 行输入vncserver,看看跳出来的是多少号,记录这个号码,作为端口号), 我运行性的结果如下:
菲宇
2019/06/13
7.3K1
centos7安装配置vncserver
Linux系统之VNC服务设置方法
江湖有缘
2023/09/23
2.9K0
Linux系统之VNC服务设置方法
Linux 初始化检查列表2
内网的联通需要域名解析(或主机名解析),大的网络可以自己构建DNS服务器,小的网络可以使用 /etc/hosts 替代
franket
2021/11/26
7130
快速搭建 Git 服务器[Linux版]
找到server.httpBindInterface,设定服务器的IP地址。这里就设定你的服务器IP。
一觉睡到小时候
2020/06/03
1.6K0
总结CentOS开启VNC记录
[root@localhost ~]# gnome-panel --version Gnome gnome-panel 2.16.1
星哥玩云
2022/07/03
2.6K0
总结CentOS开启VNC记录
VNC的安装和配置
客户端是vncviewer,我这里是Windows系统,下载对应的vnc安装包HA-vnc-4.0-x86_win32-KC.exe 安装选择只安装VNC Viewer即可。
Alfred Zhao
2019/05/24
4.7K0
一键安装VNC脚本
在linux服务器上安装 VNC (Virtual Network Console),即虚拟网络控制台,它是一款基于 UNIX 和 Linux 操作系统的优秀远程控制工具软件,由著名的 AT&T 的欧洲研究实验室开发,远程控制能力强大,高效实用,并且免费开源。
summerking
2022/09/19
2K0
一键安装VNC脚本
x0vncserver 共享桌面
有些场景下,需要进行桌面演示,在 windows 里有很多软件可以满足此类需求,那在 Linux 里该如何实现呢
franket
2021/08/12
2.9K0
Centos 6.9下部署Oracle 11G数据库环境的操作记录
操作系统:Centos6.9(64Bit) Oracle:11g 、11.2.0.4.0版本 Ip地址:172.16.220.139 废话不多说了,下面记录安装过程: 1)安装桌面环境 [root@vm01 ~]# yum -y groupinstall "X Window System" [root@vm01 ~]# yum -y groupinstall "Desktop" [root@vm01 ~]# yum -y groupinstall "General Purpose Desktop" [ro
洗尽了浮华
2018/01/23
1.2K0
「linux学习」之vncServer安装
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
呆呆
2021/05/20
7840
Linux 安装VNC
[root@hadron ~]# yum search tiger 已加载插件:fastestmirror, langpacks Loading mirror speeds from cached hostfile  * base: mirrors.aliyun.com  * extras: mirrors.aliyun.com  * updates: mirrors.aliyun.com ========================================================== N/S matched: tiger ==================================================== tigervnc.x86_64 : A TigerVNC remote display system tigervnc-icons.noarch : Icons for TigerVNC viewer tigervnc-license.noarch : License of TigerVNC suite tigervnc-server.x86_64 : A TigerVNC server tigervnc-server-applet.noarch : Java TigerVNC viewer applet for TigerVNC server tigervnc-server-minimal.x86_64 : A minimal installation of TigerVNC server tigervnc-server-module.x86_64 : TigerVNC module to Xorg
程裕强
2022/05/06
9.9K0
Centos6.X 下安装并使用VNC的操作记录
VNC是一个的"远程桌面"工具。,通常用于“图形界面”的方式登录服务器,可视化操作。废话不多说了,操作记录如下: 1)安装桌面环境 [root@vm01 ~]# yum -y groupinstall "X Window System" [root@vm01 ~]# yum -y groupinstall "Desktop" [root@vm01 ~]# yum -y groupinstall "General Purpose Desktop" [root@vm01 ~]# yum groupinstall
洗尽了浮华
2018/01/22
2K0
RedHat6.2离线安装vncserver
•tigervnc-server-1.1.0-5.el6_4.1.x86_64.rpm
编程随想曲
2022/04/21
9140
centos vnc配置笔记
VNCSERVERS="1:myusername 15:otheruser"--->这里的1 和15是端口号,用于连接时的端口
Java架构师必看
2021/03/22
3.3K0
安装centos6.5 i686,安装vnc,配置中文界面
1.2、重启后修改分辨率,修改运行级别为3,然后重启 开机启动图形模式(5)、文本模式(3),文本模式没有x window运行,图形模式即使切换到文本模式控制台,x window仍然运行
全栈程序员站长
2022/09/01
1.6K0
centos8安装部署ovirt-engine
oVirt-engine既可以以虚机的形式部署在ovirt-node上,也可以部署在一台独立的服务器上(建议)
summerking
2022/11/24
1.4K0
CentOS6.3 x86_64位安装xfce4桌面vncserver服务
CentOS6.3 x86_64位安装xfce4桌面vncserver服务 注意这里用的是最小化安装纯净系统212个包CentOS-6.3-x86_64-minimal.iso 1,wget http://mirrors.sohu.com/fedora-epel//6/x86_64/epel-release-6-7.noarch.rpm    rpm -ivh epel-release-6-7.noarch.rpm 其目的是生产epel的yum源文件 # ls CentOS-Base.repo  CentOS-Base.repo.bak  CentOS-Debuginfo.repo  CentOS-Media.repo  CentOS-Vault.repo  epel.repo  epel-testing.repo 2,# yum groupinfo xfce Loaded plugins: fastestmirror, presto Setting up Group Process Loading mirror speeds from cached hostfile  * epel: kartolo.sby.datautama.net.id epel/group_gz                                                                                                                         | 229 kB     00:05     Group: Xfce  Description: 一个能在低端机器上良好运行的轻便桌面环境。  Mandatory Packages:    Thunar    xfce-utils    xfce4-panel    xfce4-session    xfce4-settings    xfconf    xfdesktop    xfwm4  Default Packages:    NetworkManager-gnome    Terminal    gdm    leafpad    openssh-askpass    orage    polkit-gnome    thunar-archive-plugin    thunar-volman    tumbler    xfce4-appfinder    xfce4-icon-theme    xfce4-mixer    xfce4-power-manager    xfce4-session-engines    xfwm4-theme-nodoka  Optional Packages:    xfwm4-themes  Conditional Packages:    pinentry-gtk 3,# yum -y groupinstall xfce 又安装了226个包,比系统212个还多 Installed:   NetworkManager-gnome.x86_64 1:0.8.1-33.el6          Terminal.x86_64 0:0.4.7-1.el6                       Thunar.x86_64 0:1.3.0-4.el6                         gdm.x86_64 1:2.30.4-33.el6_2                        leafpad.x86_64 0:0.8.18.1-1.el6                     openssh-askpass.x86_64 0:5.3p1-81.el6               orage.x86_64 0:4.8.1-3.el6                          pinentry-gtk.x86_64 0:0.7.6-6.el6                   polkit-gnome.x86_64 0:0.96-3.el6                    thunar-archive-plugin.x86_64 0:0.3.0-2.el6          thunar-volman.x86_64 0:0.6.0-2.el6                  tumbler.x86_64 0:0.1.21-1.el6                       xfce-utils.x86_64 0:4.8.3-1.el6                     xfce4-appfinde
三杯水Plus
2018/11/14
9550
Centos5.6 VNC安装配置【无错版】
http://blog.csdn.net/21aspnet/article/details/6997549
Java架构师必看
2021/03/22
9380
Oracle 19c 之 RPM 包安装初体验(一)
Oracle 自18c 开始,便已经提供Linux 环境单机的 rpm 安装方式,不过仅支持单实例安装,不支持集群,也只有企业版,其他版本的没有发布,不过有2.5 G 大小。
JiekeXu之路
2020/06/22
2.7K0
Oracle 19c 之 RPM 包安装初体验(一)
如何在 CentOS 8/RHEL 8 上安装配置 VNC 服务器
下面的简单指南可以帮助您在CentOS 8 / RHEL 8机器上安装VNC服务器。VNC(虚拟网络计算)服务器是基于GUI的桌面共享平台,允许您从安装了客户机的其他机器远程访问桌面。在CentOS 8和RHEL 8系统中,默认情况下未安装VNC服务器,需要手动安装。
星哥玩云
2022/07/29
5.5K1
如何在 CentOS 8/RHEL 8 上安装配置 VNC 服务器
相关推荐
centos7安装配置vncserver
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文