The silent install linux oracle

First, the preparatory work before installation
1, modify the host name
#vi / etc / hosts // and add the internal IP address corresponding to the hostname, as follows
127.0.0.1 localhost
:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.8.151 linux- test

2, the standby database modify / etc / sysconfig / iptables file, opening port 1521:
# VI / etc / sysconfig / iptables
-A State --state the INPUT NEW -m -m -p TCP TCP --dport 1521 -j ACCEPT

3, restart iptables service:
# Service iptables restart

Second, the installation steps:
1. Installation yum:
# -SF5 /media/RHEL_6.4 LN \ the x86_64 \ Disc \ 1 / RHEL

# vi /etc/yum.repos.d/rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=file:///root/rhel/
enabled=1
gpgcheck=0
gpgkey=file:///root/rhel/


2, the installation package :( oracle will be pdksh-5.2.14-36.el5.x86_64.rpm package uploaded to / root / directory)
# yum the install GCC -Y-C ++ *
# yum the install libaio -Y-devel *
yum -y install elfutils-# libelf-devel *
# * RPM -ivh pdksh

# cd /root/rhel/Packages
# rpm -ivh compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm

 

3, modify kernel parameters
# vi /etc/sysctl.conf increase in the final document:

16G memory recommended values:
fs.aio-NR-max = 1048576
fs.file-max = 6.5536 million
kernel.shmall = 8388608
kernel.shmmax = 9,663,676,416
kernel.shmmni = 4096
kernel.sem = 100 142 2010 285.42 thousand
net.ipv4.ip_local_port_range = 65000 1024
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1,048,586


(参考值:
fs.aio-max-nr = 1048576
fs.file-max = 6553600
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
)


Detailed parameters as follows:
fs.aio-NR-max = // 1048576 and can have a number of requests for asynchronous IO. 1048576 1024 * 1024 is a 1024K.
fs.file-max = 6553600 // the system allows the number of open files.
kernel.shmall = 4194304 // set the total number of pages of shared memory. The value is too small may lead to start the database error. This is the value of 8G, if more than 8G need to be adjusted.
                                  The formula is: Memory (G) * 1024 * 1024 * 1024 / 4096,4096 getconf PAGE_SIZE to obtain page size.
kernel.shmmax = maximum shared memory segment alone Linux process can allocate 2147483648 //. Usually set to half the total memory size.
                                  This value should be greater than the set value or MEMORY_MAX_TARGET SGA_MAX_TARGET, and
                                  thus mounting the Oracle database system, should be greater than the value of shmmax half some memory.

kernel.shmmni = 4096 // Set the maximum number of shared memory segments system level. Recommended minimum is 4096.
kernel.sem = 610 86620 100 142 // left to right are SEMMSL, SEMMNS, SEMOPM and SEMMNI.
                                  1) SEMMSL: setting the maximum number of groups each signal light, the recommended minimum of 250.
                                             For the present system, a large number of concurrent connections a system, it is recommended to set this value plus 10 PROCESSES initialization parameter.
                                            
                                  2) SEMMNS: Sets the maximum number of semaphore system. Operating system in the allocation of lights will not exceed LEAST (SEMMNS, SEMMSL * SEMMNI) .
                                             In fact, if the value exceeds the SEMMNS SEMMSL * SEMMNI is illegal, it is recommended that it is set to a value of SEMMNS SEMMSL * SEMMNI.
                                             Oracle is not less than the recommended settings SEMMNS 32000, PROCESSES parameter if the database is set to 600, the set should SEMMNS:

                                             SQL> select (600+10)*142 from dual;

                                                 (600+10)*142
                                                 ------------
                                                  86620

                                  3) SEMOPM: Set the maximum number of lights each system call can perform simultaneous operations.
                                             Since a signal group with the most SEMMSL traffic light, it is recommended to SEMOPM set to the value of SEMMSL.
                                             SEMOPM Oracle configuration and verification 10.2 11.1 100.

                                  4) SEMMNI: it is setting the maximum number of signal groups in the system. Oracle10g and 11g recommended value of 142.

