• 欢迎访问金笔头博客,这是一个菜鸟(伪)程序员的自留地,欢迎访问我的github:点击进入

CentOS6.5 X64安装oracle 11g(二)

Centos eason 3614次浏览 6个评论 扫描二维码

安装oracle

1.FTP上传linux.x64_11gR2_database_1of2.zip和linux.x64_11gR2_database_2of2.zip至远程主机并解压。执行如下命令解压的时候报错,提示没有安装unzip和zip命令

[root@iZ280lgtt2jZ opt]# unzip linux.x64_11gR2_database_1of2.zip

2.输入命令进行安装

[root@iZ280lgtt2jZ opt]# yum install zip unzip

CentOS6.5 X64安装oracle 11g(二)

3.安装完成之后用unzip命令解压

[root@iZ280lgtt2jZ opt]# unzip linux.x64_11gR2_database_1of2.zip

[root@iZ280lgtt2jZ opt]# unzip linux.x64_11gR2_database_2of2.zip

解压之后,发现多了一个database的文件夹

CentOS6.5 X64安装oracle 11g(二)

4.使所有用户都能访问图形桌面

[root@oracledb ~]# xhost +

access control disabled, clients can connect from any host

5.使用VNC以Oracle用户登录,至于怎么配置VNC请参考【vnc多用户登录配置

CentOS6.5 X64安装oracle 11g(二)

5.启动安装界面

CentOS6.5 X64安装oracle 11g(二)

6.邮箱地址可以不填

CentOS6.5 X64安装oracle 11g(二)

7.创建并配置数据库

CentOS6.5 X64安装oracle 11g(二)

8.选择服务器版本

CentOS6.5 X64安装oracle 11g(二)

9.单实例数据库

CentOS6.5 X64安装oracle 11g(二)

10.高级模式安装

CentOS6.5 X64安装oracle 11g(二)

11.添加支持的语言

CentOS6.5 X64安装oracle 11g(二)

12.选择要安装的版本

CentOS6.5 X64安装oracle 11g(二)

13.选择安装目录

CentOS6.5 X64安装oracle 11g(二)

CentOS6.5 X64安装oracle 11g(二)

CentOS6.5 X64安装oracle 11g(二)

14.设置数据库名和服务名

CentOS6.5 X64安装oracle 11g(二)

15.开启自动内存管理

CentOS6.5 X64安装oracle 11g(二)

16.默认编码设置为UTF-8

CentOS6.5 X64安装oracle 11g(二)

17.启用oracle企业管理控制台OEM

CentOS6.5 X64安装oracle 11g(二)

18.选择数据库文件目录

CentOS6.5 X64安装oracle 11g(二)

19.自动备份配置

CentOS6.5 X64安装oracle 11g(二)

20.设置数据库用户名和密码

CentOS6.5 X64安装oracle 11g(二)

CentOS6.5 X64安装oracle 11g(二)

21.依赖包之前均已安装,直接忽略

CentOS6.5 X64安装oracle 11g(二)

22.点击”finish”开始安装。安装完成后,会出来一个对话框,提示使用root用户执行这两个脚本

/opt/oracle/oraInventory/orainstRoot.sh

/opt/oracle/app/product/11.2.0/dbhome_1/root.sh

CentOS6.5 X64安装oracle 11g(二)

[oracle@iZ280lgtt2jZ ~]$ su root
Password: 
[root@iZ280lgtt2jZ oracle]# /opt/oracle/oraInventory/orainstRoot.sh
Changing permissions of /opt/oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
 
Changing groupname of /opt/oracle/oraInventory to oinstall.
The execution of the script is complete.
[root@iZ280lgtt2jZ oracle]# /opt/oracle/app/product/11.2.0/dbhome_1/root.sh
Running Oracle 11g root.sh script...
 
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /opt/oracle/app/product/11.2.0/dbhome_1
 
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.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
[root@iZ280lgtt2jZ oracle]# 

23.切换至oracle用户,连接oracle
[oracle@iZ280lgtt2jZ bin]$ sqlplus / as sysdba

CentOS6.5 X64安装oracle 11g(二)

OK!连接成功!


金笔头博客, 版权所有丨如未注明 , 均为原创, 转载请注明CentOS6.5 X64安装oracle 11g(二)
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(6)个小伙伴在吐槽
  1. MAe7mB Sweet blog! I found it while surfing around on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I ave been trying for a while but I never seem to get there! Thanks
    crorkservice fiverr2016-02-04 05:47 Reply Windows XP | Internet Explorer 6.0
  2. Wow! This can be one particular of the most beneficial blogs We've ever arrive across on this subject. Basically Excellent. I'm also a specialist in this topic therefore I can understand your effort.
    seo fiverr2016-02-02 16:34 Reply Windows 7 | Firefox 3.5.3
  3. Say, you got a nice article post.Much thanks again. Awesome.
    eebest8 seo2016-01-02 03:27 Reply 未知操作系统 | 未知浏览器
  4. What's up, this weekend is fastidious designed for me, because this point in time i am reading this enormous informative article here at my house.
    ray ban aviator 3025 58mm2015-12-27 03:57 Reply Windows 7 | 未知浏览器
  5. Hi! I know this is somewhat off topic but I was wondering which blog platform are you using for this website? I'm getting tired of Wordpress because I've had issues with hackers and I'm looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.
    estilos de tenis nike para mujer2015-12-08 14:05 Reply Windows 7 | 未知浏览器
    • my blog platform is also WordPress...
      wangyisheng2015-12-08 18:55 Reply Windows 7 | Chrome 45.0.2454.101