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

RHEL5 installation Oracle 10g

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

Share

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

General installation

1. Install the necessary rpm

Yum install compat-db compat-libstdc++ control-center gcc gcc-c++ glibc glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver setarch libXp libaio libXp-devel libgcc libaio-devel* glibc-devel glibc elfutils-libelf elfutils-libelf-devel binutils unixODBC unixODBC-developenmotif-y

2. Modify the kernel parameter limits

Vim / etc/security/limits.conf

Oracle soft nofile 65536

Oracle hard nofile 65536

Oracle soft nproc 16384

Oracle hard nproc 16384

3. Modify the kernel parameter sysctl

Vim / etc/sysctl.conf

Kernel.shmmax = 2147483648

Kernel.shmmni = 4096

Kernel.shmall = 2097152

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

4. Let the kernel take effect

/ sbin/sysctl-p

5. Modified version

Vim / etc/redhat-release

Change 5 to 4

6. Add users and groups

Groupadd dba

Groupadd oinstall

Useradd-g oinstall-G dba-m oracle

7. Build a catalogue

Mkdir-p / u01/app/oracle

Chown-R oracle:oinstall / U01

8. Edit oracle user profile

Vim / home/oracle/.bashrc

Export ORACLE_BASE=/u01/app/oracle

Export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

Export PATH=$ORACLE_HOME/bin:$PATH

Export ORACLE_OWNER=oracle

Export ORACLE_SID=orcl

Export ORACLE_TERM=vt100

Export THREADS_FLAG=native

Export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

Export PATH=$ORACLE_HOME/bin:$PATH

Export LANG=en_US

9. Unzip the installation file

Tar zxvf oracle_10gr2.tar.gz

Chown-R oracle:oinstall database

If it is in cpio.gz format, then

Gunzip xxxx.cpio.gz

Cpio-idmv < xxx.cpio

10. Start the installation

Xhost +

Su-oracle

. / runInstaller

11. Execution after installation

Execute under root user

/ u01/app/oracle/oraInventory/orainstRoot.sh

/ u01/app/oracle/product/10.2.0/db_1/root.sh

Silent installation

Starting with step 10, follow the process below:

10 answer: prepare the answer file

Vim / tmp/enterprise.rsp

RESPONSEFILE_VERSION=2.2.1.0.0

FROM_LOCATION= "/ mnt/database/stage/products.xml"

ORACLE_HOME= "/ u01/app/oracle/product/10.2.0/db_1"

ORACLE_HOME_NAME= "OraDb10g_home1"

TOPLEVEL_COMPONENT= {"oracle.server", "10.2.0.1.0"}

DEINSTALL_LIST= {"oracle.server", "10.2.0.1.0"}

SHOW_SPLASH_SCREEN=false

SHOW_WELCOME_PAGE=false

SHOW_COMPONENT_LOCATIONS_PAGE=false

SHOW_CUSTOM_TREE_PAGE=false

SHOW_SUMMARY_PAGE=false

SHOW_INSTALL_PROGRESS_PAGE=false

SHOW_REQUIRED_CONFIG_TOOL_PAGE=false

SHOW_CONFIG_TOOL_PAGE=false

SHOW_RELEASE_NOTES=false

SHOW_ROOTSH_CONFIRMATION=false

SHOW_END_SESSION_PAGE=false

SHOW_EXIT_CONFIRMATION=false

NEXT_SESSION=false

NEXT_SESSION_ON_FAIL=false

SHOW_DEINSTALL_CONFIRMATION=false

SHOW_DEINSTALL_PROGRESS=false

ACCEPT_LICENSE_AGREEMENT=true

COMPONENT_LANGUAGES= {"en"}

CLUSTER_NODES=

INSTALL_TYPE= "EE"

S_nameForDBAGrp=dba

S_nameForOPERGrp=dba

B_oneClick=false

SHOW_DATABASE_CONFIGURATION_PAGE=false

B_createStarterDB=false

Run the installation file to indicate the answer file

. / runInstaller-silent-responseFile / tmp/enterprise.rsp

Or

. / runInstaller-ignoreSysPrereqs-silent-responseFile / tmp/enterprise.rsp

12. Execution after installation

Execute under root user

/ u01/app/oracle/oraInventory/orainstRoot.sh

/ u01/app/oracle/product/10.2.0/db_1/root.sh

Pay special attention to:

Do not install i386 version of Oracle on x86 / 64 platforms, or there will be a lot of link problems (for example, ins_net_client.mk cannot be created, etc.). Remember. Remember.

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