net.ipv4.ip_local_port_range = 1024 65000 // ip_local_port_range represents the range of ports for the specified content 
net.core.rmem_default = 262144 // default value represents the receive socket buffer size (in bytes).
net.core.rmem_max = 4194304 // represents the maximum receive socket buffer size (in bytes).
net.core.wmem_default = 262144 // Default value represents the size of the transmit socket buffer (in bytes).
net.core.wmem_max = 1048586 // denotes the maximum transmit socket buffer size (in bytes.

 

Finally, enter the following command, so that the kernel parameters to take effect:
# / sbin / sysctl -p

sysctl -p error solution is as follows:
modprobe Bridge
lsmod | grep Bridge
sysctl -p


3, modify the user's limit file
# vi /etc/security/limits.conf after the file increases
the Oracle Soft nproc 2047
the Oracle 16384 Hard nproc
the Oracle Soft nofile 1024
the Oracle 65536 Hard nofile
the Oracle Stack Soft 10240


# Vi /etc/pam.d/login file (64-bit systems, do not write /lib/security/pam_limits.so, otherwise you can not sign) to add the following:
the session required /lib64/security/pam_limits.so
the session required pam_limits.so


# Vi / etc / profile (unset -f pathmunge next line) add the following:
IF [$ the USER = "Oracle"]; the then
 IF [$ the SHELL = "/ bin / ksh"]; the then
  the ulimit -p 16384
  the ulimit - 65536 n-
 the else
  the ulimit -n -u 16384 65536
 Fi
Fi


4, the establishment of user groups and user
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba -d / Home / oracle oracle
# passwd oracle // oracle password settings


5, create a directory and modify the permissions:
# mkdir -p / Home / the Oracle / App
# mkdir -p / Home / the Oracle / App / the Oracle
# mkdir -p / Home / the Oracle / App / the Oracle / Product
# mkdir -p / Home /oracle/app/oracle/product/11.2.0 // database system installation directory
# mkdir -p /home/oracle/app/oracle/product/11.2.0/dbhome_1
# mkdir -p / Home / the Oracle / Backup // data backup directory
# mkdir -p / home / oracle / oraInventory // directory list

# chown -R oracle:oinstall /home/oracle/app
# chown -R oracle:oinstall /home/oracle/backup
# chown -R oracle:oinstall /home/oracle/oraInventory

# chmod -R 775 /home/oracle/app

6、设置并刷新环境变量:
# su - oracle
$ vi /home/oracle/.bash_profile
umask 022
export ORACLE_BASE=/home/oracle/app
export ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1
export ORACLE_SID=xtwl
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

$ source ~/.bash_profile

7, extract the installation package :( oracle software will be uploaded to / home / oracle directory)
# su - oracle
$ the unzip p10404530_112030_Linux-x86-64_1of7.zip
$ p10404530_112030_Linux-x86-64_2of7.zip the unzip


8, install the oracle software:
$ cp -R / Home / oracle / Database / the Response / Home / oracle // copy the template
$ cd / Home / oracle / the Response
$ vi db_install.rsp // modify the installation answer file

The role of the three documents are:
db_install.rsp: Setup answer
dbca.rsp: Create a database response
netca.rsp: establish monitoring, network settings such as the name of a local service response

In particular please use the component configuration afterwards at right statement for the verification (select comp_id, comp_name, version, status from dba_registry)

