我用 Oracle Secure Backup Cloud module 去備份資料庫資料至 Amazon's Simple Storage Service (S3).
配置程序中產生了如下錯誤,大神們幫忙看看是什么問題:
-bash-4.1$ ./osbws.sh
Oracle Secure Backup Web Service Install Tool, build 2017-02-08
AWS credentials are valid.
Oracle Secure Backup Web Service wallet created in directory /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/osbws_wallet.
Oracle Secure Backup Web Service initialization file /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/osbwsorcl.ora created.
Downloading Oracle Secure Backup Web Service Software Library from file osbws_linux64.zip.
Downloaded 27058202 bytes in 893 seconds. Transfer rate was 30300 bytes/second.
Download complete.
Exception in thread "main" java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:194)
at oracle.backup.util.FileDownload.unzip(FileDownload.java:348)
at oracle.backup.util.ConfigSetup.downloadLibrary(ConfigSetup.java:364)
at oracle.backup.util.ConfigSetup.downloadLibrary(ConfigSetup.java:298)
at oracle.backup.s3.install.S3Config.main(S3Config.java:267)
配置腳本資訊:
[root@administrator ~]# cat /home/oracle/osbws.sh
java -jar osbws_install.jar \
-AWSID AKIAI***************VVQ \
-AWSKey V8W603f*******************PyVtA8qozmIfmS \
-otnUser [email protected] \
-otnPass Aa**** \
-walletDir $ORACLE_HOME/dbs/osbws_wallet \
-libDir $ORACLE_HOME/lib
我的系統及軟體資訊:
[root@administrator tmp]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.5 (Santiago)
Release: 6.5
Codename: Santiago
-bash-4.1$ sqlplus /as sysdba
SQL*Plus: Release 11.2.0.1.0 Production
Copyright (c) 1982, 2009, Oracle. All rights reserved.
[root@administrator ~]# java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
uj5u.com熱心網友回復:
The debug information:-bash-4.1$ ./osbws.sh
Oracle Secure Backup Web Service Install Tool, build 2017-02-08
Debug: os.name = Linux
Debug: os.arch = amd64
Debug: os.version = 2.6.32-431.el6.x86_64
Debug: file.separator = /
Debug: Platform = PLATFORM_LINUX64
Debug: Verifying AWS account using endpoint s3.amazonaws.com
Debug: Canoical Request:
GET
/
host:s3.amazonaws.com
x-amz-content-sha256:e3b0c44298fc1c149************2427ae41e4649b934ca495991b7852b855
x-amz-date:20170612T115428Z
host;x-amz-content-sha256;x-amz-date
e3b0c44298f***************************4ca495991b7852b855
Debug: String to sign:
AWS4-HMAC-SHA256
20170612T115428Z
20170612/us-east-1/s3/aws4_request
51f593f66f27f3739*****************************f02c88092baec1
Debug: AWS Success, owner=luo*********, id=cdb42af*********************************************************************
AWS credentials are valid.
Debug: Certificate Success:
Subject : CN=Baltimore CyberTrust Root, OU=CyberTrust, O=Baltimore, C=IE
Validity : Sat May 13 02:46:00 CST 2000 - Tue May 13 07:59:00 CST 2025
Issuer : CN=Baltimore CyberTrust Root, OU=CyberTrust, O=Baltimore, C=IE
Oracle Secure Backup Web Service wallet created in directory /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/osbws_wallet.
Oracle Secure Backup Web Service initialization file /home/oracle/app/oracle/product/11.2.0/dbhome_1/dbs/osbwsorcl.ora created.
Downloading Oracle Secure Backup Web Service Software Library from file osbws_linux64.zip.
Debug: Temp zip file = /tmp/osbws_linux644866594262255849440.zip
Downloaded 26986336 bytes in 2097 seconds. Transfer rate was 12869 bytes/second.
Download complete.
Exception in thread "main" java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:240)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:194)
at oracle.backup.util.FileDownload.unzip(FileDownload.java:348)
at oracle.backup.util.ConfigSetup.downloadLibrary(ConfigSetup.java:364)
at oracle.backup.util.ConfigSetup.downloadLibrary(ConfigSetup.java:298)
at oracle.backup.s3.install.S3Config.main(S3Config.java:267)
uj5u.com熱心網友回復:
從你的報錯資訊看,個人感覺比較像檔案讀取出了問題。你的匯出的檔案名和匯入的檔案名你看下對應了嗎
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/93579.html
標籤:高級技術
