How to compare 2 files using Oracle,
Hi,
I've a task to compare 2 files of 2 different sets.
in Set 1 I've approx 50,000-70,000 files
similarly in set 2 also contains same 50,000-70,000 files
so I've compare file 1 of set 1 with all files of Set 2 and store the log of mismatch.
And repeat the same for remaining files of set 1.
So in such a scenario I've to accomplish a search of 50,000x50,000 times. It is very huse if I do a line wise matching after storing the file in the database table.
Can I use Clob for comparing the files, or there is any other mechanism pls let me know.
Thanks & regards/
Goutam
Difference bteween XML
Probably other examples exist in this forum or that forum too but I didn't search.
Similar Messages
-
How to compare two files using MD5?
Hi,all:
How to compare two files to know if they're the same without any difference?I want to use MD5, but I just konw how get a message digest of a string. How to get a message digest of a file? Or there is other method to compare two files?
Thanks advance!This is starting to sound rather a lot like a homework problem.
An MD5 message digest is simply a 16 byte array. To compare two message digests...
byte[] md5incoming = ...
byte[] md5comparison = ...
if( md5incoming.equals(md5comparison) ) {
System.out.println("MD5 Checksums match");
}To find out how to generate an MD5 checksum, please look up MessageDigest in the API documentation, and do a google search for "MD5 java"
In a networked scenario, there are two issues - firstly the performance in sending copies of files all over the place (imagine if it's a 10Gb file to be compared over a 14.4K modem link, this would take a while). Secondly, the network link itself might insert an error in the file and you'd get a false miss.
By only sending MD5 digests over the link, you simultaneously reduce the error (shorter files are less likely to be corrupted) and reduce the transmission time (16 bytes takes practically no time to transmit over damp string, let alone any sort of sensible device).
D. -
How to run exe file using oracles procedure (ASAP) ?
i am finding difficulties in running an exe file using an oracle procedure.I need this for a pure .NET application
I want the solution for both,An Oracle stored procedure cannot generally run an executable on the client machine. Stored procedures run on the server and have no access to your client machine. You could potentially do something convoluted like run a web server on the client with an ASP page that called the executable and have the stored procedure make a UTL_HTTP call to the ASP page, but that's generally not an option.
If the executable is on the server and it's only available as an executable, you could write a Java stored procedure that called out to the command line and invoked the executable (assuming the operating system user running the Oracle database has permission to do so). If the Oracle database is on Windows and you've got 10.2, you may also be able to write a .Net stored procedure that would do the same sort of thing.
If you can expose the functionality as a DLL, a more elegant solution would be to use an external procedure.
Justin -
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 -
How to read HTML files using UTL_FILE
Hello Friends,
How to read HTML files using UTL_FILE package ? According
to Oracle documentation UTL_FILE can read or write OS Text Files.
Thanx in advance..
AdiHI Hareesh,
i have gone through that blog.
i tried it...but i am getting mapping error no receiver determination fond because there are so many excel files.
my data is available on sharedString.xml but also it is in not same order.
i have no clue how to handle this part form the blog.
"This way our mapping will receive all data from the sheet in an XML format. The only thing that's left is to create an XSD file from the XML file we received in order to be able to use it in the mapping and as our Service Interface and we can proceed with mapping. As you can see from the sheet.xml files all the data is placed with column name and row number so it's not that difficult to map it to an table type format using the Message Mapping only (no java, abap mapping required)." -
How can i attach files in oracle applications
Hi,
How can i attach files in oracle applications ? Is there any thing like open dialogue box?
krishnaHi Naveen,
While I am searching for attaching files to oracle forms in forum, I found you. I have a question; probably you could help me out. I have a custom form which needs to have the facility to open the text files from C drive and load the data into Oracle tables.
The custom form will be attached to Oracle apps responsibility... We are currently using forms6i.
Could you help me out to open a dialog box which provides the users to open the text files from C drive when user clicks on a button
I have attached d2kcomm and d2kwutil to the form. It complies at the form level
but still it is not showing the dialog box.
I would appreciate if you can help me in this regard.
Thanks in Advance
Ravi.
Message was edited by:
ravipampana -
How to disable trace files in oracle version 11g
Senario : trace file are growing
How to disable trace files in oracle version 11g
pls guide with best practiceSHANOJ wrote:
Senario : trace file are growing
How to disable trace files in oracle version 11g
pls guide with best practiceIn 11g, there is an extensive tracing that happens for the reasons best known to Oracle only. But if you want to disable it, Coskan had published a small post mentioning an undocumented parameter(which means you must think twice before using it) to disable it- disablehealth_check* . You may want to read the complete post here,
http://coskan.wordpress.com/2009/06/03/too-many-trace_file-on-11g/
Aman.... -
hi
how to import *.dmp file Through Oracle SQL Developer (3.2.20.09) ?
how to do it ?
thanksYou do not.
.dmp files are created from our Export and Data Pump database utilities and are proprietary files. You use the corresponding Import (or Data Pump) utility to import the data. -
How to Import .txt files in ORACLE having 300 thousand records
How to Import .txt files in ORACLE having 300 thousand records. Kindly help me in that context
You can make use of Sql*Loader utility and You can also use External table technique for this puspose.
For external table go through this link.
http://www.oracle-base.com/articles/9i/ExternalTables9i.php
Regards -
How to run batch file from oracle forms 9i
Hi everyone.
i have a data in csv file. i want to upload it to my database. i am using sql loader for it.
i have made a batch file which run the sql loader and transfer my data to database.
How to run batch file from oracle forms 9i.
when i press the button, nothing uploads in my database. (when i simply run the batch file it works).
here is my code
Begin
HOST('C:\temp\batchfile.bat');
message('done');
end;
Thanks in advance
regards
sajidthis is my log file, when i run manually.
SQL*Loader: Release 10.2.0.1.0 - Production on Thu Jul 1 23:27:53 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: file_to_upload.ctl
There are 2 data files:
Data File: sk.csv
Bad File: sk.bad
Discard File: none specified
(Allow all discards)
Data File: sk1.csv
Bad File: sk1.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table KHAN, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
SR FIRST * , O(") CHARACTER
DATES NEXT * , O(") CHARACTER
AGENT NEXT * , O(") CHARACTER
COUNTRY NEXT * , O(") CHARACTER
TRANSACTIONS NEXT * , O(") CHARACTER
PKR NEXT * , O(") CHARACTER
USD NEXT * , O(") CHARACTER
BANK NEXT * , O(") CHARACTER
Table KHAN:
11088 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 132096 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 11088
Total logical records rejected: 0
Total logical records discarded: 0
Run began on Thu Jul 01 23:27:53 2010
Run ended on Thu Jul 01 23:27:54 2010
Elapsed time was: 00:00:00.63
CPU time was: 00:00:00.17 -
How to create xml file from Oracle and sending the same xml file to an url
How to create xml file from Oracle and sending the same xml file to an url
SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way. -
How to write a file using mod pl/sql
hi,
i am having a submit button in my procedure. which should inturn create .sql file in a file path.
is there any way to create a fileusing htp and htf methods.
Thanks in advance
Hari>
i am having a submit button in my procedure. which should in turn create .sql file in a file path.
is there any way to create a file using htp and htf methods.
>
Why are you wasting your time coding from scratch using the PL/SQL Web Toolkit instead of the APEX framework?
From Re: how to write a file using mod pl/sql it appears that you are not using APEX, so a number of the approaches APEX offers are not relevant. You appear to be looking for a file download solution using the <tt>wpg_docload.download_file</tt> method, such as:
create or replace procedure download_file (
p_filename in varchar2
, p_mimetype in varchar2
, p_content in out nocopy blob)
is
begin
-- Set up HTTP header.
-- Use "application/octet" as default MIME type.
owa_util.mime_header(nvl(p_mimetype, 'application/octet'), false);
-- Set the size so the browser knows how much to download.
htp.p('Content-length: ' || dbms_lob.getlength(p_content));
-- Filename will be used as default by the browser in "Save as..."
htp.p('Content-Disposition: attachment; filename="' || p_filename || '"');
-- Close header.
owa_util.http_header_close();
-- Stream the file content to the browser.
wpg_docload.download_file(p_content);
end download_file; -
How to read pdf file using file adapter
Hi..
How to read pdf file using file adapter?
regards
ArunHi
This may help you
/people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter
/people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover
---Ram -
How to upload multiple files using wicket
Hai,
how to upload multiple files using wicket at a single browse.
any suggestion?
Thanks in advanceYou have to do this your self by either (as vinod said) using a different component (not present in adf) or implementing this:
1) allow the user to select multiple filenames (somehow)
2) zip them together
3) upload the zip
4) unpack the zip on the server
5) work with the files
Timo -
How to Upload a File using FileReference + PHP??
How to Upload a File using FileReference + PHP??
If you could help me with a two code examples the AS code and
the PHP code of a working example.
Thanks
Jorgehttp://www.flash-db.com/Tutorials/upload/upFiles.php?page=1
Maybe you are looking for
-
Hellow experts, Here i have one Function Module like ZSAMPLE1. I want to display it output in SmartForm. What should I do for this. Pls help me. with regards babu
-
I was wondering how and what others are doing. My preference was always on single package with multiple Deployment Groups or ADR, since this way I never got duplicate updates reusing the same package and starting fresh every year. What are others do
-
Metadata Fields Gone from Import Pane
When importing there is a place to "Add Metadata From" and many options exist to customize it. I did customize the view, but now it offers no fields no matter what option I choose and I've tried about all of 'em. Where did those scrolling fields go a
-
Modify Financial Report (Profit & Loss) through Print Layout Designer
Hi all, We try to modify the P&L Financial Report in SAP BO 2005B through the Print Layout Designer tool. We saved a new P&L Report with font size and font type modified and set this new report as default, but we noted that our modifications are only
-
Any new Beta BIOS ???
Sory I have to ask the threads have been moved around so much I can find the old thread that had the BIOS's Anyone seen any BIOS newer than 1.3b2 ??