[Prev] [Next] [Top] [Bottom] [Contents] (2 out of 3)

Overview

To correctly run through the Sapphire/Web tutorials, the sample database table must be installed. In addition to accurately modeling a real-world application, several images should be included:

Installing GIFs for the Tutorials

The tutorials use several HTML documents containing images. If users of Sapphire/Web wish to use the tutorials, the images must be installed on the web server via the following scripts, and by following these steps:

1. Set the environment variable SAPPHIRE to the directory in which Sapphire/Web is installed:
C Shell
	setenv SAPPHIRE sapphire_home
Bourne/Korn Shell
	SAPPHIRE=sapphire_home; export SAPPHIRE
2. execute the following on the command-line:
$SAPPHIRE/bin/install_gifs path url
path: Path to where gif files can be accessed by your web server, and this should be in the form hostname:/full_path

url: URL referencing where gif files can be accessed by your web server. This should correspond with path.

Example:
$SAPPHIRE/bin/install_gifs bstone:/usr/local/web/ 
http://www.bluestone.com/

Database Administration

Set database-specific environment variables

SYBASE

C Shell
	setenv SYBASE sybase_directory
where: sybase_directory is the directory containing the Sybase interfaces file.

Bourne/Korn Shell
	SYBASE=sybase_directory; export SYBASE

ORACLE

C Shell
	setenv ORACLE_HOME oracle_directory
	setenv ORACLE_SID default_oracle_database
where: oracle_directory is the directory in which Oracle is installed and default_oracle_database is the connection string for the Oracle database.

Bourne/Korn Shell
	ORACLE_HOME=oracle_directory; export ORACLE_HOME
	ORACLE_SID=default_oracle_database; export ORACLE_SID
Note: This connection string is the database name if the database is local, or a connect string, if the connection is going over SQL*Net v1. If the connection uses SQL*Net v 2., see Appendix A, Troubleshooting, in this Guide.

INFORMIX

C Shell
	setenv INFORMIXDIR informix_directory
where: informix_directory is the directory containing the etc/sqlhosts file.

Bourne/Korn Shell
	INFORMIXDIR=informix_directory; export INFORMIXDIR
Start Sapphire/Gateway on the necessary machine(s).
cd sapphire_home
	bin/dborbd.sh


[Prev] [Next] [Top] [Bottom] [Contents] (2 out of 3)