Results 1 to 11 of 11
  1. #1
    Join Date
    Sep 2011
    Posts
    9

    Unhappy Unanswered: old problem of xhost (sos)

    today ,i wanna install oracle10g on linux5
    and create the user oracle ,set the oracle .bash_profile like the blow :

    PATH=$PATH:$HOME/bin
    export ORACLE_BASE=/home/oracle
    export ORACLE_SID=orcl228
    export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
    export PATH=$PATH:$ORACLE_HOME/bin
    export LD_LIBARY_PATH=$ORACLE_HOME/lib
    export PATH

    umask 022
    *****************************************
    [oracle@crm-test-app2 ~]$ pwd
    /home/oracle
    [oracle@crm-test-app2 ~]$ id
    uid=502(oracle) gid=502(oinstall) groups=502(oinstall),503(dba)
    [oracle@crm-test-app2 ~]$
    ******************************************
    more /etc/sysctl.conf

    # Kernel sysctl configuration file for Red Hat Linux
    #
    # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
    # sysctl.conf(5) for more details.

    # Controls IP packet forwarding
    net.ipv4.ip_forward = 0

    # Controls source route verification
    net.ipv4.conf.default.rp_filter = 1

    # Do not accept source routing
    net.ipv4.conf.default.accept_source_route = 0

    # Controls the System Request debugging functionality of the kernel
    kernel.sysrq = 0

    # Controls whether core dumps will append the PID to the core filename
    # Useful for debugging multi-threaded applications
    kernel.core_uses_pid = 1

    # Controls the use of TCP syncookies
    net.ipv4.tcp_syncookies = 1

    # Controls the maximum size of a message, in bytes
    kernel.msgmnb = 65536

    # Controls the default maxmimum size of a mesage queue
    kernel.msgmax = 65536

    # Controls the maximum shared segment size, in bytes
    kernel.shmmax = 68719476736

    # Controls the maximum number of shared memory segments, in pages
    kernel.shmall = 4294967296
    kernel.shmmni=4096
    kernel.sem=250 3200 100 128
    fs.file-max =65536
    net.ipv4.ip_local_port_range =1024 65000

    ************************************************** ************
    and have already rpm the package required like
    compat-db-4.2.52-5.1.x86_64.rpm *
    compat-gcc-34-c++-3.4.6-4.x86_64.rpm *
    compat-libstdc++-33-3.2.3-61.i386.rpm *
    compat-libstdc++-33-3.2.3-61.x86_64.rpm
    libXp-1.0.0-8.1.el5.i386.rpm
    libXp-1.0.0-8.1.el5.x86_64.rpm
    openmotif-2.3.1-2.el5.x86_64.rpm
    ******************************************
    so at last ,i telnet the machine through another host
    and
    export DISPLAY=134.65.78.50:0.0
    but when i type in 'xclock ' , nothing appears ,of course i canceled ,
    the deatails is as follows:
    [crm@crm-test-app2 ~]$ export DISPLAY=134.65.78.50:0.0
    [crm@crm-test-app2 ~]$ xclock

    [crm@crm-test-app2 ~]$ xhost
    xhost: unable to open display "134.65.78.50:0.0"
    ************************************************** ********
    and if i turn to the base of 'runInstaller',and ./runInstaller
    it tells me that :
    [crm@crm-test-app2 database]$ ./runInstaller
    Starting Oracle Universal Installer...

    Checking installer requirements...

    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed


    All installer requirements met.

    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-10-28_12-42-56AM. Please wait ...[crm@crm-test-app2

    so ,it ends ,and soon later if i wait long
    it throws the info
    Exception in thread "main" java.lang.InternalError: Can't connect to
    X11 window...............

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    xclock must work, before OUI will work.
    You must log directly onto DB Server as OS user oracle with X11 forwarding enabled
    & can not use "su" on DB Server
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Sep 2011
    Posts
    9

    Red face thank anacedent

    thank for your fast answer,anacedent ,as you said ,if i try the command startx,it shows as follows :
    [root@crm-test-app2 home]# startx
    hostname: Host name lookup failure
    xauth: creating new authority file /root/.serverauth.12167


    Fatal server error:
    Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.

    Xlib: connection to ":0.0" refused by server
    Xlib: Invalid MIT-MAGIC-COOKIE-1 key
    giving up.
    xinit: unable to connect to X server
    xinit: No such process (errno 3): Server error.

    so ,what can i do ,,
    'xhost +' error , 'xclock ' no response ,
    without oracle,how i can go on the tuxedo....

  4. #4
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    from client you need to connect to DB Sever using the following or similar

    Code:
    ssh -X oracle@dbserver
    after connecting to DB Server using command above issue OS command below

    env | sort

    COPY command & results then PASTE all back here
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  5. #5
    Join Date
    Sep 2011
    Posts
    9

    Question thanks again

    thanls a lot , you are a really warm heart man
    as you tell :
    odsnb1#[/ly]ssh -x oracle@134.64.110.45
    oracle@134.64.110.45's password:
    Last login: Thu Oct 27 23:53:04 2011 from 134.64.24.169
    -bash: ulimit: open files: cannot modify limit: Operation not permitted
    -bash: ulimit: open files: cannot modify limit: Operation not permitted
    [oracle@crm-test-app2 ~]$ env |sort
    CVS_RSH=ssh
    G_BROKEN_FILENAMES=1
    HISTSIZE=1000
    HOME=/home/oracle
    HOSTNAME=crm-test-app2
    INPUTRC=/etc/inputrc
    LANG=en_US.UTF-8
    LD_LIBARY_PATH=/opt/app/oracle/product/10.2.0/db_1/lib
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LOGNAME=oracle
    LS_COLORS=no=00:fi=00:di=01;34:ln=01;36i=40;33:so=01;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32: *.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*. sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj =01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01; 31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.t z=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif =01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=0 1;35:*.tif=01;35:
    MAIL=/var/spool/mail/oracle
    ORACLE_BASE=/opt/app/oracle
    ORACLE_HOME=/opt/app/oracle/product/10.2.0/db_1
    ORACLE_SID=orcl228
    PATH=/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin:/sbin:/home/oracle/bin:/opt/app/oracle/product/10.2.0/db_1/bin
    PWD=/home/oracle
    SHELL=/bin/bash
    SHLVL=1
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SSH_CLIENT=134.64.24.169 65495 22
    SSH_CONNECTION=134.64.24.169 65495 134.64.110.45 22
    SSH_TTY=/dev/pts/8
    TERM=vt100
    USER=oracle
    _=/usr/bin/env
    [oracle@crm-test-app2 ~]$

  6. #6
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    much looks OK but forum BB changed what I intended to post

    Code:
    ssh -X
    the "X" above needs to be Capitalized.
    after logging onto DB Server, when all is OK the "DISPLAY" variable will be automagically set
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  7. #7
    Join Date
    Sep 2011
    Posts
    9

    Question

    thanks for sparing time to help me ,anacedent
    is that right ?and i try more command on secureCRT
    odsnb1#[/ly]ssh -X oracle@134.64.110.45
    oracle@134.64.110.45's password:
    Last login: Fri Oct 28 01:32:35 2011 from 134.64.24.169
    -bash: ulimit: open files: cannot modify limit: Operation not permitted
    -bash: ulimit: open files: cannot modify limit: Operation not permitted
    [oracle@crm-test-app2 ~]$ export DISPLAY=134.64.78.50:0.0
    [oracle@crm-test-app2 ~]$ xclock &
    [1] 12716
    [oracle@crm-test-app2 ~]$ xterm &
    [2] 12719

    and through x-windows
    [oracle@crm-test-app2 ~]$ export DISPLAY=134.65.78.50:0.0
    [oracle@crm-test-app2 ~]$ xclock
    Error: Can't open display: 134.65.78.50:0.0
    >>>>>>>>>>>>>>>>>>>>>>>
    there no telnet-server at the beginning ,maybe it affects?

  8. #8
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >and i try more command on secureCRT
    I used SecureCRT years ago. It had a check box to enable X11.
    You do NOT have to manually do anything with "DISPLAY" variable.
    It will automatically get set when X11 Forwarding is enabled & detected.
    log onto DB Server as OS user "oracle" then do as below

    echo $DISPLAY
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  9. #9
    Join Date
    Sep 2011
    Posts
    9

    Question why it appear like that?

    [oracle@crm-test-app2 ~]$ echo $DISPLAY
    134.64.78.50:0.0
    ....it tells me we had export successfully but we can't get 'xclock' clock...

    thank again.

  10. #10
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    log onto DB Server anew, again. with X11 Forwarding enabled
    then immediately do as below without issuing any other OS command
    echo $DISPLAY
    either DISPLAY will be correct or it will be NULL
    if/when DISPLAY is not NULL, then xclock will/should work
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  11. #11
    Join Date
    Sep 2011
    Posts
    9

    Angry aha?

    i try it on x-windows as blow:
    [oracle@crm-test-app2 ~]$ export DISPLAY=134.64.78.50:0.0
    [oracle@crm-test-app2 ~]$ echo $DISPLAY
    134.64.78.50:0.0
    [oracle@crm-test-app2 ~]$ xclock

    [oracle@crm-test-app2 ~]$ cd /var/oracle/soft/database
    [oracle@crm-test-app2 database]$ ./runInstaller
    Starting Oracle Universal Installer...

    Checking installer requirements...

    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLin
    ux-1.0, asianux-1 or asianux-2
    Passed


    All installer requirements met.

    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-10-28_02
    -18-19AM. Please wait ...[oracle@crm-test-app2 database]$


    it quits without any mentions and later it will throw those about minutes later:
    [oracle@crm-test-app2 database]$ Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '134.64.78.50:0.0' as the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvir onment(Unknown Source)
    at java.awt.Window.init(Unknown Source)
    at java.awt.Window.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
    at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
    at oracle.sysman.oio.oioc.OiocOneClickInstaller.<init >(OiocOneClickInstaller.java:378)
    at oracle.sysman.oio.oioc.OiocOneClickInstaller.main( OiocOneClickInstaller.java:2091)

    .....so depressed and can i make friend with u through msn..

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •