Linux uses VNC service to easily remotely install oracle____ applet

Source: Internet
Author: User
Tags dba mkdir oracle database
The VNC service installs Oracle on a remote server, and when a novice installs Oracle, there is always a problem with this or that, and I'll explain the installation process in detail, but the Oracle installation is simple enough not to make him look very complicated.
This environment uses: CentOS 5.4 32 bit system
First step, install VNC service
# yum Install vnc*
As shown below, this is a good fit.

The second step is to install the remote Linux Server desktop environment, Oracle installation must be the desktop environment. A lot of options can only be clicked in the desktop environment to take effect, OK, let's load up the desktop environment now
#yum groupinstall ' X Window System '-Y (Install graphical user interface first)
#yum groupinstall ' Gnome Desktop environment '-Y (Install GNOME desktop environment)
Or the following, (two are desktop environment, one can be installed, any use of any line)
#yum Groupinstall ' KDE (K Desktop environment) '-y (if the KDE desktop environment is installed)
When these two are installed, you have to be patient and pack more, an estimated 5 minutes after the installation is completed
Well, the desktop environment is ready.
Step Three: The desktop environment is good, let's configure Oracle's user environment. Basically the same as the online, as follows: 1, install the relevant software package
The list is as follows:
Binutils-2.15.92.0.2-13.el4
Compat-db-4.1.25-9
compat-libstdc++-296-2.96-132.7.2
Control-center-2.8.0-12
Gcc-3.4.3-22.1.el4
Gcc-c++-3.4.3-22.1.el44
glibc-2.3.4-2.9
glibc-common-2.3.4-2.9
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-22.1
libstdc++-devel-3.4.3-22.1
Make-3.80-5
Pdksh-5.2.14-30
Sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
Setarch-1.6-1
Libaio-0.3.103-3
LIBXP (as 5)
These can be installed with Yum. There may be a lot of dependencies in the next package, and that's a hassle. is directly
#Yum install binutils compat-db compat-libstdc++ ...
All right, just put it all in.
2, edit the vim/etc/sysctl.conf file, add the following line to the end
Kernel.shmall = 2097152
Kernel.shmmax = 268435456
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Fs.file-max = 65536
Net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
Execute command effective:/sbin/sysctl–p
3, edit the vi/etc/security/limits.conf file and add the following line at the end
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Edit Vim/etc/pam.d/login File End add
Session Required Pam_limits.so
4, establish the relevant installation directory
Mkdir/usr/local/oracle
Mkdir/usr/local/oracle/app
Mkdir/usr/local/oracle/app/oracle
5. Establish Dba,oinstall Group with Oracle users
#groupadd Oinstall
#groupadd DBA
#useradd-G oinstall-g dba-d/usr/local/oracle Oracle
#passwd Oracle (set a password)
#chown-R oracle.oinstall/usr/local/oracle

6. Change the system version and close SELinux.
#vim/etc/redhat-release
Change the contents to Redhat-4
Oracle does not support the high version of the current, first change to this, installed, and then changed back.
Run #setenforce 0 off before SELinux
#setenforce 0
7, set Oracle environment variables
#Vim/home/oracle/.back_profile is followed by the following:

# Oracle Settings
tmp=/tmp; Export TMP tmpdir= $TMP; Export Tmpdir oracle_base=/usr/local/oracle; Export Oracle_base oracle_home= $ORACLE _base/product/10.2.0/db_1; Export Oracle_home ORACLE_SID=ORCL; Export Oracle_sid oracle_term=xterm; Export Oracle_term path= $PATH: $ORACLE _home/bin; Export PATH ld_library_path= $LD _library_path: $ORACLE _home/lib; Export Ld_library_path classpath= $ORACLE _home/jreoracle_home/jlib: $ORACLE _home/rdbms/jlib; Export CLASSPATH if [$USER = "Oracle"]; Then if [$SHELL = "/bin/bash"]; Then ulimit-p 16384 ulimit-n 65536 else ulimit-u 16384-n 65536 fi fi as shown below
OK, Oracle's pre-installation configuration, it's over, let's configure the VNC service so that we can connect to the graphical interface to start the installation.
Fourth Step: Configure VNC Server and start the graphical interface
1, we first configure the/etc/sysconfig/vncservers this configuration file, as shown below:

 At the end of the file, add:
