• Oracle Install for Ubuntu之乱码解决


    一.字体设置

    1.从Windows系统,C:\windows\fonts目录中拷出simsun.ttc 并重命名为simsun.ttf

    2.在jdk的安装目录中找到/jre/lib/fonts/

    3.mkdir fallback

    4.cp /xxx/simsun.ttf fallback/

    5.cd fallback

    6.chmod 777 simsun.ttf

    7.mkfontscale

    8.mkfontdir

    第7和8步骤完成后生成fonts.dir和fonts.scale文件

    9.追加fonts.scale文件到交目录fonts.dir

    cat fonts.scale >> ../fonts.dir

    10.涮新字体缓存

    fc-cache -fv

    二.初始Oracle时使用如下指令

    ./runInstaller -jreLoc /usr/lib/java/jdk1.7.0_10

    设置字符为英文

    只要在运行./runInstaller之前先运行下以下命令就ok了:

    export LANG=en_US #设置运行语言

    Checking Temp space: must be greater than 120 MB. Actual 840087 MB Passed
    Checking swap space: must be greater than 150 MB. Actual 8076 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]

    1.先进入root

    DISPLAY=:0.0; export DISPLAY

    echo $DISPLAY

    cd /usr/bin

    ./xhost

    access control enabled, only authorized clients can connect

    ./xhost +

    access control disabled, clients can connect from any host

    2.进入oracle用户

    su - oracle

    DISPLAY=:0.0; export DISPLAY

    echo $DISPLAY

     :0.0

  • 相关阅读:
    (48)zabbix报警媒介:自定义脚本Custom alertscripts
    Centos7下cratedb数据导入导出copy to copy from
    CentOS7下cratedb备份及恢复(快照)
    Centos7下mysql5.7.22主从配置
    Centos7安装配置MySQL5.7
    Centos7安装配置iptable
    Centos7 LNMP 一键安装
    Centos7防范SYN
    Centos7安装RabbitMQ解决Erlang依赖报错
    centos7安装配置zabbix4.0
  • 原文地址:https://www.cnblogs.com/Jiphen/p/2875825.html
Copyright © 2020-2023  润新知