Oracle Silent Installation

Source: Internet
Author: User

1 Installation Preparation (I am here for the virtual machine environment, machine memory 6G)

Yum-y Install libxp binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc.i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio libaio.i686 libaio-devel Liba io-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libxp libstdc++-devel make Sysstat

2 See if the system version is 64-bit or 32 download the installation package, mine is 64-bit CentOS

Linux.x64_11gR2_database_1of2.zip

Linux.x64_11gR2_database_2of2.zip

3 adding Oracle Users and Groups

Groupadd Oinstall
Groupadd dba
Useradd-m-G oinstall-g dba Oracle

4 Modifying the kernel (depending on your machine memory and related configuration)

Vm.hugetlb_shm_group = 501
Kernel.shmmax = 2147483648

Kernel.sem = 250 32000 100 128
Fs.file-max = 6815744
Net.ipv4.ip_local_port_range = 1024 65000
Aio-max-nr =1048576
Net.core.rmem_default = 4194304
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 262144


Run Command # sysctl–p

5 Modifying Files/etc/security/limits.conf

Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
# End of File

6 Modifying/home/oracle/.bash_profile

# User specific environment and startup programs
Oracle_base=/u01/oracle
Oracle_home= $ORACLE _base/home
oracle_sid=orcl11g
Ld_library_path= $ORACLE _home/lib
Path= $PATH: $ORACLE _home/bin: $HOME/bin
Export oracle_base oracle_home oracle_sid ld_library_path PATH



7 Modifying Responsefile

./runinstaller-silent-force-responsefile/opt/database/response/db_install.rsp

Modify the response file Db_install.rsp (under install software)

#以下参数根据实际情况更改, no changes are generally required

Unix_group_name=oinstall

Inventory_location=/u01/app/oracle/orainventory

Selected_languages=en,zh_cn

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

Oracle_base=/u01/app/oracle

Oracle.install.db.installedition=ee

Oracle.install.db.iscustominstall=true

oracle.install.db.customcomponents=oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0, oracle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0

Oracle.install.db.dba_group=dba

Oracle.install.db.oper_group=oinstall

Each parameter has the following meanings:

-silent indicates a silent installation with no hint

-force allow installation to a non-empty directory

-noconfig indicates that the configuration Assistant is not running NETCA

-responsefile indicates which response file to use, must use absolute path

oracle.install.responseFileVersion The version of the response file template, which does not change

oracle.install.option installation option, this example installs only the Oracle software, this parameter does not change

decline_security_updates whether an online security update is required, set to false, do not change the parameter

Oracle_hostname Install host name

Unix_group_name group name used by Oracle users to install software

inventory_location Oracle Product Inventory Catalog

selected_languages Oracle Runtime language environment, generally including citation and simplified Traditional Chinese

Oracle_home Oracle installation directory

Oracle_base Oracle Base Directory

oracle.install.db.InstallEdition installation version type, generally Enterprise Edition

Oracle.install.db.isCustomInstall whether to customize the installation, the default Partitioning,olap,rat is selected

oracle.install.db.customComponents List of Custom installation components: In addition to the default above, label security and database Vault can be added

Oracle.install.db.DBA_GROUP the group name that Oracle users use to grant OSDBA permissions

Oracle.install.db.OPER_GROUP the group name that Oracle users use to grant Osoper permissions


My configuration file

=====================================================

oracle.install.responsefileversion=/oracle/install/rspfmt_dbinstall_ Response_schema_v11_2_0oracle.install.option=install_db_swonlyoracle_hostname=unix_group_name= oinstallinventory_location=/u01/oralce/orainventoryselected_languages=en,zh_cnoracle_home=/u01/oracle/ Homeoracle_base=/u01/oracleoracle.install.db.installedition=eeoracle.install.db.iscustominstall= Trueoracle.install.db.customcomponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk : 11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0, Oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap : 11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat : 11.2.0.1.0oracle.install.db.dba_group=dbaoracle.install.db.oper_group=oinstall 


Run./RUNINSTALLER-SILENT-FORCE-RESPONSEFILE/OPT/DATABASE/RESPONSE/DB_INSTALL.RSP


8 View the installation progress log based on the interface prompts

Run the following two scripts under the root account:

/u01/app/oracle/orainventory/orainstroot.sh

