Environment:
(1) Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 11:47:41 EST. x86_64 x86_64 x8 6_64 Gnu/linux
(2) Memory: 2G
(3) HDD Capacity: 30G
(4) The system must have a desktop
(5) Yum is well-equipped in advance.
(6) If you are working on a virtual machine, make a mirror first before performing the following steps.
Steps:
#!/bin/bash
For i in ' cat 1.txt ';
Do
Yum install-y $i
Done
#
Groupadd Oinstall
Groupadd dba
#
Mkdir-p/opt/app
Useradd-g oinstall-g dba-d/opt/app/u01 Oracle
#
SH mkdi.sh
#useradd-G oinstall-g dba-d/opt/app/u01 Oracle
#
echo "123456" |passwd--stdin Oracle
#
Cp/etc/sysctl.conf/etc/sysctl.conf.bak
#
For i in ' cat 2.txt ';
Do
echo $? >>/etc/sysctl.conf
Done
#
Sysctl-p
#
Cp/etc/security/limits.conf/etc/security/limits.conf.bak
#
echo "Oracle soft Nproc 2047" >>/etc/security/limits.conf
echo "Oracle hard Nproc 16384" >>/etc/security/limits.conf
echo "Oracle Soft nofile 1024x768" >>/etc/security/limits.conf
echo "Oracle hard Nofile 65536" >>/etc/security/limits.conf
echo "Oracle Soft stack 10240" >>/etc/security/limits.conf
#
echo "Export Oracle_base=/opt/app/product" >>/opt/app/u01/.bash_profile
echo "Export Oracle_home=/opt/app/product/software" >>/opt/app/u01/.bash_profile
echo "Export Oracle_sid=keyman" >>/opt/app/u01/.bash_profile
echo "path= $PATH: $ORACLE _home/bin" >>/opt/app/u01/.bash_profile
#
Chown oracle:oinstall/opt/*
Note: The above can be written in a script, once executed.
After completing the above, reboot to Oracle Desktop user, extract 2 Oracle Files
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/74/E1/wKiom1Ythg3A4CcqAAA7c1sPaSk580.jpg "title=" 1234qwer.png "alt=" Wkiom1ythg3a4ccqaaa7c1spask580.jpg "/>
#unzip Linux.x64_11gr2_database_1of2
#unzip Linux.x64_11gr2_database_2of2
After completing the above actions, get a database folder, enter the database inside:
#./runinstaller execute inside this file
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/E0/wKioL1Ytn_nATpiKAAGm4-_wqwM899.jpg "style=" float: none; "title=" A1.png "alt=" Wkiol1ytn_natpikaagm4-_wqwm899.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/E3/wKiom1Ytn8njJ9ljAAFKhCj5YVU516.jpg "style=" float: none; "title=" A2.png "alt=" Wkiom1ytn8njj9ljaafkhcj5yvu516.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/E0/wKioL1Ytn_rTywPNAAE5ZdqYm0o449.jpg "style=" float: none; "title=" A3.png "alt=" Wkiol1ytn_rtywpnaae5zdqym0o449.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/E3/wKiom1Ytn8mzFI2NAAHm54cuzGU982.jpg "style=" float: none; "title=" A4.png "alt=" Wkiom1ytn8mzfi2naahm54cuzgu982.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/E0/wKioL1Ytn_rAzn3GAAH_8ryARiU434.jpg "style=" float: none; "title=" A5.png "alt=" Wkiol1ytn_razn3gaah_8ryariu434.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/E3/wKiom1Ytn_bxhfdAAAG4Sm3Xytw558.jpg "title=" a6.png "alt=" Wkiom1ytn_bxhfdaaag4sm3xytw558.jpg "/>
Note: Put Oracle Base:/opt/app/product
Software Location:/opt/app/product/software
All that remains is the default, next, next.
To the step of checking the package, ignore all, in the previous steps, we have all installed,
Even if it is not installed, do not care about it, the version is not the same, in fact, has been installed.
Finally finished, end, exit can.
So far, in a breath, we've just installed the Oracle software, and we haven't installed the Oracle database and the monitoring listener.
Complete the above steps and continue to do the following:
#netca configuration monitoring, step by step, all by default.
After completion:
#dbca configuration database, if this command is not recognized, then/OPT/APP/PRODUCT/SOFTWARE/BIN/DBCA can
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/E0/wKioL1YtoqLQaw55AALNuU1HzBA618.jpg "style=" float: none; "title=" A7.png "alt=" Wkiol1ytoqlqaw55aalnuu1hzba618.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/E3/wKiom1YtonKyrAbjAAHLhRdgg_E606.jpg "style=" float: none; "title=" A8.png "alt=" Wkiom1ytonkyrabjaahlhrdgg_e606.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/E0/wKioL1YtoqPQ1DDcAAHpGQIBuNk361.jpg "style=" float: none; "title=" A9.png "alt=" Wkiol1ytoqpq1ddcaahpgqibunk361.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/E3/wKiom1YtonKy8EobAAHKOKLx2os049.jpg "style=" float: none; "title=" A11.png "alt=" Wkiom1ytonky8eobaahkoklx2os049.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/E0/wKioL1YtoqPxpKeRAAGur_RKKgM551.jpg "style=" float: none; "title=" A12.png "alt=" Wkiol1ytoqpxpkeraagur_rkkgm551.jpg "/>
Next, do the next step, configure the password, you can write 123qweQWE, continue to the next step.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/E0/wKioL1Yto5aS0jpeAAG68p5ygNg199.jpg "style=" float: none; "title=" A15.png "alt=" Wkiol1yto5as0jpeaag68p5ygng199.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/E3/wKiom1Yto2WTkCBTAAIO2dEvRyI750.jpg "style=" float: none; "title=" A16.png "alt=" Wkiom1yto2wtkcbtaaio2devryi750.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/E0/wKioL1Yto5aAIb0DAAIC84sdM8I096.jpg "style=" float: none; "title=" A17.png "alt=" Wkiol1yto5aaib0daaic84sdm8i096.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/E3/wKiom1Yto7KArfEfAAFiPh9Sdx4837.jpg "style=" float: none; "title=" A18.png "alt=" Wkiom1yto7karfefaafiph9sdx4837.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/E0/wKioL1Yto-PSYIvFAAHacvYcH4Q981.jpg "style=" float: none; "title=" A19.png "alt=" Wkiol1yto-psyivfaahacvych4q981.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/E0/wKioL1Yto-OR9rveAAIsLeQguGY016.jpg "style=" float: none; "title=" A20.png "alt=" Wkiol1yto-or9rveaaisleqgugy016.jpg "/>
After waiting for 35, the database is complete, then test it:
Simple validation
[Email protected] ~]$ sqlplus "/As SYSDBA"
Sql*plus:release 11.2.0.1.0 Production on Sat Jan 24 14:51:10 2015
Copyright (c) 1982, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit Production
With the partitioning, OLAP, Data Mining and Real application testing options
Sql> CREATE TABLE z_test (ID number,name varchar);
Table created.
sql> INSERT INTO Z_test Select 1, ' a ' from dual;
1 row created.
Sql> select * from Z_test;
ID NAME
---------- ----------------------------------------
1 A
Sql> commit;
Commit complete.
Sql> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit Production
With the partitioning, OLAP, Data Mining and Real application testing options
[Email protected] ~]$
Oracle 11g for Redhat 64