当前位置:Gxlcms > mysql > Linux下通过wget下载Oracle补丁(如11.2.0.2.0)

Linux下通过wget下载Oracle补丁(如11.2.0.2.0)

时间:2021-07-01 10:21:17 帮助过:8人阅读

wget -c --http-user=user --http-password=pwd --output-document=patch.zip quot;download_urlquot; -o download.log 各参数

Linux公社

首页 → 数据库技术

背景:

阅读新闻

Linux下通过wget下载Oracle补丁(如11.2.0.2.0)

[日期:2010-12-08] 来源:Linux社区 作者:edeed [字体:]

1. 语法:

wget -c --http-user=user --http-password=pwd --output-document=patch.zip "download_url" -o download.log &

各参数含义如下:

-c 表示断点续传
--http-user metalink帐号
--http-password metalink密码
--output-document 下载的文件名
"download_url" 下载地址(右击"下载"按钮后复制的链接地址)
-o 输出日志文件名


2. 方法:

在浏览器中输入以下地址:

https://updates.Oracle.com/Orion/PatchDetails/handle_plat_lang_change?plat_lang=267P&patch_file=&file_id=&password_required=&password_required_readme=&merged_trans=&aru=12960454&patch_num=10098816&patch_num_id=1294815&default_release=80112020&default_plat_lang=226P&default_compatible_with=&patch_password=&orderby=&direction=&no_header=0&sortcolpressed=&tab_number=&urlc=v1.2

在此页面选择要现在的文件, 然后右击"下载"按钮后, 复制各链接地址备用. 【6688电子商务网站  】如图:



3. 举例(下载oracle 11.2.0.2.0 for linux x86_64):

先建立下载目录, 并设置metalink用户名密码:

$ mkdir -p /u01/software/11g
$ cd /u01/software/11g
$USERNAME=abc@oracle.com
$PASSWORD=jbgsn

然后开始下载此七个文件(注意下载链接中的matalink用户名已经通过变量$USERNAME替换掉了):

$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_1of7.zip \
"https://updates.oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_1of7.zip?file_id=34840697&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_1of7.zip" \
-o download1.log &

$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_2of7.zip \
"https://updates.oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_2of7.zip?file_id=34840698&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_2of7.zip" \
-o download2.log &

$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_3of7.zip \
"https://updates.oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_3of7.zip?file_id=34840699&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_3of7.zip" \
-o download3.log &

$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_4of7.zip \
"https://updates.oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_4of7.zip?file_id=34840703&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_4of7.zip" \
-o download4.log &

$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_5of7.zip \
"https://updates.oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_5of7.zip?file_id=34840707&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_5of7.zip" \
-o download5.log &

$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_6of7.zip \
"https://updates.oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_6of7.zip?file_id=34840708&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_6of7.zip" \
-o download6.log &

$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_7of7.zip \
"https://updates.oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_7of7.zip?file_id=34840712&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_7of7.zip" \
-o download7.log &

可以查过查看各downloadX.log日志了解下载进度和下载速度.

--End--

linux

  • 0
  • Linux 系统下MySQL连接的套接字出错问题解决

    Oracle备份与恢复核心技术点

    相关资讯 oracle

    图片资讯

    本文评论   查看全部评论 (0)

    评论声明

    最新资讯

    本周热门

    人气教程排行