In order to allow iASP_Grid to access database using DSN in different
environment, make changes to all the Samples. Choose the database server
below and follow the instructions to configure its driver for running
with iASP_Grid:
Microsoft Access
- Open the Control Panel on the Windows PC running your web server.
- Double-click the ODBC/ODBC Data Sources icon and then switch to System
DSN Tab.
NOTE: The System DSN stores information
about how to access your database. The System DSN is available to all
users of your computer while the User DSN is available only to you,
and the File DSN can be shared by users who have the same database drivers
installed.
- Click the Add button and choose the Microsoft Access Driver then click
the Finish button.
- In the Data Source Name input box, type "GridTest".
- In the Database area, Click the Select button. Select the GridTest.mdb
database file located in <iASP_Grid Installation Directory>\samples\database
- Click the OK button in the Select Database dialog box.
- Finally, click the OK button in the ODBC Microsoft Access Setup dialog
box to finish data source configuration.
- Click OK button to close the ODBC/ODBC Data Source Administrator dialog
box.
- To run iASP_Grid Samples, set the following parameters in connect
method of Samples:
<Object Name>.connect "sun.jdbc.odbc.JdbcOdbcDriver","jdbc:odbc:<System
DSN>","<UserId>","<Password>"
In the samples distributed with iASP_Grid :
- <System DSN> = GridTest
- By default UserId = ""
- By default Password = ""
Oracle
- Start your Oracle server.
- Run GridTestOracleDB.sql under <iASP_Grid Installed Directory>/samples/database
in Oracle tool SQL PLUS.
- Install Oracle's JDBC thin driver according to the manufacturer's
instructions.
NOTE: If you are running the samples
under the Netscape Enterprise Web Server, you need only set the following
environment variable:
CLASSPATH = $ORACLE_HOME/lib/CLASSES111.zip or $ORACLE_HOME/lib/CLASSES102.zip
To run iASP_Grid Samples, set the following parameters in connect method
of Samples:
<Object Name>.connect "oracle.jdbc.driver.OracleDriver","jdbc:oracle:thin:@<Host
IP>:1521:<Oracle SID>","<UserId>","<Password>"
Parameter |
Description |
<Host IP> |
your Server host IP address where Oracle Server is running. |
<Oracle SID> |
The SID specified when creating the Database (Default is ORCL). |
<UserId> |
The userid specified for the Database (Default UserId = "system"). |
<Password> |
The password specified for the Database (Default Password = "manager"). |
SQL Server
- Start your SQL Server and run sqlserverDb.sql with SQL Server tool
Query Analyzer on the Windows NT Server running your web server.
- Open the Control Panel on the Windows PC running your web server.
- Double-click the ODBC/ODBC Data Sources icon and then switch to the
System DSN tab.
NOTE: The System DSN stores information
about how to access your database. The System DSN is available to all
users of your computer while the User DSN is available only to you,
and the File DSN can be shared by users who have the same database drivers
installed.
- Click the Add button and choose the SQL Server, and then click the
Finish button.
- In the Name input box, type "GridTest".
- In the Server dropdown list, select one ServerName that you want
to use (Such as: <local>), and then click the Next button.
- Select the Option "With SQL Server authentication using a login
ID and password entered by the user".
- In the Login ID input box, type "sa" and leave the password
input box blank and click the Next button.
- Make sure the dropdown list's selection item is "Change the default
database to:" is true.
- In the dropdown list, select GridTest database and click the Next
button.
- You can change the other settings or just leave them alone. And then
click the Finish button.
- Your can click the Test Data Source... button to perform a test or
directly click the OK button.
- Finally, click the OK button to close the ODBC Data Source Administrator
dialog box and finish data source configuration.
To run iASP_Grid Samples, set the following parameters in connect method
of Samples:
<Object Name>.connect "sun.jdbc.odbc.JdbcOdbcDriver","jdbc:odbc:<System
DSN>","<UserID>","<Password>"
- By default UserId = "sa"
- By default Password = ""
MySQL
- Start MySQL and change directory to MysqlInstallDirecter/bin, then
execute following command lines:
msqladmin create GridTest
mysql
- Execute every sentence in GridTestMySQL.sql under <iASP_Grid
installed directory>/samples/database/ in MySQL.
- To run iASP_Grid Samples, set the following parameters in connect
method of Samples:
<Object Name>.connect "twz1.jdbc.mysql.jdbcMysqlDriver","jdbc:z1MySQL://<Host
IP>:3360/<DataBase Name>","<User ID>","<Password>"
Parameter |
Description |
<Host IP> |
your Server host IP address where MySQL Server is running. |
<Database Name> |
Specify it as GridTest. |
<UserId> |
The userid specified for the Database (Default UserId = "root"). |
<Password> |
The password specified for the Database (Default Password = ""). |
If you require technical support please send complete details about the
problem you are having to support@halcyonsoft.com.
|