09-06-2012
It is good to know relational databases, generally, and SQL, and simpler C/C++/JAVA APIs, before diving into the combination. The APIs are more orderly in C++/JAVA, while C APIs run on assumptions and man pages. Starting with a simple API to learn C/C++/JAVA is a good start, before going into complex APIs.
Generally, gdbm allows you to create container objects with hash based search. Ther are many different container types. They all act much like a RDBMS table with one index only. You can index data a second way by creating a second, indexing container to search using a different key. Data storage can be by pointer outside the containers, so two containers can point to the same row or tuple of data. However, you need reverse pointers in the data so a delete on one key can delete in the other container, too.
Besides hash, which is great for fast random lookup but requires some configuration for size, there is linear-hash, tree, unsorted, array, linked-list (one way or forward-backward) containers, each with different advantages. Trees are always sorted and tolerate all amounts of data well without configuration. Unsorted linked list is very fast to insert and slow to query, update, delete specific item. Hash has a patterened disorder when examining all items.
This User Gave Thanks to DGPickett For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can Anyone suggest few good books on Unix Shell Programming and C on Unix.
Thanks
Prasad (5 Replies)
Discussion started by: pswar70
5 Replies
2. Shell Programming and Scripting
Anyone know any good website with a step by step instructions on writing Perl GUI scripts with Tk ??? (3 Replies)
Discussion started by: perleo
3 Replies
3. Shell Programming and Scripting
Hello,
I have several handreds of text files. The format of file looks like:
column1 column2 column3 column4 column5
id1 definition1 name1 fieldid comm1
id2 definition2 name2 fieldid ... (4 Replies)
Discussion started by: ssshen
4 Replies
4. IP Networking
I was trying to write proxy code but i here is a problem
typedef struct req_msg
{
char *host;//hostname
char *filename;//filename
char *modified;//date
char *data;
char *request;
}req_msg;
while(take_responce(req,request)!=0)
// take_responce gets responce from http server
//... (0 Replies)
Discussion started by: yogesh_powar
0 Replies
5. Shell Programming and Scripting
Can anybody please suggest me a good book to learn PHP and Apache. I want to use it for general programming and espeacially as front end tool for INFORMIX RDBMS. The book should guide me from the basics, as I am a beginer for PHP & Apache on SUSE Linux 9.0. (1 Reply)
Discussion started by: V.V.KUMAR
1 Replies
6. UNIX for Dummies Questions & Answers
I'm trying to install gdbm on a MacPro running Leopard. But when I do the make install, I get this error:
/usr/bin/install -c -m 644 -o root -g root gdbm.h \
/usr/include/gdbm.h
install: root: Invalid argument
make: *** Error 67
Any ideas?
Thanks (1 Reply)
Discussion started by: Shan Hollen
1 Replies
7. AIX
can someone tell me the name of the books for aix
it is better if some one provide me links to any useful document (2 Replies)
Discussion started by: alokjyotibal
2 Replies
8. Shell Programming and Scripting
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies
9. Web Development
A number of people have asked me how to get started with Vue.js and my reply before today was to Google "Vue.js". That has changed and my recommendation to anyone who wants to learn the fastest growing, easiest to learn and use Vue.js web dev framework is to watch this video tutorial series:
... (0 Replies)
Discussion started by: Neo
0 Replies
prtfru(1M) System Administration Commands prtfru(1M)
NAME
prtfru - print FRUID-specific information about the FRUs on a system or domain
SYNOPSIS
/usr/sbin/prtfru [-d] | [-clx] [container]
DESCRIPTION
The prtfru utility is used to obtain FRUID data from the system or domain. Its output is that of a tree structure echoing the path in the
FRU (Field-Replaceable Unit) tree to each container. When a container is found, the data from that container is printed in a tree-like
structure as well.
prtfru without any arguments will print the FRU hierarchy and all of the FRUID container data. prtfru prints to stdout which may be redi-
rected to a file.
OPTIONS
The following options are supported:
-c Prints only the containers and their data. This option does not print the FRU tree hierarchy.
-d Prints a DTD for the current registry to stdout.
-l Prints only the FRU tree hierarchy. This option does not print the container data.
-x Prints in XML format with a system identifier (SYSTEM) of prtfrureg.dtd.
Options -c and -l can be used together to obtain a list of the containers.
OPERANDS
The folowing operand is supported:
container The name of a particular container in the FRU hierarchy, that is, either the name or path/name of a container as displayed
in the -l option.
EXIT STATUS
The following exit values are returned:
0 All information was found and printed successfully.
>0 An error has occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWfruid |
+-----------------------------+-----------------------------+
SEE ALSO
fruadm(1M), attributes(5)
SunOS 5.10 30 May 2002 prtfru(1M)