溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

怎么解決安裝Oracle時(shí)檢查監(jiān)視器不通過的問題

發(fā)布時(shí)間:2021-08-16 20:26:31 來源:億速云 閱讀:351 作者:chen 欄目:關(guān)系型數(shù)據(jù)庫(kù)

這篇文章主要介紹“怎么解決安裝Oracle時(shí)檢查監(jiān)視器不通過的問題”,在日常操作中,相信很多人在怎么解決安裝Oracle時(shí)檢查監(jiān)視器不通過的問題問題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”怎么解決安裝Oracle時(shí)檢查監(jiān)視器不通過的問題”的疑惑有所幫助!接下來,請(qǐng)跟著小編一起來學(xué)習(xí)吧!

1.安裝數(shù)據(jù)庫(kù)軟件,提示“檢查監(jiān)視器”未通過

  1. [root@db130 ~]# xhost +

  2. access control disabled, clients can connect from any host

  3. [root@db130 ~]# su - oracle

  4. [oracle@db130 ~]$ cd /u01/app/database

  5. [oracle@db130 database]$ ./runInstaller

  6. 正在啟動(dòng) Oracle Universal Installer...


  7. 檢查臨時(shí)空間: 必須大于 120 MB。   實(shí)際為 36939 MB    通過

  8. 檢查交換空間: 必須大于 150 MB。   實(shí)際為 8047 MB    通過

  9. 檢查監(jiān)視器: 監(jiān)視器配置至少必須顯示 256 種顏色

  10.     >>> 無法使用命令 /usr/bin/xdpyinfo 自動(dòng)檢查顯示器顏色。請(qǐng)檢查是否設(shè)置了 DISPLAY 變量。    未通過 <<<<


  11. 未通過某些要求檢查。必須先滿足這些 要求,


  12. 然后才能繼續(xù)安裝,


  13. 是否繼續(xù)? (y/n) [n] n


  14. 用戶選擇: 否


  15. 退出 Oracle Universal Installer, 您可以在 /tmp/OraInstall2017-07-26_03-02-54PM/installActions2017-07-26_03-02-54PM.log 中找到本次會(huì)話的日志

2.根據(jù)報(bào)錯(cuò)信息,首先想到的是配置DISPLAY變量(一般配置一下就可以解決)

  1. [oracle@db130 database]$ export DISPLAY=:0.0

  2. [oracle@db130 database]$ ./runInstaller

  3. 正在啟動(dòng) Oracle Universal Installer...


  4. 檢查臨時(shí)空間: 必須大于 120 MB。   實(shí)際為 36939 MB    通過

  5. 檢查交換空間: 必須大于 150 MB。   實(shí)際為 8047 MB    通過

  6. 檢查監(jiān)視器: 監(jiān)視器配置至少必須顯示 256 種顏色

  7.     >>> 無法使用命令 /usr/bin/xdpyinfo 自動(dòng)檢查顯示器顏色。請(qǐng)檢查是否設(shè)置了 DISPLAY 變量。    未通過 <<<<


  8. 未通過某些要求檢查。必須先滿足這些 要求,


  9. 然后才能繼續(xù)安裝,


  10. 是否繼續(xù)? (y/n) [n] n


  11. 用戶選擇: 否


  12. 退出 Oracle Universal Installer, 您可以在 /tmp/OraInstall2017-07-26_03-04-57PM/installActions2017-07-26_03-04-57PM.log 中找到本次會(huì)話的日志

  13. [oracle@db130 database]$

3.配置DISPLAY變量之后還是不行。根據(jù)報(bào)錯(cuò)信息"無法使用命令 /usr/bin/xdpyinfo 自動(dòng)檢查顯示器顏色",懷疑是xdpyinfo有問題。

  1. [root@db130 ~]# xdpyinfo

  2. -bash: xdpyinfo: command not found

