Developing database applications in UNIX...

Developing database applications in UNIX...

Post by Mark Johnso » Wed, 08 Aug 2001 13:08:49



I need to learn how to access databases (Oracle, SQL Server, Postgres) from
unix (solaris 2.8).  I have tried to do some research on amazon but can seem
to find any books on the subject.  I want to code to a very generic library
and not be tied to anything (definitely not oracle).

Any suggestions for resources for database programming in unix?

thanks for your time...

 
 
 

Developing database applications in UNIX...

Post by Joerg Brueh » Thu, 09 Aug 2001 01:28:18


Hi!


> I need to learn how to access databases (Oracle, SQL Server, Postgres) from
> unix (solaris 2.8).  I have tried to do some research on amazon but can seem
> to find any books on the subject.  I want to code to a very generic library
> and not be tied to anything (definitely not oracle).

There is no standard way to access the DB server process(es)
from a client process (= application), because the means of
communication (mechanism, protocol, encoding, ...) are specific
to the DBMS.

The closest you can get may be ODBC, but IMHO this is no good
approach because ODBC (like all M$ designs) pretends to _know_
what _you_ want, and hence does not pass your requests unchanged.
You still need to link your routines with the specific ODBC lib.

The standard to access an SQL DBMS is to use "embedded SQL"
(as defined by X/Open, ANSI/ISO, ...) and then to pass this code
through a preprocessor, compile the resulting code (which is
product-specific) and link it with the respective runtime libraries.

Quote:

> Any suggestions for resources for database programming in unix?

"Adabas D" ( http://www.adabas.com/sqlindex.html ) is available
as a "personal edition" (limited for 3 users, 1 CPU, 100 MB data space)
free of charge for Linux (and Win32);
you might ask your local Software AG branch whether they can provide
a "personal edition" for Solaris (or other Unix variant: AIX, HP-UX,
Tru64, ...) as well (or buy a license from them ...)

Regards,
Joerg Bruehe

--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
     (speaking only for himself)


 
 
 

Developing database applications in UNIX...

Post by -Tre » Thu, 09 Aug 2001 07:49:26



> Hi!


> > I need to learn how to access databases (Oracle, SQL Server, Postgres) from
> > unix (solaris 2.8).  I have tried to do some research on amazon but can seem
> > to find any books on the subject.  I want to code to a very generic library
> > and not be tied to anything (definitely not oracle).

> There is no standard way to access the DB server process(es)
> from a client process (= application), because the means of
> communication (mechanism, protocol, encoding, ...) are specific
> to the DBMS.

> The closest you can get may be ODBC, but IMHO this is no good
> approach because ODBC (like all M$ designs) pretends to _know_
> what _you_ want, and hence does not pass your requests unchanged.
> You still need to link your routines with the specific ODBC lib.

> The standard to access an SQL DBMS is to use "embedded SQL"
> (as defined by X/Open, ANSI/ISO, ...) and then to pass this code
> through a preprocessor, compile the resulting code (which is
> product-specific) and link it with the respective runtime libraries.

> > Any suggestions for resources for database programming in unix?

> "Adabas D" ( http://www.adabas.com/sqlindex.html ) is available
> as a "personal edition" (limited for 3 users, 1 CPU, 100 MB data space)
> free of charge for Linux (and Win32);
> you might ask your local Software AG branch whether they can provide
> a "personal edition" for Solaris (or other Unix variant: AIX, HP-UX,
> Tru64, ...) as well (or buy a license from them ...)

> Regards,
> Joerg Bruehe

Learn Perl. goto perl.com and linux.com they both have nice tutorials
on SQL and perl.

-Trent

 
 
 

Developing database applications in UNIX...

Post by William Ahe » Thu, 09 Aug 2001 08:41:47




Quote:

>I need to learn how to access databases (Oracle, SQL Server, Postgres) from
>unix (solaris 2.8).  I have tried to do some research on amazon but can seem
>to find any books on the subject.  I want to code to a very generic library
>and not be tied to anything (definitely not oracle).

>Any suggestions for resources for database programming in unix?

>thanks for your time...

try:
http://libdbi.sourceforge.net/

its just like Perl's DBI. looks promising, though i believe it only
has drivers for mysql and pgsql currently. might want to speak
to the developers about your needs....

 
 
 

Developing database applications in UNIX...

Post by cinoba » Thu, 09 Aug 2001 12:01:23


Hi Mark,

If you want to learn how to connect to those database server, you must learn
it's API.
Try to install PostgreSQL and looks into directory "src/test/examples". This
mechanism is almost equal for Oracle, Microsoft SQL Server and MySQL Server.

Good Luck


>I need to learn how to access databases (Oracle, SQL Server, Postgres) from
>unix (solaris 2.8).  I have tried to do some research on amazon but can
seem
>to find any books on the subject.  I want to code to a very generic library
>and not be tied to anything (definitely not oracle).

>Any suggestions for resources for database programming in unix?

>thanks for your time...

 
 
 

1. Developing pure POSIX applications on Unix boxes

Posted for a friend who does not have net access:

A friend of mine wants to develop pure POSIX applications using a
Unix box and wants to know which systems provide either a compiler
option (eg: cc -systype posix on RISCOS 5.0 on the MIPS) or a library
that can be bound in to get all of the POSIX API.

I know of only the MIPS box & RISCOS 5.0, hence the example.  I've
heard whispers that Solaris 2.x & AIX provide a posix library that can
be bound in to get the POSIX API.  All info on which systems & os versions
provide this support is greatly appreciated.

Thanks a ton in advance
--Raj

--------------------------------------------------------------------------|
Raj Bahadur Das                 | Views reflected in all past, present
Tandem Computers, Inc.          | and future posts reflect the opinions of
10600 N. Tantau Avenue          | the author solely and in no way reflect
Cupertino, CA   95014           | the views of past employers, Tandem, or  
PHONE:  (408) 285-2671          | any future employers. Phew.. that just

2. running prstat in the background from a script

3. how to use c/unix programming in database application?

4. WEB VIDEO: Linux got me kicked out of a Wal*Mart

5. Linux Application database for BSD Unix

6. RedHat-6.1 (basesystem-6.0-4.noarch.rpm file)

7. Web+ application development & database tool for Linux, Unix, NT available for free evaluation!

8. Beta-testers for a new FidoNet mailer wanted

9. Web+ : Web to Database Middleware, Web Application Development Tool for Unix

10. Ins key in ncurses applications?

11. Help needed to develop an INTRANET based Database Sytem using Linux

12. What do I need to develop my webpage to connect to a database?

13. Help needed to develop an INTRANET based Database Sytem using Linux