General
Information
- The PLANTA server update from S 39.4.4.0 to S 39.5.x contains the update of the PLANTA servers including the required adjustments to the database via the new migration process in S 39.5.0.
Notes
- The update does not contain a migration of functional data. If you have any questions, please consult your PLANTA consultant.
- In order to keep the effort for changing from 39.4.4.0 to 39.5.x at a minimum, we recommend that you switch as early as possible.
Requirements
The following components must be installed on the target system:
- Java Version (JDK) 1.6.x 64-bit (otherwise, the PLANTA Server cannot be started)
- On Linux systems, the following environment variables must be set in addition:
-
JAVA_HOME
(e.g. /usr/java/jdk1.6.0_21
)
-
CLASSPATH
(e.g. /usr/java/jdk1.6.0_21/bin
)
-
PATH
(e.g. /usr/java/jdk1.6.0_21/bin:/usr/java/jdk1.6.0_21/jre/bin:$PATH
)
- Also required for Java JDK:
-
JRE_HOME
(e.g. /usr/java/jdk1.6.0_21/jre
)
-
JAVA_JAR
(e.g. /usr/java/java_jar
)
- an Oracle or MSSQL database.
Note
- For the installation to run smoothly, the executing user must possess administrator rights (in Windows) or must be configured as a root user (Linux).
Update Procedure
Information
Step 1: Download New Release
The current releases are made available for download to customers in the
customer area of the
PLANTA Transfer Server.
Procedure
- Please download the required release to which you want to update.
- The downloaded ZIP archive must be stored and unpacked on the system on which the PLANTA server is to be installed and updated.
Step 2: Install the Server
Procedure
- Terminate the PLANTA server service of the system you want to update.
- Start the update with the help of the automatic installer.
- The directory of the existing PLANTA server (39.4) may not be specified as target directory for the new server.
Stop
- Make sure that the database connection corresponds to the existing system. Currently, the installer does not check the database connection before starting the update, i.e., the installation fails automatically if an incorrect database connection is entered without pointing it out explicitly.
- You can find a number of SQL files that are carried out automatically during the installation in the folder of the respective database under /sql/migration/ in the installed server directory. These scripts must not be run manually (e.g. in SqlPlus)!
Notes
- The installer configures the server in migration mode.
- After the server installation, log files are to be checked for possible errors before continuing with step 3 (database preparation).
Step 3: Preparing the database
Procedure
- In the directory of the installed server there are three SQL files in the /sql/migration/ path in the directory for the respective database that must be run in the specified sequence in the database for the respective database user.
- For Oracle:
- 1_EarthToVenus.minimal.Q1B_Q2B.Oracle.diff.sql
- 2_EarthToVenus.history_objects.Oracle.diff.sql
- 3_EarthToVenus.MissingDTEntries.Oracle.sql
- For MSSQL:
- 1_EarthToVenus.minimal.Q1B&Q2B.MSSQL.diff.sql
- 2_EarthToVenus.history_objects.MSSQL.diff.sql
- 3_EarthToVenus.MissingDTEntries.MSSQL.sql
Step 4: Carrying out the migration
Procedure
- In order to start the PLANTA server service, please either run the
yajsw\bat\startService.bat
(Windows) or the yajsw\bat\startDaemon.sh
(Linux) file.
- Now, the server is started automatically and the migration packets delivered by PLANTA with Upon system start = are executed automatically. Which migration packets are run for the corresponding server version can be checked here.
- By opening
yajsw\bat\queryService.bat
or yajsw\bat\queryDaemon.sh
, you can enquire whether the migration run has finished. This is the case if the Running property is set to false.
- After the server has run all packets, the PLANTA server service is automatically terminated. Navigate to the /config/ directory subsequently. In the globals.conf file, the
migrate
parameter must be set from true
to false
. This way, the server is set from migration mode back to normal mode.
Step 5: Make the Individual Python Files Available
Information
Procedure
- Files that have been adjusted by a customizer in the existing system with Release 39.4, have to be moved to the /py/customer/ subdirectory now.
Step 6: Start Server Service
Procedure
- In order to start the PLANTA server service, please either run the
yajsw\bat\startService.bat
(Windows) or the yajsw\bat\startDaemon.sh
(Linux) file.
Step 7: Checking the Migration Results
Procedure
- After starting the server, the migration packet status (i.e. whether they have run correctly), must be checked in the Overview of the Migration Packets module.
- If a packet has not been run correctly, you must check the log file of the migration packet and take appropriate measures. For further information, click here.
- Additionally, packets that have not been run in step 2, i.e. migration packets with Upon system start = can be run in this module.
- If individual Python files have been created in the /py/customer/ directory, the
CreateDirectoryPacket
migration packet in the Overview of the Migration Packets module must be opened and the server service must be restarted before they are available.
Step 7: Necessary steps after migration
Information
- After migration, the following steps must be carried out.
Delete builtins from Python Code
- Due to the changes made to the PLANTA server, __builtins__ must not be used anymore since changes a user makes in a session immediately affect all sessions of other users!
- In order for global variables to be available in each Python session, it is necessary to replace all references to __builtins__ and other existing global Python constructs in the Python code (both external .py files and internal PLANTA modules) by ppms.get_session_dict(). This function provides a session specific dictionary in which global variables that only apply to this session can be saved.
- The use of own
__builtins__
has already been defined as obsolete from 39.4.3.0 (Hotfix 8) but is absolutely necessary now.
- The
FindBuiltinsUsagePacket
migration packet is used as __builtins__. All positions reported in the logfile must be corrected manually.
Note
- The
FixBuiltins
migration packet corrects the standard customizing. If changes have been made to the respective standard customizing, this packet will fail. Standard objects that have not been changed are run in the logfile of the migration packet.
Delete cmp(x, y) from Python Code
Information
- The
cmp(x, y)
function no longer exists from Python version 3.1. Since from S 39.5.0 Python v3.2.2 is used, this function must be deleted from the Python code.
- The
FindCmpUsagePacket
migration packet shows the use of the function. All positions reported in the logfile must be corrected manually.
Note
- The
FixCmpPacket
migration packet corrects the standard customizing. If changes have been made to the respective standard customizing, this packet fails as well. Standard objects that have not been changed are run in the logfile of the migration packet.
Copying files from the predecessor system
After updating, the following files must be copied from the predecessor system.
- SAP dlls
- Kerberos and stunnel configurations