Simulating merge of binary files

Hello,
I have someone who is trying to merge binary files. This is not their fundamental problem, but it may be a means of correcting the underlying problem (which is that the file system shows the wrong date and size for some files, while the Designer interface shows them correctly).
To the binary file issue, the functionality was not introduced to Designer. However, the error message hints at a way of simulating it. But the description of the solution is sparse and I am not certain how to implement it.
Error Suggestion:
Binary files cannot be compared. But to simulate a merge
you may copy one version on top of another version by
downloading and uploading the data in the appropriate workareas.
A merge line can be set manually by using the version service
(jr_version ) function merge.
Is anyone aware of any documentation that explains the "trick" more clearly, or has anyone had success in implementing it?
Much thanks,
Chris

How do you unzipping the archives?
Because when you use unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zipit will unpack contents of those archives to database directory (which is created during unpacking), so it is merged automatically.
Here is output from my test case, archives were freshly downloaded from oracle.com site. Note "-q" switch is quiet mode:
$ ls
linux.x64_11gR2_database_1of2.zip  linux.x64_11gR2_database_2of2.zip
$ unzip -q linux.x64_11gR2_database_1of2.zip && unzip linux.x64_11gR2_database_2of2.zip
$ ls
database  linux.x64_11gR2_database_1of2.zip  linux.x64_11gR2_database_2of2.zip

