Linux+oracle the most important steps to simplify

Source: Internet
Author: User
Tags chmod file system ftp mkdir

First, install Linux

I installed the Oracle company compiled Linux 4.4 (5 also came out, but the Chinese support is not good, garbled)

1. If the most important role of this server is to install Oracle, then directly assign the file system to Oracle. Such as:

/boot 100m,/15g,/swap 2g,/opt 20G (future Oracle programs will be placed in this directory,/opt the equivalent of Windows C:/Program File folder),/oracledata 20G ( Used to put Oracle's physical database files), of course, if your space is large enough to give/some should be correct. Unfortunately, it turns out that if you do not fill in the parameters of the database physical file in advance, the database will automatically build the physical library under the $ORACLE _base when the library is being built. So there's no need to separate the program files from the library files.

2. When you choose to install the software:

(1) Need to install all "development" and "Legacy development" under "development". If these files are not installed, you will need to install after the operating system installed: Gcc-3.2.3-2 and so on some programs to verify that you install the Software method is (take the software as an example): Rpm-q gcc

(2) "Administrative Tools" and "System Tools" under the system. If your space is big enough, put these 2 all complete, but do not repeat install Ocfs-2-2.6.9-42.0.0.0.1el, OCFS-2-2.6.9-42.0.0.0.1ELSMP. Because by ordering the kernel version of the operating system: UNAME-R, it will be found that because the installation is the Enterprise version, so, there are: 2.6.42-4.0.1.ELSMP, so, similar to the 3 OCFs, just install the last elsmp. (Of course, in Linux 5, I found that there is no elsmp, it is estimated that you should choose Elxen, see the operating system version, or all installed, and then remove the useless). In addition, only so that all installed, because, after installation, you will find that the installation of management tools and system tools, are well after the "Application" under the "System tool" in the things, anyway, will not cause conflict. If you do not want to install it all, you should install at least: all the opening bands under the System Tools: Oracle and OCFS files. And: Sysstat. If you also want remote control, such as using Xmanager under Windows, it is a good idea to install a program that starts with a capital X under System Tools, and you can configure it later in application, System setup, login screen, select XDMCP, and enable it.

(3) Under Server, you can select only Telnet and rsh-server in FTP and legacy servers, which may be used in RAC.

(4) If you want the FTP tool, you can also choose Gftp in the Internet.

(5) Before installing the database, be sure to install the following 2 packages.

LIBAIO-0.3.105-2.I386.RPM This package in 32-bit case is this, if 64 bits, then with *64 symbol

OPENMOTIF21-2.1.30-11.RHEL4.6.I386.RPM (this may be needed for RAC)

Second, ORACLE

Most important, or can be configured only:

1, only set up a user and group, such as: Oracle DBA. The easiest way, of course, is to distribute the system with its own tools.

Attached: Common commands: Mkdir-p/u01/app/oracle

Mkdir-p/u02/oradata

Chown-r Oracle:oinstall/u01/app/oracle/u02/oradata

Chmod-r 775/u01/app/oracle/u02/oradata

2, configuration: Shellmax Shellall and other parameters (but according to Oracle's official textbook, this step can also be omitted.) Estimated to be 10g later,)

Cat >>/etc/sysctl.conf <

Kernel.shmall = 2097152

Kernel.shmmax = 2147483648

Kernel.shmmni = 4096

Kernel.sem = 250 32000 100 128

Fs.file-max = 65536

Net.ipv4.ip_local_port_range = 1024 65000

Eof

3, configuration: Bash_profile in the parameters. This step is very important.

Export Oracle_base=/opt/oracle

Export Oracle_home= $ORACLE _base/anzh

Export Oracle_sid=demo

Export Ld_library_path= $ORACLE _home/lib:/usr/lib

Export Lc_ctype=en_us. UTF-8 (this if not set to ZH_CN.) GB2312, the future will be installed in English)

Export Nls_lang=simplified Chinese_china. Zhs16gbk

And the path= $PATH: $HOME/bin line is modified to path= $PATH: $HOME/bin: $ORACLE _home/bin

The above SID and CType estimates can also be omitted.

4, in the installation, you need to determine./runinstaller has executive power over Oracle users.

If you copy Oracle to the local area, you need to:

Chown-r Oracle/opt/oracle/soft (folder for Oracle source program)

Chmod-r 777/opt/oracle/soft

into soft, chmod 777 Runinstaller

Then you can execute:./runinstaller.

5, the global database name concept. The name should include the Oracle_sid and server domain names. such as: demo1.ora.com, which, Demo1 is oracle_sid,ora.com is the domain name

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.