Linux 6.0 installation oracle11g

Source: Internet
Author: User

Linux Installation Oracle the steps

Pre-Installation Preparation

through SSH put Oracle Transfer to root directory (this installation is under VMware)

Linux for oracle11g installation package

RedHat6.0 virtual Machines

1, Create users and Groups

Groupadd Oinstall

Groupadd dba

Useradd-goinstall-g dba-m Oracle

passwd Oracle

( The following is logged in with an oracle user )

2 , modify orcle User's environment variables : Vi/home/oracle/.bash_profile

Exportoracle_sid=orcl

Exportoracle_base=/app

Export Oracle_home=/app/oracle

Exportpath= $ORACLE _home/bin: $PATH

3, Create a folder (Modify permissions for folders and files chmod 777 folder and file name)

Mkdir/app

Mkdir/app/oracle

Chown-roracle.oinstall/app

4, modifying kernel parameter files : vi/etc/sysctl.conf (Root login )

Fs.file-max =6815744

Fs.aio-max-nr =1048576

Kernel.shmall =2097152

Kernel.shmmax =2147483648

Kernel.shmmni =4096

Kernel.sem = 25032000 100 128

Net.ipv4.ip_local_port_range= 9000 65500

net.core.rmem_default= 4194304

net.core.rmem_max= 4194304

net.core.wmem_default= 262144

net.core.wmem_max= 1048576

5, to make the /etc/sysctl.conf change take effect immediately, execute the following command .

Input: sysctl-p Show

6. Modify the vi/etc/host file (can be omitted)

A,ifconfig View IP

B,hostname View Host name

7 , modify the version number of the operating system

#vi/etc/redhat-release

Change 6 to 4 .

8 , install the package

Rpm-ivh LIBXP-..... rpm

Rpm-ivh Libxp-devel-..... rpm

9, Logout Oracle user, and then log on again

Ten , with Oracle User Decompression Oracle Install package

Unzip ....

One , enter database./run ....

, Create the installation directory

Mkdir-p/app/oracle

Chown-roracle.oinstall/app

Setting language variables

Export

, in Root User Login, execute two scripts

#./app/orainventory/orainstroot.sh

./app/oracle/root.sh

in oracle Login Configuration listener NETCA

Start the database configuration DBCA

(sqlplus system/sa123456 as Sysdba) after restart service

Startup

Copy the listener to app/admin/network inside

You can create a table, build it, and use it . desc Table indicate that to make a query

Enter the graphical interface .

#cd/app/oracle/sqldeveloper/

./sqldeveloper.sh

in order to start Oracle at a later convenience, modify the Oracle kernel

Vi install directory to modify /. Bash-profile

Oracle-home/sqldeveloper

If you do not make the first - each time you run the database, you need to start the listener ( lsnrctl Start ), Database services ( sqlplussystem/sa123456 as Sysdba )

#cd/app/oracle/sqldeveloper/

./sqldeveloper.sh

The following services are started sequentially for each subsequent boot

exportlang=en (set into English, prevent garbled)

lsnrctl Start ( start listener )

Sqlplus/nolog (go to Database Settings)

Conn SYS as SYSDBA (database startup mode, prompt for password)

Startup (Open All services)

Exit (Exit Settings)

sqldeveloper.sh (Start database)


This article is from the "meeting-Rookie Road" blog, please be sure to keep this source http://chenzhou312.blog.51cto.com/8139578/1543318

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.