红帽企业Linux5下Oracle 12C 安装手册(2)

[root@ora12c Server]# vim /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240 oracle hard stack 10240

6、配置环境变量
在 .bash_profile配置如下变量

oracle@ora12c ~]$ vim .bash_profile export ORACLE_BASE=/oracle/12c export ORACLE_HOME=$ORACLE_BASE/db1 export ORACLE_SID=orcl12c export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin export EDITOR=/bin/vi

使配置文件生效
[oracle@ora12c ~]$ source .bash_profile

7、ftp上传数据库安装文件(或者使用共享文件夹--虚拟机)

8、解压文件
#unzip V38500-01_1of2.zip
#unzip V38500-01_2of2.zip

9、运行OUI安装

#xhost +

#su - oracle
cd database
./runInstaller
下一步下一步

红帽企业Linux5下Oracle 12C 安装手册

Oracle linux上安装oracle 12c文档

配置

红帽企业Linux5下Oracle 12C 安装手册

正在安装

红帽企业Linux5下Oracle 12C 安装手册

root运行2个脚本

[root@ora12c Server]# cd /oracle/oraInventory/ [root@ora12c oraInventory]# ./orainstRoot.sh Changing permissions of /oracle/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /oracle/oraInventory to oinstall. The execution of the script is complete. [root@ora12c oraInventory]# cd /oracle/12c/db1/ [root@ora12c db1]# ./root.sh Performing root user operation for Oracle 12c The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /oracle/12c/db1 Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. Now product-specific root actions will be performed.

初始化数据库

红帽企业Linux5下Oracle 12C 安装手册

在创建数据库时,12c会自动创建监听

[oracle@ora12c ~]$ lsnrctl status LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 27-JUN-2013 12:41:16 Copyright (c) 1991, 2013, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 12.1.0.1.0 - Production Start Date 27-JUN-2013 12:01:32 Uptime 0 days 0 hr. 39 min. 45 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /oracle/12c/db1/network/admin/listener.ora Listener Log File /oracle/12c/diag/tnslsnr/ora12c/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora12c)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=ora12c)(PORT=5500))(Security=(my_wallet_directory=/oracle/12c/admin/orcl12c/xdb_wallet))(Presentation=HTTP)(Session=RAW)) Services Summary... Service "orcl12c" has 1 instance(s). Instance "orcl12c", status READY, has 1 handler(s) for this service... Service "orcl12cXDB" has 1 instance(s). Instance "orcl12c", status READY, has 1 handler(s) for this service... Service "pdborcl12c" has 1 instance(s). Instance "orcl12c", status READY, has 1 handler(s) for this service... The command completed successfully

使用sqlplus连接数据库

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/e6903b6888f64ac14a06fe644ff23795.html