配置安装应答文件db_install.rsp,如下:
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=nmgdboracle    //通过hostname命令获取
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/home/oracle/oraInventory
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
ORACLE_BASE=/home/oracle/app
oracle.install.db.InstallEdition=EE
oracle.install.db.EEOptionsSelection=true
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.3.0,oracle.oraolap:11.2.0.3.0,oracle.rdbms.dm:11.2.0.3.0,oracle.rdbms.dv:11.2.0.3.0,oracle.rdbms.lbac:11.2.0.3.0,oracle.rdbms.rat:11.2.0.3.0
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oinstall
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
oracle.install.db.config.starterdb.globalDBName=xtwl
oracle.install.db.config.starterdb.SID=xtwl
oracle.install.db.config.starterdb.characterSet=AL32UTF8
oracle.install.db.config.starterdb.memoryOption=true
oracle.install.db.config.starterdb.memoryLimit=10240              //物理内存的60%左右
oracle.install.db.config.starterdb.password.ALL=oracle             //注意修改
oracle.install.db.config.starterdb.control=DB_CONTROL
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true   //一定要是true


cd $ / Home / the Oracle / Database
$. / runInstaller -silent -responseFile /home/oracle/response/db_install.rsp // understand the progress of the installation tail -f / home / oracle / oraInventory / logs / installActions * log

// When the installation interface appears when the following information
of The Installation of the Oracle Database 11g WAS successful.
Please Check '/home/oracle/oraInventory/logs/silentInstall2016-02-04_09-21-13AM.log' for More Details.

As a root user, execute the following script(s):
 1. /home/oracle/oraInventory/orainstRoot.sh
 2. /home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh


Successfully Setup Software.

// execute the following script in the root login window of the newly opened in
# / Home / the Oracle / oraInventory / the orainstRoot.sh
# / Home / the Oracle / App / the Oracle / Product / 11.2.0 / dbhome_1 / the root.sh
// execution after the above script back to the installation screen and press the Enter key to continue


9, configuration oracle listener:
$ cd / Home / oracle / the Response

$netca /silent /responsefile /home/oracle/response/netca.rsp

After a successful run, generate sqlnet.ora and listener.ora /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin two files in the directory.
By netstat -tlnp command, see
tcp 0 0 0.0.0.0:1521 0.0.0.0:* LISTEN 22494 / tnslsnr
Description listener has started to work on port 1521


10, installing oracle database
$ cd / Home / oracle / the Response
$ vi dbca.rsp // modify the answer file to create the database

= RESPONSEFILE_VERSION "11.2.0"
OPERATION_TYPE = "createDatabase"
# ----------------------- *** *** ---- End of the GENERAL Section --------------------
GDBNAME = "xtwl"
the SID = "xtwl"
TEMPLATENAME = "General_Purpose.dbc"
SYSPASSWORD = "Oracle"
SystemPassword = "Oracle"
DATAFILEDESTINATION = / Home / the Oracle / App / oradata
# RECOVERYAREADESTINATION = / Home / the Oracle / Backup // the parameter setting is invalid, the default table space recovery is still ORACLE_BASE $ / flash_recovery_area
CHARACTERSET = "AL32UTF8"
totalMemory = "10240" // physical memory 60 about%
# ----------------------- *** *** -------------- End of Section CREATE DATABASE ----------

$ Dbca -silent -responseFile /home/oracle/response/dbca.rsp (silent uninstall: dbca -silent -deleteDatabase -sourcedb xtwl -sid xtwl)

See the following instructions to create a successful statement
Look at the log file "/home/oracle/app/cfgtoollogs/dbca/xtwl/xtwl.log" for further details.

Check the situation created
$ cat /home/oracle/app/cfgtoollogs/dbca/xtwl/xtwl.log

