Previous Contents Index Next |
iPlanet ECXpert™ Getting Started |
Appendix B Reinstalling Current ECXpert
This appendix provides instructions on reinstalling ECXpert 3.5 over an existing installation of ECXpert 3.5. The following topics are covered:
Reinstalling ECXpert 3.5 on page 111
Removing the Previous Installation and Database Backup on page 118Reinstalling ECXpert 3.5
Reinstalling ECXpert 3.0 is a major operation. We suggest reading this entire section before attempting a re-installation. This process will require that you plan carefully for both the disk space and the time slot in which to carry out the task. Without proper planning, you may be forced to abort partway through.
You need to complete the following tasks to reinstall ECXpert:
Shutdown all ECXpert services.
Setup and test database connectivity.
Backup your Oracle database.
Preserve files from current installation.
Test database connectivity.
Reinstall ECXpert.
Remove the previous installation and database backup.Shut Down All ECXpert Services
If you are using a previous installation of ECXpert, you must log out of the Product Administrative Interface (Support UI) and shut it down. Follow these steps to log out and shut down ECXpert. For figure references, see the screen shots in Appendix A.
Log out of the ECXpert Product Administrative Interface.
Shut down all ECXpert services.
- Click the Logout link, then choose Applet > Quit if using the Applet Viewer.
If running SNMP, make sure the SNMP agent is shut down.
- Display the ECXpert Main Menu in your browser by entering the URL:
http://
hostname
:port#
- where
hostname
is the name of your ECXpert host andport#
is the port number it uses.
- Click the Admin link to display the ECXpert Server Administration menu.
- Click any service switch icon that is
ON
to toggle the serviceOFF
and exit your browser window.
- Manually kill the process ID for
Program.o
.
Set up and Test Your Database Connectivity
This section tests to make sure that user
root
has access to the database, so that you can successfully reinstall ECXpert. If userroot
doesn't have access to the database, you will get error messages during the ECXpert reinstallation process.Log in as user
root
.
Determine the shell that
# su - root
root
uses.
Determine the shell that
# echo $SHELL
- The output of this command identifies the shell that
root
uses, which determines its associated environment file:
oracle
uses.
Get into the
# cat /etc/passwd | grep oracle
- The output of this command lists the shell at the end, as in the sample below:
oracle:x:50004:10003::/export/home/oracle:/bin/csh
oracle:x:50004:10003:,,,:/export/home/oracle:/bin/csh
- where the shell is
csh
.
oracle
shell.
- Locate the shell in the "Output" column of the table in Step 2 above, then look up the entry in the "Environment File" column for the same row.
If you are using the C shell, enter the following command:
Check the environment settings.
If you are using the Korn shell or the Bourne shell, enter the following command:
# source ~
oracle
/.cshrc
- where
oracle
is your Oracle user, typicallyoracle
oracle8
.
# . ~
oracle
/
your_environment_file
- where
oracle
is your Oracle user, andyour_environment_file
is the name of your environment file.
Correct environment variable definitions as necessary.
#
env
- The following sample output of this command lists the environment variables that must be set:
$ORACLE_HOME=
$ORACLE_HOME from worksheet
$ORACLE_SID=ECX
$NLS_LANG=
$NLS_LANG from worksheet
$LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
$SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
$PATH=$ORACLE_HOME/bin:$ORACLE_HOME:$PATH
$PATH=$ORACLE_HOME/bin:$ORACLE_HOME:$PATH
$DISPLAY=hostname
:0.0
$TNS_ADMIN=$ORACLE_HOME/network/admin
- If any of the above environment variables are not properly defined, do the following:
Log in as, or change to, your Oracle user, typically
Enable changes in environment variable definitions.oracle
oracle8
. For example:
Open the environment file that you referenced in Step 4 above in a text editor and add or modify the definitions as necessary.
# su - oracle.
Save the environment file and exit the text editor.
Check your
- If you made changes in the environment file in Step 6 above, you can enable those changes now by switching to another user and then switching back to your Oracle user. For example:
#
su - root
#
su - oracle
- Alternatively, you could restart your system and log in as your Oracle user.
tnsnames.ora
file.
- Check your
tnsnames.ora
file to make sure it contains the correct information. The following are likely locations of yourtnsnames.ora
file:
Connect to the database from the UNIX commandline.
$ORACLE_HOME/network/admin
/var/opt/oracle
The directory specified by the$TNS_ADMIN
environment variable
Repeat the test from inside SQL*Plus:
- #
sqlplus
ECX/ECX
@
your_connect_string
- where ECX/ECX is the username/password of the ECXpert table-owner. If this test fails, skip to Step 11.
Correct any connectivity problems.
SQL> connect
ECX/ECX
@
your_connect_string
SQL> exit
- where ECX/ECX is the username/password of the ECXpert table-owner.
- If the test at either Step 9 or Step 10 failed, check the
tnsnames.ora
andlistener.ora
file to validate the settings, such ashostname
andSID
.
- After making any necessary changes, go back to Step 9 above.
- If you have successfully connected to the database using SQL*Plus, you will be able to connect during the ECXpert reinstallation.
- If you cannot connect to the database using this method, you definitely will not be able to connect during the ECXpert reinstallation.
Backing Up Your Existing ECXpert 3.5 Database
Follow the steps in this section to back up your existing ECXpert database.
Change to the
$NSBASE/NS-apps/ECXpert/dbadmin/oracle
directory.
Open theexp_ecx_tables.sh
file in a text editor.
Change the character stringname/password@dbAlias
in the first line to be theusername/password
@dbAlias
of your ECXpert table-owner user.
Enter the following command to runexp_ecx_tables.sh.
# ./exp_ecx_tables.sh
- If this command is successful, you should see output similar to the following:
If instead you get the following error message:
./exp_ecx_tables.sh: Permission denied
Enter the following command to set the proper permissions on the file:
# chmod 775 exp_ecx_tables.sh
Preserve Your Files
Follow the steps in this section to back up the important files from your current ECXpert installation:
Set up a temporary holding directory that is:
outside both the current ECXpert version directory tree and any previous ECXpert installation's directory tree.
Copy the following files into your temporary holding directory:
outside the ECXpert Version 3.5 directory tree.
outside the/tmp
directory
In all cases, from
$NSBASE/NS-apps/ECXpert/config
, copy the fileecx.ini
.
If your Netscape Enterprise Server is running secured, from$NSBASE/NS-apps/ns-home/https-
machine_name
/config
, copy the filesServerCert.db, ServerCert.nm, ServerKey.db, magnus.conf, obj.conf, mime.types
and any*.acl
(access control list) files
If using SNMP, copy the$NSBASE/NS-apps/ECXpert/SNMP/config/CONFIG
file.
Copy your maps and extra input card files from:
-$NSBASE/NS-apps/ECXpert/maps/
-$NSBASE/NS-apps/ECXpert/data/input/
Copy your live datathe following complete directories:
-$NSBASE/NS-apps/ECXpert/data/work/trk
-$NSBASE/NS-apps/ECXpert/data/output
-$NSBASE/NS-apps/ECXpert/data/bundle
-$NSBASE/NS-apps/ECXpert/smtp/inbound
-$NSBASE/NS-apps/ECXpert/smtp/outbound
Reinstall ECXpert
Begin to install the current ECXpert version, as described in Chapter 2 "Installing ECXpert." The current version also includes the server install of Partner Agent.
Proceed normally through the screens for Installer Step One to Step Four.
- After the command-line-based installation completes, a browser appears with the browser-based installation steps.
Click Skip on Step Five of the browser-based installation.
- Refer to Running the ECXpert Installer for detailed instructions. Be sure to stop when you reach "ECXpert Installer Step Five" on page 101. There is a Note there reminding you to return to this Appendix.
Click Skip on Step Six of the browser-based installation.
Important Note: In case you missed it above, YOU MUST SKIP ON-SCREEN INSTALLATION STEPS FIVE AND SIX.
Proceed normally through the screens for Installer Step Seven to Step Ten and complete the rest of the tasks in Chapter 2 "Installing ECXpert."
Restore configuration settings from the temporary holding directory for your previous installation.
- Refer to pages 65-73 for detailed instructions. (Page numbers are approximate)
If using SNMP, copy the entire
Re-establish Netscape Enterprise Server security.CONFIG
file back to the new$NSBASE/NS-apps/ECXpert/SNMP/config/
directory.
Open your oldecx.ini
file and the newly installedecx.ini
in a text editor and manually update the newly installed file very carefully by copying in from the old one:
- any
[...]
sections for user-defined comms in their entirety
- any other parameters, from any
[...]
sections, where the old settings
differ from those in the newly installed file.
Restore live data from your full database backup.Removing the Previous Installation and Database Backup
If you have followed the recommendation to move the earlier ECXpert install directory to a temporary location, leave the archival copy of the previous installation and the Oracle database backup in place until you are certain that the new installation of ECXpert is working properly.
When the current version of ECXpert has been in production mode for a week or so, you may safely delete the previous installation and the Oracle database backup.
Copyright © 2000 Sun Microsystems, Inc.
Some preexisting portions Copyright © 2000 Netscape Communications Corp. All rights reserved.