Oracle Silent installation-Simple logging

Source: Internet
Author: User
Tags dba

First, the same as the graphical interface installation, check the following conditions:
New user, Group
Create the installation directory
Configuring Environment variables
Check the installation dependency package
modifying kernel parameters
......
The preceding operations are normal operations, both graphical and silent.

Two
/home/oracle/database/response has three answer files for ENTERPRISE.RSP, STANDARD.RSP and CUSTOM.RSP, respectively, for the Enterprise Edition, Standard Edition and custom installation.
1. Edit file: enterprise.rsp
The following options are mainly modified:
Oracle.install.option=install_db_swonly--Installation type
ORACLE_HOSTNAME=RAC1--Host name
Unix_group_name=oinstall--Installation Group
Inventory_location=/db/oracle/orainventory--INVENTORY catalogue
SELECTED_LANGUAGES=EN,ZH_CN--Select language
Oracle_home=/db/oracle/product/11.2.0/db_1--Oracle_home
Oracle_base=/db/oracle--Oracle_base
Oracle.install.db.installedition=ee--Oracle version
Oracle.install.db.iscustominstall=true--Custom installation
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=RAC1--Globaldbname
ORACLE.INSTALL.DB.CONFIG.STARTERDB.SID=RAC1--SID
ORACLE.INSTALL.DB.CONFIG.STARTERDB.MEMORYLIMIT=512--Minimum memory for automatic management of memory (M)
Oracle.install.db.config.starterdb.password.all=oracle--Set all database users to use the same password
Decline_security_updates=true--Set security update must be set to True, no will prompt email address not set cannot install
Note during installation, as needed, you can configure the software to be installed before you create the DB instance, or install it at the same time.

2. Perform the installation
./runinstaller-silent-responsefile/home/oracle/database/response/enterprise.rsp

In fact, you can install the graphical interface, execute the following command, and then follow the prompts in Oui to perform the installation of the database software steps to operate
$./runinstaller-record-destinationfile/tmp/install_database.rsp
This generates the appropriate response file for you
The silent is then installed as./RUNINSTALLER-SILENT-NOCONFIG-RESPONSEFILE/TMP/INSTALL_DATABASE.RSP-the installation of an RSP file using the graphical interface when it is installed.

3. Follow the prompts, log in as root, and execute the following two files
/u01/app/oracle/orainventory/orainstroot.sh
/u01/app/oracle/product/10.2.0/db_1/root.sh


4. Install the network Listener
To edit the netca.rsp answer file under the Oracle installation directory, the address is:/DATABASE/RESPONSE/NETCA.RSP, which mainly looks at the following parameter configuration:
Install_type= "Custom" type of installation
Listener_number=1 Number of listeners
listener_names={Name List of "LISTENER"} Listeners
listener_protocols={List of communication protocols used by the "tcp;1521"} Listener
listener_start= "LISTENER" "Listener startup Name
To run the Install command:
$ORACLE _HOME/BIN/NETCA/SILENT/RESPONSEFILE/HOME/ORACLE/DATABASE/RESPONSE/NETCA.RSP


5. Create an instance
Modify/HOME/ORACLE/DATABASE/RESPONSE/DBCA.RSP
Mainly as follows, modify according to the actual situation:
Responsefile_version = "10.0.0"
Operation_type = "CreateDatabase"
Gdbname = "ORCL"--Database global name
Sid = "TSH1"-this SID must be the same as the SID in the previous/home/oracle/.bash_profile file
templatename = "NEW_DATABASE.DBT"
Syspassword = "System"--the initial password of the SYS user
Systempassword = "System"--system user's initial password
Datafiledestination = "/u01/app/oracle/oradata/"
recoveryareadestination= "/u01/app/oracle/flash_recovery_area"
Storagetype=fs
CHARACTERSET = "ZHS16GBK"--database character set (Chinese is ZHS16GBK)
Memorypercentage = "40"
Scriptdestination = "/u01/app/oracle/admin/ora10g/scripts"
emconfiguration= "LOCAL"
Sysmanpassword = "System"
Dbsnmppassword = "System"
The last 1 items are not required, and the goal is to generate a script while the database is being built.
Below you can start the database creation of silent mode.

Dbca-silent-responsefile/home/oracle/dbca.rsp


6. After the instance is created, the test is normal.

Oracle Silent installation-Simple logging

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.