Zip File using oracle

Hi Guys. Is there any knows how to zip a file using oracle? I really need to know how. Pls help.
Thanks in advance.

When I've needed to generate ZIP files in Oracle, I've written a Java stored procedure to do so. You may also be able to use the [UTL_COMPRESS package|http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_compr.htm#BGBEJIEJ] depending on the Oracle version and exactly what you're trying to accomplish.
Justin

Similar Messages

  • I am trying to import BPM Project.zip file into Oracle enterpriserepository

    I am trying to import BPM Project.zip file into Oracle enterpriserepository from admin tab.
    I am getting the following exception. please help if any one know the solution.
    Performing import...
    Import Failed: Error [100]: An unknown server-side error occurred. Please record stack trace (if available) and contact technical support.
    com.flashline.exception.LoggableException: trouble parsing file in import bundle: SampleWScall/activityGuide.agdl
         at com.flashline.cmee.openapi.service.subsystem.impexp.XMLTranslator.decode(XMLTranslator.java:157)
         at com.flashline.cmee.openapi.service.subsystem.impexp.ImportJob.doJob(ImportJob.java:74)
         at com.flashline.cmee.openapi.service.subsystem.impexp.AbstractJob.perform(AbstractJob.java:75)
         at com.flashline.cmee.openapi.service.subsystem.impexp.JobThread.run(JobThread.java:41)
    Audit results stored in:
    C:\Users\AVINAS~1.YEL\AppData\Local\Temp\import-4705112223687937017.log
    Audit for [Import job.] created on [2012-09-24 11:53:59 IST].
    2012-09-24 11:53:59 IST - Adding Import job with ID=[50403] to job queue.
    Thanks in Advance.

    Hi
    Why are you trying to import BPM zip file are you trying to configure the out of the box workflows?
    They are something that need to be deployed from the process admin on BPM.
    There would be the .exp file you would need as its BPM 10g that you would need to use.

  • How to store the zip file in oracle table?

    hi,
    How to store the zip file in oracle table ?
    is it possible to unzip and read the file ?
    Thanks
    Rangan S

    SQL> DESC BLOB_TABLE;
    Name Type Nullable Default Comments
    A INTEGER Y
    B BLOB Y
    SQL> INSERT INTO BLOB_TABLE VALUES(5,BLOB('MWDIR_TST','TEST.ZIP'));
    INSERT INTO BLOB_TABLE VALUES(5,BLOB('MWDIR_TST','TEST.ZIP'))
    ORA-00904: "BLOB": invalid identifier
    SQL> INSERT INTO BLOB_TABLE VALUES(5,('MWDIR_TST','TEST.ZIP'));
    INSERT INTO BLOB_TABLE VALUES(5,('MWDIR_TST','TEST.ZIP'))
    ORA-00907: missing right parenthesis
    SQL> INSERT INTO BLOB_TABLE VALUES(5,('\\MWDIR_TST\TEST.ZIP'));
    INSERT INTO BLOB_TABLE VALUES(5,('\\MWDIR_TST\TEST.ZIP'))
    ORA-01465: invalid hex number
    SQL> INSERT INTO BLOB_TABLE VALUES(5,('\\MWDIR_TST\TEST.ZIP'));

  • How to check & unzip zip file using java

    Dear friends
    How to check & unzip zip file using java, I have some files which are pkzip or some other zip I want to find out the type of ZIp & then I want to unzip these files, pls guide me
    thanks

    How to check & unzip zip file using java, I have
    ve some files which are pkzip or some other zip I
    want to find out the type of ZIp & then I want to
    unzip these files, pls guide meWhat do you mean "other zip"? Either they're zip archives or not, there are no different types.

  • Why can't I open zip-files using Firefox?

    Every time I try to open a zip-file using Firefox all it does is open new tabs. I end up with dozens, sometimes hundreds, of open tabs that have nothing on the pages and the file never gets opened. Why does this happen? Is there a way to fix it and if so, how?

    http://support.mozilla.com/en-US/kb/Managing+file+types
    Set Adobe Acrobat to handle PDF files, not Firefox.

  • Want To create Zip file  using java,And Unzip without Java Program

    I want to create a zip text file using java, I know Using ZipOutputStream , we can create a zip file, , But i want to open that zip file without java program. suppose i use ZipOutputStream , then zip file is created But for unZip also difftrent program require. We cant open that zip file without writing diff java program.
    Actually i have one text file of big size want to create zip file using java , and unzip simply without java program.Its Possible??
    Here is one answer But I want to open that file normal way(
    For Exp. using winzip we can create a zip file and also open simply)
    http://forum.java.sun.com/thread.jspa?threadID=5182691&tstart=0

    Thanks for your Reply,
    I m creating a zip file using this program, Zip file Created successfully But when im trying to open .zip file i m getting error like "Canot open a zip file, it does not appear to be valid Archive"
    import java.io.*;
    import java.util.zip.*;
    public class ZipFileCreation
         public static void main (String argv[])
         try {
         FileOutputStream fos = new FileOutputStream ( "c:/a.zip" );
         ZipOutputStream zip = new ZipOutputStream ( fos );
         zip.setLevel( 9 );
         zip.setMethod( ZipOutputStream.DEFLATED );
    //     get the element file we are going to add, using slashes in name.
         String elementName = "c:/kalpesh/GetSigRoleInfo092702828.txt";
         File elementFile = new File ( elementName );
    //     create the entry
         ZipEntry entry = new ZipEntry( elementName );
         entry.setTime( elementFile.lastModified() );
    //     read contents of file we are going to put in the zip
         int fileLength = (int)elementFile.length();
         System.out.println("fileLength = " +fileLength);
         FileInputStream fis = new FileInputStream ( elementFile );
         byte[] wholeFile = new byte [fileLength];
         int bytesRead = fis.read( wholeFile , 0 /* offset */ , fileLength );
    //     checking bytesRead not shown.
         fis.close();
    //     no need to setCRC, or setSize as they are computed automatically.
         zip.putNextEntry( entry );
    //     write the contents into the zip element
         zip.write( wholeFile , 0, fileLength );
         zip.closeEntry(); System.out.println("Completed");
    //     close the entire zip
         catch(Exception e) {
    e.printStackTrace();
    }

  • Stage Area Size is 38 gb after extracting zip file of oracle R12.1.1

    Dear All,
    I need verification from you that after extracting zip file I have total size 38 gb after extracting zip file of oracle R12.1.1 for solaris 5.1 sparc 64 bit.
    I have downloaded 42 files.
    B53824-01 Part 1 of 4      29M
         B53824-01 Part 2 of 4      97M
         B53824-01 Part 3 of 4      393M
         B53824-01 Part 4 of 4      81M
         V15635-01 Part 1 of 3      1.2G
         V15635-01 Part 2 of 3      1.2G
         V15635-01 Part 3 of 3      1.1G
         V15636-01      976M
         V15637-01 Part 1 of 3      1.7G
         V15637-01 Part 2 of 3      1.7G
         V15637-01 Part 3 of 3      576M
         V15638-01 Part 1 of 3      1.6G
         V15638-01 Part 2 of 3      1.7G
         V15638-01 Part 3 of 3      557M
         V15639-01 Part 1 of 3      1.6G
         V15639-01 Part 2 of 3      1.6G
         V15639-01 Part 3 of 3      463M
         V15640-01 Part 1 of 3      1.5G
         V15640-01 Part 2 of 3      1.6G
         V15640-01 Part 3 of 3      514M
         V15641-01 Part 1 of 3      1.2G
         V15641-01 Part 2 of 3      1.6G
         V15641-01 Part 3 of 3      756M
         V15642-01      1.0G
         V15643-01 Part 1 of 7      567M
         V15643-01 Part 2 of 7      560M
         V15643-01 Part 3 of 7      593M
         V15643-01 Part 4 of 7      612M
         V15643-01 Part 5 of 7      582M
         V15643-01 Part 6 of 7      480M
         V15643-01 Part 7 of 7      551M
         V15644-01 Part 1 of 2      1.5G
         V15644-01 Part 2 of 2      1.6G
         V15645-01      1.7G
         V15646-01 Part 1 of 3      1.5G
         V15646-01 Part 2 of 3      1.2G
         V15646-01 Part 3 of 3      1.1G
         V15647-01 Part 1 of 3      1.7G
         V15647-01 Part 2 of 3      1.2G
         V15647-01 Part 3 of 3      626M
         V15648-01 Part 1 of 2      1.2G
         V15648-01 Part 2 of 2      836M
    Does these have all basice needs.
    There is also some files which I did not download may be for soa ,warehouse and library like.
    Please verify that am I going on right?
    Thanks

    I need verification from you that after extracting zip file I have total size 38 gb after extracting zip file of oracle R12.1.1 for solaris 5.1 sparc 64 bit.
    I have downloaded 42 files.
    Does these have all basice needs.You need the following files:
    From: Oracle E-Business Suite Release 12.1.1 Rapid Install Start Here (Part 1 of 4), Part Number: B53824-01 Part 1 of 4
    To: Oracle E-Business Suite Release 12.1.1 for Sun Solaris SPARC (64-bit) Rapid Install APPL_TOP - Disk 3 (Part 2 of 2), Part Number: V15648-01 Part 2 of 2
    There is also some files which I did not download may be for soa ,warehouse and library like.
    Please verify that am I going on right?You do not need to download those files.
    Thanks,
    Hussein

  • How to uncompress zip files using java program

    hai,
    please give some sample code to decompress the zip file.
    how to uncompress zip files using java program
    thanking you
    arivarasu

    http://developer.java.sun.com/developer/technicalArticles/Programming/PerfTuning/
    Scroll down to 'Compression'

  • Where is iSQL*Plus distribution zip file for Oracle 8i (8.1.7)?

    I am running Oracle 8i (8.1.7) under Windows 2000. The iSQL*Plus Installation and Users Guide Release 8.1.7 Beta for Windows says the iSQL*Plus distribution zip file can be downloaded from the Oracle TechNet site (http://otn.oracle.com). I went there but could only fine iSQL*Plus for Oracle 9i. I even clicked on a link for the 8.1.7 version but ended up on a page with the 9i version. Can the 8.1.7 version still be downloaded? If so, what http address will get me to it?
    I want to run iSQL*Plus on my PC to see if I can access my oracle database from an iMAC (apple computer).
    Thanks in advance for your help!

    John,
    iSQL*Plus 8.1.7 beta was available only for a short time. That version was in beta testing and not intended for long term use. iSQL*Plus 9.0.1 (with Oracle9i release 9.0.1 for Windows) is more stable, and has more features. iSQL*Plus 9.2.0.1 (just released with Oracle9i release 9.2.0.1 on most platforms!) is even better. You might want to install a version of Oracle9i and use the new, production releases of iSQL*Plus.
    Alison
    iSQL*Plus Team

  • Keynote (6.2) file won't open. Can I make a new Index.zip file using some of the extracted .iwa files?

    Keynote (6.2) file won't open (hung and crashed during auto-OS update).  Trying to salvage everything possible.  I know about grabbing the pictures from Data folder, but is there a way to extract the good .iwa files and make a new Index.zip? 
    Tried extracting, capturing uncorrupted .iwa and deleting corrupted ones, but can't figure out how to re-compress to readable format for Keynote.  Seems silly that I can't ge the new .zip file to work.  There has to be some sort of manual work-around, yeah?
    Thanks.

    This problem has been reported to the AppleWorks team, but I doubt that we will ever hear if there is a fix. AppleWorks 6 is now nearly 6 years old & hasn't even had an update since March, 2004.
    Nothing has been found to be able to make AppleWorks 6.2.9 open the problem files. I've had it happen & not happen with all AppleWorks file types. These files can be opened by any other version of AppleWorks 6, including the OS 8/9 component 6.2.8. If you have the retail version of AppleWorks & have Classic installed, you can "Force" AppleWorks 6 to open in Classic to open the files, save them as AW 6 files & then open them in the OS X version. You do want to make sure you don't have both the Classic & OS X versions of AppleWorks 6 running at the same time. I find it much easier to use AppleWorks 5 in Classic to open & save the files. AppleWorks 6.2.9 has no problem opening AppleWorks 5 files.
    Peggy

  • How to transfer files using Oracle Managed File Transfer from Oracle EBS 12.1.3

    Hello,
    I'm looking for ideas to securely transfer files bi-directional between Oracle EBS 12.1.3 to IIS using Oracle Managed File Transfer and SOA.  Any help is greatly appreciated.
    Thanks

    Hi Hussain,
    In the Note 466649.1
    Edited
    I have installed R12.1.1
    Datafiles on installed on local file system /u01/EBS_DATa/*dbf, *.ctl, *.log
    doing non RAC to RAC conversion with ASM option,
    I am using ASM with RAC and created ASM disks (DATA, FRA, CRS) on Shared SAN disks between node1 and node2 which are DATA for CRD (control, redo and Data) files, FRA for archive files, CRS for cluster files while doing RAC instalation,
    now how i move my CRD on local file system /u01/EBS_DATa/*dbf, *.ctl, *.log to shared ASM disk DATA ???????
    Please describe with step wise,
    Thanks in advance.
    Regards,
    Vara
    Edited by: user13409653 on Jan 3, 2012 12:25 AM
    Edited by: user13409653 on Jan 3, 2012 5:10 AM

  • Download files from document library in zip file using javascript

    Hi,
    I am developing SharePoint Hosted App which needs to download all the files in the document libraries of SharePoint site in a zip folder where in that zip file each document library should be a folder, in that folder the files of that document library will
    be shown. Currently I am display all the document library in a table with check boxes as shown in the below figure. Now when user selects the check boxes and click on download button, the selected document libraries along with the files should be downloaded
    in a zip folder. This should be achieved through javascript. Can anyone share me the code to solve this problem.
    Thanks & Regards,
    Kishore
    Kishore

    You can use
    zip.js, but the best way - implement your solution on the server-side.
    [custom.development]

  • Reading .ZIP files using File Adapter

    Hi,
    I am using BPEL File Adapter to read files. The files to be read are XML files which are in zipped format.
    so how should I read these .zip files and extract the XML files from that.
    Thanks
    /Kiran.

    If the xml files are all in the same directory (not in any directory structure relative to the parent directory), you can do something like this.
    - create a bpel process to read the zip files as it comes into the directory]
    - Have a file adapter inbound for the receive
    - Call windows .bat command within the bpel process to run an unzip command on that directory
    - Have another bpel process that reads *.xml files and this will get kicked off.
    There are so many ways of solving this: like having a cron job to unzip the files coming in etc. But, if you have a directory structure for these XML files and if the structure is dynamic, it is difficult to configure the file adapter for that.

  • Parsing the word file using oracle text having tables within it............

    Hi,
    I was going through this document.Actually I am going to implement something like full text search functionality in our system.
    We get the info as .doc file.
    Earlier what we used to do is, we used to parse the file and store it into the database and then searched using PL/SQL.
    But what I understand from this article that this can be done using oracle text also.
    One concern is that whether the oracle text is able to parse the .doc file having tables embedded within it.
    Please let me know about this.(Whether oracle text will be able to parse the files having tables embedded within it).
    I am attaching an example file for this.
    Please let me know about this as early as possible.

    Yes Oracle Text have this capability. Use AUTO_FILTER or USER_FILTER to create index

  • Extracting Zip files using PowerShell 3.0 on Windows 2008

    I’m using a script to extract data to multiple servers, I’ve tested it many times, however an issue has come up that has me stumped. When extracting the zip file, it wants to create a top level folder the same name as the zip file instead of just extracting
    the contents.  Here is a sample of my script. What I need it to do is just extract the contents to the location I specify, but not create a folder with the same name as the zip file itself. Hopefully that makes sense.
     ( now the code I used is from a sample I found online, it’s been edited to fit my needs.
    $Date
    = Get-Date
    #ERROR REPORTING ALL
    Set-StrictMode
    -Version latest
    #STATIC VARIABLES
    $search
    = ""
    $destSRC  
    = "D:\Destination\DestinationUpdate"
    $zips  
    = "D:\Source\ZipSource"
    #log start of script
    Write-EventLog
    -LogName OpsCenter
    -Source ZIP
    -EntryType Information
    -EventId 3001
    -Message "Start Extraction of Update files to
    $destSRC @
    $Date"
    #FUNCTION GetZipFileItems
    Function
    GetZipFileItems
    Param([string]$zip)
    $split =
    $split.Split(".")
    $destSRC
    = $destSRC
    + "\"
    + $split[0]
    If (!(Test-Path
    $destSRC))
    Write-Host "Created folder :
    $destSRC"
    $strDest
    = New-Item $destSRC
    -Type Directory
    $shell   =
    New-Object -Com
    Shell.Application
    $zipItem
    = $shell.NameSpace($zip)
    $items   =
    $zipItem.Items()
    GetZipFileItemsRecursive
    $items
    #FUNCTION GetZipFileItemsRecursive
    Function
    GetZipFileItemsRecursive
    Param([object]$items)
    ForEach($item
    In $items)
    If ($item.GetFolder
    -ne $Null)
    GetZipFileItemsRecursive
    $item.GetFolder.items()
    $strItem
    = [string]$item.Name
    If ($strItem
    -Like "*$search*")
    If ((Test-Path ($destSRC
    + "\"
    + $strItem))
    -eq $False)
    Write-Host "Copied file :
    $strItem from zip-file :
    $zipFile to destination folder"
    $shell.NameSpace($destSRC).CopyHere($item)
    Else
    Write-Host "File :
    $strItem already exists in destination folder"
    #FUNCTION GetZipFiles
    Function
    GetZipFiles
    $zipFiles
    = Get-ChildItem -Path
    $zips -Recurse
    -Filter "*.zip"
    | % {
    $_.DirectoryName
    + "\$_" }
    ForEach ($zipFile
    In $zipFiles)
    $split =
    $zipFile.Split("\")[-1]
    Write-Host "Found zip-file :
    $split"
    GetZipFileItems
    $zipFile
    #RUN SCRIPT
    GetZipFiles
    #log end of script
    Start-Sleep
    -Seconds 2
    $Date
    = Get-Date
    Write-EventLog
    -LogName OpsCenter
    -Source ZIP
    -EntryType Information
    -EventId 3001
    -Message "Extracted all ZIP Update files to
    $destSRC @
    $Date"
    Paul Arbogast

    @jrv
    I hate to hijack an old thread.
    I have been playing with this for the past hour.
    I have use this fine in an interactive console or the ISE.
    But as soon as I place this into a script, and then run the script " .\script.ps1 "; nothing happens.
    I obviously have some disconnect going on that I am not finding.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

Maybe you are looking for

  • Windows 7 on snow leopard using boot camp 2.1/2.2 drivers

    Hey Forum, i am using snow leopard on my macbook, and I do not have the snow leopard install disc as I have lost it. I am intending to install windows 7 on it with my old leopard install dvd using boot camp 2.1/2.2 drivers? Can it be done? Ok in summ

  • MacBook Pro burn DVD failed even after installing Leopard 10.5.2

    Ever since upgrading from Tiger to Leopard my 17in MacBook Pro has failed to burn DVDs. It managed to burn a couple discs after the upgrade, but soon proceeded to give various error messages whenever I have attempted to burn a DVD. The most common er

  • Acrobat 7 as commandline-tool

    Hello, is it possible, convert office-documents to PDF automated e.g. by execute acrobat professional as an command line-version? Thanks for answers Uwe

  • IR from dynamic action

    Hi ALL, I have form based on table issues. In that form, there is a item issue_summary. and also on the same page there is interactive report. I want, when user enter issue-summary, then it should search in table and populate IR with the related issu

  • AIR Mobile Simulator disappears when tracing to output

    This has been an issue for some time. When using the AIR mobile simulator to debug an app, if there are trace statements, the mobile simulator controls window disappears completely and cannot be interacted with. So you have no way to turn on the touc