2 + GB in plsql zip file. Error when using as_zip

I use as_zip package of Anton Scheffer http://technology.amis.nl/wp-content/uploads/images/as_zip.txt

When you try to compress a 2 + GB file I get the following error

ORA-06502: PL/SQL: digital error or value

ORA-06512: at "SYS." UTL_RAW', line 380

ORA-06512: at "SANJEEV.AS_ZIP", line 321

ORA-06512: at "SANJEEV.AS_ZIP", line 356

ORA-06512: at line 4 level

06502 00000 - "PL/SQL: digital error or the value of %s.

* Cause:

* Action:

The error is triggered by the little_endian function.

function little_endian)

p_big number

, p_bytes in pls_integer: = 4

)

Return to raw

is

Start

return utl_raw.substr

(utl_raw.cast_from_binary_integer (p_big

utl_raw.little_endian

)

1

p_bytes

);

end;

The function uses utl_raw.cast_from_binary_integer. I tried to use utl_raw.cast_from_number, but did not create the correct zip file. Does anyone has found a fix for this error? The package works fine for smaller files - many thanks to Anton.

If you change the little_endian function in the package of files with a length between 2 and 4 GB you can zip

function little_endian (p_big number, p_bytes pls_integer: = 4)

Return to raw

is

number of t_big: = p_big;

Start

If t_big > 2147483647

then

t_big: = t_big - 4294967296;

end if;

Return utl_raw.substr (utl_raw.cast_from_binary_integer (t_big, utl_raw.little_endian), 1, p_bytes);

end;

And if you change your blog2num you can read them again

function blob2num (blob, aureliepally, of p_pos p_blob)

Return number

is

number of RV;

Start

RV: = utl_raw.cast_to_binary_integer (dbms_lob.substr (p_blob, aureliepally, p_pos), utl_raw.little_endian);

If rv<>

then

RV: = VR + 4294967296;

end if;

Return rv;

end;

Compress a file of this size will take time, on my database 11XE 15 minutes.

Also, I just saw that this zip/unzip code is included in the ea APEX 5.0 version, named wwv_flow_zip

Tags: Database

