Silent installation of Oracle database on OEL7.0

Source: Internet
Author: User

Silent installation of Oracle database on OEL7.0

Silent installation I use less, basically do not need to use a silent installation. Even a text-mounted system uses Xmanager to redirect graphics. But there is always an exception, such as on the Mac operating system, seemingly no xmananger, then the virtual machine if only installed text interface can only install silently, if you put another graphical that the other situation.

Location: Binjiang, Hangzhou

Public Number: Hoptoad

Email: [email protected]

Welcome Reprint Reprint Mark Source::

http://blog.csdn.net/notbaron/article/details/42396485

1. Operating system Environment settings

Depending on the operating system to install different versions of Oracle database, configuration has a slight difference, not described here, you can set according to their own environment. Here is an example of 12C on OEL7.0.

1.1 Edit/etc/sysctl.conf

FS.AIO-MAX-NR = 1048576

Fs.file-max = 6815744

Kernel.shmall = 2097152

kernel.shmmax=913516544

Kernel.panic_on_oops=1

Kernel.shmmni = 4096

Kernel.sem = 250 32000 100 128

Net.ipv4.ip_local_port_range = 900065500

Net.core.rmem_default = 262144

Net.core.rmem_max = 4194304

Net.core.wmem_default = 262144

Net.core.wmem_max = 1048586

Executive Sysctl–p

1.2 Creating a directory user


Groupadd Oinstall

Groupadd dba

Groupadd Oper

Groupadd Asmadmin

Groupadd ASMDBA

Groupadd Asmoper

Useradd-g oinstall-gdba,asmdba,asmadmin,asmoper Grid

Useradd-g oinstall-g dba,oper,asmdbaoracle

Mkdir-p/u01/app/12.1.0/grid

Mkdir-p/u01/app/grid

Mkdir-p/u01/app/oracle

Chown Grid:oinstall/u01/app/12.1.0/grid

Chown Grid:oinstall/u01/app/grid

Chown-r oracle:oinstall/u01/app/oracle

Chmod-r 775/u01/

Chown-r grid:oinstall/u01

Modify User Password

passwd grid

passwd Oracle

1.3 Configuring/etc/security/limits.conf


Oracle Soft Nproc 2047

Oracle Hard Nproc 16384

Oracle Soft Nofile 1024

Oracle Hard Nofile 65536

Oracle Soft Stack 10240

Grid Soft Nproc 2047

Grid hard Nproc 16384

Grid Soft Nofile 1024

Grid hard Nofile 65536

Grid Soft Stack 10240

1.4 Setting Oracle Environment variables

Export tmp=/tmp;

Export tmpdir= $TMP;

Export oracle_base=/u01/app/oracle;

Export Oracle_home= $ORACLE _base/product/12.1.0/db_1;

Export oracle_sid=prod;

Export oracle_term=xterm;

Export Path=/usr/sbin: $PATH;

Export path= $ORACLE _home/bin: $PATH;

Exportld_library_path= $ORACLE _home/lib:/lib:/usr/lib;

Exportclasspath= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib;

Export nls_date_format= "YYYY-MM-DDHH24:MI:SS";

Export Nls_lang=american_america. ZHS16GBK;

1.5 Modifying/etc/hosts

Add host Name

2 Silent Installation 2.1 installation 2.1.1 Edit Auto Answer file

Orace installation itself requires some interaction with the user, if you want to cancel these interactions must be in advance to write the content of the reply to a file, this file is an automatic answer file, then we began to make the file.

oracle.install.responsefileversion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
Oracle.install.option=install_db_swonly
Oracle_hostname=slave
Unix_group_name=dba
Inventory_location=/u01/app/orainventory
selected_languages=en
Oracle_home=/u01/app/oracle/product/12.1.0/db_1
oracle_base=/u01/app/oracle/product/12.1.0
Oracle.install.db.installedition=ee
Oracle.install.db.dba_group=dba
Oracle.install.db.oper_group=dba
Oracle.install.db.backupdba_group=dba
Oracle.install.db.dgdba_group=dba
Oracle.install.db.kmdba_group=dba
Oracle.install.db.israconeinstall=false
Security_updates_via_myoraclesupport=false
Decline_security_updates=true
Oracle.installer.autoupdates.option=skip_updates

2.1.2 Installation

The command is as follows:

./RUNINSTALLER-SILENT-NOCONFIG-IGNOREPREREQ-RESPONSEFILE/HOME/ORACLE/DATABASE/DB.RSP viewing the installation process

You can view the installation progress in the/opt/app/orainventory/logs directory

The final appearance is as follows:

.......................

info:completed Validating State <finish>

Info:terminating All background operations

info:terminated All background operations

Info:successfully executed the flow in SILENT mode

Info:dispose the current Session instance

Info:dispose the Install Area control object

Info:update the state machine to State_clean

Info:finding the most appropriate exit status for the current application

Info:exit Status is 0

Info:shutdown Oracle Database 12c Release 1 Installer

--------------------------------------------------------------------------------

Installation success Prompt Execution script

l7database]$ you can find the log of this install session at:

/u01/app/orainventory/logs/installactions2015-01-01_06-09-15pm.log

[Email protected]]$ the installation of Oracle Database 12c was successful.

Pleasecheck '/u01/app/orainventory/logs/silentinstall2015-01-01_06-09-15pm.log ' formore details.

As Aroot user, execute the following script (s):

1./u01/app/orainventory/orainstroot.sh

2./u01/app/oracle/product/12.1.0/db_1/root.sh

Successfullysetup software.

Asinstall user, execute the following script to complete the configuration.

1./u01/app/oracle/product/12.1.0/db_1/cfgtoollogs/configtoolallcommandsresponse_file=<response_file>

Note:

1. This script must is run on the samehost from where installer is run.

2. This script needs a small passwordproperties file for configuration assistants that require passwords (refer Toinstall Guide documentation).

2.1.3 parameter meaning

-silent indicates 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, this parameter 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 the group name that Oracle users use 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 is a custom installation, the default Partitioning,olap,rat is selected

Oracle.install.db.customComponents Custom Installation Components list: 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

2.2 Silent Configuration Listener 2.2.1 Configuration answer File

[General]
Responsefile_version= "12.1"
Create_type= "CUSTOM"
[oracle.net.ca]
installed_components={"Server", "Net8", "JAVAVM"}
Install_type= "" Typical ""
Listener_number=1
listener_names={"LISTENER"}
listener_protocols={"tcp;1521"}
Listener_start= "" LISTENER ""
naming_methods={"TNSNames", "Onames", "HOSTNAME"}
Nsn_number=1
nsn_names={"Extproc_connection_data"}
nsn_service={"Plsextproc"}
nsn_protocols={"TCP; hostname;1521 "}

2.2.2 Execution

#netca-SILENT-RESPONSEFILE/HOME/ORACLE/NETCA.RSP

EXECUTE as follows:

Parsingcommand Line arguments:

Parameter "Silent" = True

Parameter "Responsefile" =/home/oracle/netca.rsp

doneparsing command line arguments.

Oraclenet Services Configuration:

Profileconfiguration complete.

Oraclenet Listener Startup:

Running Listener Control:

/u01/app/oracle/product/12.1.0/db_1/bin/lsnrctl Start LISTENER

Listener Control complete.

Listener started successfully.

Listenerconfiguration complete.

Oraclenet Services Configuration successful. The exit code is 0

2.2.3 Configuring local Tnsname.ora Files

PROD3 =

(DESCRIPTION =

(Address_list =

(ADDRESS = (PROTOCOL = TCP) (HOST =192.168.1.203) (PORT = 1521))

)

(Connect_data =

(service_name = prod3)

)

)

Remote link, node off firewall!

2.3 Silent Build Library 2.3.1 Generate a response file template:

$ VI $DISTRIB/DB_CREATE.RSP

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

#以下参数不要更改

[General]

Responsefile_version = "12.1.0"

Operation_type = "CreateDatabase"

#以下参数必须设置

[CreateDatabase]

Gdbname = "ORCL"

templatename = "General_purpose.dbc"

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

TotalMemory = "512"

2.3.2 Silent Build Library

The seed database and control files are located under $oracle_home/assistants/dbca/templates/, that is, SEED_DATABASE.DFB and seed_database.ctl files, In fact, the repository is based on the recovery of the seed database and control files through Rman.

$ dbca-silent-responsefile $DISTRIB/DB_CREATE.RSP

Enter SYS User password:

< input sys user password >

Enter SYSTEM User password:

< Enter the system user password >

Each parameter has the following meanings:

-silent indicates 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, default is we8mswin1252

TotalMemory instance memory, default is 40% of the server's physical memory

2.3.3 Installation Progress

$ tail-f $ORACLE _base/cfgtoollogs/dbca/$ORACLE _sid/$ORACLE _sid.log

2.4 Silent Delete Library 2.4.1 generate a response file template:

$ VI $DISTRIB/DB_DELETE.RSP

#以下参数无需修改更改

[General]

Responsefile_version = "12.1.0"

Operation_type = "DeleteDatabase"

#以下参数根据实际情况更改

[DeleteDatabase]

Sourcedb = "ORCL"

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

2.4.2 Delete Library

$ dbca-silent-responsefile $DISTRIB/DB_DELETE.RSP

Each parameter has the following meanings:

-silent means to silently delete

-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

Sourcedb database name, not the global database name, which does not contain db_domain

3) View the log information to see the progress:

$ tail-100f $ORACLE _base/cfgtoollogs/dbca/$ORACLE _sid/$ORACLE _sid.log

Silent installation of Oracle database on OEL7.0

Related Article

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.