Similar Messages

  • Is there a better way to do this? Binary File + MERGE

    Version
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Requirement
    I need to take binary files on a file system and a perform a MERGE in a destination table that has a blob column. This is a periodic task.
    My Version
    The following is a proof of concept that I've put together. I was wondering if anyone would be willing to critique this implementation or provide a better implementation to accomplish the same task.
    In reality the SOURCE table would be an external table that parses a control file that has a list of IDs and file names.
    DROP VIEW source_vw;
    DROP TABLE destination;
    DROP TABLE source;
    DROP FUNCTION get_blob;
    DROP PROCEDURE update_blobs;
    CREATE TABLE source
    ( id    NUMBER
    , fname VARCHAR2(255)
    INSERT INTO source
    ( id
    , fname
    SELECT rownum
         , 'Untitled.png'
    FROM   dual
    CONNECT BY level <= 5;
    CREATE TABLE destination
    ( id        NUMBER
    , file_data BLOB
    INSERT INTO destination(id, file_data) VALUES (1, EMPTY_BLOB());
    INSERT INTO destination(id, file_data) VALUES (3, EMPTY_BLOB());
    INSERT INTO destination(id, file_data) VALUES (5, EMPTY_BLOB());
    CREATE OR REPLACE FUNCTION get_blob
    ( p_dirname IN VARCHAR2
    , p_fname IN VARCHAR2
    RETURN BLOB
    AS
         b            BLOB;
         bf           BFILE;
         bfile_offset NUMBER :=1;
         blob_offset  NUMBER :=1;
    BEGIN
         DBMS_LOB.CREATETEMPORARY
         ( lob_loc => b
         , cache   => FALSE
         bf := BFILENAME(p_dirname,p_fname);
         DBMS_LOB.FILEOPEN(bf,DBMS_LOB.FILE_READONLY);
         DBMS_LOB.LOADBLOBFROMFILE(b,bf,DBMS_LOB.LOBMAXSIZE,bfile_offset,blob_offset);
         DBMS_LOB.FILECLOSE(bf);
         RETURN b;
    END get_blob;
    CREATE OR REPLACE VIEW source_vw
    AS
    SELECT id
         , GET_BLOB('SOME_DIR',fname) AS file_data
    FROM   source
    CREATE OR REPLACE PROCEDURE update_blobs
    AS
    BEGIN
         MERGE INTO destination
         USING source_vw
         ON    ( destination.id = source_vw.id )
         WHEN MATCHED THEN
             UPDATE SET destination.file_data = source_vw.file_data
         WHEN NOT MATCHED THEN
             INSERT
             ( id
             , file_data
             VALUES
             ( source_vw.id
             , source_vw.file_data
    END;
    /

    Because you are on 11.2, I would suggest switching to securefiles.
    CREATE TABLE destination
    ( id        NUMBER
    , file_data BLOB
    LOB(file_data) STORE AS SECUREFILE;

  • Binary file data plugin : append block values to channel

    I need to create a data plugin for a unique binary file structure, which you can see in the attached graphic.
    With these objects
    Dim sBlock : Set sBlock = sFile.GetBinaryBlock()
    sBlock.Position = ? 'value in bytes
    sBlock.BlockWidth = ? 'value in bytes
    sBlock.BlockLength = ? 'value in bits
    I have the possiblity to read chunks from my binary file. At the end, I want to have each signal in a respective channel. I could manage to extract signals 1 and 2, as they only have one value in each block with a known byte-distance in between. How can I extract the other channels, that have 480 successive values in each block? I could probably write a loop and read the specific signal part in each block, but how can I append these parts to the relevant channels? I tried by creating a new channel and then merging them, but unfortunately functions like ChnConcat are not working in a data plugin. Any ideas?
    /Phex
    PS. Of course I could create a hideous plugin with running GetNextBinaryValue() throught the whole file, but that doesn't seem to be a smart idea for a 2 GB file size.
    Attachments:
    KRE_DataPlugin_schematic.JPG ‏84 KB

    Phex wrote:
    @usac:
    Your workaround seems to work at least for part of the file. If I loop it through the whole 1.5 GB file I am getting the DLL error "The application is out of memory". There is enough dedicated RAM available, but I guess this is x86 related.
    Hello Phex,
    Have you tried running this Script in the DIAdem 64-bit preview version (which gets you access to more than 2 GB or RAM for your application) that can be found at http://www.ni.com/beta and can be installed in parallel to the 32-bit version.
    It might get you around the "out of memory" issue ...
          Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Writing a binary file

    Hi,
    I have trouble when writing a binary file. Here is what I do:
    I have some VI's collecting various data for a fixed period of time. I put all the data into 1D arrays at a fixed frequency (they all have the same size). Once it is done I merge all the arrays into one 2D array and I write that to a binary file. If I wait about 10 seconds after writing the file and I repeat the whole thing, everything is fine and the timing is correct. If I wait for a shorter period of time (say a sec, and this is the maximum I can wait to have a usable application) then the timing is wrong in the first part of the loop (the time-critical data-acquisition one). Of course, if I don't write the file, everything is fine (I have to wait about 250 msec between two runs, but that's ok). Any advice ?
    I also tried several things like streaming the data to disk during the time-critical period and this works fine only if the file allready exists. If not I experience jitters again. I don't really want to stream the data in real time, but it could work if I can get rid of the jitters. Again, any advice ?
    I'm using LV7.1 and the real time module running on a PC (ETS).
    Another, sort of related, topic: I noticed that when using 2D arrays within time critical loops all the process are slowdown whereas if I use several 1D arrays everything is fine... Any idea why ?
    Thanks,
    Laurent

    Hello,
    File I/O transfer rates during streaming to disk depends on several factors: CPU speed and load, hard drive technology (IDA / Serial ATA / SCSI ...), quality of programming. High jitter is always due to bad programming. File I/O operations are not deterministic. So, file I/O VI's must not be called in the critical task. Data must be saved in the normal priority VI's in order to keep jitter as low as possible. This is the reason why an application in RT is based on RT FIFO to transfer data from the critical loop and the normal priority VI.
    You will find a lot of tutorials detailing the key concepts for RT programming at the link below:
    * Real-Time Module
    http://zone.ni.com/devzone/devzone.nsf/webcategories/C25F8C664230613A862567DF006ABB06
    Moreover, memory allocation in LabVIEW is implicit. You must use large set of data carefully because some function reallocate new buffers for their outputs instead of reusing the input buffers (like the function "build an array"). You will find an example of how we can decrease the memory use with array in LabVIEW in the tutorials linked above.
    If you need more specific advices, you can post a sample code that reproduce the behavior that you does not understand. I will try to look at this and give you my feedback.
    Sincerely.
    Matthieu Gourssies, NIF.

  • Append Text Header for Binary file

    Hello Experts
    I am using LabView 7.0 with PCI 6040 DAQ. I have created two separate files, one file is Binary that collects binary raw data from 16 channels of the DAQ. The second file contains variable length Header, i.e the information about all 16 channels and physical conditions of the recording. I am trying to merge these two files to form a single file that contains a text header at the top and followed by the binary data. I am unable to figure out that how can I append binary data to a text file.
    I need help from users please.  
    Ciao!!!!
    Nabeel

    Hi Chris, Dev
    I am working on Implementation of EDF file format (European data Format) in Lab View.  This file format is widely becoming a standard to acquire and store the physical data of patients. In short, the specification of the file can b read at  ( http://www.hsr.nl/edf/specs/edf.html ). Most of the companies that develop equipments for EEG (electroencephalogram) are implementing this format to read and write data. In my experiments I am also using the same file format but just to acquire and store. For reading and analysing the data Matlab is widely used instead of Labview. Dev, I have just start introducing myself to the idea of Data loggers.  
    Dear Chris I have labview 7.0, is it possible to reload the file for 7.0? If not can you load it as a picture format?
    Regards
    Nabeel    

  • Gitdiffbinstat -- git diff --shortstat for binary files

    You may know  git diff --shortstat  which summarizes the line-changes between branches/commits/tags etc.
    When I had a branch were I ran optipng on many images I was annoyed by the fact that  git diff --shortstat  would only summarize changes of text files, but not changes of binary files.
    That's why I made gitdiffbinstat.
    The script gets diffs between the current  HEAD  and some other branch/commit/tag  and summarizes the file changes (but also line changes) so you can easily see how many additional bytes certain branch would add to HEAD if it was merged, or how much bigger a release got from version "foo.2" to current HEAD etc
    The latest version 2.5-1 can also tell you about files which were moved (and not changed), unfortunately this increased the output-clutter. (Ideas how to make the output more structured are appreciated! )
    You can install the script via aur https://aur.archlinux.org/packages.php?ID=55519
    Feedback is welcome
    Regards,
    Matthias

    Hi john,
    You may try the 'cmp' command.
    The following tells whether the two files are idential or not:
    cmp file1 file2
    or
    cmp -b file1 file2
    The latter will show the first differing byte.
    If you want to see all the differing bytes, then (caution: the output can be very long):
    cmp -lb file1 file2
    see 'man cmp' or 'info diff' for more detail.
    PowerMac G4   Mac OS X (10.4.8)  

  • Read Binary File - variable binary format

    Hi Everyone,
    I'm using the "read from binary file" subvi to interpret some data from a file. I have the code running fine if the the temp file is always the same format, however I want the "read from binary file" to adapt to different file structures based on a user input. Here's a snapshot of my current VI:
    The structure of the file I'm reading can change, so I tried to make it so that user input would change the way labview interprets the binary structure. I did this using case structures. The issue I ran into is that the ouput of the different case structures merges into 1 line, and since each case structure's binary format is a different array size I get an error:
    ======>
    Does anyone know of a way to remedy this issue?
    If you take a look at my file, I was thinking about putting all of my commands that interpret the binary file and parse the data into a case structure similiar to the one above. I was trying to avoid this as I would end up with a set of the entire code in 12 different cases, and if I wanted to make a small change to the the code I would have to change all 12 cases.
    Thanks for any suggestions!
    Attachments:
    Read Copy of Binary File - Static.vi ‏105 KB
    Read Copy of Binary File - Variable.vi ‏105 KB

    One solution is to include the File Read into the case structure. But you need to find a way to return the different types of data records as you obviously can't connect them to the same indicator.
    All in all I find your design rather crude anyhow. Reading a file and letting the user decide what data type to expect is going to give lots of errors. Instead the file should contain information of what is in there and the reading routine should decide based on that how to interpret the next bunch of data.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Siebel 8.0.0.12 Fix Pack; Unable to get the seed from binary file.

    Hello Folks,
    Can anyone throw some light into what action is required on my scenario.
    I have applied Fix Pack Siebel 8.0.0.12 on top of 8.0.0.11 SBA. After it is appled, I am facing a documented issue within the Release Notes for the 8.0.0.12 Fix Pack
    The issue is "UNABLE TO LAUNCH URL AFTER APPLYING SIEBEL 8.0.0.12". I tried the steps given with the MR document, however, I am still having this issue.
    I am also not sure what is expected at the step of; Run the following command: seedgeneratorutil myseed.dat abcdef .
    It's asking me for a value to enter for seed at command prompt. "Enter the seed":
    what I should give here. As an assumption values,I gave SADMIN and tried to launch but still shows up the same error
    Please Assit
    Steps Details from Release Notes:
    UNABLE TO LAUNCH URL AFTER APPLYING SIEBEL 8.0.0.12
    Component: Server Infrastructure
    Subcomponent: SWSE
    Product Version: Siebel 8.0.0.12
    Base Bug ID: 11938270
    **Users are unable to launch the URL after applying the Siebel 8.0.0.12 Fix Pack.
    **Use the following workaround to address this issue:
    Navigate to the eappweb/bin directory from the command line on the SWSE installation.
    Run the following command:
    seedgeneratorutil myseed.dat abcdef
    NOTE: In the example, myseed.dat is a filename. You can give any file name you wish.
    The myseed.dat file is generated in the eappweb/bin directory.
    Edit eapps.cfg to include the following parameters under the SWE section:
    seedfile = < complete path for myseed.dat >
    Bounce the web server.
    (For Linux only) Copy libmod_swe.so from the eappweb/bin folder to the web/ohs/modules folder
    Thanks
    Kumar

    Wilson,
    Thanks for your reply.I have repeated the steps and regenerated the error messages.
    Browser
    Message:
    An error occurred while trying to process your request. This error indicates a problem with the configuration of this server and should be reported to the webmaster (along with any errors listed below). We apologize for the inconvenience
    Initialization error:
    Unable to get the seed from binary file.
    Log
    2021 2011-09-20 23:23:01 0000-00-00 00:00:00 +0530 00000000 001 003f 0001 09 ss110920_7068 7068 7852 E:\sba80\SWEApp\log\ss110920_7068.log 8.0.0.12 [20444] ENU
    ProcessPluginState     ProcessPluginStateError     1     000000024e781b9c:0     2011-09-20 23:23:01     7852: [SWSE] Unable to get the seed from binary file.
    Eapps.cfg
    [swe]
    Language = enu
    Log = errors
    LogDirectory = $(SWSERoot)\log
    ClientRootDir = $(SWSERoot)
    SessionMonitor = False
    AllowStats = true
    LogSegmentSize = 0
    LogMaxSegments = 0
    DisableNagle = False
    seedfile = E:\sba80\SWEApp\BIN\80012seed.dat
    Thanks
    Kumar

  • Report using Binary file

    Hi All , can anyone help me here ...
    I used “Write to Binary” to  write my report , at first stage this file is writing headers , including column  headings . at 2nd writing stage it is writing  data in columns.  This file can be viewed in .doc or .xls format. I have three issues
    1.         If I want to print this file from Front Panel  , what I should do?
    2.         other thing is if I stop logging and then start for another span , it starts writing from the first line instead of from last line  , because of this problem it is causing over-writing .
    3          another thing  , lets say if for 2nd or 3rd logging , I want to display sub-headings (test-1 , test-2) , how to insert , for example :
    MAIN HEADING (COMPANY NAME , REPORT TITLE )
    DATE , PRODUCT INFO , OPERATOR NAME
    COL1              COL2              COL3              COL4
    Subheading (test-1)
    Value1             Value2             Value3             Valye4
    Value1             Value2             Value3             Valye4
    Value1             Value2             Value3             Valye4
    Subheading (Test-2)
    Value1             Value2             Value3             Valye4
    Value1             Value2             Value3             Valye4
    Value1             Value2             Value3             Valye4
    Any help in this regard will be highly appreciated.
    Regards
    Faiyaz
    Attachments:
    report-writing-binaryfile.vi ‏68 KB
    02-display-subVI.vi ‏12 KB

    Hi Faiyaz,
    1. How Do I Print a File Programmatically From LabVIEW?
    2. Please the Programming >> File I/O >> Advanced File Functions >> Set File Position function on the block diagram after the Open/Create/Replace File function and set the from input to "end." This will append new data to the end of the file.
    3. You can simply add that information to the Format into String you are writing to the second Write to Binary file.
    Michael K.
    | Michael K | Project Manager | LabVIEW R&D | National Instruments |

  • How to open and read binary files?

    How do I open and read Binary files?

    Did you  look on The Unarchiver's web site where it has a link to older versions? http://theunarchiver.googlecode.com/files/TheUnarchiver3.2_legacy.zip
    The best thing to do is ask your friends what programs they used to produce these files, or at least what format files they are producing.  Otherwise it's like being shown a car and given a bundle of 200 keys with no idea to which one to use, or even if any of them work with that car.
    Using The Unarchiver will likely not do anything because it too will not know what format files are involved, and they may not even been in an archived format.  If they sent you a Word file without telling you (a favorite of Windows users to do  -- it drives me crazy when they could have just sent them in plain text), The Unarchiver won't open them.  If it's a picture file then using Hexedit will just show you a bunch of unintelligible stuff as shown in an earlier post, though you may see a line of text providing a hint.
    As I said earlier, often .bin may be an executable program which needs another program to actually interpret it.  That's what Java is trying to do.  Still, it may think it can execute the file, but it is highly unlikely somebody would send you an executable program (and if they did I would not trust it).  For all you know it may be a Windows virus.

  • How do i disable to pop up asking me if i want to save or cancel the binary file i am trying to download?

    everytime i download a show or movie from the internet a pop up asks me:
    "you have chosen to open xxxxxx which is a: Binary File from: httpxxxxx would you like to save this file - SAVE or CANCEL"
    this never used to happen on the older versions of firefox. it is so annoying - is there any way to turn it off?
    i am running mac os 10.5.8 and no, there is no option to click a 'don't ask me again' feature in the pop-up dialog.

    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/quicktime/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • Reading an object from a binary file

    i am writing objects into my binary file using printwriter class. i am able to write objects into the file but i am having problems reading the object from the file. is there any other way of going about it. i tried using the objectoutputstream and object input stream class. but i am getting run time errors coz of something to do with serialization
    i am storing records as a object into a binary file so that it is easy to seek my records

    Of course you have trouble reading objects after you wrote them with a PrintWriter.
    You should rather have fixed the Serialization errors: only objkects that implement Serializable correctly can be serialized.

  • DE PDP-1 binary file from Java

    Can someone here help me, please!?
    Anyone know how to convert a Java class file into a binary file that will run natively on my Digital PDP-1 computer? I just spent over $120,000 for it! Thanks.
    This resurrected thread was first posted November 25, 1960 at 8:25AM
    -------------------------------------------------------------------------

    This resurrected thread was first posted November 25,
    1960 at 8:25AMIn what time zone?

  • How can I open different binary files from BLOB column ?

    If we store some type of binary file (XLS, DOC, PDF, EML and so on, not only pictures) in BLOB column how can I show the different contents? We use designer and forms 9i with PL/SQL.
    How can I copy the files from BLOB to file in a directory or how can I pass BLOB's content to the proper application directly to open it?

    The mime type is just a string as explained above (e.g. application/pdf...). There are lot of samples here and on metalink.
    E.g. add a column mime_type varchar(30) to your blob table. Create a procedure similar to the following:
    PROCEDURE getblob
    (P_FILE IN VARCHAR2
    IS
    vblob blob;
    vmime_type myblobs.mime_type%type;
    length number;
    begin
         select document, mime_type into vblob,vmime_type from myblobs where docname = p_file;
         length := dbms_lob.getlength(vblob);
         if length = 0 or vblob is null then
         htp.p('Document not available yet.');
         else
         owa_util.mime_header(vmime_type);
         htp.p('Content-Length: ' || dbms_lob.getlength(vblob));
         owa_util.http_header_close;
         wpg_docload.download_file(vblob);                
         end if;
    exception
         when others then
         htp.p(sqlerrm);
    END;
    Create a DAD on your application server (refer to documentation on how to create a DAD).
    Display the blob from forms (e.g. on a when-button-pressed trigger):
    web.show_document('http://myserver:port/DAD/getblob?p_file=myfilename','_blank');
    For storing blobs in a directory on your db server take a look at the dbms_lob package.
    For storing blobs in a directory on your app server take a look at WebUtil available on OTN.
    HTH
    Gerald Krieger

  • How do i merge two pdf files into one

    How do i merge 2 pdf files into one.

    Open up the first pdf in Preview
    Then from Menu
    select from Edit Menu
    Select Insert (your choice of)
              Page from Scanner
              Page from File (select your PDF file)
              Blank Page
    You can then save as your first file or rename it

Maybe you are looking for

  • My iPhone 4S will no longer connect to wifi. It is on os6. I've had it for 18 months

    My iPhone 4S will no longer connect to wifi.  The wifi button is greyed out. It is using io6. Like this for a week . Is 18 months old. what is warranty time in Australia?

  • Do I need an External Hard drive to Back up with Time machine?

         I probably have all kinds of misconceptions about Resetting to an earlier time for the computer I have. It's a 2009 macbook, running OS 10.8.5. I got it last week, previous to this machine I have been running a powerbook G4. It does not have a b

  • Why is the installation process so difficult?

    Hi,    I've been trying to get LC installed for the past week or so with no luck? I don't usually have problems installing things but this is pissing me off. Why can't Adobe make is easier to install LiveCycle. I can't find anywhere on Adobe's websit

  • How to see SPACES/network of two macs

    I read that we can activate (see?) spaces with F8. I have a MAC BOOK so I think FN and F8. But when i press nothing happens. i am not sure I understand this. I never used shortcuts before so maybe I am missing something. Another thing. I have two Mac

  • Photo library to iPhoto

    When i plug in my ipod to mac book air and touch the camera icon I have saved photos and photo library. I opne iphot and ony saved photos automatically load into iphoto. How do i get photo library to load to iphoto? thanks