After building a database instance checks:
$ PS -ef | grep ORA_ | grep -v grep
? The Oracle 39754 1 0 10:20 00:00:00 ora_pmon_xtwl
? The Oracle 39756 1 0 10:20 00:00:00 ora_vktm_xtwl
the Oracle 39760 1 0 ? 10:20 00:00:00 ora_gen0_xtwl
? the Oracle 39762 1 0 10:20 00:00:00 ora_diag_xtwl
the Oracle 39764 1 0 10:20 00:00:00 ora_dbrm_xtwl?
the Oracle 39766 1 0 10:20 00:00?: ora_psp0_xtwl 00
? the Oracle 39768 1 0 10:20 00:00:00 ora_dia0_xtwl
the Oracle 39770 1 0 10:20 00:00:00 ora_mman_xtwl?
the Oracle 39 772 1 0 10:20 00:00:00 ora_dbw0_xtwl?
the Oracle 39774 1 0 10: 20? 00:00:00 ora_lgwr_xtwl
Oracle 39 776 1 0 10:20? 00:00:00 ora_ckpt_xtwl
Oracle 39 778 1 0 10:20? 00:00:00 ora_smon_xtwl
Oracle 39 780 1 0 10:20? 00:00:00 ora_reco_xtwl
Oracle 39 782 1 0 10:20? 00:00:00 ora_mmon_xtwl
Oracle 39 784 1 0 10:20? 00:00:00 ora_mmnl_xtwl
Oracle 39 786 1 0 10:20? 00:00:00 ora_d000_xtwl
Oracle 39 788 1 0 10:20? 00:00:00 ora_s000_xtwl
Oracle 39 798 1 0 10:20? 00:00:00 ora_qmnc_xtwl
oracle 39813 1 0 10:20? 00:00:00 ora_cjq0_xtwl
oracle 39815 1 0 10:20? 00:00:00 ora_q000_xtwl
oracle 39817 1 0 10:20? 00:00:00 ora_q001_xtwl

Check listening state
$ lsnrctl status


Third, the parameter modification:

Spfile need to manually back up files:
cp $ ORACLE_HOME / dbs / spfilextwl.ora $ ORACLE_HOME / dbs / spfilextwl_bak.ora


1, modify the maximum number of connections:
SQL> Show Parameter Processes;
SQL> SET ALTER System Processes = 2000 = SPFILE scope;


2, the recycle bin function is prohibited:
the SQL> Show Parameter RECYCLEBIN;
the SQL> ALTER System RECYCLEBIN = OFF SET = SPFILE scope;


3, auditing shutdown:
the SQL> Show Parameter Audit;
the SQL> ALTER System SET = SPFILE scope AUDIT_TRAIL = NONE;


4、修改用户密码用不过期:
SQL> select * from dba_profiles s where s.profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
PROFILE          RESOURCE_NAME   RESOURCE
------------------------------ -------------------------------- --------
LIMIT
----------------------------------------
DEFAULT          PASSWORD_LIFE_TIME  PASSWORD
180
SQL> alter profile default limit password_life_time unlimited;
Profile altered.
SQL> select * from dba_profiles s where s.profile='DEFAULT' and resource_name='FAILED_LOGIN_ATTEMPTS';
PROFILE          RESOURCE_NAME   RESOURCE
------------------------------ -------------------------------- --------
LIMIT
----------------------------------------
DEFAULT          FAILED_LOGIN_ATTEMPTS  PASSWORD
10
SQL> alter profile default limit failed_login_attempts unlimited;
Profile altered.


5, the minimum number of days to modify the control file records can be saved reusable :( generally set to 45 days)
the SQL> Show Control Parameter;

NAME         TYPE  VALUE
------------------------------------ ----------- ------------------------------
control_file_record_keep_time      integer  7
control_files        string  /home/oracle/app/oradata/xtwl/control01.ctl, /home/oracle/app/flash_recovery_area/xtwl/control02.ctl
control_management_pack_access      string  DIAGNOSTIC+TUNING

SQL> alter system set control_file_record_keep_time=45 scope=spfile;

System altered.


6, set the database as automatic memory management:

(1) modify the database automatic memory management scheme:
the SQL> ALTER System MEMORY_TARGET = 10240M scope SET = SPFILE; // about 60% of physical memory.
System altered.