Vncservers= "2:oracle"
vncserverargs[2]= "-geometry 800x600"
Vncservers= "1:root"
vncserverargs[1]= "-geometry 800x600"
Specify the boot port and startup resolution for Oracle and Root users
2, configure the Oracle user password, and the desktop environment launched
(1) Configure the password we use the VNCPASSWD command
#vncpasswd Oracle
Then enter the password two times, and the configuration of the password can be completed
(2) Configure the desktop environment that Oracle users are enabled to log on
# Vim/home/oracle/.vnc/xstartup
Configure the following figure:

 Modify the last line of twm& for Gnome-session (Gnome-style desktop environment) or STARTKDE & (KDE-style desktop environment), which is what you're pretending to be, and which one you're going to change to. Save exit
Finally, we can start VNC service.
#service vncserver Start
#netstat-NTLP Look, we've started a lot of VNC ports, which are 5801 and 5802, which is the connection port between root and Oracle users.
Fifth step, native remote connection VNC desktop environment
(1) The VNC connection is required by the Java environment or connected to the client using VNC. I am connected directly using the Java environment, and I first install a Java environment in this machine,
Java Download Address: Http://java.com/zh_CN/download/chrome.jsp?locale=zh_CN
More than 10 m, download down, double click, next step, you can install, very simple
(2) Enter the ip:5802 of the remote host in the browser to start the VNC desktop environment
Take my machine For example: the following figure

 Click OK to pop up the following dialog box


Enter the password direct return, you can see our long-awaited desktop environment, and is the Oracle user login to come in, the following figure:

 Sixth: Start installing Oracle
1, the download of a good Oracle database package uncompressed. Run the./runinstaller program under the installation file, and after running, he will check your user Configuration environment. If the configuration is wrong, he will prompt, and then follow the steps above to change the correct. I have no errors here, after running, he pops up a window, which generally to fill in, he is based on the user environment set, are filled out. The following figure:

Well, now that we've started installing Oracle, it's basically the next step. As shown in figure
1, choose the installation type, I choose advanced installation, the following figure:

2, the designated certificate storage directory, the following figure:

 3, choose the type of database installed and Oracle supported language, here Select the Enterprise version, Language Choice English and Simplified Chinese. The following figure

 5, specify the Oracle environment variables, installation path. Because we've already declared it in. Bash_profile, so this is populated automatically. As shown in the following illustration:

 6, Oracle began the installation before the inspection work, the following figure:
7, select the configuration options, as shown below

8. Select the database schema you created, as shown below:

9. Specify the relevant options for database configuration (SID, character set, etc.), as shown below:
 Specifies that the character set is the character set used by the library, the Chinese is Simplified Chinese zhs16gbk, and if the character set is incorrect, the data will be garbled later.
10. Select database management options, as shown below

11, specify the database storage options, as shown below

 12, specify the database backup reply option, the following figure:
13, the designated database related user password, the following figure


14, display the installation summary, the following figure


 15, start the installation, the following figure

 16, the above window click OK, will appear in the following figure

This means that you need root permissions to execute the following command:
#/oracle/orainventory/orainstroot.sh
#/oracle/product/10.2.0/db_1/root.sh


17, the successful installation of the end, the following figure:

A list of Oracle's administrative addresses, including one of his own EM tools, is handy. Of course you need to bind this host name without a remote IP when you visit this machine.
Last step: Restore the default settings for the system:
Restore System version:
#vi/etc/redhat-release
CentOS Release 5.7 (Final)
Follow the steps above to be able to install, this is also my remote machine installation when the figure cut.
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.