果然,系統(tǒng)中并未安裝xdpyinfo,那么先安裝xdpyinfo

  1. [root@db130 ~]# yum install -y xdpyinfo

  2. Loaded plugins: product-id, security, subscription-manager

  3. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

  4. rhel-source | 3.9 kB     00:00 ...

  5. rhel-source/primary_db | 3.1 MB     00:00 ...

  6. Setting up Install Process

  7. Resolving Dependencies

  8. --> Running transaction check

  9. ---> Package xorg-x11-utils.x86_64 0:7.5-6.el6 will be installed

  10. --> Processing Dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-6.el6.x86_64

  11. --> Processing Dependency: libXxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-6.el6.x86_64

  12. --> Running transaction check

  13. ---> Package libXxf86dga.x86_64 0:1.1.3-2.el6 will be installed

  14. ---> Package libdmx.x86_64 0:1.1.2-2.el6 will be installed

  15. --> Finished Dependency Resolution


  16. Dependencies Resolved


  17. ======================================================================================================================

  18.  Package                        Arch Version Repository Size

  19. ======================================================================================================================

  20. Installing:

  21.  xorg-x11-utils                 x86_64                 7.5-6.el6                    rhel-source                  94 k

  22. Installing for dependencies:

  23.  libXxf86dga                    x86_64                 1.1.3-2.el6                  rhel-source                  25 k

  24.  libdmx                         x86_64                 1.1.2-2.el6                  rhel-source                  21 k


  25. Transaction Summary

  26. ======================================================================================================================

  27. Install       3 Package(s)


  28. Total download size: 140 k

  29. Installed size: 295 k

  30. Downloading Packages:

  31. ----------------------------------------------------------------------------------------------------------------------

  32. Total                                                                                 4.0 MB/s | 140 kB     00:00

  33. Running rpm_check_debug

  34. Running Transaction Test

  35. Transaction Test Succeeded

  36. Running Transaction

  37.   Installing : libXxf86dga-1.1.3-2.el6.x86_64                                                                     1/3

  38.   Installing : libdmx-1.1.2-2.el6.x86_64                                                                          2/3

  39.   Installing : xorg-x11-utils-7.5-6.el6.x86_64                                                                    3/3

  40.   Verifying : libdmx-1.1.2-2.el6.x86_64                                                                          1/3

  41.   Verifying : libXxf86dga-1.1.3-2.el6.x86_64                                                                     2/3

  42.   Verifying : xorg-x11-utils-7.5-6.el6.x86_64                                                                    3/3


  43. Installed:

  44.   xorg-x11-utils.x86_64 0:7.5-6.el6


  45. Dependency Installed:

  46.   libXxf86dga.x86_64 0:1.1.3-2.el6                             libdmx.x86_64 0:1.1.2-2.el6



  47. [root@db130 ~]#

