Exporting and importing Oracle or PostgreSQL database in LFT 2.0 and 3.x
How to Export and Import the Oracle or PostgreSQL Database in LFT 2.0 and 3.x
Overview
This article details how to
export
and import
the Oracle
database (DB) or PostgreSQL
DB in the Lexmark Fleet Tracker (LFT
) versions 2.0
and 3.x
.Exporting the database
Follow the instructions specified per version below. See How to Locate Version Information of Various Lexmark Fleet Manager Collectors to view steps to identify LFT versions.
LFT version 2.0
Open the command prompt, then type C:\user\>
exp system/manager366 file=dbackup.dump full=yes
LFT version 3.x (Oracle DB)
You will have to back up
two
Oracle users; i.e., Transactional
and Historical
DBs. These Oracle users were created upon install using createORA.sql
commands. You may
export
these using a SQL developer tool
(e.g., DBeaver) or by performing the following steps:Transactional dB users
- First, stop the LFT service before performing the export procedure. For... | Type... | Where... |
Transactional DB | C:\user\>exp ID/ PW file=ID.dmp |
|
Historical DB | C:\user\>exp IDdwh / PW file=IDdwh.dmp |
|
LFT version 3.x (PostgreSQL DB)
- Log in as theAdministratorto theLFT 3.x Host Server.
- Go toStart, typeServices, open theServiceswindow, and thenStopthe Lexmark Fleet Tracker service.Note:Donotstop any other Fleet Tracker services.
- Note:This will open up the DBAdministration pane.
- Click on the Plug icon toAdd a Connection to Server.
- Note:Theusernameandpasswordshould be the administrative log in credentials of the PostgreSQL DB as established during the LFT 3.x installation.
- On the server connection menu, expand theServersfolder to display theDatabases, right-click on thelfmdatabase, and then click Backup.
- Name the backup file, set Format toTar, set Rolename toSYSTEM, and then clickBackup. Click here to view image.Note:
- RepeatSteps 6and7for thelfmdwhdatabase.
- Go toStart, typeServices, open theServiceswindow, and thenStarttheLexmark Fleet Trackerservice.Note:Thedefault installation pathfor the PostgreSQL DB backup files is the C:\Program Files\Lexmark\Fleet Tracker folder. Otherwise, the files will be created in the directory you specified during installation.
Important!
Lexmark highly recommends
copying
or moving
these backup files
to another location to protect against possible failure of the LFT 3.x Host Server.Importing the database
In the event that an import is necessary, follow the instructions specified per version below.
The images may not always appear the same for all.
LFT version | Action |
LFT version 2.0 |
|
LFT version 3.x (Oracle DB) |
|
LFT version 3.x (PostgreSQL DB) | In case of failure, you may restore the LFT 3.x database to the latest available backup files for the “ lfm ” and “lfmdwh ” databases, given that the LFT 3.x tool being restored is the same version as the LFT 3.x backup file.Perform the following steps once the LFT 3.x tool has been installed and the proper license file has been applied:
|
LEGACY ID:
HO3950