oracle11g安装2,OracleLinux6.5下Oracle11.2.0.4的安装

接https://blog.51cto.com/12784425/2310379此文

Oracle 11.2.0.4 下载地址https://download.csdn.net/download/uu5620/11125227

1、准备工作

Oracle11.2.0.4的安装包;

VNC客户端vnc Viewer;

2、将Oracle11.2.0.4的安装包用vsftp上传到服务器/soft目录下

更改/soft目录的访问权限

[root@oracle-learn ~]# chmod -R 777 /soft

进入到/soft目录下

[oracle@oracle-learn ~]$ cd /soft

[oracle@oracle-learn soft]$ ll

总用量 2487224

-rwxrwxrwx. 1 root root 1395582860 10月 29 18:50 linux11.2.0.4-1_Linux-x86-64.zip

-rwxrwxrwx. 1 root root 1151304589 10月 29 18:50 linux11.2.0.4-2_Linux-x86-64.zip

drwxrwxrwx. 2 root root 16384 10月 29 2018 lost+found

[oracle@oracle-learn soft]$

解压oracle软件包

unzip linux11.2.0.4-1_Linux-x86-64.zip

unzip linux11.2.0.4-2_Linux-x86-64.zip

这时会得到一个database的文件夹

[oracle@oracle-learn soft]$ ll

总用量 2487228

drwxr-xr-x. 7 oracle oinstall 4096 8月 27 2013 database

-rwxrwxrwx. 1 root root 1395582860 10月 29 18:50 linux11.2.0.4-1_Linux-x86-64.zip

-rwxrwxrwx. 1 root root 1151304589 10月 29 18:50 linux11.2.0.4-2_Linux-x86-64.zip

drwxrwxrwx. 2 root root 16384 10月 29 2018 lost+found

[oracle@oracle-learn soft]$

3、安装VNC服务器:

[root@oracle-learn ~]# yum install tigervnc-server -y

切换到oracle用户下,启动vnc服务并设置密码oracle。

[root@oracle-learn ~]# su - oracle

[oracle@oracle-learn ~]$ vncserver

You will require a password to access your desktops.

Password:

Verify:

xauth: creating new authority file /home/oracle/.Xauthority

New 'oracle-learn:1 (oracle)' desktop is oracle-learn:1

Creating default startup script /home/oracle/.vnc/xstartup

Starting applications specified in /home/oracle/.vnc/xstartup

Log file is /home/oracle/.vnc/oracle-learn:1.log

[oracle@oracle-learn ~]$

New 'oracle-learn:1 (oracle)' desktop is oracle-learn:1

启动本地VNC Viewer链接服务器

192.168.8.120:1

e5e7c0a2010869ad440b34c5ace0f6a4.png

输入密码oracle

登录之后会让你输入root的密码

好了,现在登录到oracle用户的远程桌面了

99cd4abc29543bf6355382838f0e3362.png

打开终端设置环境变量

[oracle@oracle-learn ~]$ export LANG=en_US

53cf22c31fa77254e1f0c71be8d22a1c.png

进入/soft/database目录下

[oracle@oracle-learn ~]$ cd /soft/database/

[oracle@oracle-learn database]$ ll

总用量 60

drwxr-xr-x. 4 oracle oinstall 4096 8月 27 2013 install

-rw-r--r--. 1 oracle oinstall 30016 8月 27 2013 readme.html

drwxr-xr-x. 2 oracle oinstall 4096 8月 27 2013 response

drwxr-xr-x. 2 oracle oinstall 4096 8月 27 2013 rpm

-rwxr-xr-x. 1 oracle oinstall 3267 8月 27 2013 runInstaller

drwxr-xr-x. 2 oracle oinstall 4096 8月 27 2013 sshsetup

drwxr-xr-x. 14 oracle oinstall 4096 8月 27 2013 stage

-rw-r--r--. 1 oracle oinstall 500 8月 27 2013 welcome.html

运行安装程序

[oracle@oracle-learn database]$ ./runInstaller

087c7ef5de06f31abf27d7570a5c4c1a.png

Oracle安装界面启动成功

6f6eff679f4333d2758826bf5fd19733.png

安装步骤

1、如图取消订阅,接下来会有提示框,点yes

ee50b87634d615439c9f86ad6a185628.png

2、取消升级,下一步

681809eff93e095e799c57920a1f0124.png

3、选择只安装database

478da8b936b5c8971b385596cb393c31.png

4、下一步

ffa6d0e696a4393e68433374d194a7aa.png

5、选择中文简体,英文过关的可以无视,下一步

ff02109677e20c9527e6c7a76ebb88e0.png

6、第一个企业版安装,下一步

926a741fac822c974dd9a88794e49f24.png

7、显示的路径应该与配置好的环境变量一样

5055b1d56070d1a8f82533e2b6e54094.png

然后会有一个提示,直接点yes

0710b87f1d629dd699028aa81bd00ab6.png

8、默认,下一步

a8a2f408a5214f47e703b488d556f575.png

9、默认,下一步

f69fccde071ba961853fd438c72084ed.png

10、这里会有一个配置的检测

79cd892ef552baa1d435464f19c2a85e.png

11、点击install

94baea4e43197612362cf22b9e331f09.png

开始安装。

安装过程中会有提示要运行的脚本如图:

84f94ca6508e0fb8725f37c233af52ce.png

在root用户下按顺序运行这两个命令,第二个命令运行后会有一个按enter建的命令。

[root@oracle-learn ~]# /oracle/app/oraInventory/orainstRoot.sh

Changing permissions of /oracle/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /oracle/app/oraInventory to oinstall.

The execution of the script is complete.

[root@oracle-learn ~]# /oracle/app/oracle/product/11.2.0/root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /oracle/app/oracle/product/11.2.0

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.

Finished product-specific root actions.

然后回到远程桌面点击ok

未完待续!!!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值