Similar Questions

  • Get a zip code error when your book order

    Getting a zip code error when your book order is exact zip code th for my address.

    In the Canada.

    Help

    You order the Canadian Apple store online? If this isn't the case, then you must change your store site online on the Canadian site. Scroll down to the bottom of the page where you should find an icon of circled on the right corner flag. Click it, and then select the Canadian store in the list and re - buy article. It must now accept Canadian postal codes rather than postcodes American.

  • My Cookie file was corrupted in data and my programs continually pop up with the 'corrupt file' error when a program opens, pointing to \Users\name\Appdata\Roaming\Microsoft\Windows\Cookies.

    My Cookie file was corrupted in data and my programs continually pop up with the 'corrupt file' error when a program opens, pointing to \Users\name\Appdata\Roaming\Microsoft\Windows\Cookies.

    The problem is, Chkdsk will not fix this, and I can't access the file. This opens up a world of problems when I need to fix this error, so I can upgrade to Windows 7. Help, please!

    I just ran the scan again. He said of the errors found, but could not be repaired.

    This problem actually has nothing to do with internet explorer. It's the cookies folder that is corrupt in the Windows folder in roaming. The error file is in conjunction with the programs, that I try to run (AIM, Skype, so forth). Trying to enter the folder it says it's corrupt. I don't know what is the root of the problems or how to solve this problem, but these measures have not helped so far. Regarding the repair, I will try that next.

    http://Tinypic.com/view.php?pic=14mw4ly&s=4

    Here is a picture. This is the error of the lower right

    It's what the tool SFC to see system files corrupted and try to repair the system files.
    SFC could not fix it.

    Looks like you will need to do this:

    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    Read the info on the link above.

    Good luck with it.

    Let us know how you go with it.

    See you soon.

    Mick Murphy - Microsoft partner

  • BlackBerry Smartphones "Cannot access local files" error when syncing with Outlook

    I have an old BlackBerry Bold 9780 which works well. However, just yesterday, I started getting a "Cannot access local files" error when you try to use BB Desktop to synchronize with Microsoft Outlook 2016. I uninstalled and reinstalled the BlackBerry Desktop Software 7.1, but the problem persists. There is no error when using Outlook or other aspects of synchronization in BB Desktop.

    I am running 64-bit Windows 10 on my desktop computer. I got no synchronization issues in the past until yesterday. To my knowledge, nothing has changed.

    A Google search for the error message returns questions posted on several different forums, but there is no clear solution given.

    The problem seems to be in Outlook, rather than with the BlackBerry Desktop, at least in my case. I solved it by repairing my Microsoft Office installation. For most versions of Office, this is accomplished by going to the list of programs installed in the Control Panel, highlight and right-click on the desktop and select the option to repair or change.

  • BlackBerry Smartphones "Cannot access local files" error when syncing with Outlookl

    I have an old BlackBerry Bold 9780 which works well. However, just yesterday, I started getting a "Cannot access local files" error when you try to use BB Desktop to synchronize with Microsoft Outlook 2016. I uninstalled and reinstalled the BlackBerry Desktop Software 7.1, but the problem persists. There is no error when using Outlook or other aspects of synchronization in BB Desktop.

    I am running 64-bit Windows 10 on my desktop computer. I got no synchronization issues in the past until yesterday. To my knowledge, nothing has changed.

    A Google search for the error message returns questions posted on several different forums, but there is no clear solution given.

    The problem seems to be in Outlook, rather than with the BlackBerry Desktop, at least in my case. I solved it by repairing my Microsoft Office installation.  For most versions of Office, this is accomplished by going to the list of programs installed in the Control Panel, highlight and right-click on the desktop and select the option to repair or change.

  • cannot set file error when trying to put the photoshop button in adobe muse, he is not 'supported color space. Resave image RGB or grayscale.

    cannot set file error when trying to put the photoshop button in adobe muse, he is not 'supported color space. Resave image RGB or grayscale.

    I believe that this is already the answer here:

    https://forums.Adobe.com/thread/1917435

    Thank you

    Sanjit

  • "this is a problem when extracting files" error when running PSE11 download

    Download "a problem occurred during extraction of the files" error when running PSE11 download. I downloaded 4 times (on a slow network), used Akai Download Manager, Adobe Download Wizard and download directly from the copy purchased as well as a trial download, and get the same error with each of them. I even tried on a new laptop that I just bought Win8 running. First 11 and 5 Lightroom worked well on my old computer Win 7 and my new laptop Win 8.

    PSE11_err.jpg

    After trial & error it turns out it doesn't work if the files are extracted in the "office". Even if the leaders of all the other places of extraction are the same as what are extraction "desktop", they all gave the error "a problem occurred during extraction of the files."

    Please note that for users with errors and the similar report as a bug to team development.

  • Receive the 25 (Null) error when using Flightsimulator FSX

    Receive the 25 (Null) error when using Flightsimulator FSX

    Hello

    Try to open the it to start - all programs - Games - Games Explorer, and then clicking the icon FSX.

    A disk error of 25 means that the program cannot read your disk reading.  Either the disc is scratch, dirty or defective.  If you need another drive, or you can try it on another computer. The message of Visual elements of Vista is not serious.  Vista will automatically your screen to a basic compatible mode when the application is launched.  However, it seems that your game is a failure due to the disk error and not the Vista display problem. Try to clean the disc and see if that helps.

    Last resort, it seems you'd have to do a complete uninstall and reinstall FSX.

    Cheers!

  • dbms_crypto - avoid error when using different key in lower environment

    Hello Experts,

    We use Oracle 11.2.0.2. We intend to implement dbms_crypto to encrypt some columns. Clone us the production data at the lower environment (DEV, QC).

    The lowest environments, we do not want to obtain the sensitive data from production and do not plan to use the same key. Instead of getting an error when using different keys, is it possible to get a different set of results.

    In other words, we want the implementation will be same in environments but use a different key in lower environment and obtain different results (or garbage).

    Any suggestions would be greatly appreciated.

    The test of this logic, I get following error when using the different keys to decrypt. It works fine if I use the same key.
    Error on line 1
    ORA-28817: PL/SQL function has returned an error.
    ORA-06512: at "SYS." DBMS_CRYPTO_FFI', line 67
    ORA-06512: at "SYS." DBMS_CRYPTO", line 44
    ORA-06512: at line 19
    DECLARE
      l_credit_card_no    VARCHAR2(19) := '1234 5678 9012 3456';
      l_ccn_raw           RAW(128) := UTL_RAW.cast_to_raw(l_credit_card_no);
     
     l_key               RAW(128) := UTL_RAW.cast_to_raw('abcdefgh');
       l2_key               RAW(128) := UTL_RAW.cast_to_raw('12345678');
    
      l_encrypted_raw     RAW(2048);
      l_decrypted_raw     RAW(2048);
    BEGIN
      DBMS_OUTPUT.put_line('Original  : ' || l_credit_card_no);
    
      l_encrypted_raw := DBMS_CRYPTO.encrypt(src => l_ccn_raw, 
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5, 
                                             key => l_key);
    
      DBMS_OUTPUT.put_line('Encrypted : ' || RAWTOHEX(UTL_RAW.cast_to_raw(l_encrypted_raw)));
    
      l_decrypted_raw := DBMS_CRYPTO.decrypt(src => l_encrypted_raw, 
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5, 
                                             key => l2_key); --**Using different key to decrypt
    
      DBMS_OUTPUT.put_line('Decrypted : ' || UTL_RAW.cast_to_varchar2(l_decrypted_raw));
    END;
    Thank you.

    In general, you can't get different results in different environments, no.

    Of course, you could write your routine to decrypt so that it intercepts it and returns a random string of RAW.

    However, this is not normally the way people go on hiding sensitive data in environments below. It would be much more common to use a tool that is designed for this tool. For example, Oracle has a Pack of masking of data for Enterprise Manager that allows to replace sensitive data with false, but realistic data as part of the updating of the environments below. There are also data from third-party tools like masqueur datamasking.

    Justin

  • I can't open a zip file because when he saves, he is not a same folder open or "rip"! What is going on?

    I am trying to download fonts on my new laptop, using www.dafont.com. I used this source to download fonts to countless times on my previous laptop. I have windows 7 and now I also have WinZip and whenever I download a font zip file, it asks me if I want to open or save the zip file, as usual and no matter what I choose, the saved file icon is a white sheet (not a zip file you can open) and he says it's a ' zip '. When I click on it, I get the pop up notice that says "Application not found". I tried several fonts from different suppliers, so I know that this is not a defective or damaged zip file. Help, please!

    Alright.  Normally, at this point, the best thing I could suggest would be to make a new profile on the PC, that re-creates all the association.  It takes about 3 minutes to do and does not hurt your files or programs installed.

    However, if you are ready to try another tool called 'Types', you may be able to manually fix the file type where the registry import is a failure.  You can get it hereand once installed you can change the .zip association and make you what it "opens with" this command:

    C:\Windows\Explorer.exe /idlist,%I,%L

  • im making a responsive Web page files you learned you are needed is .zip files. When I go to open them on dreamweaver it says that it cannot open the .zip, they must be .html etc... What should I do?

    I need to make a web page with javascript pop ups. If someone could tell me the best program that would be great. Thank you.

    Dreamweaver is a glorified text editor, in other words, you are able to handle files containing text. Text files can come in a variety of variations, variations that Dreamweaver handles are extremely good HTML, CSS and JS files and to a lesser extent, the PHP files.

    Zip files are not text files, they are compressed files which make the transport and archiving or more effective. See her Zip (file format) - Wikipedia, the free encyclopedia. For the file that will be used by Dreamweaver, you will need to decompress the zip file.

    If you want to easily create a page with modals (the modern version of a popup) then I suggest that you create a site using the Bootstrap framework. Modals (and demo) Bootstrap. Modals are

  • Why do I Recorder error, file error when I try to save my HDV from my Sony FX1000 on my Mac Pro using OSX

    I thought this would be an easy task, connect the camcorder by an iLink cable Firewire 800 and bingo game and record... This is not the case... I get this error when I press on the record. Am I doing something wrong or have a wrong setting?

    Two things to check:

    (1) in the Capture window, click the three bars next to Capture and make sure your Capture settings are HDV:

    (2) make sure that On YOUR CAMERA , you have the menu set so that the camera is not down-conversion of HDV DV I.Link port.

    Some cameras default to this setting. You may need to check your owner's manual to find this setting.

    If this is the case, Premiere Pro will see a digital video device and not to the HDV device that it is research.

    MtD

  • JavaScript error when using ExternalInterface.addCallback("IsStatic",IsStatic) with cross-domain swf file

    How can I use ExternalInterface.addCallback("IsStatic",IsStatic) when using javascript server access (html) of server B (swf)? coz it showing error?

    Server A
    192.168.0.10/xxx/example.html
    ===========
    < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    ID = "MGSInsurances1" width = "960" height = "600".
    codebase =" http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" > "
    "" < param name = "movie" value = " http://192.168.0.22/MGS/flex/MGSInsurances1.swf" / >
    < param name = "quality" value = "high" / >
    < param name = "bgcolor" value = "#869ca 7" / >
    < param name = "allowScriptAccess" value = "always" / >
    "" < embed src = " http://192.168.0.22/MGS/flex/MGSInsurances1.swf" quality = "high" bgcolor = "# ca 869, 7.
    width = "960" height = "600" name = "MGSInsurances1" align = "middle".
    play = "true".
    Loop = "false".
    quality = "high".
    allowScriptAccess = "always".
    Type = "application/x-shockwave-flash".
    pluginspage =" http://www.adobe.com/go/getflashplayer_fr" > "
    < / embed >
    < / object >
    < script language = "javascript" >
    window. MGSInsurances1 = document.getElementById('MGSInsurances1');
    < /script >

    Server B
    192.168.0.22/mgs/Flex/MGSInsurances1.swf
    ==================

    Security.allowDomain("*");

    If (ExternalInterface.available)
    {
    ExternalInterface.addCallback("IsStatic",IsStatic) ("onchange", onchange);
    ExternalInterface.addCallback("IsStatic",IsStatic) ("datachange", datachange);
    }

    but javascript Error shows "Unknown name", how can I solve this problem? urgent! Anyone know this?

    I solved it! because I did not restart my server again! Again not error! Sorry to annoy everyone.

  • Get the error when using the UTL_SMTP function in Oracle 11 g

    Hello

    I get the error when executing a trigger e-mail code in oracle 11 g:

    I have following trigger on the temporary table:

    CREATE OR REPLACE TRIGGER temp_temp_message AFTER

    INSERT OR UPDATE ON temp_message FOR EACH LINE

    declare

    Conn UTL_SMTP . CONNECTION ;

    msg VARCHAR2 (2000);

    Start

    Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );

    UTL_SMTP . HELO ( conn, '10.250.1.149');

    UTL_SMTP . mail ( conn, '[email protected]');

    UTL_SMTP . RCPT () conn ' [email protected]');

    msg := "Hello, this is test mail." ;

    UTL_SMTP .data( conn, msg);

    UTL_SMTP . quit smoking ( conn );

    exception when others then

    dbms_output.put_line (sqlerrm);

    raise_application_error (-20000,

    "Failed to send because of the following error messages: ' " || sqlerrm);

    end;

    Insert in temp_message values ()1

    );

    When I insert the record in the table there are given the following error.

    ORA-20000: failed to send messages because of the following error: ORA-24247: access denied by access control (ACL) of network list

    ORA-06512: at the 'APPS '. TEMP_TEMP_MESSAGE', line 14

    ORA-04088: error during execution of trigger ' APPS. TEMP_TEMP_MESSAGE'

    But if I run the next plsql through sqlplus send mail successfully:

    declare

    Conn UTL_SMTP . CONNECTION ;

    MSG VARCHAR2 (2000);

    Start

    Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );

    UTL_SMTP . HELO ( conn, '10.250.1.149');

    UTL_SMTP . mail ( conn, '[email protected]');

    UTL_SMTP . RCPT () conn ' [email protected]');

    msg := "Hello, this is test mail." ;

    UTL_SMTP .data( conn, msg);

    UTL_SMTP . quit smoking ( conn );

    exception when others then

    dbms_output.put_line (sqlerrm);

    raise_application_error (-20000,

    "Failed to send because of the following error messages: ' " || sqlerrm);

    end;

    Thanks in advance.

    Yoann

    To resolve ORA-24247 you must:

    (1) create an acl (if it is not already created)

    (2) add the user privileges using the resources of the network

    (3) to use the ACL to a specific address

    This might be useful

    How to fix an ORA-24247: access denied by access control (ACL) of network list | DB tips

  • WCF error when using the API of VSM

    VSM 9.1.4

    Oracle 10g R2

    I am attemtping to use the "MessageSendMessage" command in the VSM API to send back the client permissions and I get the following error message when running it from the VSM server.

    ERROR: The operation 'ContractUnlinkCIAsync' cannot be loaded because it has a parameter or type System.ServiceModel.Channels.Message or a type that has the MessageContractAttribute and other parameters of different types of return. When using System.ServiceModel.Channels.Message or types with MessageContractAttribute, the method should not use other types of settings.

    It's an odd error because I do not use the "ContractUnlinkCI" command which tells me that there is a problem with the generation of the class file.

    I ran the following command to generate my config file and the class in the directory "C:\Program Files (x 86) \Microsoft 4.0 Tools":

    Svcutil t:code /MessageContract. [URL ServiceManager.svc] / out: ISMAPI.cs /config:ISMAPI.config

    The class files and generated config ok. Then I copied the game config to the Web site's web.config file:

    < system.serviceModel >

    < links >

    < basicHttpBinding >

    < connection name = "BasicHttpBinding_IServiceManager" / >

    < / basicHttpBinding >

    < / links >

    < customer >

    < endpoint address = "[ServiceManager.svc URL]" binding = "basicHttpBinding" bindingConfiguration = contract "BasicHttpBinding_IServiceManager" = "IServiceManager" name = "BasicHttpBinding_IServiceManager" / >

    < / customer >

    < system.serviceModel >

    I put the ISMAPI.cs file in the App_Code to my site folder:

    DirectoryStructure.JPG

    My code works fine when I run locally and include the correct querystring values, but it returns the error above, when I run the code from the VSM server. The query string I used: default.aspx? ajaxfunction = 2 & tasknumber = 425134 & agent = 2370 & recvofficer = 2370

    using System;
    using System.Collections.Generic;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    using System.Runtime.Serialization;
    using System.ServiceModel;

    partial class _Default: System.Web.UI.Page
    {
    Protected Sub Page_Load (object sender, EventArgs e)
    {
    Response.Expires = - 1;
    Response.ContentType = "text/plain";
    If (Request.QueryString ["ajaxfunction"]! = null)
    {
    Try
    {
    Int16 intFunction = Int16.Parse (Request.QueryString ["ajaxfunction"]. (ToString());
    Switch (intFunction)
    {
    case 1:
    If (Request.QueryString ["tasknumber"]! = null)
    {
    Int64 intTaskNumber = Int64.Parse (Request.QueryString ["tasknumber"]. (ToString());
    Response.Write (getTaskApprovalComments (intTaskNumber.ToString ()));
    }
    break;
    case 2:
    If (Request.QueryString ["tasknumber"]! = null & & Request.QueryString ["officer"]! = null & & Request.QueryString ["recvofficer"]! = null)
    {
    MessageRequest load = new MessageRequest();
    inStruct.sLoginUserID = System.Configuration.ConfigurationManager.AppSettings ["apiLogin"];
    inStruct.sLoginPassword = System.Configuration.ConfigurationManager.AppSettings ["apiPassword"];
    inStruct.sDatabase = System.Configuration.ConfigurationManager.AppSettings ["apiDatabase"];
    inStruct.eEntityType = CRTEntityForEmail.Task;
    inStruct.nEntityRef = Int32.Parse (Request.QueryString ["tasknumber"]);
    inStruct.ePriority = MailPriority.Normal;
    inStruct.eMMAMessageType = MessageMMAType.Approval;
    inStruct.nMessageType = 130;
    inStruct.lRecipientRef = ' ~ ' + Request.QueryString ["recvofficer"];
    inStruct.eRecipientType = MessageRecipientType.Person;
    inStruct.bEmail = true;
    MessageResponse outStruct = new MessageResponse();
    SMC ServiceManagerClient = new ServiceManagerClient();
    outStruct = SCM. MessageSendMessage (inStruct);
    Response.Write (outStruct.sMessage);
    }
    break;
    by default:
    Response.Write ("ERROR: invalid function!");
    break;
    }
    }
    catch (System.Exception Exception)
    {
    Response.Write ("ERROR:" + exception.) (Message);
    }
    }
    Response.End ();
    }

    I hope one of the other directors VSM has met this problem and knows a solution. I tried Googling this issue but with my knowledge of WCF, I don't know what I'm looking at. I also tried commenting on the problem area in the ISMAPI.cs file but it gives me an other errors so I obviously don't know what I'm doing.

    Thank you.

    If locally it works fine I guess you should compare the versions of .net framework assigned to your web applications (application pool), and all the parameters specified in the web.config file.

Maybe you are looking for

  • Updates Windows will not download.

    I'm loading to the top of page update on my Windows 7 Ultimate 64 x system and it shows that I have updated security to install windows. I had about 11, but some of them downloaded and installed correctly as Security Essentials definitions etc, howev

  • G6-1031 and upgrade to windows 8

    Can I upgrade my Pavilion G6-1031tx Windows 8? How on my fixed my aft6er crash graphics update (techj doesn't support any assistance so far) What I uograde my network card to a processor intel with WiDi?

  • Lost access to the primary e-mail address when you set up a second e-mail address

    I am computer illiterate.  Just do basic.  Have had the same e-mail address for years.  Have more than 300 messages on it.  Need to a second email address (for a single transaction) and do it, however, he knocked my main e-mail address.  How can I re

  • How to restore printing on HP 1300 after trying with the printer off?

    A print request is sent directly to a printer HP LaserJet 1300 connected - through the cable to the parallel port, port DOT4_001-to my PC - Windows XP SP3 - when the printer is not powered. The print request fails. The printer power is on then. This

  • Fehlercode 0 x 80070002 bei einer Dateisicherung auf Windows Vista Home Premium

    ICH habe einen Windows Vista Home Premium pc will Dateisicherung machen, er macht alles und eine und am Schluss kommt der Fehlercode keep 0 x 80070002. Jetz konnte ich seit 3 month schon keine mehr machen kann mir bitte helfen someone safety LG Baske