接http://blog.51cto.com/12784425/2310379此文
1、准备工作
Oracle11.2.0.4的安装包;
VNC客户端vnc Viewer;
2、将Oracle11.2.0.4的安装包用vsftp上传到服务器/soft目录下
更改/soft目录的访问权限
[[email protected] ~]# chmod -R 777 /soft
进入到/soft目录下
[[email protected] ~]$ cd /soft
[[email protected] 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
[[email protected] soft]$
解压oracle软件包unzip linux11.2.0.4-1_Linux-x86-64.zip
unzip linux11.2.0.4-2_Linux-x86-64.zip
这时会得到一个database的文件夹
[[email protected] 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
[[email protected] soft]$
3、安装VNC服务器:
[[email protected] ~]# yum install tigervnc-server -y
切换到oracle用户下,启动vnc服务并设置密码oracle。
[[email protected] ~]# su - oracle
[[email protected] ~]$ 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
[[email protected] ~]$
New ‘oracle-learn:1 (oracle)‘ desktop is oracle-learn:1
启动本地VNC Viewer链接服务器192.168.8.120:1
输入密码oracle
登录之后会让你输入root的密码
好了,现在登录到oracle用户的远程桌面了
打开终端设置环境变量
[[email protected] ~]$ export LANG=en_US
进入/soft/database目录下
[[email protected] ~]$ cd /soft/database/
[[email protected] 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
运行安装程序
[[email protected] database]$ ./runInstaller
Oracle安装界面启动成功
安装步骤
1、如图取消订阅,接下来会有提示框,点yes
2、取消升级,下一步
3、选择只安装database
4、下一步
5、选择中文简体,英文过关的可以无视,下一步
6、第一个企业版安装,下一步
7、显示的路径应该与配置好的环境变量一样
然后会有一个提示,直接点yes
8、默认,下一步
9、默认,下一步
10、这里会有一个配置的检测
11、点击install
开始安装。
安装过程中会有提示要运行的脚本如图:
在root用户下按顺序运行这两个命令,第二个命令运行后会有一个按enter建的命令。
[[email protected] ~]# /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.
[[email protected] ~]# /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
未完待续!!!
原文地址:http://blog.51cto.com/12784425/2310399