|
|
System i Configurations
Windows Configurations
What the Installation Will Do
Transferring and Installing DataGate for System i
Installing DataGate for System i onto the System i from Windows
Installing DataGate for System i onto the System i from the System i
Installing DataGate for System i using a System i CD-ROM drive
Changing the Default DataGate TCP Port
Licensing DataGate for System i
Entering the License Code on the System i
Authority of the User Profile used to Register DataGate
Configuring DataGate for System i
Verifying that TCP/IP is Installed Correctly
Naming a System i Database
Configuring Multiple Versions of DataGate for System i Using TCP/IP
Troubleshooting
Troubleshooting DataGate Service
Troubleshooting a DataGate Job that is Not Terminating
Setting up a Subsystem
Troubleshooting Manually Ending Users Jobs
Finding a System i IP address
Upgrading OS/400
Uninstalling DataGate
DataGate 9.1 for System i is fully supported for the following i5/OS releases:
Please also consult the release notes for information regarding DataGate for System i interoperabilty with DataGate Client.
Windows is not required for installation of DataGate for System i, but may be used if
desired.
The installation notes in this document refer to procedures available in the following Windows releases:
Please consult the installation notes for further details regarding the configuration requirements
for installing DataGate for System i.
You will achieve fast, record-level DB2/400 database access from Windows with DataGate for System i.
Whether you are developing your client applications in Visual Basic.NET, C#, Visual RPG.NET,
or Visual RPG Classic, DataGate for System i provides the direct file access needed for efficient Client/Server
processing - without SQL and ODBC.
System i connectivity is supported for TCP/IP.
DataGate for System i retains all System i object authority and object locking. Its Remote Program Call
support features automatic program initiation and activation, and allows character, numeric and indicator (Boolean)
parameter data types.
DataGate for System i provides full object control for the System i including: creating files; accessing file definitions;
adding, deleting and initializing file members; renaming and copying files. It provides full access to CL commands and data areas,
and it utilizes all System i CPF error messaging.
Note: The user installing DataGate on the System i must have *SECOFR authority.
The procedure to install DataGate for System i on the System i consists of 2 parts.
The first is to transfer the DataGate software to the System i, either from Windows or the System i CD drive, and the second is to
actually install DataGate into the specified System i library.
There is one way in which you can transfer DataGate for System i to the System i from Windows
There is one way in which you can transfer DataGate for System i to the System i from the System i
Refer to the appropriate installation procedure below for the desired transfer method.
Each procedure will have a subheading noting whether the steps are done on the System i or Windows.
The last step in each procedure will be to run the command that actually installs DataGate for System i onto the System i.
Note: The user installing DataGate on the System i must have *SECOFR authority.
Prior to installation, DO NOT DELETE or RENAME the ASNA_DG8 library.
It is required for all versions of DataGate, even though you may be installing into a library with a different name.
Also, if you are installing to an existing subsystem, please be sure that the subsystem has been
started prior to the installation.
In order to install DataGate for System i on the System i from a Save file (obtained from the Installation CD), you must have TCP/IP installed on both Windows and on the System i . (You must also have FTP installed on your System i).
Installing TCP/IP and FTP on the System i is beyond the scope of this document. If you do not know whether your System i has TCP/IP and/or FTP, please check with your network manager or system provider.
From Windows, click on the Start button, select Run and enter the following command:
FTP tcpipaddress
‘tcpipaddress’ is either the System i’s TCP/IP address such as 199.076.129.35,
or a machine name that is registered either in a DNS or a HOSTS file.
where x is the Windows CD-ROM drive.
RSTLIB ASNAINST DEV(*SAVF) SAVF(QGPL/ASNAINST)
ASNAINST/DG8LOAD
When DataGate for System i is installed, it is automatically authorized for one user license. If you wish to authorize more than one licensed use of DataGate for System i, obtain a license code from ASNA and then enter ASNA_DG8/REGISTER from System i command line.
The installation program will display the ASNA Software License Agreement.
If you agree with the terms of the license, press the F8 key to continue with the installation.
If you do not agree, press the F3 key and the installation will be cancelled.
Next, the installation program displays the installation options. The installation can be cancelled at any time by pressing the F3 key.
Installation Library Option:
Select a library where DataGate for System i will be installed. If the library does not exist, it will be
automatically created during the installation.
The following libraries are not allowed for the installation: QSYS, QGPL, QSPL, QTEMP, VCAT_72 and the distribution library.
Libraries called ASNA_DG8 and VCAT_72 are always created.
Subsystem Options:
Select a subsystem where DataGate for System i will run. You must also specify the library where the subsystem description is
located or where it will be created during the installation.
This is required so that the installation program can determine whether the specified subsystem exists
or must be created. If the subsystem does not exist, it will be automatically created
in the specified library during the installation. If you are installing to an existing subsystem, please be sure that
the subsystem has been started prior to the installation.
Service Table Entry Options:
Select the name of the service table entry and the port that DataGate for System i will use. The default values are recommended.
Start DataGate Option:
Enter ‘Y’ to have DataGate for System i started as soon as the installation has completed.
If you select not to start DataGate, you will have to start it manually with the STRDG8SVR command by entering:
InstallLib/STRDG8SVR
Where InstallLib is the library into which DataGate for System i was installed.
Clear Cache Library Option:
Enter ‘Y’ to clear the DataGate for System i cache library.
This is recommended.
Make sure that there are no active DataGate for System i jobs if you select this option.
Note: The user installing DataGate on the System i must have *SECOFR authority.
The following installation processes have two steps.
Note: The user installing DataGate on the System i must have *SECOFR authority.
To restore the installation library, load the CD, then enter the following command:
RSTLIB ASNAINST OPT01 OPTFILE('DATAGATE/RSTLIB/ASNAINST')
Where OPT01 is the device name from which the library will be restored.
See the above section titled Installing DataGate for System i with FTP, starting with step 8,
for detailed instructions and information about the various installation options.
Once the installation is completed, the ASNAINST Save file is no longer needed, and may be deleted.
The ASNAINST library is automatically deleted.
When DataGate for System i is installed, it is automatically authorized for one user license.
If you wish to authorize more than one licensed use of DataGate for System i,
obtain a code from ASNA and then ASNA_DG8/REGISTER from System i command line.
Before DataGate for System i may be used on any System i, a valid license code, issued by ASNA, must be entered.
For new trials, this code will be sent with the product if the machine serial number and model type are known at the time of shipping.
The code issued with a trial of DataGate for System i will license, or register the product to be used on a specified
machine up to a specified date. If it is required to move the product onto another machine, upgrade the model type,
or extend the trial period, please contact your Distributor or ASNA for a new license code.
Once the product has been purchased, a new license code will be issued to register the product on a permanent basis.
This code will be based either on unlimited users, or on a per-user basis.
A new license code is entered, or a current license can be viewed or changed by using the
product’s Registration Assistant program.
When installing the product for the first time, or when an upgrade is installed, the Registration Assistant
screen is displayed with the bottom of the screen displaying whether the current License Code is valid or not.
If the License Code is valid, press F3 to continue. If not, call ASNA or your Distributor to get a new License Code.
Note: You cannot use the product without a proper License Code.
Enter or verify the information to the display, as detailed below.
System Name
The name of the System i will automatically display.
Model
The model of the System i will automatically display.
Serial Number
The serial number of the System i will automatically display.
License Key
For a new license, enter the 16-digit license code acquired from ASNA exactly as it is given.
License Type
License Type specifies if the licensing is for an individual machine, or for the entire company.
The user profile used to register DataGate software must have *CHANGE authority to the ASNA_DG8 library. Additionally, it must have *ALL authority to the DGPCODE4 data area in ASNA_DG8, if it already exists (say, from a previous registration of the product).
The user profile must have these authorities regardless of the method used to register the program.
As an example, suppose user profile ADBUSER is to be used to register DataGate.
The successful execution of the following two System i commands prior to registration will insure that
the required object authorities will be available to ADBUSER:
GRTOBJAUT OBJ(QSYS/ASNA_DG8) OBJTYPE(*LIB) USER(ADBUSER) AUT(*CHANGE)
GRTOBJAUT OBJ(ASNA_DG8/DGPCODE4) OBJTYPE(*DTAARA) USER(ADBUSER) AUT(*ALL)
Remember that the DGPCODE4 data area may not exist yet if DataGate has never been registered on the machine.
If so, the second command is not necessary.
This process assumes that your machine is on a TCP/IP Network. If you are unsure of the type of Network, or do not understand any of the steps, please contact your Network Administrator.
You should use automated IP settings (DHCP) whenever possible, for the following reasons:
To verify that TCP/IP is installed correctly and can communicate with the System i, you will need to know the System i’s TCP/IP address and Full domain name. If you do not know, please contact your Network Administrator!
If you are unable to connect to the System i database from ASNA’s DataGate Database Manager, the following information
may help identify possible incorrect setups on the System i.
It is assumed that TCP/IP configuration has been completed correctly in Windows.
If you are unsure whether TCP/IP is installed or correctly configured in Windows, contact your
network administrator for assistance.
TCP/IP names are a combination of host names (machine names) and domain names.
A machine name for TCP/IP does not have to match the System i machine name; however, it will be a unique name
- and it can be the same as the System i machine name.
Throughout this example, the machine name used is ‘machine’, and the System i name is actually ‘S1037242’.
The domain name used throughout this example is ‘domain.com’.
Together the machine name and the domain name make a ‘complete’ TCP/IP name - ‘machine.domain.com’.
At your site, you should use your own domain name and own machine name.
If you are unable to start the DataGate Service, the following steps will assist in trouble shooting the possible causes.
When the DataGate service job is submitted for execution, the job is submitted under the user profile of DG8SVCPRF.
This user profile is created during the installation and the system value for the Printer option will be assigned to this user profile.
If the DataGate service job has trouble starting, a one page report outlining the possible cause of the problem will
be generated for the user DG8SVCPRF and printed to the assigned printer. This report will not print unless the Output Queue
associated with this printer automatically prints the generated reports. Otherwise, to view the list of reports that
have not printed for this user, enter the following command:
WRKSPLF SELECT(DG8SVCPRF)
At this point you will need to contact ASNA for further assistance.
The most probable cause for the DataGate service job not starting is if the current DataGate service job is terminated with an ENDJOB command, subsequent attempts to start the service will not be successful.
NETSTAT
If you notice that a DataGate Job is still running after a client connection is lost, this is due to a TCP/IP
feature called "Keep-Alive". Refer to the following to change the system's default Keep-Alive value.
When the database connection is TCP/IP, the server machine utilizes a TCP/IP feature called "Keep-Alive".
Keep-Alive packets are used to probe a connection that has been inactive for a long time.
The server initiates a disconnect when the probes do not get through.
This means that if the client connection is lost for a prescribed length of time, the server sends a
disconnect message to its server job (usually the result of a system crash or power-down).
The default Keep-Alive setting for Windows and System i is two hours, meaning that an DataGate thread or
DataGate job would remain active for 2 hours after connection was lost with the client.
The 2-hour default may be an unsatisfactory period of time for you, as files would continue to remain
open, etc. on an abnormal disconnection until the Keep-Alive time had elapsed.
Refer to the following to modify the server machines' respective Keep-Alive period.
WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk. The following was derived from Article ID Q120642.
Basically, to set up a subsystem, you need to have a routing entry with a compare value of “QCMDB” that runs
the program QCMD in QSYS.
The subsystem that is used for the job queries must be set up with a proper routing entry in
order for DataGate service to start. This routing entry must run the program QCMD in Library QSYS and have the
compare value of ‘QCMDB’ or ‘*ANY’. If the subsystem has one of these routing entries, it may be used for DataGate.
If DataGate is shut down and there are users connected, their jobs will still be out there and you have to
manually end them. However, after manually ending the users’ jobs, DataGate may not start for about 5 minutes.
It will start the first DG8SVC job and then end it until the 5 minutes (or so) is up.
It is likely that OS/400 is not reclaiming the DataGate TCP/IP port (5042) in a timely manner when the service
and connection jobs are ended. When you "manually end" connections to DataGate, it may not have a chance
to properly shut down TCP/IP resources. The system typically does not realize that those resources are no
longer in use for some quantum.
The best way to avoid this is to let the connections and service end normally, though in abnormal situations
this isn't always possible.
When you must use ENDJOB, etc., to end the connections and/or the service, you can sometimes use the WRKTCPSTS command
to view the outstanding socket connections and end them. In such a case, if you find a socket in the "listening" state using the DataGate port, you can end this connection (but only if you are absolutely sure the service isn't running) using WRKTCPSTS. Likewise, if you find sockets connected to the DataGate port from external ports, you can end those (if you are sure that there are no jobs using the connection). The system will then reclaim the port, and a new instance of the DataGate service can use it immediately.
If the user does not know the IP address of the System i to which they are trying to Name a database, do the following. Note however, that most users should never have to do this, and you may want to "call your Network Manager” instead of performing the steps below.
If you are upgrading System i's OS/400 to a new level, please contact ASNA to ensure you have a compatible version of DataGate.
Note that you will also need to reconfigure DataGate for TCP/IP access (i.e., the ADDJOBQE and ADDSRVTBLE commands).
If you are running multiple versions of DataGate and wish to uninstall a single version; please note the following:
DO NOT delete or rename the ASNA_DG8 library. It is required for all versions of DataGate even though
you may be installing into different library names.
For TCPIP access, you will need to remove the service table entry for the version of DataGate that you wish to uninstall.
To verify the Service Table entry, display data area TCPSERVICE in the library that you are uninstalling.
This data area contains the name of the Service Table entry that you will remove.
To uninstall a version of DataGate that was not installed in the default installation library ASNA_DG8, follow the steps below.
|
November 11, 2009 © 2007-2009. BluePhoenix ASNA . All rights reserved. |