8 Working With SnapShot on the Standalone Client

Note:

Tools Release 9.1 Update 2. This entire chapter is revised to support a significantly enhanced version of SnapShot that is available with Tools Release 9.1 Update 2 and higher.

This section discusses these topics:

8.1 Understanding SnapShot

The SnapShot program manages multiple instances of the JD Edwards EnterpriseOne Development or Standalone Client on a single machine. Using this program you can save and restore copies of an installed Development or Standalone Client.

Below is an example of SnapShot managing multiple tools releases including B7333 (DV7333) and two installations of E910 (E910_DV and E910_PD).

This image is described in surrounding text.

The preceding image shows the JD Edwards main SnapShot window. The main features of this window, from top to bottom, include:

  • Close (icon)

    The Close icon is located in the upper right hand corner. Click this icon to exit SnapShot.exe.

  • System (icon)

    The System icon is located in the upper left hand corner. Click on this icon or right-click on the title bar to display a drop-down menu that contains "About EnterpriseOne SnapShot…." Selecting this item displays version and build information about SnapShot as shown below:

    Surrounding text describes about_snapshot.gif.
  • Existing Version

    The Existing Version area contains these fields and buttons:

    • Version

      The Version field lists the existing installed Standalone Client. Initially, this is the release specified in the installed package. After you save and then restore a SnapShot, this field will be the name that you gave the SnapShot when you saved it.

    • Location

      The Location field shows the JD Edwards EnterpriseOne installation directory.

    • Save

      Use the Save button to save the installed JD Edwards EnterpriseOne to a SnapShot.

    • Rename

      Use the Rename Environment button to rename the path code and environment names of the installed JD Edwards EnterpriseOne.

  • Saved Versions

    The Saved Versions area contains a field that lists saved versions (also called SnapShots). The example in this image shows the following versions: DV7333 and E910_PD.

  • Restore

    Use the Restore button to restore a saved version (SnapShot) to a runnable JD Edwards EnterpriseOne installation.

  • Delete

    Use the Delete button to remove a saved version (SnapShot).

  • Log File

    The Log File area displays the log file path and name.

  • Close

    Use the Close button to exit SnapShot.exe.

8.2 Prerequisites

Before saving or restoring a JD Edwards EnterpriseOne installation using SnapShot, be sure that:

  • You are signed into Microsoft Windows using an account with sufficient privileges (for example: read, write, execute) to the registry and to the JD Edwards EnterpriseOne installation and saved directories.

  • All JD Edwards EnterpriseOne programs are closed.

  • No applications (for example, Windows Explorer) have a file or subfolder open in either the installation or the saved directory or one of their subdirectories.

  • The SnapShot.exe that you are running is not in either the installation or the saved directory or one of their subdirectories.

  • The database(s) that both the JD Edwards EnterpriseOne installation and the saved SnapShot use is installed and running.

  • Ensure that the Oracle product JDeveloper is not running.

Additional considerations:

  • Before installing a new Standalone Client into a new Oracle Home, make sure you do not have any previous versions in the Existing Version field of SnapShot. All versions must be saved and should appear in the Saved Versions field.

8.3 Using Snapshot on the Standalone Client

To use SnapShot with multiple releases of the JD Edwards EnterpriseOne applications, you must use the most current version of SnapShot when switching between different releases of JD Edwards EnterpriseOne. For example, if you install the foundation code for both JD Edwards EnterpriseOne Applications Release 9.1 and Applications Release 8.12, you must use the version of SnapShot corresponding to the most current JD Edwards EnterpriseOne tools release, in this case, Tools Release 9.1.

This section describes these tasks:

8.3.1 Starting SnapShot

Caution:

Be sure to follow the guidelines in the preceding sections of this guide entitled: Section 2.2, "Windows Security".

As noted in this section, with the Tool Release 9.1 Update 2 and later versionof SnapShot, you do not have to right click on the SnapShot.exe icon and select "Run as administrator." This is because these versions of SnapShot.exe are designed to automatically attempt to start with the elevated permissions. If you are not signed into Windows with an administrative account, you will be prompted to enter the credentials for an administrative account.

The SnapShot utility is delivered with the installation of the JD Edwards EnterpriseOne Development or Standalone Client. It is located in this directory:

<dev_client_installation_directory>\System\Bin32

To run the most current version of SnapShot for multiple releases, you must copy the SnapShot.exe program to a directory outside the Development or Standalone Client installation directory. For example, the installation directory might be c:\E910. If you attempt to run SnapShot from within the Development or Standalone Client installation directory (for example, c:\E910), Snapshot will fail to rename the installation directory.

