oracle客戶端安裝步驟—附圖形介面啟用失敗處理方法

zhcunique發表於2021-02-25

[root@localhost ~]# id oracle

id: oracle: No such user

[root@localhost ~]# groupadd oinstall

[root@localhost ~]# groupadd dba

[root@localhost ~]# useradd -m -g oinstall -G dba oracle

[root@localhost ~]# passwd oracle

Changing password for user oracle.

New password:

BAD PASSWORD: it is based on a dictionary word

BAD PASSWORD: is too simple

Retype new password:

passwd: all authentication tokens updated successfully.

[root@localhost ~]# df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-lv_root

                      345G  7.9G  320G   3% /

tmpfs                  32G  224K   32G   1% /dev/shm

/dev/sda1             477M   34M  419M   8% /boot

/dev/mapper/VolGroup-lv_home

                       91G   60M   86G   1% /home

 [root@localhost /]# mkdir -p /u01/app/oracle

[root@localhost /]# chown -R oracle:oinstall /u01

[root@localhost /]# su - oracle

[oracle@localhost ~]$ vi .bash_profile

PATH=$PATH:$HOME/bin

export PATH

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/11.2/client64

export PATH=$ORACLE_HOME/bin:/u01/app/oracle:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export SQLPATH=/u01/app/oracle

export TNS_ADMIN=$ORACLE_HOME/network/admin

[oracle@localhost ~]$ exit

logout

[root@localhost /]# vi /etc/ld.so.conf

include ld.so.conf.d/*.conf

/u01/app/oracle/11.2/client64/lib/

[root@localhost /]# ldconfig

[root@localhost /]# su - oracle

[root@localhost ~]# mv p13390677_112040_Linux-x86-64_4of7.zip /home/oracle

[root@localhost ~]# cd /home/oracle

[root@localhost oracle]# ls

p13390677_112040_Linux-x86-64_4of7.zip

[root@localhost oracle]# chown oracle:oinstall p13390677_112040_Linux-x86-64_4of7.zip

[root@localhost oracle]# su - oracle

[oracle@localhost ~]$ ls

p13390677_112040_Linux-x86-64_4of7.zip

[oracle@localhost ~]$ unzip -q p13390677_112040_Linux-x86-64_4of7.zip

[oracle@localhost ~]$ ls

client  p13390677_112040_Linux-x86-64_4of7.zip

[oracle@localhost ~]$ cd client

[oracle@localhost client]$ ls

install  readme.html  response  runInstaller  stage  welcome.html

[oracle@localhost client]$ who am i

root     pts/2        2019-12-31 16:12 (10.249.8.7)

[oracle@localhost client]$ export DISPLAY=10.249.8.7:0.0

[oracle@localhost client]$ ./runInstaller

Starting Oracle Universal Installer...

 

Checking Temp space: must be greater than 120 MB.   Actual 327304 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 8015 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-12-31_04-45-37PM/installActions2019-12-31_04-45-37PM.log

[oracle@localhost client]$ echo $DISPLAY

10.249.8.7:0.0

[oracle@localhost client]$ ./runInstaller

Starting Oracle Universal Installer...

 

Checking Temp space: must be greater than 120 MB.   Actual 327304 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 8015 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

使用Xmanager套件啟動圖形化介面

報錯的話

vi /etc/ssh/ssh_config    

ForwardX11Trusted yes

 

vi /etc/ssh/sshd_config    

X11Forwarding yes

X11DisplayOffset 10

X11UseLocalhost yes

 

service sshd restart


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69994536/viewspace-2759293/,如需轉載,請註明出處,否則將追究法律責任。

相關文章