<small id='naqPW'></small><noframes id='naqPW'>

      <i id='naqPW'><tr id='naqPW'><dt id='naqPW'><q id='naqPW'><span id='naqPW'><b id='naqPW'><form id='naqPW'><ins id='naqPW'></ins><ul id='naqPW'></ul><sub id='naqPW'></sub></form><legend id='naqPW'></legend><bdo id='naqPW'><pre id='naqPW'><center id='naqPW'></center></pre></bdo></b><th id='naqPW'></th></span></q></dt></tr></i><div id='naqPW'><tfoot id='naqPW'></tfoot><dl id='naqPW'><fieldset id='naqPW'></fieldset></dl></div>
    1. <legend id='naqPW'><style id='naqPW'><dir id='naqPW'><q id='naqPW'></q></dir></style></legend>

    2. <tfoot id='naqPW'></tfoot>
      • <bdo id='naqPW'></bdo><ul id='naqPW'></ul>

      使用 Oracle 存储过程压缩

      Zip using Oracle Stored Procedure(使用 Oracle 存储过程压缩)

      1. <small id='Y2Lnx'></small><noframes id='Y2Lnx'>

          <tbody id='Y2Lnx'></tbody>
        <i id='Y2Lnx'><tr id='Y2Lnx'><dt id='Y2Lnx'><q id='Y2Lnx'><span id='Y2Lnx'><b id='Y2Lnx'><form id='Y2Lnx'><ins id='Y2Lnx'></ins><ul id='Y2Lnx'></ul><sub id='Y2Lnx'></sub></form><legend id='Y2Lnx'></legend><bdo id='Y2Lnx'><pre id='Y2Lnx'><center id='Y2Lnx'></center></pre></bdo></b><th id='Y2Lnx'></th></span></q></dt></tr></i><div id='Y2Lnx'><tfoot id='Y2Lnx'></tfoot><dl id='Y2Lnx'><fieldset id='Y2Lnx'></fieldset></dl></div>
      2. <legend id='Y2Lnx'><style id='Y2Lnx'><dir id='Y2Lnx'><q id='Y2Lnx'></q></dir></style></legend>
          <bdo id='Y2Lnx'></bdo><ul id='Y2Lnx'></ul>
          • <tfoot id='Y2Lnx'></tfoot>
                本文介绍了使用 Oracle 存储过程压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                现在我正在使用 Oracle 实用程序 UTL_COMPRESS.LZ_COMPRESS() 来压缩一些数据.但问题是它使用 GZIP 兼容格式压缩东西,不幸的是,它也不兼容 ZIP.因此,Windows XP 本机解压实用程序无法打开它(您知道压缩文件夹的东西).并且用户必须使用一些其他实用程序,例如 7ZipWinzipFilzip 等,以便对其进行解压缩.

                Right now I am using Oracle utility procedure, UTL_COMPRESS.LZ_COMPRESS(), to compress some data. But the problem is it compresses the thing using GZIP compatible format, which is not also ZIP compatible unfortunately. Therefore, the Windows XP native decompression utility can not open it (you know that compressed folder thingie). And user have to use some other utility, like 7Zip, Winzip, or Filzip etc., in order to decompress that.

                因此,我们最终制定了从 Oracle 检索 GZIP 数据的计划,使用 Java 对其进行解压缩,然后将其压缩回 ZIP(可以通过 Windows 实用程序解压缩的内容).compress-in-gzip -> 听起来很荒谬解压 ->再次压缩压缩.

                So, we end up having a plan of retrieving GZIP data from Oracle, uncompress it using Java, and compress it back to ZIP (something that can be decompressed by Windows utility). It sounds ridiculous to compress-in-gzip -> decompress -> compress-again-in-zip.

                知道我们首先如何将其压缩为所需的格式,以避免所有这些额外的计算吗?

                推荐答案

                有一个支持 WinZip 格式的 Java 包 java.util.zip.而在 Oracle 中,我们可以构建 Java 存储过程,这些过程以一种可由本机 PL/SQL 程序调用的形式呈现 Java 类.了解更多.

                There is a Java package java.util.zip which supports the WinZip format. And in Oracle we can build java stored procedures which present Java classes in a form which can be called by native PL/SQL programs. Find out more.

                所以您需要做的是写出一个包含未压缩状态数据的文件,然后通过 JSP 将其送入压缩.如果您不想编写自己的实现,请查看 Vadim Loevski 撰写的这篇文章.它包括一个用于压缩 OS 文件的 Java 存储过程.

                So what you need to do is write out a file containing the data in its uncompressed state and then feed it through a JSP to zip it. If you don't want to write your own implementation then check out this article by Vadim Loevski. It includes a Java Stored Procedure for zipping OS files.

                注意:在此上下文中,JSP 表示 Java 存储过程,它是嵌入在数据库中的 Java 程序.它与 Java Server Pages 不同,后者是一种 Web 技术,因此是 JSP 首字母缩写词的更常见用法.对于造成的任何混淆,我深表歉意.

                Note: In this context JSP means Java Stored Procedure, which is a Java program embedded in the database. It is not the same as Java Server Pages, which is a web technology, and hence the more common usage for the JSP acronym. I apologise for any confusion given.

                这篇关于使用 Oracle 存储过程压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Accessing another user#39;s table within an Oracle Stored Procedure(在 Oracle 存储过程中访问另一个用户的表)
                How to View Oracle Stored Procedure using SQLPlus?(如何使用 SQLPlus 查看 Oracle 存储过程?)
                How to Pass Java List of Objects to Oracle Stored Procedure Using MyBatis?(如何使用 MyBatis 将 Java 对象列表传递给 Oracle 存储过程?)
                What is dynamic SQL?(什么是动态 SQL?)
                Mysql - How to quit/exit from stored procedure(Mysql - 如何退出/退出存储过程)
                How to find a text inside SQL Server procedures / triggers?(如何在 SQL Server 程序/触发器中查找文本?)
                <legend id='83YG6'><style id='83YG6'><dir id='83YG6'><q id='83YG6'></q></dir></style></legend>
                  <bdo id='83YG6'></bdo><ul id='83YG6'></ul>

                  <small id='83YG6'></small><noframes id='83YG6'>

                • <tfoot id='83YG6'></tfoot>
                  <i id='83YG6'><tr id='83YG6'><dt id='83YG6'><q id='83YG6'><span id='83YG6'><b id='83YG6'><form id='83YG6'><ins id='83YG6'></ins><ul id='83YG6'></ul><sub id='83YG6'></sub></form><legend id='83YG6'></legend><bdo id='83YG6'><pre id='83YG6'><center id='83YG6'></center></pre></bdo></b><th id='83YG6'></th></span></q></dt></tr></i><div id='83YG6'><tfoot id='83YG6'></tfoot><dl id='83YG6'><fieldset id='83YG6'></fieldset></dl></div>

                            <tbody id='83YG6'></tbody>