4.再次檢查xdpyinfo參數(shù),并查看"name of display"參數(shù)值

  1. [root@db130 ~]# xdpyinfo

  2. name of display: localhost:12.0

  3. version number: 11.0

  4. vendor string: NetSarang Computer, Inc.

  5. vendor release number: 4007

  6. maximum request size: 16777212 bytes

  7. motion buffer size: 256

  8. bitmap unit, bit order, padding: 32, LSBFirst, 32

  9. image byte order: LSBFirst

  10. number of supported pixmap formats: 7

  11. supported pixmap formats:

  12.     depth 1, bits_per_pixel 1, scanline_pad 32

  13.     depth 4, bits_per_pixel 4, scanline_pad 32

  14.     depth 8, bits_per_pixel 8, scanline_pad 32

  15.     depth 15, bits_per_pixel 16, scanline_pad 32

  16.     depth 16, bits_per_pixel 16, scanline_pad 32

  17.     depth 24, bits_per_pixel 32, scanline_pad 32

  18.     depth 32, bits_per_pixel 32, scanline_pad 32

  19. keycode range: minimum 8, maximum 255

  20. focus: PointerRoot

  21. number of extensions: 22

  22.     BIG-REQUESTS

  23.     DAMAGE

  24.     DEC-XTRAP

  25.     DOUBLE-BUFFER

  26.     DPMS

  27.     Extended-Visual-Information

  28.     GLX

  29.     MIT-SUNDRY-NONSTANDARD

  30.     RECORD

  31.     RENDER

  32.     SECURITY

  33.     SGI-GLX

  34.     SHAPE

  35.     SYNC

  36.     TOG-CUP

  37.     X-Resource

  38.     XC-APPGROUP

  39.     XC-MISC

  40.     XFIXES

  41.     XFree86-Bigfont

  42.     XInputExtension

  43.     XTEST

  44. default screen number: 0

  45. number of screens: 1


  46. screen #0:

  47.   dimensions: 1920x1040 pixels (542x294 millimeters)

  48.   resolution: 90x90 dots per inch

  49.   depths (17): 1, 4, 8, 8, 8, 8, 15, 16, 24, 24, 24, 24, 24, 24, 24, 24, 32

  50.   root window id: 0x58

  51.   depth of root window: 24 planes

  52.   number of colormaps: minimum 16, maximum 128

  53.   default colormap: 0x20

  54.   default number of colormap cells: 256

  55.   preallocated pixels: black 0, white 16777215

  56.   options: backing-store YES, save-unders YES

  57.   largest cursor: 32x32

  58.   current input event mask: 0xf80000

  59.     SubstructureNotifyMask   SubstructureRedirectMask FocusChangeMask

  60.     PropertyChangeMask       ColormapChangeMask

  61.   number of visuals: 16

  62.   default visual id: 0x29

  63.   visual:

  64.     visual id: 0x21

  65.     class: PseudoColor

  66.     depth: 8 planes

  67.     available colormap entries: 256

  68.     red, green, blue masks: 0x0, 0x0, 0x0

  69.     significant bits in color specification: 8 bits

  70.   visual:

  71.     visual id: 0x22

  72.     class: DirectColor

  73.     depth: 8 planes

  74.     available colormap entries: 8 per subfield

  75.     red, green, blue masks: 0x7, 0x38, 0xc0

  76.     significant bits in color specification: 8 bits

  77.   visual:

  78.     visual id: 0x23

  79.     class: GrayScale

  80.     depth: 8 planes

  81.     available colormap entries: 256

  82.     red, green, blue masks: 0x0, 0x0, 0x0

  83.     significant bits in color specification: 8 bits

  84.   visual:

  85.     visual id: 0x24

  86.     class: StaticColor

  87.     depth: 8 planes

  88.     available colormap entries: 256

  89.     red, green, blue masks: 0x0, 0x0, 0x0

  90.     significant bits in color specification: 8 bits

  91.   visual:

  92.     visual id: 0x25

  93.     class: StaticGray

  94.     depth: 8 planes

  95.     available colormap entries: 256

  96.     red, green, blue masks: 0x0, 0x0, 0x0

  97.     significant bits in color specification: 8 bits

  98.   visual:

  99.     visual id: 0x26

  100.     class: PseudoColor

  101.     depth: 8 planes

  102.     available colormap entries: 256

  103.     red, green, blue masks: 0x0, 0x0, 0x0

  104.     significant bits in color specification: 8 bits

  105.   visual:

  106.     visual id: 0x27

  107.     class: PseudoColor

  108.     depth: 8 planes

  109.     available colormap entries: 256

  110.     red, green, blue masks: 0x0, 0x0, 0x0

  111.     significant bits in color specification: 8 bits

  112.   visual:

  113.     visual id: 0x28

  114.     class: PseudoColor

  115.     depth: 8 planes

  116.     available colormap entries: 256

  117.     red, green, blue masks: 0x0, 0x0, 0x0

  118.     significant bits in color specification: 8 bits

  119.   visual:

  120.     visual id: 0x29

  121.     class: TrueColor

  122.     depth: 24 planes

  123.     available colormap entries: 256 per subfield

  124.     red, green, blue masks: 0xff0000, 0xff00, 0xff

  125.     significant bits in color specification: 8 bits

  126.   visual:

  127.     visual id: 0x2a

  128.     class: TrueColor

  129.     depth: 24 planes

  130.     available colormap entries: 256 per subfield

  131.     red, green, blue masks: 0xff0000, 0xff00, 0xff

  132.     significant bits in color specification: 8 bits

  133.   visual:

  134.     visual id: 0x2b

  135.     class: TrueColor

  136.     depth: 24 planes

  137.     available colormap entries: 256 per subfield

  138.     red, green, blue masks: 0xff0000, 0xff00, 0xff

  139.     significant bits in color specification: 8 bits

  140.   visual:

  141.     visual id: 0x2c

  142.     class: TrueColor

  143.     depth: 24 planes

  144.     available colormap entries: 256 per subfield

  145.     red, green, blue masks: 0xff0000, 0xff00, 0xff

  146.     significant bits in color specification: 8 bits

  147.   visual:

  148.     visual id: 0x2d

  149.     class: TrueColor

  150.     depth: 24 planes

  151.     available colormap entries: 256 per subfield

  152.     red, green, blue masks: 0xff0000, 0xff00, 0xff

  153.     significant bits in color specification: 8 bits

  154.   visual:

  155.     visual id: 0x2e

  156.     class: TrueColor

  157.     depth: 24 planes

  158.     available colormap entries: 256 per subfield

  159.     red, green, blue masks: 0xff0000, 0xff00, 0xff

  160.     significant bits in color specification: 8 bits

  161.   visual:

  162.     visual id: 0x2f

  163.     class: TrueColor

  164.     depth: 24 planes

  165.     available colormap entries: 256 per subfield

  166.     red, green, blue masks: 0xff0000, 0xff00, 0xff

  167.     significant bits in color specification: 8 bits

  168.   visual:

  169.     visual id: 0x30

  170.     class: TrueColor

  171.     depth: 24 planes

  172.     available colormap entries: 256 per subfield

  173.     red, green, blue masks: 0xff0000, 0xff00, 0xff

  174.     significant bits in color specification: 8 bits

5.使用"name of display"變量設(shè)置DISPLAY參數(shù)后,再次執(zhí)行安裝程序,安裝頁(yè)面彈出成功。

  1. [root@db130 ~]# xhost +

  2. access control disabled, clients can connect from any host

  3. [root@db130 ~]# su - oracle

  4. [oracle@db130 ~]$ export DISPLAY=:12.0

  5. [oracle@db130 ~]$ cd /u01/app/database/

  6. [oracle@db130 database]$ ./runInstaller

  7. 正在啟動(dòng) Oracle Universal Installer...


  8. 檢查臨時(shí)空間: 必須大于 120 MB。   實(shí)際為 36937 MB    通過

  9. 檢查交換空間: 必須大于 150 MB。   實(shí)際為 8047 MB    通過

  10. 檢查監(jiān)視器: 監(jiān)視器配置至少必須顯示 256 種顏色。    實(shí)際為 16777216    通過

  11. 準(zhǔn)備從以下地址啟動(dòng) Oracle Universal Installer /tmp/OraInstall2017-07-26_03-16-44PM. 請(qǐng)稍候...[oracle@db130 database]$

到此,關(guān)于“怎么解決安裝Oracle時(shí)檢查監(jiān)視器不通過的問題”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注億速云網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)砀鄬?shí)用的文章!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI