Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install oracle11g under centos6.5

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Installation environment:

Operating system:

Database system:

# du-sh database/ View the size of the database folder

# sysctl-a | grep sem modifies kernel parameters

# sysctl-p

Installation steps:

1. Configure the local YUM source

2 、

# groupadd oinstall

# groupadd dba

# useradd-g oinstall-G dba oracle primary group is oinstall affiliated group dba

# passwd oracle

# mkdir / u01

# chown oracle.oinstall / U01 modify users and groups

# xhost +

# su-oracle

#. / runinstaller

Oracle_base / u01/app/oracle

Oracle_home / u01/app/oracle/product/11.2.0/dbhome_1

Inventory directory / u01/app/orainventory

Oraventory group name oinstall

Global database name orcl

Oracle service identifier (SID) orcl

File system specify database file location: / u01/app/oracle/oradata

Sys/system/sysman/dbsnmp datong

Database infromation

Global database name orcl

System identifier (SID) orcl

Server parameter file name / u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfileorcl.ora

After installation is complete, configure ORACLE to start automatically

1. Type the command "vi / etc/oratab" to enter the vi editor, find "orcl:/u01/app/oracle/product/12.1.0/dbhome_1:N" and change it to "orcl:/u01/app/oracle/product/ 11.2.0/dbhome_1:Y". After the modification is completed, save and exit vi.

Note: orcl is the instance name; / u01/app/oracle/product/11.2.0/dbhome_1 is the oracle installation directory; it will vary depending on the installation.

2. Type the command "vi / etc/rc.d/rc.local"

In the vi editor, add:

Su oracle-lc "/ u01/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start"

Su oracle-lc / u01/app/oracle/product/11.2.0/dbhome_1/bin/dbstart

Note: / u01/app/oracle/product/11.2.0/dbhome_1 is the installation directory of oracle, which should be modified according to the actual situation.

3. Modify the environment variable: # vi / home/oracle/.bash_prifile

Export ORACLE_BASE=/u01/app/oracle

Export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

Export ORACLE_SID=orcl

Export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

Export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report