[email protected], allocating resources: Cpu:2, Memory: 4GB, hard disk space: 30GB
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809151032824-324724325.png "style=" Border:none;height:auto; "/>
: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
-
Root Installation Dependency package:
yum -y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*.i686 elfutils-libelf-devel gcc gcc-c++ glibc*.i686 glibc glibc-devel glibc-devel*.i686 ksh libgcc*.i686 libgcc libstdc++ libstdc++*.i686 libstdc++-devel libstdc++-devel*.i686 libaio libaio*.i686 libaio-devel libaio-devel*.i686 make sysstat unixODBC UNIXODBC*.I686 UNIXODBC-DEVEL UNIXODBC-DEVEL*.I686 LIBXP
To set up users and groups:
Groupadd oinstall groupadd dba groupadd oper useradd-g oinstall-g dba,oper oracle echo "123456" | passwd--stdin Oracle #oracle用户的登录密码, follow-up login to use, remember.
To create the installation directory:
Mkdir-p/orcl/app/oracle/product/12.1.0/db_1 chown-r Oracle:oinstall/orcl/app chmod-r 775/orcl/app
-
Modify the kernel parameter vi/etc/sysctl.conf, add:
fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 1200000000 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576
After the change, make it effective
Sysctl-p
or you just write it right now 4098955264
Change file limit: vi/etc/security/limits.conf, add:
Oracle Soft nproc 2047 Oracle hard nproc 16384 Oracle Soft nofile 1024x768 Oracle hard nofile 65536 Oracle Soft Stack 1024 0
Note: Modifying this file is immediate, but may have to be re-logged in and then look
As well as Vi/etc/pam.d/login, add:
Session Required Pam_limits.so
To modify Ulimit:vi/etc/profile, add:
if [$USER = "Oracle"]; Then if [$SHELL = "/bin/ksh"]; Then ulimit-p 16384 ulimit-n 65536a else ulimit-u 16384-n 65536 fi fi
Modify environment variables. VI ~oracle/.bash_profile, add:
Oracle_base=/orcl/app/oracle oracle_home= $ORACLE _base/product/12.1.0/db_1 ORACLE_SID=ORCL export ORACLE_BASE Oracle _home oracle_sid path= $ORACLE _home/bin: $PATH export PATH
-
Uninstall the OPENJDK from the system with the Yum remove *openjdk* and install the Sun Jdk:rpm-ivh jdk-8u144-linux-x64.rpm. () (OPENJDK environment installation Oracle GUI will report class not found's error). Then $>java-version check to see if the installation was successful.
650) this.width=650; "src="/HTTP/ Images2017.cnblogs.com/blog/1168946/201708/1168946-20170809193951980-1289240503.png "style=" Border:none;height: auto; "/>
-
Log on as an Oracle user to begin installation:
su oracle cd /orcl/ app/oracle unzip linuxx64_12201_database.zip export lang= "En_US" cd /orcl/app/oracle/database ./runinstaller
 
> Note: Download the Oracle to be placed in the/orcl/app/oracle directory, under/orcl/app/oracle/is 2 directories: Product and database. The extracted installation files are placed under database. Then there will be the installation interface, the configuration process withheld. It is important to note that the character set chooses Unicode. The following
-
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809180347261-2038886942.png "style=" Border:none;height:auto; "/>
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/1168946-20170809180517730-35353748. PNG "style=" Border:none;height:auto; "/>
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809180622964-934504977.png "style=" Border:none;height:auto; "/>
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809180653699-362650983.png "style=" Border:none;height:auto; "/>
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809180737308-1116122698.png "style=" Border:none;height:auto; "/>
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809195350433-1577132350.png "style=" Border:none;height:auto; "/>
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809195704558-458028736.png "style=" Border:none;height:auto; "/>
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809195755808-1012069760.png "style=" Border:none;height:auto; "/>
In the installation
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809195916464-619954522.png "style=" Border:none;height:auto; "/>
Installation Complete
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809200837261-1722961018.png "style=" Border:none;height:auto; "/>
Then input DBCA start data graphical interface install database 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809201438089-1625952512.png "style=" border:none; "/>
Select configuration: Here we choose Advanced Configuration, simple self-test
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809202332292-1842535642.png "style=" Border:none;height:auto; "/>
Configure according to your needs: I choose a custom database
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809203316464-256745455.png "style=" Border:none;height:auto; "/>
To configure the database container:
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809204020792-1476537169.png "style=" Border:none;height:auto; "/>
To configure how the database is stored:
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/1168946-20170809204620574-57845343. PNG "style=" Border:none;height:auto; "/>
Select the Quick recovery area:
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809205115620-1358973414.png "style=" Border:none;height:auto; "/>
Listener configuration: (Create database automatically create listener, must be listener default) 650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708 /1168946-20170809210028089-464878923.png "style=" border:none; "/>
Select the database component:
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809210813886-1059486268.png "style=" Border:none;height:auto; "/>
-
Database Security Configuration:
650) this.width=650; "src="/HTTP/ Images2017.cnblogs.com/blog/1168946/201708/1168946-20170809211100277-1717911502.png "style=" Border:none;height: auto; "/>
-
Memory, block, number of connections, character set, connection mode, add instance:
650) this.width=650 ; "Src=" Http://images2017.cnblogs.com/blog/1168946/201708/1168946-20170809212045417-1347765518.png "style=" Border:none;height:auto;/>
650) this.width=650; " Src= "Http://images2017.cnblogs.com/blog/1168946/201708/1168946-20170809212424683-469057502.png" style= "border: None;height:auto; "/>650" this.width=650; "src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809232047574-760707759.png "style=" Border:none;height:auto; "/>
&NBSP,
Configure the Orale em local tyrants to order powerful em:
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/1168946-20170809213754824-73181239. PNG "style=" Border:none;height:auto; "/>
Password configuration: I'm using a unified password.
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809214249230-939903064.png "style=" Border:none;height:auto; "/>
To create a database configuration:
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809215342370-1950926139.png "style=" Border:none;height:auto; "/>
Summary interface: (If no errors can be installed on the finish)
Be sure to perform/orcl/app/oracle/product/12.1.0/db_1/root first. SH
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170809215751902-1003272374.png "style=" border:none; "/>
-
650) this.width=650; "src=" http:// Images2017.cnblogs.com/blog/1168946/201708/1168946-20170809221117933-675750361.png "style=" Border:none;height: auto; "/>
Installation complete (everything goes well, the error is not in the papers)
650) this.width=650; "Src=" http://images2017.cnblogs.com/blog/1168946/201708/ 1168946-20170810033743245-834765721.png "style=" Border:none;height:auto; "/>
Start
1. #su-oracle Switch to an Oracle user and switch to its environment
2. $lsnrctl Status View monitoring and database state
3. Start monitoring $lsnrctl start
4. $sqlplus/as sysdba into the sqlplus as a DBA
5.sql>startup Start db
Stop it1. #su-oracle Switch to an Oracle user and switch to its environment
2. $lsnrctl stop to stop listening
3. $sqlplus/as sysdba into the sqlplus as a DBA
4.sql>shutdown IMMEDIATE off DB
This article is from the "richylu____ Rurei" blog, be sure to keep this source http://richylu.blog.51cto.com/1481674/1959341