接https://blog.51cto.com/12784425/2310379此文
Oracle 11.2.0.4 下載地址https://download.csdn.net/download/uu5620/11125227
1、準(zhǔn)備工作
Oracle11.2.0.4的安裝包;
VNC客戶端vnc Viewer;
專注于為中小企業(yè)提供網(wǎng)站制作、網(wǎng)站建設(shè)服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)自流井免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了上千多家企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。
2、將Oracle11.2.0.4的安裝包用vsftp上傳到服務(wù)器/soft目錄下
更改/soft目錄的訪問權(quán)限
[root@oracle-learn ~]# chmod -R 777 /soft
進(jìn)入到/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
這時(shí)會(huì)得到一個(gè)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服務(wù)器:
[root@oracle-learn ~]# yum install tigervnc-server -y
切換到oracle用戶下,啟動(dòng)vnc服務(wù)并設(shè)置密碼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
啟動(dòng)本地VNC Viewer鏈接服務(wù)器192.168.8.120:1
輸入密碼oracle
登錄之后會(huì)讓你輸入root的密碼
好了,現(xiàn)在登錄到oracle用戶的遠(yuǎn)程桌面了
打開終端設(shè)置環(huán)境變量
[oracle@oracle-learn ~]$ export LANG=en_US
進(jìn)入/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
運(yùn)行安裝程序
[oracle@oracle-learn database]$ ./runInstaller
Oracle安裝界面啟動(dòng)成功
1、如圖取消訂閱,接下來會(huì)有提示框,點(diǎn)yes
2、取消升級,下一步
3、選擇只安裝database
4、下一步
5、選擇中文簡體,英文過關(guān)的可以無視,下一步
6、第一個(gè)企業(yè)版安裝,下一步
7、顯示的路徑應(yīng)該與配置好的環(huán)境變量一樣
然后會(huì)有一個(gè)提示,直接點(diǎn)yes
8、默認(rèn),下一步
9、默認(rèn),下一步
10、這里會(huì)有一個(gè)配置的檢測
11、點(diǎn)擊install
開始安裝。
安裝過程中會(huì)有提示要運(yùn)行的腳本如圖:
在root用戶下按順序運(yùn)行這兩個(gè)命令,第二個(gè)命令運(yùn)行后會(huì)有一個(gè)按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.
然后回到遠(yuǎn)程桌面點(diǎn)擊ok
未完待續(xù)?。?!