Oracle11G Silent Installation Process-linux environment 1. operating System and Oracle version Linux version: CentOS release 5.5 (Final) Oracle version: Oracle Database 11g Release 2 (11.2.0.1.0) for Linux x86-64 release) 2. hardware Detection: physical memory not less than 1 GB hard drive space not less than 5 gswap partition space not less than 2 GB support CPU clock speed of graphics cards of more than 256 colors not less than 550 mHZ cat/etc/issueuname-r grep MemTotal/proc/meminfo grep swapTotal/proc/meminfo grep "model name"/proc/cpuinfo free df-k /Tmp df-k 3. Check the packages that depend on the operating system package for installation. For details, refer to the official installation documentation. The following is the package binutils-2.17.50.0.6compat-libstdc for Asianux 3, Oracle Linux 5, Red Hat Enterprise Linux 5, CentOS 5 Operating System dependencies +-33-3.2.3compat-libstdc ++-33-3.2.3 (32 bit) elfutils-libelf-0.125elfutils-libelf-devel-0.125gcc-4.1.2gcc-c + +-4.1.2glibc-2.5-24glibc-2.5-24 (32 bit) glibc-common-2.5glibc-devel-2.5glibc-devel-2.5 (32 bit) glibc-headers-2.5ksh-20060214libaio-0.3.106libaio-0.3.106 (32 bit) libaio-devel-0.3.106li Baio-devel-0.3.106 (32 bit) libgcc-4.1.2libgcc-4.1.2 (32 bit) libstdc ++-4.1.2libstdc ++-4.1.2 (32 bit) libstdc ++-devel 4.1.2make-3.81sysstat-7.0.2unixODBC-2.2.11 (32-bit) or laterunixODBC-devel-2.2.11 (64-bit)/laterunixODBC-2.2.11 (64-bit) or later checks dependent package rpm-q binutils compat-libstdc ++-33 elfutils-libelf-devel gcc-c ++ glibc-2.5 glibc-common glibc-devel glibc-headers ksh libaio Libaio-devel libgcc libstdc ++-devel make sysstat unixODBC-devel if the package displays is not installed (not installed), run the yum install command to install it, for example: yum install compat-libstdc ++-33 4. create the required operating system group and user groupadd oinstallgroupadd dbauseradd-g oinstall-G dba oracle set oracle user password passwd oracle 5. modify the kernel parameters in/sbin/sysctl. in the conf file, use a text editor or vi command to add or modify the following parameter fs. aio-max-nr = 1048576fs. file-max = 6815744kernel. shmall = 2097152kernel. shmm Ax = 52.1670912kernel. shmmni = 4096kernel. sem = 250 32000 100. net. ipv4.ip _ local_port_range = 9000 65500net. core. rmem_default = 262144net. core. rmem_max = 4192134net. core. wmem_default = 262144net. core. wmem_max = 1048576 after modification, make the settings take effect/sbin/sysctl-p 6. modify the user limit in/etc/security/limits. in the conf file, add or modify the following parameter oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536or using a text editor or vi command Acle soft stack 10240 in/etc/pam. in the d/login file, use a text editor or vi command to add or modify the following content: session required/lib/security/pam_limits.sosession required pam_limits.so in the/etc/profile file, use a text editor or vi command to add or modify the following content if [$ USER = "oracle"]; thenif [$ SHELL = "/bin/ksh"]; thenulimit-p 16384 ulimit-n 65536 elseulimit-u 16384-n 65536fifi enable the setting to take effect source/etc/profile7. create the installation directory (select a directory with more space as needed) mkdir-p/u01/app/chown-R oracle: oinstall/ U01/app/chmod-R 775/u01/app/8. create/etc/oraInst. loc file with the following content: nventory_loc =/u01/app/oracle/oraInventoryinst_group = oinstall: Change the File ACL chown oracle: oinstall/etc/oraInst. locchmod 664/etc/orainst. loc 9. set the oracle environment variable su-oracle vi ~ /. Bash_profile Add the following content at the end: export ORACLE_BASE =/u01/app/oracleexport ORACLE_SID = orcl Note: Apart from ORACLE_BASE and ORACLE_SID, (/etc/profile and. bash_profile ). Make the settings take effect source/home/oracle /. bash_profile check environment variable: env 10. decompress the oracle Installation File unzip linux.x64_11gR2_database_1of2.zip unzip linux.x64_11gr2_databasesilicate f2.zip 11. copy the response file template mkdir etccp/home/oracle/database/response/*/home/oracle/etc/to set the response File Permission su-rootchmod 700/home/oracle/etc /*. rsp12. Silent Installation of Oracle software su-oracle modification and installation of Oracle software response file/home/oracle/etc/db_install.rsp oracle. install. option = INSTALL_DB_SWONLY // 29-line installation type ORA CLE_HOSTNAME = java-linux-test // 37 line host name UNIX_GROUP_NAME = oinstall // 42 line installation group INVENTORY_LOCATION =/u01/app/oracle/oraInventory // 47 line INVENTORY directory selected_typesages = en, zh_CN, zh_TW // line 78 select the language ORACLE_HOME =/u01/app/oracle/product/11.2.0/db_1 // line 83 oracle_homeORACLE_BASE =/u01/app/oracle // line 88 oracle_baseoracle.install.db.InstallEdition = EE // line 99 oracle version oracle. install. db. isCustomInstall = true // 108-line custom installation Oracle. install. db. DBA_GROUP = dba // 142 rows dba user group oracle. install. db. OPER_GROUP = oinstall // 147-row Users Group oracle. install. db. config. starterdb. type = GENERAL_PURPOSE // 160 rows Database type oracle. install. db. config. starterdb. globalDBName = orcl // 165 rows globalDBNameoracle. install. db. config. starterdb. SID = orcl // 170 rows of SIDoracle. install. db. config. starterdb. memoryLimit = 512 // 192 rows automatically manage the Minimum Memory (M) of the memory oracle. install. db. config. starterdb. pa Ssword. ALL = oracle // row 233 sets ALL database users to use the same password DECLINE_SECURITY_UPDATES = true // row 385 sets security updates to silently install the Oracle software cd database. /runInstaller-silent-force-responseFile/home/oracle/etc/db_install.rsp is being installed. If [WARNING] is prompted, the installer is still running. If [FATAL] is displayed, the installer is stopped. View the Installation Log to learn the installation progress cd $ ORACLE_BASE/oraInventory/logstail-100f installActions *. log prompts similar to the following :#-------------------------------------------------------------------... /u01/app/oracle/product/11.2.0/db_1/root. shTo execute the configuration scripts: 1. open a terminal window 2. log in as "root" 3. run the scripts 4. return to this window and hit "Enter" key to continue Successfully Setup Software. #------ ------------------------------------------------------------- Run root. sh su root/u01/app/oracle/product/11.2.0/db_1/root. sh to add the oracle environment variable su-oracle vi ~ /. Bash_profile Add the following content at the end: export ORACLE_HOME = $ ORACLE_BASE/product/11.2.0/db_1export TNS_ADMIN = $ ORACLE_HOME/network/adminexport PATH =. :$ {PATH }:$ HOME/bin: $ ORACLE_HOME/binexport PATH =$ {PATH }:/ usr/bin:/usr/bin/X11: /usr/local/binexport LD_LIBRARY_PATH =$ {LD_LIBRARY_PATH}: $ ORACLE_HOME/libexport usage =$ {region }:$ ORACLE_HOME/runtime M/libexport usage =$ {LD_LIBRARY_PATH}:/lib: /usr /Lib:/usr/local/libexport CLASSPATH =$ {CLASSPATH}: $ ORACLE_HOME/JREexport CLASSPATH =$ {CLASSPATH}: $ ORACLE_HOME/JRE/libexport CLASSPATH =$ {CLASSPATH }: $ ORACLE_HOME/jlibexport CLASSPATH =$ {CLASSPATH}: $ ORACLE_HOME/rdbms/jlibexport CLASSPATH =$ {CLASSPATH}: $ ORACLE_HOME/network/jlibexport LIBPATH =$ {CLASSPATH }: $ ORACLE_HOME/lib: $ ORACLE_HOME/ctx/libexport ORACLE_OWNER = oracleexport SPFILE_PATH = $ ORACLE_HOME/dbsexpo Rt ORA_NLS10 = $ ORACLE_HOME/nls/data make the settings take effect source/home/oracle /. bash_profile 13. silent configuration Network $ ORACLE_HOME/bin/netca/silent/responseFile/home/oracle/etc/netca. rsp 14. silent Installation database modification only installs the database's response file/home/oracle/etc/dbca. rsp GDBNAME = "orcl. java-linux-test "// The Name Of the 78-row global database = SID + host Domain SID =" orcl "// 149-row SIDCHARACTERSET =" AL32UTF8 "// NATIONALCHARACTERSET = "UTF8" // perform silent Installation of database $ ORACLE_HOME/bin/dbca-silent-response File/home/oracle/dbca. check the instance ps-ef | grep ora _ | grep-v grep | wc-lps-ef | grep ora _ | grep-v grep after the rsp database is created the following error is lsnrctl: error while loading shared libraries:/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh. so.11.1: cannot restore segment prot after reloc: Permission denied solution: run the following command su-rootsetenforce 015 under the root user. modify the oracle STARTUP configuration file su-oraclevi/etc/oratab racl:/u01/ Pp/oracle/product/11.2.0/db_1: Y // change "N" to "Y" so that the listener can be started through dbstart. Dbstart $ ORACLE_HOME all oracle processes are closed and the listener is stopped. Dbshut $ ORACLE_HOME view the listener status again. Lsnrctl status if the archived log sqlplus/as sysdba SQL> shutdown immediate; SQL> startup mount; SQL> alter database archivelog; SQL> alter database flashback on; (If You Want To enable the database flash back function, execute) SQL> alter database open; SQL> execute utl_recomp.recomp_serial (); (re-compile all objects that may be invalid) SQL> alter system archive log current; (manual archiving test) Check SQL> set lines 256 pages 500SQL> select USER_ID, USERNAME, ACCOUNT_STATUS, DEFAULT_TABLESPACE from dba_users order