SQL> alter system set memory_max_target = 10240M scope = spfile; // about 60% of physical memory.
System altered.

SQL> alter system set sga_target=0 scope=spfile;
System altered.

SQL> alter system set sga_max_size = 7168M scope = spfile; 70% @ instance memory, i.e. MEMORY_MAX_TARGET * 70%, i.e., physical memory 60% * 70% *.
System altered.

SQL> alter system set pga_aggregate_target=0 scope=spfile;
System altered.

SQL> alter system set pre_page_sga=FALSE scope=spfile;
System altered.

(2)重启数据库:
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup;
ORACLE instance started.

Total System Global Area 2254802944 bytes
Fixed Size      2215344 bytes
Variable Size   1073742416 bytes
Database Buffers  1174405120 bytes
Redo Buffers      4440064 bytes
Database mounted.
Database opened.

(3) to see various memory parameters set:
SQL> Show the Parameter SGA;

NAME         TYPE  VALUE
------------------------------------ ----------- ------------------------------
lock_sga        boolean  FALSE
pre_page_sga        boolean  FALSE
sga_max_size        big integer 7G
sga_target        big integer 0
SQL> show parameter pga;

NAME         TYPE  VALUE
------------------------------------ ----------- ------------------------------
pga_aggregate_target       big integer 0
SQL> show parameter memory;

NAME         TYPE  VALUE
------------------------------------ ----------- ------------------------------
hi_shared_memory_address      integer  0
memory_max_target       big integer 10G
memory_target        big integer 10G
shared_memory_address       integer  0

 

Tampering with the redo log and Group Size: - to prevent the frequent switching of the log, causing bad performance database.

1. Create a redo log storage directory:
$ mkdir -p / Home / the Oracle / App / oradata / xtwllog /
$ chmod 750 / Home / the Oracle / App / oradata / xtwllog /

2, the query log information:
SQL> the SELECT Group #, bytes / 1024/1024, Status from v $ log;

    GROUP# BYTES/1024/1024 STATUS
---------- --------------- ----------------
     1        50 ACTIVE
     2        50 CURRENT
     3        50 ACTIVE

3, query logs directory:
SQL> the SELECT * from v $ logfile by the Order # Group;

    GROUP# STATUS  TYPE    MEMBER                                         IS_
---------- ------- ------- ------------------------------------------ ----------------
     1       ONLINE  /home/oracle/app/oradata/xtwl/redo01.log                         NO
     2       ONLINE  /home/oracle/app/oradata/xtwl/redo02.log                         NO
     3       ONLINE  /home/oracle/app/oradata/xtwl/redo03.log                         NO

4, two new log groups 500M:
the SQL> ALTER Database logfile the Add Group 4 '/home/oracle/app/oradata/xtwllog/redo04.log' size 500M;

Database altered.

SQL> alter database add logfile group 5 '/home/oracle/app/oradata/xtwllog/redo05.log' size 500M;

Database altered.


5, check whether the log was successfully added 4,5 two groups:
SQL> the SELECT Group #, bytes / 1024/1024, Status from v $ log;

    GROUP# BYTES/1024/1024 STATUS
---------- --------------- ----------------
     1        50 INACTIVE
     2        50 CURRENT
     3        50 INACTIVE
     4           500 UNUSED
     5           500 UNUSED

6, delete the log Group 1:
SQL> drop logfile the ALTER Database Group 1;

Database altered.

7、删除日志组2报错:
SQL> alter database drop logfile group 2;
alter database drop logfile group 2
*
ERROR at line 1:
ORA-01623: log 2 is current log for instance xtwl (thread 1) - cannot drop
ORA-00312: online log 2 thread 1: '/home/oracle/app/oradata/xtwl/redo02.log'

8, the log manually switching times, make the new log groups can be applied:
the SQL> ALTER System Switch logfile;

System altered.


