Operational records for deploying Oracle 11G Database environments under Centos 6.9

Source: Internet
Author: User

Operating system: Centos6.9 (64Bit)
oracle:11g, 11.2.0.4.0 version
IP Address: 172.16.220.139

Don't say much nonsense, the following records the installation process:
1) Install the desktop environment

[Email protected] ~]# yum-y groupinstall "X Window System" [[email protected] ~]# yum-y groupinstall "Desktop" [email p Rotected] ~]# yum-y Groupinstall "General Purpose Desktop" [[email protected] ~]# startx                //or use "Init 5" command to start the graphical interface; turn off graphics The interface needs to execute the "Init 3" command after executing the     above STARTX command (can be executed in the background, or CTRL+Z;BG 1;disown-a), the server's desktop mode is started. When you connect using VNC, you will find that you are already in desktop mode.

2) Modify the CentOS system to start in desktop mode

[Email protected] ~]# cat/etc/inittab ... #id: 3:initdefault:               //Start the system in text mode Id:5:initdefault:                //Start the system in desktop mode

3) VNC Remote Desktop Connection environment installation

[[email protected] ~]# ps-eaf|grep VNC [[email protected] ~]# Rpm-qa | grep VNC installation VNC software [[[email protected] ~]# yum install-y tigervnc tigervnc-server[[email protected] ~]# Yum Install-y libvncserver*[[email protected] ~]# Rpm-qa | grep VNC libvncserver-0.9.7-7.el6_6.1.x86_64tigervnc-server-1.1.0-24.el6.x86_64libvncserver-devel-0.9.7-7.el6_                                                              6.1.x86_64tigervnc-1.1.0-24.el6.x86_64 installs the GNOME software, which installs the components needed to generate the graphical interface lock: [[email protected] ~]# yum install-y gnome* [[email protected] ~]# yum install Libxfont-y[[email prot Ected] ~]# yum install xorg-x11-xfs [[email protected] ~]# yum install xorg-x11-xfs-utils [[email protected] ~] # yum Install xorg-x11-xinit [[email protected] ~]# yum install XORG-X11-XDM [[email protected] ~]# yum Install xorg-x11-fonts* configuration vncservers Configuration vncservers, this shows the VNC remote connection to the Server Desktop window initialization size, by default is 800x600 you can also set the pattern to your habits such as 1280x960:[[email  protected] ~]# Vim/etc/sysconFig/vncservers ... vncservers= "1:root" vncserverargs[1]= "-geometry 800x600" setting vncserver password you must set a password before starting VNC: [[email protected] ~]# VNCPASSWD password:verify: Start stop vncserver[[email protected] ~]# service Vncserver Start/stop/restart The default listening port is: 5901 [[email protected] ~]# ps-ef|grep vncroot 3950 1 0 01:15 pts/0 00:00:00/usr/bin/xvnc:1-desktop vm0 1:1 (Root)-auth/root/. Xauthority-geometry 800x600-rfbwait 30000-rfbauth/root/.vnc/passwd-rfbport 5901-FP catalogue:/etc/x11/fontpath.d-p  Nroot 3958 3957 0 01:15 pts/0 00:00:00 vncconfig-iconicroot 4145 3323 0 01:30 pts/0 00:00:00 grep   Vnc[[email protected] ~]# lsof-i:5901command PID USER FD TYPE DEVICE size/off NODE namexvnc 3950 Root 5u IPv4 55672 0t0 TCP *:5901 (LISTEN) [[email protected] ~]# Configure the Xstartup start command to copy the contents of the/root/.vnc/xstartup file into the following [[EMA Il protected] ~]# cp/root/.vnc/xstartup/root/.vnc/xstartup.bak[[email protected] ~]# vim/root/.vnc/ Xstartup #!/BIN/SH # Uncomment the following, lines for normal desktop:unset session_managerexec/etc/x11/xinit/xinitrc[-x/etc/ Vnc/xstartup] && exec/etc/vnc/xstartup[-R $HOME/. Xresources] && Xrdb $HOME/. Xresourcesxsetroot-solid Greyvncconfig-iconic & #xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" TWM &gnome-session &-------------------------------------------------------------------- For the above boot file contents: 1) If you are using the GNOME image interface, you need to comment out the following two lines, xterm-geometry80x24+10+10-ls-title "$VNCDESKTOP Desktop" & Twm & and add the following line: Gnome-session &2) If the black screen, the background log report the following error: Sat May 7 15:05:35 vncext:vnc extension running! Vncext:listening for VNC connections in all interface (s), Port 5901 vncext:created VNC Server for screen 0/roo T/.vnc/xstartup:line 4:/etc/x11/xinit/xinitrc:no such file or Directory/root/.vnc/xstartup:line 4:exec:/etc/X11/xini T/xinitrc:cannot execute:no such file or directory then goes to the server to retrieve XINITRC retrieved words as follows: [[Email protEcted] ~]# ll/etc/x11/xinit/xinitrcls:cannot access/etc/x11/xinit/xinitrc:no such file or Directory[[email prote CTED] ~]# Find/-name xinitrc[[email protected] ~]# adopted the scheme is to comment out/root/.vnc/xstartup inside the EXEC/ETC/X11/XINIT/XINITRC , let Vncserver choose the default, let VNC load the default graphical interface program It's OK.--------------------------------------------------------------------change the permissions of Xstartup This is a problem that many people tend to overlook, is also the cause of the black screen after successful connection. In CentOS, Xstartup's file path is:/root/.vnc/(You can view Xstartup's file path through Locatexstartup) so you need to execute: chmod 777/root/.vnc/xstartup to give permissions. Then restart the vncserver. Finally, in the local Windows installation VNC viewer, remote access installs the VNC client under Windows: https://pan.baidu.com/s/ 1hrsir4k Extract Password: DQDTVNC Remote connection information (IP below is the address of the VNC server): VNC server:172.16.220.139:5901encrytion:let VNC servers Choose then enter the VNCPASSWD password to complete the VNC remote connection!

Operational records for deploying Oracle 11G Database environments under Centos 6.9

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.