⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 996-998.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Unleashed, Third Edition:Adabas-D and other Databases</TITLE>

<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0672313723//-->

<!--TITLE=Linux Unleashed, Third Edition//-->

<!--AUTHOR=Tim Parker//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Sams//-->

<!--CHAPTER=62//-->

<!--PAGES=996-998//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="993-996.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="../ch63/0999--100.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P>Using the installation script, you are prompted for the different packages that should be installed, as well as their directory. You should install all the packages included with the Adabas-D CD-ROM for a complete Adabas-D system, with the exception of any language you don&#146;t want (Adabas-D is usually distributed with both English and German documentation and command sets). There are usually four components to the Personal Edition system, which is the version most users will want:

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>adabas-6.1PE</TT>. The kernel and all binary and configuration files (approximately 46MB).

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>adabas-mydb</TT>. The sample database with a diashow of German railways (approximately 74MB).

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>adabas-docEN</TT>. English documentation (105MB).

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>adabas-dokDE</TT>. German documentation (79MB).

</DL>

<P>Before Adabas-D can be started, two shell variables must be set for each user account that will have access to the database package. The shell variables are

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>DBROOT</TT>. The installation directory (/opt/adabas-d, for example).

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>PATH</TT>. Adds DBROOT to the usual shell path (usually set as <TT>&#36;DBROOT/bin:&#36;PATH</TT>).

</DL>

<P>The <TT>adabas-mydb</TT> package installed earlier is a complete tutorial and sample database that details the German railway system (which is interesting by itself if you like trains!). You can run this example through an X session to see what Adabas-D is capable of. To start the demo, start X (after you have set the required shell variables) and issue the command:</P>

<!-- CODE SNIP //-->

<PRE>

panel

</PRE>

<!-- END CODE SNIP //-->

<P>The user name to enter is &#147;control,&#148; and the password is &#147;control.&#148; The database name is &#147;MYDB.&#148; Click the Connect button in the window and wait for the traffic light signal that appears to change to green. The database contains some pictures of the German railways. To see these pictures, start the &#147;fotos&#148; program in an X terminal, use the username &#147;demo,&#148; the password &#147;demo,&#148; and the same database name as before (&#147;MYDB&#148;). Adabas-D should be up and running now. If there are any problems, make sure the environment variables are set properly and that the installation didn&#146;t generate any error messages.

</P>

<P>Documentation for the Adabas-D system is in the doc directory under the Adabas-D root directory (such as <TT>/opt/adabas-d/doc</TT>).</P>

<H3><A NAME="Heading11"></A><FONT COLOR="#000077">LINCKS</FONT></H3>

<P>LINCKS is an object-oriented database management system. LINCKS is a good system if you intend to use it on a network and share data via RPC calls. You need to have some experience with networks, as well as an existing network to fully benefit from this package. This package is not for a single node system just because it would be an overkill for such a platform.

</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>Note:&nbsp;&nbsp;</B><BR>You can get LINCKS from <TT>sunsite.unc.edu</TT> in the <TT>/pub/linux/apps/database/ lincks</TT> directory.<HR></FONT>

</BLOCKQUOTE>

<P>LINCKS is based on an append-only object-oriented structure. Objects are derived from other objects. Links can be set between objects to define relationships. You define views to an object. A view is used to specify how the data in the object is presented to a user. Multiple views can exist for the same object. Views can be inherited.

</P>

<P>The main interface is xlincks program. Using commands similar to <TT>emacs</TT>, you can interactively browse through databases. The interface resembles the hypertext functions of a Web page. You click on a highlighted item, and the program leads to a page with more information about the topic.</P>

<P>Help is available in two forms: context sensitive or as a browseable database. The help file is always a button away&#151;to access help, simply press the Help button. The contents of the help file are well organized and are a good starting place to learn about LINCKS. The manual is also available in PostScript from the sunsite archives.</P>

<P>LINCKS comes with a few programs in its distribution package. You can create new databases using the <TT>dbroot</TT> command. To prune databases of unreferenced objects, use the <TT>cutoff</TT> command. The main server for the application is the <TT>netserv</TT> program, which fires off a <TT>dbs</TT> process for each connected client.</P>

<H3><A NAME="Heading12"></A><FONT COLOR="#000077">Other Database Products</FONT></H3>

<P>Of course, the xBase tools we&#146;ve looked at are not the only databases available for Linux. There are a lot of non&#150;dBASE-compatible tools out there. We can take a quick overview of some other database management systems for Linux. Most of these are free and can be found on the Internet.

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;mbase v5.0 is a relational database system originally written for the Amiga and ported to other platforms. It uses a language format similar to C to do the database programming. To compile using mbase, you need ncurses and time. There are several problems with the Makefile that may require manual editing on your part. If you really want cheap, C-like access to a DBMS, you can use this package. Otherwise, get FlagShip or dbMan because they are more stable and mature.

<DD><B>&#149;</B>&nbsp;&nbsp;onyx is a database prototype program based on a language format such as C. The <TT>make config</TT> command starts the process and a series of questions pop up. Answering all these questions results in configuring the database properly for Linux.

<DD><B>&#149;</B>&nbsp;&nbsp;DBF is an xBase manipulation package and is a collection of utility programs that manipulate <TT>dbf</TT> files. Some of the utilities, such as <TT>dbfadd</TT>, add a record or layer of information in the database. <TT>dbflist</TT> lists the records in the database; <TT>dbft</TT> lists the structure of each database and its items.

<DD><B>&#149;</B>&nbsp;&nbsp;typhoon is yet another RDBMS. The most notable feature of this RDBMS (depending on your point of view) is that it&#146;s entirely like C. The problem is that the product still has to mature before being considered a viable RDBMS.

</DL>

<H3><A NAME="Heading13"></A><FONT COLOR="#000077">Summary</FONT></H3>

<P>FlagShip and dbMan are excellent means of porting existing dBASE and dBASE-compatible programs to Linux where they run without modification in most cases and a lot faster in almost all cases. A version of FlagShip is being developed for X to run under FreeX86 or other Linux-based X versions, and that should be available in 1997. For now, though, the demo version of FlagShip lets xBase developers continue to work with their database system under Linux. The commercial product, with its hefty 1,500-page documentation, is &#36;199 and well worth it for developers. dbMan is a logical alternative for those who don&#146;t need FlagShip&#146;s compiler features and extended capabilities.

</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="993-996.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="../ch63/0999--100.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -