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
输入密码oracle
登录之后会让你输入root的密码
好了,现在登录到oracle用户的远程桌面了
打开终端设置环境变量
[oracle@oracle-learn ~]$ export LANG=en_US
进入/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
Oracle安装界面启动成功
安装步骤
1、如图取消订阅,接下来会有提示框,点yes
2、取消升级,下一步
3、选择只安装database
4、下一步
5、选择中文简体,英文过关的可以无视,下一步
6、第一个企业版安装,下一步
7、显示的路径应该与配置好的环境变量一样
然后会有一个提示,直接点yes
8、默认,下一步
9、默认,下一步
10、这里会有一个配置的检测
11、点击install
开始安装。
安装过程中会有提示要运行的脚本如图:
在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
未完待续!!!
本文题目:OracleLinux6.5下Oracle11.2.0.4的安装
网址分享:http://myzitong.com/article/iiopio.html