今天同事Richard向我索要Windows XP上10.2.0.3的补丁文件,在完成这个小任务的同时,正好实验演示一下“ftp_大_法”(一个好玩的现象:ITPUB不可以输入连续的“大_法”两个字,这就是传说中的简单粗暴的关键字定点过滤现象吧)下载补丁的过程。
(以下演示的代码过程是连续的,为了清晰的给出每一操作的含义,我有意的拆解了一下。)
1.使用ftp方式连接到updates.oracle.com网站
$ ftp updates.oracle.com
Connected to updates.oraclegha.com.
220 FTP server ready.
2.这种方法下载需要有metalink的账号才行,如果没有那这个小文儿就不适合您练习了
不需要metalink账号下载的方法当然有,请参见我的另外一个重新整理的小文儿《【介质】【安装】Oracle 9i和10g安装介质and补丁下载大全》http://space.itpub.net/519536/viewspace-612230其中提到可以直接使用迅雷下载这个链接
说远了,还是回到我们这个实验中来,输入metalink账号
Name (updates.oracle.com:housw): secooler@gmail.com
3.这里输入metalink的密码
331 Username OK, please send password.
Password:
4.登陆成功后的提示信息
230-
230- Welcome to the Oracle Patch Download FTP Server
230-
230-*************************************************************************
230- This service will be retired shortly and "My Oracle Support" will be the
230- only interface for downloading the patches and updates. To search and
230- download patches from "My Oracle Support" users are required to login
230- to and then go to "Patches & Updates" tab.
230-
230- Alternatively users can download patches using command line download
230- manager utilities like "wget".
230-
230- Examples on how to use wget:
230-
230- - Check "wget" command is available OR install it
230- - Login to "My Oracle Support" on any browser
230- - Search for the patch
230- - Go to the download page
230- - Right Mouse Click on the Download Button
230- - Click on the properties
230- - Copy the address from the properties
230- - Run the following command using your metalink login and password
230-
230- wget --http-user= --http-password=
230- --output-document=
230- "Paste the above copied address here in quotes"
230-
230- For example, the wget command for patch# 6880880, for Linux Platform
230-
230- wget -http-user=john.doe@oracle.com -http-password=xxxxxxxx --output-document=p6880880_102000_LINUX.zip ""
230-
230-*************************************************************************
230-
230- For detailed help, use command "quote site help".
230
Remote system type is UNIX.
Using binary mode to transfer files.
5.进入到10.2.0.3的补丁目录,对应的目录是5337014
不同版本的补丁号如下(或参考:http://space.itpub.net/519536/viewspace-557301):
9.2.0.4 = 3095277
9.2.0.5 = 3501955
9.2.0.6 = 3948480
9.2.0.7 = 4163445
9.2.0.8 = 4547809
10.1.0.3 = 3761843
10.1.0.4 = 4163362
10.1.0.5 = 4505133
10.2.0.2 = 4547817
10.2.0.3 = 5337014
10.2.0.4 = 6810189
ftp> cd 5337014
250 Changed directory OK.
6.显示目录中所有可用不同操作系统的补丁文件
ftp> ls -la
200 PORT command OK.
150 Opening data connection for file listing.
total 1
-r--r--r-- 1 root other 1604896973 Feb 22 2007 p5337014_10203_AIX64-5L.zip
-r--r--r-- 1 root other 1424057924 Feb 22 2007 p5337014_10203_HP64.zip
-r--r--r-- 1 root other 1641826103 May 2 2007 p5337014_10203_HPUX-IA64.zip
-r--r--r-- 1 root other 1443790237 Mar 15 2007 p5337014_10203_IBMPower.zip
-r--r--r-- 1 root other 1103539895 Jun 13 2007 p5337014_10203_LINUX-zSer.zip
-r--r--r-- 1 root other 944121770 Feb 21 2007 p5337014_10203_LINUX.zip
-r--r--r-- 1 root other 1209745348 Feb 22 2007 p5337014_10203_Linux-IA64.zip
-r--r--r-- 1 root other 1082086597 Feb 22 2007 p5337014_10203_Linux-x86-64.zip
-r--r--r-- 1 root other 937018969 Feb 23 2007 p5337014_10203_MSWIN-x86-64.zip
-r--r--r-- 1 root other 881450691 Jun 11 2008 p5337014_10203_MVS.zip
-r--r--r-- 1 root other 1254311329 Feb 22 2007 p5337014_10203_SOLARIS64.zip
-r--r--r-- 1 root other 1811431410 Aug 13 2007 p5337014_10203_Solaris86-64.zip
-r--r--r-- 1 root other 1393733954 Oct 15 2007 p5337014_10203_TRU64.zip
-r--r--r-- 1 root other 893831865 Feb 21 2007 p5337014_10203_WINNT.zip
-r--r--r-- 1 root other 1122786231 Feb 23 2007 p5337014_10203_WINNT64.zip
226 Listing complete. Data connection has been closed.
7.我们的目标是下载Windows XP上可用的补丁p5337014_10203_WINNT.zip,使用get命令获取此文件
ftp> get p5337014_10203_WINNT.zip
200 PORT command OK.
150 Opening BINARY mode data connection for file p5337014_10203_WINNT.zip.
这里需要等待很长时间,下载时间长短由具体网络环境决定。
8.下载成功,看一下最后的提示信息
226 File retrieval complete. Data connection has been closed.
893831865 bytes received in 3.33e+03 seconds (268561 bytes/s)
ftp>
9.退出ftp
ftp> bye
221 Goodbye. Service closing connection.
10.搞定,收工。
下载Oracle介质的方法还是很灵活滴~~~
-- The End --
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70034820/viewspace-2993749/
,如需转载,请注明出处,否则将追究法律责任。