Tip:

You can create a shortcut to SnapShot.exe, but you still must copy SnapShot.exe to a location outside the original installation directory where it was delivered.

8.3.2 Saving a SnapShot

To save a SnapShot:

This image is described in surrounding text.
  1. On the main SnapShot window, click the Save button.

    Surrounding text describes make_new_snapshot.gif.
  2. On Make a New SnapShot, complete this field:

    • SnapShot Name

      Enter a name for the SnapShot that will be saved. You may choose any name with the exceptions that the name cannot be empty and it cannot contain a backslash ( '\' ). A recommended scheme is to make it release specific, for example, Xe, B9, or E910.

    • New Folder Name

      Provide a directory in which the snapshot will be saved. The directory should start with a backslash and be a valid Windows directory name. It will be created on the indicated drive.

  3. Click the OK button.

    SnapShot saves a snapshot of the Standalone Client.

8.3.3 Restoring a SnapShot

To restore a SnapShot:

This image is described in surrounding text.
  1. On the main SnapShot window and in the Saved Versions section, highlight the saved instance that you want to restore.

  2. Click the Restore button.

    SnapShot restores the selected instance of JD Edwards EnterpriseOne and makes it active.

8.3.4 Deleting a SnapShot

To delete a SnapShot:

This image is described in surrounding text.
  1. On the main SnapShot window and in the Saved Versions section, highlight the instance that you want to delete.

  2. Click the Delete button.

    SnapShot completely removes the saved instance from the JD Edwards EnterpriseOne Standalone Client.

8.4 Renaming an Environment

You can use SnapShot to rename the installed JD Edwards EnterpriseOne environment and path code. An example of a use case for this functionality is when a JD Edwards EnterpriseOne administrator needs to promote one path code/environment combination to another.

Note:

When you use SnapShot the program does not update the database tables with the new path code and environment names. Instead, it simply updates the path code directory name and occurrences of the path code and environment in various files (for example, jde.ini, jdbj.ini, jas.ini, and pathcode.inf). If the new path code or environment does not exist in the JD Edwards EnterpriseOne system tables, you will need to update those tables yourself either through JD Edwards EnterpriseOne or by using a database editing tool such as Oracle SQLPlus.

To rename an environment in SnapShot:

This image is described in surrounding text.
  1. On the main SnapShot window, ensure that an existing version of JD Edwards EnterpriseOne is active.

  2. Click the Rename Environment button.

    Surrounding text describes rename_environment.gif.
  3. On Rename Environment, use the Select an installed path code to change drop-down to select the path code that you want to rename.

    Note:

    The Old Values section on the left side of the window displays old path code and environment names.
  4. In the New Values section of the window, enter the new names for the environment you want to rename.

  5. Click the OK button.

    Note:

    The section of the screen entitled Select a view to change to is only available to JD Edwards EnterpriseOne internal application developers.

8.5 Manually Backing Up Files and Settings

Once you have saved a SnapShot for the Development or Standalone Client, it is a good idea to manually backup the saved directory to ensure that your settings for that Development or Standalone Client are secure.

The files and subdirectories that need to be backed up are found in the folder of each saved snapshot. You should backup these files and subdirectories only while the SnapShot.exe program is not running. These files contain the information necessary to restore registry values and settings for each SnapShot.

8.6 Set Logging for SnapShot Using the Registry

The version of SnapShot that is shipped with Tools Release 9.1 Update 2 and later always outputs the maximum amount of logging information. Furthermore, by design there is no way to turn off logging. You can specify the name and location of the log file that is generated by adjusting a single registry setting.

Caution:

Changes made to the Microsoft Windows registry happen immediately, and no backup is automatically made. Do not edit the Windows registry unless you are confident about doing so.

Microsoft has issued the following warning with respect to the Registry Editor:

"Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to re-install 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."

By default, the SnapShot log is located in the temp directory of the Microsoft Windows user. This is the directory pointed to by the TEMP environment variable. You can determine the value of this TEMP variable in a number of ways including:

  1. Control Panel > System

  2. In a command prompt window, enter this command:

    echo %TEMP%

  3. In the Address Bar of Windows Explorer, enter this string:

    %TEMP%

The default log file name is SnapShot_<date-time>.log.

Both the directory and name of the SnapShot log can be specified by editing the registry; however, the date-time stamp will always be inserted immediately before the period.

To change the log file directory and/or name:

  1. Open the registry by clicking on Windows Start button and entering regedit in the search field.

  2. Navigate to this node:

    \HKEY_LOCAL_MACHINE\Software\Wow6432Node\JDEdwards\Snapshot

    The first time that you run SnapShot, it creates a value (shown on the right-hand pane in regedit) called LogFileName with the default value SnapShot.log. You can change this value or, if it does not exist yet, you can add the value with name LogFileName, type string value, and the directory and/or file name of your choice.

  3. The rules listed below are used for determining the final log file directory and name based on the value of LogFileName:

    • In all cases, the date and time that SnapShot.exe is run will be inserted immediately before the period in the extension of the file name.

    • If the value of LogFileName does not contain any backslashes, the name represents only the file name. The value of the Windows TEMP variable will be used as the directory.

    • If the value of LogFileName contains backslashes but does not start with a drive letter or a backslash, everything up to the last backslash represents a subdirectory or hierarchy of subdirectories below the directory designated by the Windows TEMP variable. Everything after the last backslash is the file name.

    • If the value of LogFileName starts with a backslash, it represents a subdirectory below the root directory of the drive (that is, directory "\"). The drive letter is derived from the drive specified in the Windows TEMP variable.

    • If the value of LogFileName starts with a letter followed by a colon and backslash, the letter is considered the drive letter where the log will reside. Any other applicable rule in the preceding rules above then apply.

    The following are examples of values of the LogFileName registry entry and the resulting log file path and name. In these examples, the assumed value of the TEMP variable is C:\Users\John\AppData\Local\Temp and assumes the log was created on June 5, 2012, at 3:46:9 PM.

    Value for LogFileName Resulting Log File
    SnapShot.log C:\Users\John\AppData\Local\Temp\SnapShot_2012-6-5_15-46-9.log
    MyFile.txt C:\Users\John\AppData\Local\Temp\MyFile_2012-6-5_15-46-9.txt
    MyTempDir\MyFile.txt C:\Users\John\AppData\Local\Temp\MyTempDir\MyFile_2012-6-5_15-46-9.txt
    MyTempDir\MyFile.txt C:\MyTempDir\MyFile_2012-6-5_15-46-9.txt
    D:\MyTempDir\MyFile.txt D:\MyTempDir\MyFile_2012-6-5_15-46-9.txt

  4. Save the changes and exit the registry.

8.7 Troubleshooting

If SnapShot encounters a problem when trying to perform an action, it is designed to attempt to rollback the actions performed up to the point of failure. This means that during a save operation, SnapShot attempts to restore the JD Edwards EnterpriseOne instance back to a runnable state. If a failure occurs during a restore action, SnapShot attempts to resave the JD Edwards EnterpriseOne snapshot so you can correct the problem and then retry the action.

Caution:

If a second error occurs when SnapShot is attempting to rollback changes, the error will likely result in either a non-runnable instance of JD Edwards EnterpriseOne or a saved snapshot that is corrupt. In either case, you will probably need to reinstall JD Edwards EnterpriseOne.

This section describes these topics:

8.7.1 Examining the Log File

This image is described in surrounding text.

When an error is encountered in SnapShot, the first thing that you should do is to carefully examine any on screen error messages for an indication of what went wrong and why. If you are not able to determine the cause and possible resolution of an error by examining the error message on the screen, examine the log file. As shown in the preceding screen example, the location and name of the log file is specified in the Log File section near the bottom of the main SnapShot window.

This image is described in surrounding text.

Above is an example of a SnapShot log file. When troubleshooting within the SnapShot log file, you should scan the Type column for a status of ERR, which indicates an error. If the error message itself is insufficient to isolate the cause of the problem, examine the messages immediately before and after the error for hints as to the root cause.

8.7.2 Error Handling

This section discusses these topics:

8.7.2.1 Locked Resources Prevent Directory Renaming

Surrounding text describes error_open_resources.gif.

If an error occurs during a directory rename operation (for example, when saving or restoring a snapshot), the preceding window may appear.

The reason for the failure is displayed at the top of the window followed by some suggested remedies. In a box immediately below that are some recommendations to resolve the error. Another box lists processes running on the workstation that have one or more resources (for example, files, directories, handles, and so on) locked that prevented the directory rename action from succeeding-resulting in the Access is denied error. Click on a process in the list to get a list of open resources for that particular process.

Surrounding text describes error_open_resources2.gif.

When you highlight a Process, the list of resources in the Resources that are open for the selected process section at the bottom of the window shows the type as File for both files and directories.

It is important that you follow these steps to resolve the file or directory locking problem:

  1. Attempt to gracefully close the programs that have a resource open. That is, close the program in the normal manner such as selecting File > Exit from the program's main menu. You can attempt to close just the resource, but many programs continue to hold a lock on a resource (such as a file) even after closing that resource. Freeing the resource may require closing the actual program. For example, you may have to close Microsoft Word instead of simply closing the file from within Microsoft Word.

  2. If the program does not terminate, you may have to resort to forcefully terminating it using Microsoft Task Manager.

  3. The SnapShot.exe program may appear in the list of active programs either by itself or along with other processes that are locking resources. First, be sure that you are not running SnapShot.exe from within either the installation or the save directory or one of their subdirectories.

  4. If the SnapShot.exe program is listed with other programs, try to close those other programs and then click Retry.

  5. If the SnapShot.exe is the lone program listed, simply click Retry. Many times, the rename action will continue after the second Retry.

  6. Not all 64-bit programs are automatically shown in the list of locking processes. You may need to examine all the running programs on your system to determine which one may be preventing the rename action from succeeding.

  7. If you cannot close the program(s) that holds the lock(s) on the necessary resource(s) or determine which program(s) holds a lock, click Cancel, exit from SnapShot, reboot the machine, run SnapShot and try the action again.

8.7.2.2 Other Causes of Directory Renaming Failure

Besides locked resources described in the preceding section, there are other reasons that can cause a directory rename operation to fail.

Surrounding text describes cannot_rename.gif.

The preceding window may appear during a directory rename operation (that is, when saving or restoring a snapshot). In this case, either SnapShot could not determine which processes hold locks on resources in the installation or save directories or some other reason caused the directory rename to fail. For example, perhaps the user did not have read or write permissions on one of the affected directories or subdirectories.

8.7.3 Remedial Actions

In some cases, SnapShot may not be able to recover from errors that occur during a save or restore action. You may be able to salvage either the JD Edwards EnterpriseOne installation or the saved instance. If these operations fail, you will need to reinstall JD Edwards EnterpriseOne.

This section describes these topics:

8.7.3.1 Examples of Healthy Environments

This section illustrates a healthy JD Edwards EnterpriseOne installation and saved snapshot directories and registry settings.

Surrounding text describes healthy_snap_dir.gif.

The preceding shows the installation directory of a healthy JD Edwards EnterpriseOne instance.

Surrounding text describes saved_snapshot_example.gif.

In the preceding example screen, note that when you save a snapshot of the JD Edwards EnterpriseOne installation, the highlighted files and subdirectory shown above are created. Here are brief descriptions of the new files and subdirectory.

  • STARTMENU*.*

    The subdirectory that is prefixed with STARTMENU is the folder in the Start menu for the original installation.

  • DESKTOP*.*

    The file that starts with DESKTOP is the shortcut to JD Edwards EnterpriseOne that was on the desktop of the workstation.

  • jde.ini

    The jde.ini file is the same file that was in the c:\Windows directory.

  • RegKeys*.*

    The files that are prefixed with RegKeys are binary files that contain the saved registry entries.

Surrounding text describes healthy_dep_svr.gif.

The preceding image shows the registry entries for a healthy JD Edwards EnterpriseOne Standalone Client installation.

Surrounding text describes healthy_reg_settings_wd.gif.

The preceding image shows the registry keys for a saved JD Edwards EnterpriseOne snapshot.

8.7.3.2 Simple Fixes

Not all issues can be resolved by simple steps. However this section describes a few simple fixes for these conditions:

8.7.3.2.1 Missing Version Information
This image is described in surrounding text.

If the Existing Version fields are empty when you run SnapShot.exe and you are certain that a JD Edwards EnterpriseOne instance is active, it is likely that this file is missing:

c:\Windows\jde.ini

If you happened to save a copy of the jde.ini file when you last saved a snapshot of this installation, you can copy that jde.ini file into the c:\Windows directory and rerun SnapShot.exe.

8.7.3.2.2 Missing Saved Version
This image is described in surrounding text.

If a saved snapshot is not listed in the Saved Versions field and you know that the saved snapshot exists, some registry entries are probably missing or pointing to the wrong directory.

To resolve this issue, perform these steps:

  1. Edit the registry with regedit.exe.

  2. Create a subkey under this path:

    \HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JDEdwards\SnapShot

    The name that you give for the subkey should be the name of the saved snapshot.

  3. Click on the subkey that you just created.

  4. Create a string value called SaveDir.

  5. Set the value data for this to the directory where the saved snapshot is stored.

  6. Create a second string value called InstallDir.

  7. Set the value data for this to the installation directory (that is, the directory in which the saved snapshot will be restored).

The following image illustrates properly configured registry entries.

Surrounding text describes proper_reg_settings.gif.