/u01/app/oracle/product/11.2.0/dbhome_1/root.sh


9 Installation Monitoring

run with response file N et CA , Generate Sqlnet.ora and the listener.ora files, located in the $oracle_home/network/admin directory :

#  su-oracle

$  $ORACLE _home/bin/netca/silent/responsefile/opt/database /RESPONSE/NETCA.RSP

$  ll $ORACLE _home/network/admin/*.ora

$  lsnrctl Status

after the execution, the listener has started. , the default port is 1521, the default is dynamic monitoring, as long as the instance is started and will be heard .




10, Silent Build library:

Configure the response file first:

$  VI/OPT/DATABASE/RESPONSE/DBCA.RSP

#--------------------------------------------------------------------


#以下参数必须设置

[CreateDatabase]

Gdbname = "ORCL. LK "

templatename = "General_purpose.dbc"

#以下参数不设置则使用默认值, it is recommended to set

CHARACTERSET = "ZHS16GBK"

TotalMemory = "2048"

=============================================

My configuration file

[general]responsefile_version =  "11.2.0" OPERATION_TYPE  =  "CreateDatabase" [createdatabase]gdbname =  "orcl11g" sid =  "orcl11g" TEMPLATENAME  =  "General_purpose.dbc" characterset =  "ZHS16GBK" totalmemory =  "1024" [ createtemplatefromdb]sourcedb =  "MYHOST:1521:ORCL" sysdbausername =  "System" TEMPLATENAME  =  "My copy template" [createclonetemplate]sourcedb =  "ORCL" templatename =   "My clone template" [deletedatabase]sourcedb =  "ORCL" [Generatescripts]templatename  =  "New database" gdbname =  "orcl11.us.oracle.com" [configuredatabase][addinstance]db_ unique_name =  "orcl11g.us.oracle.com" nodelist=sysdbausername =  "sys" [deleteinstance]db_ unique_name =  "orcl11g.us.oracle.com" instancename =  "orcl11g" sysdbausername =  " SYS "


$ORACLE _home /bin /dbca-silent -responsefile /opt/database/response/DBCA. RSP

Each parameter has the following meanings:

-silent indicates a silent installation

-responsefile indicates which response file to use, must use absolute path

Responsefile_version the version of the response file template, this parameter does not change

Operation_type installation type, do not change this parameter

Gdbname the global database name, the dot number before the default is db_name, the dot after the default is Db_domain

templatename Build Library template name, refer to each template definition: $ORACLE _home/assistants/dbca/templates /*.dbc

CHARACTERSET Character Set,


If you don't have an accident, you are done.


Installation considerations:

1. turn off the firewall and disable SELinux

# Vi/etc/selinux/config

Modify the selinux=disabled, and then restart.
If you do not want to restart the system, use the command Setenforce 0

2 need to install LIBXP This library, this must be installed, otherwise install Oracle will appear Java Exception.

3 modifying Linux distribution Information

Because CentOS 6 was not released when the Oracle 11g was released, Oracle 11g did not confirm support for CentOS 6 and needed to modify the file to support CentOS 6 for Oracle 11g.

We need to manually modify the Linux release notes so that Oracle 10g supports CentOS 6.

Edit/etc/redhat-release File

# Vi/etc/redhat-release

Change the content of CentOS release 6.3 (Final) to Redhat 4

4 Configuring the Linux host

Check the/etc/hosts file for the record of localhost (point to 127.0.0.1), if not, in the later configuration of Oracle monitoring will have some problems, resulting in the inability to start monitoring, manually add this record (must correspond)

[Email protected] ~]# cat/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 oracle2

Otherwise, there may be ora-24408 errors.

Warning:ocilogon () [Function.ocilogon]: Ora-24408:could not generate unique server group name in/home/www/a.php on line 2
Ora-24408:could not generate unique server group name


5 If you are unable to see the installation interface, run the following command using the root account before running the Setup program :

Unable to start a interactive install session because of the following Error:can ' t connect to X11 Window server using ' 19 2.168.1.1:0.0 ' As the value of the DISPLAY variable. The DISPLAY environment variable should is set to

# Export display=:0.0
# Xhost +
$./runinstaller


This article is from the blog of "Kun-brother", please make sure to keep this source http://kunge.blog.51cto.com/976628/1585869

Oracle Silent Installation

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.