The OS is linux, it's a one time job(occasionally). these are offline files and not being updated. Need to make a process for future requirements.
Its not in DB.. actually these are application log files.
The size of files are 1.5G approx. Right now only thinking of the best way/approach to complete the task...
Had tried using perl hashes(didn't work), i guess keeping that much data in memory is not possible... hence algorithm has to be really efficient here.
Sample files:
Input.txt
Status.txt
need to update the status field in input.txt with the status(success/failure) in status.txt
Last edited by Franklin52; 06-13-2012 at 08:47 AM..
Reason: Please use code tags for data and code samples
Hello,
I have got one file with more than 120+ million records(35 GB in size). I have to extract some relevant data from file based on some parameter and generate other output file.
What will be the besat and fastest way to extract the ne file.
sample file format :--... (2 Replies)
hi,
I'm trying to sort a file which has 3.7 million records an gettign the following error...any help is appreciated...
sort: Write error while merging.
Thanks (6 Replies)
Here is an easy game!
I wrote a number between 0 and 20 (that can include 0 and 20) on a piece of paper. I am staring at it now, imagining the number so you can read my mind ;)
Reply once, and only once, with a number from 0 to 20 and the first person to guess it wins 1,000,000 Bits.
... (24 Replies)
I have a log file that is about 1.2 million lines long and about 300MB.
we need a way to clean up this file and only keep the last few thousand lines.
if i use tail command we run our of memory as the file is too big.
I do have a key word to match on.
example, we want to keep every line... (8 Replies)
Hi,
one of the server, log directory was never cleaned up. We have so many files. I want to remove all the files that starts with dfr* but I get error message when I use the *.
rm qfr*
bash: /usr/bin/rm: Arg list too long
I am trying to write this script but not working.
... (4 Replies)
Hi,
here is my problem:
I've got a file with 6 columns (file1):
a b c d e f
a b c d e f
a b c d e f
a b c d e f
I need to add 1 million columns to this file, each column needs to be a zero.
Here is how the result file (file2) should look like (for the sake of the example, I've only... (7 Replies)
Discussion started by: zajtat
7 Replies
LEARN ABOUT ULTRIX
lb_register
lb_register(3ncs)lb_register(3ncs)Name
lb_register - register an object and an interface with the Location Broker
Syntax
#include <idl/c/lb.h>
void lb_$register(object, obj_type, obj_interface, flags, annotation, location, location_length, entry, status)
uuid_$t *object;
uuid_$t *obj_type;
uuid_$t *obj_interface;
lb_$server_flag_t flags;
unsigned char annotation[64];
socket_$addr_t *location;
unsigned long location_length;
lb_$entry_t *entry;
status_$t *status;
Arguments
object The UUID of the object being registered.
obj_type The UUID of the type of the object being registered.
obj_interface The UUID of the interface being registered.
flags Must be either lb_$server_flag_local (specifying registration with only the LLB at the local host) or 0 (specifying
registration with both the LLB and the GLB).
annotation A character array used only for informational purposes. This field can contain a textual description of the object and
the interface. For proper display by the tool, the annotation should be terminated by a null character.
location The socket address of the server that exports the interface to the object.
location_length The length, in bytes, of the socket address specified by the location field.
entry A copy of the entry that was entered in the Location Broker database.
status The completion status. If the completion status returned in is equal to status_$ok , then the routine that supplied it
was successful.
Description
The routine registers with the Location Broker an interface to an object and the location of a server that exports that interface. This
routine replaces any existing entry in the Location Broker database that matches object, obj_type, obj_interface, and both the address fam-
ily and host in location; if no such entry exists, the routine adds a new entry to the database.
If the flags parameter is the entry is registered only in the LLB database at the host where the call is issued. Otherwise, the flag
should be 0 to register with both the LLB and the GLB databases.
Examples
The following statement registers the interface to the object identified by :
lb_$register (&bank_id, &bank_$uuid, &bank_$if_spec.id, 0,
BankName, &saddr, slen, &entry, &status);
Diagnostics
This section lists status codes for errors returned by this routine in
lb_$database_invalid
The format of the Location Broker database is out of date. The database may have been created by an old version of the
Location Broker; in this case, delete the out-of-date database and reregister any entries that it contained. The LLB
or GLB that was accessed may be running out-of-date software; in this case, update all Location Brokers to the current
software version.
lb_$database_busy The Location Broker database is currently in use in an incompatible manner.
lb_$update_failed The Location Broker was unable to register the entry.
lb_$cant_access The Location Broker cannot access the database. Among the possible reasons:
1. The database does not exist, and the Location Broker cannot create it.
2. The database exists, but the Location Broker cannot access it.
3. The GLB entry table is full.
lb_$server_unavailable
The Location Broker Client Agent cannot reach the requested GLB or LLB. A communications failure occurred or the bro-
ker was not running.
FilesSee Alsointro(3ncs), lb_unregister(3ncs)lb_register(3ncs)