Linux uses the VNC service to easily and remotely install oracle

Source: Internet
Author: User

The VNC service installs oracle on a remote server. When new users install oracle, they will always encounter one or more problems. Next I will describe the installation process in detail. In fact, oracle installation is very simple, it is not complicated to look like him.
In this environment: centos 5.4 32-bit System
Step 1: Install the VNC service
# Yum install vnc *
For example, this is enough.
 Step 2: Install the desktop environment of the remote linux server. The installation of oracle requires the desktop environment. A lot of options can take effect only by clicking in the desktop environment. Well, let's install the desktop environment now.
# Groupinstall 'x Window System '-y (install the graphic user interface first)
# Yum groupinstall 'gnome Desktop Environment '-y (install GNOME Desktop Environment)
Or the following, (both are in the desktop environment. You can choose either of them)
# Yum groupinstall 'KDE (K Desktop Environment) '-y (if the KDE Desktop Environment is installed)
You have to be patient when installing these two packages. It is estimated that the installation will be completed in five minutes.
Okay. The desktop environment is ready.
Step 3: The desktop environment is ready. Let's configure the oracle user environment. Basically the same as on the Internet, as follows: 1. Install related software packages.
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 using Yum. If the package is downloaded, there may be many dependent packages, which is troublesome. Directly
# Yum install binutils compat-db compat-libstdc ++ .....
You can simply install them all.
2. Edit the vim/etc/sysctl. conf file and add the following line at 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
Run/sbin/sysctl-p
3. Edit the vi/etc/security/limits. conf file and add the following lines at the end.
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
Edit the vim/etc/pam. d/login file and add the following lines at the end.
Session required pam_limits.so
4. Create the relevant installation directory
Mkdir/usr/local/oracle
Mkdir/usr/local/oracle/app
Mkdir/usr/local/oracle/app/oracle
5. Create dba, oinstall group and oracle user
# Groupadd oinstall
# Groupadd dba
# Useradd-g oinstall-G dba-d/usr/local/oracle
# Passwd oracle (set a password)
# Chown-R oracle. oinstall/usr/local/oracle

6. Change the system version and disable selinux.
# Vim/etc/redhat-release
Change content to redhat-4
Currently, oracle does not support the later version. You should change it to this version first, install it, and then change it back.
Run # setenforce 0 to selinux
# Setenforce 0
7. Set oracle environment variables
# Add the following content to Vim/home/oracle/. back_profile:

# Oracle Settings
TMP =/tmp; export TMPTMPDIR = $ TMP; export TMPDIRORACLE_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 usage = $ LD_LIBRARY_PATH: $ ORACLE_HOME/lib; export usage = $ 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 elseulimit-u 16384-n 65536 fifi E
Okay. The configuration is complete before oracle is installed. Let's configure the VNC service and let's start installing the interface.
Step 4: configure the vnc Server and enable the GUI
1. First configure the configuration file/etc/sysconfig/vncservers, for example:

Add at the end of the file:
VNCSERVERS = "2: oracle"
VNCSERVERARGS [2] = "-geometry 800x600"
VNCSERVERS = "1: root"
VNCSERVERARGS [1] = "-geometry 800x600"
Specify the startup port and resolution of oracle and root users
2. Configure the password of the oracle user and the desktop environment started
(1) we use the vncpasswd command to configure the password.
# Vncpasswd oracle
Enter the password twice and complete the password configuration.
(2) configure the desktop environment enabled for oracle user logon
# Vim/home/oracle/. vnc/xstartup
Configuration example:

Modify the last line of twm & to gnome-session (GNOME-style desktop environment) or startkde & (KDE-style desktop environment). This environment depends on which one you have installed, you can change it to whatever it is installed. Save and exit
Finally, we can start the vnc service.
# Service vncserver start
# Netstat-ntlp: Let's take a look at it. We have started a lot of vnc ports, including 5801 and 5802. This is the connection port between the root user and the oracle user.
Step 5: remotely connect to the vnc desktop environment
(1) The vnc connection must be supported by the JAVA environment or be connected to the client using vnc. I am using a JAVA environment for direct connection. First, install a java environment on the local machine,
JAVA: http://java.com/zh_CN/download/chrome.jsp? Locale = zh_CN
Just a dozen MB, download it, double-click it, and install it next. It's very simple.
(2) enter the remote host ip address 5802 in the browser to start the vnc desktop environment.
Take my machine as an example:

Click OK. The following dialog box is displayed.

 
Enter the password and press enter to view the long-awaited desktop environment, and log in as an oracle user, for example:

Sixth: Start oracle Installation
1. decompress the downloaded oracle database package. Run the./runInstaller program in the installation file. After running the program, he will check your user configuration environment. If the configuration is incorrect, a prompt will be displayed, and you can change the configuration according to the above steps. There is no error here. After running, a window is displayed, which is usually required. It is all set according to the user environment. For example:

Now we have started to install oracle, which is basically the next step.
1. Select the installation type. I select Advanced installation, for example:

2. Specify the certificate storage directory, for example:

3. Select the database type to be installed and the language supported by oracle. Here, select Enterprise Edition, and select English and simplified Chinese as the language. For example

5. Specify the oracle environment variable and installation path. Because we have already declared it in. bash_profile, it will be automatically filled here. As shown in:

6. check before installing Oracle, for example:
7. Select Configuration options, as shown in figure

8. Select the created database mode, for example:

9. Specify related database configuration options (SID, Character Set, etc.), such:
The specified character set is the character set used by the database, and the Chinese character set is simplified Chinese zhs16gbk. If the character set is incorrect, it may cause garbled data in the future.
10. Select database management options, as shown in figure

11. Specify database storage options, as shown in figure

12. Specify Database Backup recovery options, such:
13. Specify the database-related user password, as shown in figure


14. display the installation overview, as shown in figure
 

15. Start installation, as shown in figure

16. After you click OK in the window above, it will appear
 
This means that you need the root permission to execute the following command:
#/Oracle/oraInventory/orainstRoot. sh
#/Oracle/product/10.2.0/db_1/root. sh
 

17. The installation is completed successfully, for example:

Some oracle management addresses are listed above, including a built-in em tool, which is very useful. Of course, you need to bind this host name without a remote ip address during local access.
Last step: Restore the default settings of the system:
Restore the system version:
# Vi/etc/redhat-release
CentOS release 5.7 (Final)
The above steps can be used for installation. This is also the figure I cut during remote machine installation.
QQ: 410018348

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.