zoukankan      html  css  js  c++  java
  • centos7.6安装Oracle11g过程记录(下)

    Last login: Fri Mar 1 07:36:37 2019 from 10.0.0.3
    --------------------解压Oracle安装包
    [root@vmhzporacle home]# rar x oracle-11.2.0.4.rar /data/database

    RAR 5.50 Copyright (c) 1993-2017 Alexander Roshal 11 Aug 2017
    Trial version Type 'rar -?' for help


    Extracting from oracle-11.2.0.4.rar

    se/oracle-11.2.0.4/database/stage/Components/oracle.perlint/5.10.0.0.2/1/DataFiles/filegroup4.jar OK
    Extracting /data/database/oracle-11.2.0.4/database/stage/Components/oracle.perlint/5.10.0.0.2/1/DataFiles/filegroup5.jar OK
    Creating /data/database/oracle-11.2.0.4/database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/Expanded/filegroup15 OK
    Extracting
    All OK

    [root@vmhzporacle home]# cd /data/database
    [root@vmhzporacle database]# ls
    oracle-11.2.0.4
    [root@vmhzporacle database]# cd oracle-11.2.0.4
    [root@vmhzporacle oracle-11.2.0.4]# ls
    database
    [root@vmhzporacle oracle-11.2.0.4]# cd database
    [root@vmhzporacle database]# ls
    install response runInstaller stage
    readme.html rpm sshsetup welcome.html

    [root@vmhzporacle database]# pwd
    /data/database/oracle-11.2.0.4/database
    [root@vmhzporacle database]# chown -R oracle:oinstall /data/database/oracle-11.2.0.4/database
    [root@vmhzporacle database]# su - oracle
    [oracle@vmhzporacle ~]$ cd /data/database/oracle-11.2.0.4/database
    [oracle@vmhzporacle database]$ ls
    install response runInstaller stage
    readme.html rpm sshsetup welcome.html
    [oracle@vmhzporacle database]$ export DISPLAY=172.16.1.153:0.0
    [oracle@vmhzporacle database]$ xclock
    ^C
    [oracle@vmhzporacle database]$ ./runInstaller
    -bash: ./runInstaller: Permission denied
    [oracle@vmhzporacle database]$ ls -l
    total 44
    drwxr-xr-x 4 oracle oinstall 235 Aug 27 2013 install
    -rw-r--r-- 1 oracle oinstall 30016 Aug 27 2013 readme.html
    drwxr-xr-x 2 oracle oinstall 58 Aug 27 2013 response
    drwxr-xr-x 2 oracle oinstall 33 Aug 27 2013 rpm
    -rw-r--r-- 1 oracle oinstall 3267 Aug 27 2013 runInstaller
    drwxr-xr-x 2 oracle oinstall 28 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

    [oracle@vmhzporacle database]$ su - root
    Password:
    Last login: Fri Mar 1 07:55:28 CST 2019 from 172.16.5.80 on pts/0

    [root@vmhzporacle database]# chmod -R 777 /data/database/oracle-11.2.0.4/database
    [root@vmhzporacle database]# chmod -R 777 /data/database/oracle-11.2.0.4[root@vmhzporacle database]# pwd
    [root@vmhzporacle database]# ls
    install response runInstaller stage
    readme.html rpm sshsetup welcome.html
    [root@vmhzporacle database]# ./runInstaller

    The user is root. Oracle Universal Installer cannot continue installation if the user is root.
    : No such file or directory

    [root@vmhzporacle database]# su - oracle
    Last login: Fri Mar 1 08:02:08 CST 2019 on pts/0
    [oracle@vmhzporacle ~]$ cd /data/database/oracle-11.2.0.4/database
    [oracle@vmhzporacle database]$ ls
    install response runInstaller stage
    readme.html rpm sshsetup welcome.html
    [oracle@vmhzporacle database]$ ./runInstaller
    Starting Oracle Universal Installer...

    Checking Temp space: must be greater than 120 MB. Actual 3530 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 615 MB Passed
    Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

    Some requirement checks failed. You must fulfill these requirements before

    continuing with the installation,

    Continue? (y/n) [n] n

    User Selected: No

    Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2019-03-01_08-08-31AM/installActions2019-03-01_08-08-31AM.log

    [oracle@vmhzporacle database]$ su - root
    Password:
    Last login: Fri Mar 1 08:06:41 CST 2019 on pts/0
    [root@vmhzporacle ~]# display=:0.0;
    [root@vmhzporacle ~]# export display
    [root@vmhzporacle ~]# echo $display
    :0.0
    [root@vmhzporacle ~]# xhost +
    xhost: unable to open display ""

    [root@vmhzporacle ~]# yum install-y xterm
    Loaded plugins: fastestmirror, langpacks
    No such command: install-y. Please use /bin/yum --help
    [root@vmhzporacle ~]# yum install -y xterm
    Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
    * base: mirrors.cn99.com
    * epel: mirrors.tuna.tsinghua.edu.cn
    * extras: mirrors.aliyun.com
    * updates: mirrors.aliyun.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package xterm.x86_64 0:295-3.el7 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ========================================================================
    Package Arch Version Repository Size
    ========================================================================
    Installing:
    xterm x86_64 295-3.el7 base 455 k

    Transaction Summary
    ========================================================================
    Install 1 Package

    Total download size: 455 k
    Installed size: 1.2 M
    Downloading packages:
    xterm-295-3.el7.x86_64.rpm | 455 kB 00:00
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Installing : xterm-295-3.el7.x86_64 1/1
    Verifying : xterm-295-3.el7.x86_64 1/1

    Installed:
    xterm.x86_64 0:295-3.el7

    Complete!
    [root@vmhzporacle ~]# xhost +
    xhost: unable to open display ""
    [root@vmhzporacle ~]# xhost +
    xhost: unable to open display ""
    [root@vmhzporacle ~]# su - oracle
    Last login: Fri Mar 1 08:08:16 CST 2019 on pts/0

    [oracle@vmhzporacle ~]$ ls
    [oracle@vmhzporacle ~]$ cd /data
    [oracle@vmhzporacle data]$ ls
    database oraInventory oracle
    [oracle@vmhzporacle data]$ cd database
    [oracle@vmhzporacle database]$ ls
    oracle-11.2.0.4
    [oracle@vmhzporacle database]$ cd oracle-11.2.0.4
    [oracle@vmhzporacle oracle-11.2.0.4]$ ls
    database
    [oracle@vmhzporacle oracle-11.2.0.4]$ cd database
    [oracle@vmhzporacle database]$ ls
    install response runInstaller stage
    readme.html rpm sshsetup welcome.html
    [oracle@vmhzporacle database]$ ./runInstaller
    Starting Oracle Universal Installer...

    Checking Temp space: must be greater than 120 MB. Actual 3528 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 615 MB Passed
    Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<

    Some requirement checks failed. You must fulfill these requirements before

    continuing with the installation,

    Continue? (y/n) [n] y


    >>> Ignoring required pre-requisite failures. Continuing...
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-03-01_08-21-43AM. Please wait ...
    DISPLAY not set. Please set the DISPLAY and try again.
    Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:
    - For csh: % setenv DISPLAY 192.168.1.128:0.0
    - For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY
    Use the following command to see what shell is being used:
    echo $SHELL
    Use the following command to view the current DISPLAY environment variable setting:
    echo $DISPLAY
    - Make sure that client users are authorized to connect to the X Server.
    To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:
    % xhost +
    To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':
    % <full path to xclock.. see below>
    If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.
    Typical path for xclock: /usr/X11R6/bin/xclock


    -------------------安装图形指定投到固定的ip地址
    [root@vmhzporacle ~]# su - oracle
    Last login: Fri Mar 1 08:21:53 CST 2019 on pts/1
    [oracle@vmhzporacle ~]$ echo $DISPLAY

    [oracle@vmhzporacle ~]$ export DISPLAY=172.16.5.80:0.0
    [oracle@vmhzporacle ~]$ echo $DISPLAY
    172.16.5.80:0.0
    [oracle@vmhzporacle ~]$ xhost +
    xhost: unable to open display "172.16.5.80:0.0"
    -------------被投到的IP主机需要安装xmanager的,然后再启动xstart,配好后,连接到服务器,用Oracle用户进行安装./runInstaller

  • 相关阅读:
    python深浅拷贝
    软件开发目录规范
    编码规范
    python进程、线程、协程的介绍及使用
    soket粘包问题及解决方案
    python socket通信
    数据开发_机器学习
    数据开发_开发工具以及工具链
    数据开发_Python读取文件
    数据开发_Java设计模式_IO以及读取资源文件
  • 原文地址:https://www.cnblogs.com/tiantom/p/10454850.html
Copyright © 2011-2022 走看看