SQL> select group#,bytes/1024/1024,status from v$log;

    GROUP# BYTES/1024/1024 STATUS
---------- --------------- ----------------
     2        50 ACTIVE
     3        50 INACTIVE
     4           500 CURRENT
     5           500 UNUSED

SQL> alter system switch logfile;

System altered.

SQL> select group#,bytes/1024/1024,status from v$log;

    GROUP# BYTES/1024/1024 STATUS
---------- --------------- ----------------
     2        50 ACTIVE
     3        50 INACTIVE
     4           500 ACTIVE
     5           500 CURRENT


9, using the Active alter system checkpoint log status to the INACTIVE:
the SQL> alter system checkpoint;

System altered.

SQL> select group#,bytes/1024/1024,status from v$log;

    GROUP# BYTES/1024/1024 STATUS
---------- --------------- ----------------
     2        50 INACTIVE
     3        50 INACTIVE
     4           500 INACTIVE
     5           500 CURRENT


10, delete the original 2, log 3 groups:
the SQL> ALTER drop logfile Database Group 2;

Database altered.

SQL> alter database drop logfile group 3;

Database altered.


11, add 1, 2, 3 log groups 500M:

SQL> alter database add logfile group 1 '/home/oracle/app/oradata/xtwllog/redo01.log' size 500M;

Database altered.

SQL> alter database add logfile group 2 '/home/oracle/app/oradata/xtwllog/redo02.log' size 500M;

Database altered.

SQL> alter database add logfile group 3 '/home/oracle/app/oradata/xtwllog/redo03.log' size 500M;

Database altered.

SQL> SELECT group#, members, bytes/1024/1024 byte_mb, status FROM v$log;


    GROUP#    MEMBERS     BYTE_MB STATUS
---------- ---------- ---------- ----------------
     1        1         500 UNUSED
     2        1         500 UNUSED
     3        1         500 UNUSED
     4        1         500 INACTIVE
     5        1         500 CURRENT


12, performing a plurality of switching operation log, the log so that the new group can be a normal application:
the SQL> ALTER System Switch logfile;

System altered.

SQL> alter system switch logfile;

System altered.

SQL> alter system switch logfile;

System altered.

SQL> SELECT group#, members, bytes/1024/1024 byte_mb, status FROM v$log;

    GROUP#    MEMBERS     BYTE_MB STATUS
---------- ---------- ---------- ----------------
     1        1         500 ACTIVE
     2        1         500 ACTIVE
     3        1         500 CURRENT
     4        1         500 INACTIVE
     5        1         500 ACTIVE


SQL> the SELECT * from v $ logfile by the Order # Group;
    the GROUP # the STATUS the TYPE MEMBER Is_
---------- ------- ------- ------- ----------------------------------- --------------- -
  . 1 ONLINE /home/oracle/app/oradata/xtwllog/redo01.log NO
  2 ONLINE /home/oracle/app/oradata/xtwllog/redo02.log NO
  . 3 ONLINE / Home / Oracle / App / oradata / xtwllog / redo03. NO log
  4 ONLINE /home/oracle/app/oradata/xtwllog/redo04.log NO
  5 NO ONLINE /home/oracle/app/oradata/xtwllog/redo05.log
 
13, delete the original redo log files to free up disk space:
$ RM /home/oracle/app/oradata/xtwl/redo0*.log

Fifth, modify the database to archive log mode:
1, the new archive log storage directory:
$ mkdir -p / Home / the Oracle / App / archlog
$ chmod 750 / Home / the Oracle / App / archlog

2. Stop the database:
SQL> the shutdown load immediate
. Closed Database
. Database a dismounted
ORACLE instance Shut Down.

3、启动数据库到mount状态:
SQL> startup mount
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size      2213776 bytes
Variable Size   1023412336 bytes
Database Buffers   570425344 bytes
Redo Buffers      7360512 bytes
Database mounted.

4, mode change log archive mode:
the SQL> ALTER Database ARCHIVELOG;
Database Altered.

5, modified archive log format:
the SQL> SET ALTER System LOG_ARCHIVE_FORMAT = 'xtwldb_ T_%%% r.log S_' scope = SPFILE;
the System Altered.

6, modifying the archive log path:
the SQL> SET ALTER System log_archive_dest1 = 'LOCATION = / Home / Oracle / App / archlog' scope = SPFILE;
the System Altered.

7, open the database:
SQL> Open the ALTER Database;
Database the Altered.


8, restart the database to make the parameters to take effect:
SQL> the shutdown load immediate;
Database Closed.
Database a dismounted.
ORACLE instance Shut Down.


SQL> startup;
ORACLE instance started.

Total System Global Area 1603411968 bytes
Fixed Size      2213776 bytes
Variable Size    570427504 bytes
Database Buffers  1023410176 bytes
Redo Buffers      7360512 bytes
Database mounted.
Database opened. 
---------------------

First, the preparatory documents responseFile

    Get file template from Oracle software

[oracle@node2 ~]$ cd database/response/
dbca.rsp        db_install.rsp  netca.rsp

   Which is generated after Oracle database software extract the directory. There are three templates can be seen in the response directory, where dbca.rsp is used to create the database. db_install.rsp is used to install Oracle software. netca.rsp is used to create listener. Of course, you can also be created directly in the database db_install.rsp. Here, for the sake of convenience, we choose db_install.rsp templates together to install the software, create a database.

Second, the document editing responseFile

Copy the code
[oracle@node2 ~]$ grep -Ev "^$|^#" db_install.rsp 
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_AND_CONFIG
ORACLE_HOSTNAME=node2.being.com
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oracle/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0.1/db_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.EEOptionsSelection=false
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.4.0,oracle.oraolap:11.2.0.4.0,oracle.rdbms.dm:11.2.0.4.0,oracle.rdbms.dv:11.2.0.4.0,oracle.rdbms.lbac:11.2.0.4.0,oracle.rdbms.rat:11.2.0.4.0
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oper
oracle.install.db.CLUSTER_NODES=
oracle.install.db.isRACOneInstall=
oracle.install.db.racOneServiceName=
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
oracle.install.db.config.starterdb.globalDBName=orcl
oracle.install.db.config.starterdb.SID=orcl
oracle.install.db.config.starterdb.characterSet=AL32UTF8
oracle.install.db.config.starterdb.memoryOption=true
oracle.install.db.config.starterdb.memoryLimit=400
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.enableSecuritySettings=true
oracle.install.db.config.starterdb.password.ALL=oracle
oracle.install.db.config.starterdb.password.SYS=
oracle.install.db.config.starterdb.password.SYSTEM=
oracle.install.db.config.starterdb.password.SYSMAN=
oracle.install.db.config.starterdb.password.DBSNMP=
oracle.install.db.config.starterdb.control=DB_CONTROL
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
oracle.install.db.config.starterdb.automatedBackup.enable=false
oracle.install.db.config.starterdb.automatedBackup.osuid=
oracle.install.db.config.starterdb.automatedBackup.ospwd=
oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/u01/app/oracle/oradata
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=/u01/app/oracle/fast_recovery_area
oracle.install.db.config.asm.diskGroup=
oracle.install.db.config.asm.ASMSNMPPassword=
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=
SECURITY_UPDATES_VIA_MYORACLESUPPORT=
DECLINE_SECURITY_UPDATES=true
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=
PROXY_REALM=
COLLECTOR_SUPPORTHUB_URL=
oracle.installer.autoupdates.option=SKIP_UPDATES
oracle.installer.autoupdates.downloadUpdatesLoc=
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
Copy the code

Note that as shown in part, in the description of each parameter, reference may be interpreted template.

Guess you like

Origin www.cnblogs.com/klb561/p/11247787.html