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

Automate silent installation of Oracle database

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

1.1 extract the installation package

Oracle11gR2 is installed into two installation packages. After all the packages are unzipped, you need to merge the contents of the two packages and install them.

Oracle version of linux64_11gR2 operating system CentOS7.0-X86-64bitOracle installation file

1.1.1. Upload and decompress

Upload and decompress oracle users.

Unzip linux.x64_11gR2_database_1of2.zip

Unzip linux.x64_11gR2_database_2of2.zip

1.2 Oracle database installation

2.2.1. Upload and decompress the compressed package

Upload the oracle_install.zip package and decompress it.

Unzip oracle_install.zip

Execute script sh oracle_install.sh to automatically deploy the oracle environment

2.2.2. Configure db_install.rsp

It's already packed in db_install.zip.

Change the options:

Oracle.install.option=INSTALL_DB_SWONLY / / installation type

ORACLE_HOSTNAME=10.10.17.161 / / Host name (just change it to ip address)

UNIX_GROUP_NAME=oinstall / / installation group

INVENTORY_LOCATION=/ home / oracle/app / / INVENTORY directory (write BASE by default)

SELECTED_LANGUAGES=en,zh_CN,zh_TW / / Select language

ORACLE_HOME=/ home / oracle/app/product/11.2.0/dbhome_1 / / oracle_home

ORACLE_BASE=/ home / oracle/app / / oracle_base

Oracle.install.db.InstallEdition=EE / / oracle version

Oracle.install.db.DBA_GROUP=dba / / dba user group

Oracle.install.db.OPER_GROUP=oinstall / / oper user group

Oracle.install.db.config.starterdb.type=GENERAL_PURPOSE / / database type

Oracle.install.db.config.starterdb.globalDBName=orcl / / globalDBName global database name

Oracle.install.db.config.starterdb.password.ALL=oracle / / default password

2.2.3. Execute installation command

. / runInstaller-silent-force-ignorePrereq-responseFile / home/oracle/db_install.rsp

You need to wait for the following screen to complete, switch to your root account and execute two scripts.

2.2.4. Install the global database

It's already packed in dbca.zip.

Execute the command to start installing dbca-silent-responseFile / home/oracle/dbca.rsp

Log: / home/oracle/app/cfgtoollogs/dbca/orcl/trace.log

After execution, start to clear the screen, and then directly enter the default password set earlier and hit enter, and the installation will begin automatically.

2.2.5. Configure the listening file

Two listening files have been packaged in jianting.zip. Modify the following configuration accordingly:

Listener:

HOST = 192.168.0.250 / / Server address

PORT = 1521 / / listening port

ORACLE_HOME=/home/oracle/app/product/11.2.0/dbhome_1 / / specify the home of the oracle

Tnsnames:

HOST = 192.168.0.250 / / Server address

PORT = 1521 / / listening port

After configuration, put it under / home / oracle/app/product/11.2.0/dbhome_1/network/admin/.

Lsnrctl start, start oracle snooping.

Note: if you want scripts and monitoring files, please send me email 1052973860@qq.com.

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