Previous Contents Index Next |
iPlanet ECXpert™ Getting Started |
Appendix A Migrating from ECXpert 3.0 to Current ECXpert
This appendix describes the planning and tasks you must perform to upgrade from ECXpert Version 3.0 to current ECXpert.
The following topics are covered:
Migrating from ECXpert 3.0 to Current ECXpert
Updating Stored Procedures for Billing Code Addition
Removing the Previous Installation and Database Backup
With the release of ECXpert 3.5, support is no longer available for ECXpert 1.1.1 and 2.0 migrations.
Migrating from ECXpert 3.0 to Current ECXpert
This section describes all of the steps you must perform to migrate from ECXpert 3.0 to the current ECXpert version.
Upgrading to Oracle 8.1.6
If you have not already done so, you will need to upgrade to Oracle 8.1.6, Enterprise Edition. See the included Oracle documentation for installing version 8.1.6 or contact your Oracle service provider or dba to assist in this process. Also, the Oracle Installation/Migration provides preinstallation information for Oracle 8.1.6.
When you upgrade Oracle, do not create a new Oracle user to own the ECXpert tables. You must use the existing Oracle user who owns the ECXpert tables.
Set up and Test Your Database Connectivity
Set up and test your database to be sure that user
root
has access to the database, so you can successfully migrate ECXpert. If userroot
doesn't have access to the database, you will get error messages during the ECXpert migration 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
- 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
.
- #
. ~
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:
- 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
. 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 migration.
- If you cannot connect to the database using this method, you definitely will not be able to connect during the ECXpert migration.
Back Up Your Database
Follow the steps in this section to back up your existing ECXpert database.
Change to the
$ACTRAHOME/Actra-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, depending upon your currently installed version of Oracle with the ECXpert database:
- 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
- and repeat this step.
Shut Down All ECXpert Services
If you are using a previous installation of the ECXpert Product Administrative Interface, you must log out and shut it down. Follow these steps to log out and shut down ECXpert.
Log out of the ECXpert Product Administrative Interface.
Shut down all ECXpert services.
- Click the Logout bar, then choose Applet > Quit if using the Applet Viewer.
- Display the ECXpert Main Menu in your browser as shown in Figure A-1 by entering the URL:
http://
hostname
:
port#
- where
hostname
is the name of your ECXpert host andport#
is the port number it uses.
Figure A-1    ECXpert 3.0 Main Menu ![]()
- Click the Admin button to display the ECXpert Server Administration menu shown in Figure A-2.
Figure A-2    ECXpert 3.0 Server Administration menu ![]()
- If any ECXpert services are running, you will see more entries than the ECXpert Administration Server with an ON indication.
- Click any service switch icon that is
ON
to toggle the serviceOFF
and exit your browser window.
Shut down the iPlanet FastTrack Server or iPlanet (Netscape) Enterprise Server.
Shut down the iPlanet Administration server.
- In an xterm window, enter the following commands, replacing
machine_name
with the name of your ECXpert host machine:
- #
cd $NSBASE/NS-apps/ns-home/
http_prefix
-
machine_name
#./stop
In the above
cd
command, supply a value forhttp_prefix
as follows:
Verify that no ECXpert processes are still running.
- In an xterm window, enter the following commands:
# cd $NSBASE/NS-apps/ns-home/
# ./stop-admin
If running SNMP, make sure the SNMP agent is shut down.
- In an xterm window, enter the following command:
# ps -ef | grep actra
- If additional processes are running, kill them manually.
- Manually kill the process ID for
Program.o
.
Preserve Your Files
Follow the steps in this section to back up the important files from your current ECXpert installation (ECXpert 3.0, 3.0 SP1, and/or 3.0 SP2):
Set up a temporary holding directory that is:
outside both the current ECXpert version and any previous ECXpert Version directory trees.
Copy the following files into your temporary holding directory:
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/httpd-
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
Upgrade to Current ECXpert
Perform the steps in this section to upgrade to current ECXpert.
Begin to install the current ECXpert version, as described in ECXpert Getting Started, Chapter 2 "Installing ECXpert."
Proceed normally through the screens for Installer Step One to Step Four, including Step Four.
- After the command-line-based installation completes, a browser appears with the browser-based installation steps.
In an xterm window, go to the directory containing the migration script.
- Refer to Running the ECXpert Installer for detailed instructions. Be sure to stop when you reach "ECXpert Installer Step Five."
- At this point, pause and run the migration script as described next.
Run the migration script.
- Enter the following command:
# cd
$NSBASE
/NS-apps/ECXpert/dbadmin/oracle/migration/30_to_35
- where
$NSBASE
is the directory under which you are installing current ECXpert.
When entering the following command, do not add a trailing slash character (
/
) after the environment variables$ORACLE_HOME
andECX_3.5_HOME
.
# ./migrate.pl -h $
ORACLE_HOME
-s
ORACLE_SID
-u
User/Password
[@
TNS_alias
] -w
ECX_3.5_HOME
- where:
$ORACLE_HOME
is the path to your Oracle home directory
ORACLE_SID
is your Oracle SID
User
is your Database User ID
Password
is your Database User password
TNS_alias
is the Oracle TNS alias for the ECXpert database (if Oracle is remote)
ECX_3.5_HOME
is the directory under which ECXpert is installed
Return to the browser window and resume the browser-based installation at Step Five.
- For example:
# ./migrate.pl -h /disk1/oracle/wg816 -s ECX -u ECX1/ECX1 -w /disk1/Netscape/ns-apps/ECXpert
Click Skip on Step Five of the browser-based installation.
Click Skip on Step Six of the browser-based installation.
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.
If using SNMP, copy the entire
CONFIG
file back to the new$NSBASE/NS-apps/ECXpert/SNMP/config/
directory.
Open your previous version of the ecx.ini
file and the newly installedecx.ini
in a text editor and manually update the newly installed file very carefully by copying the following items 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.
Updating Stored Procedures for Billing Code Addition
The Partnership Info tab of the Support Administrative User Interface has an added field for billing code. This field has not caused a database schema change for ECXpert 3.5. However, there is a stored procedure change. Therefore, for an existing ECXpert 3.0 series installation, the following stored procedure will need to be reloaded:
ora_pkgbody.sql
.The procedure is to update this stored procedure is as follows:
As the Oracle user, go to a terminal window and the following directory:
Run the sqlplus program as follows:
cd $ECX3.5_HOME/dbadmin/oracle
Execute the following sql program to update the stored procedures:
- sqlplus myaccount/mypassword@myserver
- sqlplus>@ora_pkgbody.sql
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 current ECXpert is working properly.
When the new version of ECXpert has been in production mode for a week or more, 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.