Professional Documents
Culture Documents
3300088356-01 08 Adm - 48
3300088356-01 08 Adm - 48
MANAGEMENT
0
AGS DATABASE MANAGEMENT
GOALS
• Understand the AGS database organization
• Be able to use the AGS tools for the database management
PUBLIC
• User in charge to manage, maintain and secure the AGS database
• Administrator
1
AGENDA
2
1.1 AGS Database Management purpose
3
1.2 Data and customer responsibility
ADM allows the customer to backup all the AGS data -the AGS
database and the raw data- on external media.
!
3300088356/R11/000/01, 05-2007 AGS 2006 Version 11 - AGS DATABASE MANAGEMENT
4
2. AGS data organization - ADM functions
AGS database and flight data are AGS database and flight data are
located on the workstation in located on the server in Multi
The AGS Database Mono user configuration users configuration
contains:
• The users and the fleet
AGS Database Raw data
• The programming of the
database versions (Flight data)
• The media and flight
identification, the events and
the snapshots memorized
during the automatic analysis
• All other information entered
by the user and saved by the
RESTORE IMPORT
AGS application.
BACKUP BACKUP
The raw data files contain
the recorded flight data. External media
5
3. How to prevent data loss on AGS data
Backup operation: Why, what, when, where and how ?
Why:
• To prevent any failure (hard disk problems…).
• To perform Physical De-identification.
What:
• The AGS database and the raw data.
When:
• Every day for a full database backup,
• Every day for the raw data (or as soon as the media go back on aircraft for
new recording).
• Depending of backup media size an incremental backup can be defined,
Where:
• On external media (DVD, network disk ...)
How:
• Manually or automatically using the AGS database management tool.
6
4. ADM tool presentation
7
4. ADM tool presentation
8
5. Declaration of Backup Media
How to
define where
the backup
Or
will go ?
9
5. Declaration of Backup Media
Configuration Multi
Select the maximum Automatic sharing (or not)
volume allowed by the of the defined path to give
media (DVD=4.1 Gab) access to the backup unit
to all wkst (flight in blue)
10
5. Declaration of Backup Media
11
5. Declaration of Backup Media
Tutorial – Network Disk
My Backup disk is :
- One Partition (T:) on network, One dedicated folder for AGS backup
- The reserved volume for backup is 500 GB,
- Recycling of folders, Virtual Path for the
- The backup folders are shared, Media Name virtual backup
Up to 100 units
lines
Note :
The current destination is
the green line.
12
6.1 AGS Database Backup
Database ?
Context
• The customer must perform regularly the AGS Database data backup on external media which will be stored in
a secure place..
The relational database backup is a compressed file which enables to increase the backup space capacity.
Goal
• Perform the Database backup and set the tool to allow automatic backup.
Function
• Backup function from the Database menu.
13
6.1 AGS Database Backup
If using Standalone media (DVD, Optical disk), you can optimize the relational database backup
process, by combining full and incremental backups.
• FULL • INCREMENTAL
- all the relational database - modifications since the last full backup
- longer - faster
- ADVICE on standalone media : - ADVICE on standalone media :
One full backup per week One incremental backup per day
b a cku p .d rw
14
6.1 AGS Database Backup
Tutorial – Backup
• My Backup is :
- Full only,
- The backup name is automatic,
- Scheduled every night at 10 p.m.,
- The backup report keeps the last
14 operations
Note :
The incremental
execution is never.
15
6.1 AGS Database Backup
Exercise –
• Perform immediate Full Backup
- Activate the save button to see the date/time of next backup
- Look at the process.
- Open the report
Report
16
6.2 Database restore
Argh, I lost my DB !
Help me to rebuild it, Or
Please !
Context
• After losing the AGS DB, administrator has to rebuild the DB with the more up to date data.
Goal
• Restore the AGS DB from the most recent backup, in order to lose the less data as possible.
Function
• The Database Restore allows to rebuild the AGS database thanks to the backup files build by ADM.
17
6.2 Database restore
Tutorial – Database restore
• I must restore my DB :
- Look for the last backup,
- It is in one of my media destination,
- Its name gives directly its generation
date,
- Activate the restore from the last
found backup only.
AGS MULTI
Before Restore,
Stop
the service of the DB Engine
On the server
Note :
If I use incremental
backup.
18
7.1 Raw Data Backup
One day, my disk has crashed!
How to backup my Raw Data ?
! Or
Context
• As the AGS DB, the customer must perform regularly the raw data backup on external media which will be
stored in a secure place..
Goal
• Perform the Raw data backup and set the tool to allow automatic backup.
Function
• Backup function from the Raw Data menu.
19
7.1 Raw Data Backup
Tutorial – Raw Data Backup
• My Backup is :
- Scheduled every midnight,
- the backup can not run more than
3 hours (avoid network traffic jam),
- Full file copy verification,
- The backup report keeps the last 7
operations
20
7.1 Raw Data Backup
21
7.1 Raw Data Backup
22
7.2 Raw Data Restore
The raw data restore is driven
I want to restore one raw data from the AGS (not ADM).
file from the backup media to With the Flight Import
the AGS context, How to do ?
Context
• After disk incident or to retrieve old deleted raw data file, user has to restore the saved file(s).
Goal
• Restore the raw data file from the regarding backup media.
Function
• Raw data restore is performed from the AGS not from ADM tool.
23
7.2 Raw Data Restore
Raw data restore procedure (1/2)
- From AGS flight list, locate the missing flight (identification in red),
Note the disk No is not empty, it means the flight has been backupped
Disk N° is present:
Î Raw data file N° 138310 has been
backup to media A01A
Restore is possible.
24
7.2 Raw Data Restore
Raw data restore procedure (2/2)
- Tag Raw data box of the Flight Import window,
- Replace the default G: drive name by the real
drive name, (AGS doesn’t know the real name),
- Select the option to get or not a new backup of
the selected flight.
- Insert the regarding backup media into the drive,
- Start to launch the Raw Data Import.
Disk No AGS
A01A flight Import
25
8. AGS performances Monitoring
26
8.1 The AGS database information
AFTER DATABASE
INFORMATION OPERATION:
Check the number of free pages to
know if REORGANIZATION is
necessary
27
8.2 The AGS database reorganize
My AGS and
my Statistics
are slow
Or
Context
• After many months of AGS exploitation, as any hard drive, the database becomes fragmented : data at the same
type are not stored in contiguous tables,
• Access to the data in database speeds down :
- Updates after automatic analysis,
- Display of AGS lists,
- Statistics are slow,
Goals
Treatment on DB to make the tables continuous in the DB.
Function
The Reorg copies all tables to a secure area and rebuilds the DB table after table.
28
8.2 The AGS database reorganize
Tutorial –
• I want to reorganize my DB :
- Scheduled every 2 months at 3 a.m.,
!
Caution :
DO NOT STOP THE
PROCESS
29
8.3 Raw data delete
Context
• After many months of AGS exploitation and depending the fleet size, the disk becomes full and it is impossible
to add new analysis,
• The local civil aviation or the company policy limits the life time of flight data,
Goals
• The oldest data must be remove,
Operation
The ‘raw data delete’ allows to limit the volume of raw data available online (accessible by AGS)
30
8.3 Raw data delete
To save space on the disk
31
8.4 The flight delete
My Database is full of flight, I want
to remove all media, flight, event, Or
snapshot older than 2 years.
I can’t see how to !
Context
• After many months of AGS exploitation and depending the fleet size, the database contents many identification of
media, flight, event and snapshot,
• These data are maybe not useful, not used by statistic,
• The performance become low
• The full identifications are stored in a historic database, used only for long term statistics,
• The airline/union policy requires that the DB content the last 6 months of analysis results only.
Goals
• Deleting in DB all identifications older than a life period
Function
The flight delete erase completely and definitively data in lists : media, flight, event and snapshot.
32
8.4 The flight delete
Tutorial –
• The airline policy is :
- Keep only identification older than When
identification is
5 years, older than 5 years
- Scheduled every 3 months at 5
a.m.,
- The report keeps the operations of
the last 18 months.
Caution :
Caution :
This function erase completely
! the identifications in DB
(media, full, event, snapshot).
33
9.1 Administration - System configuration report
I’m looking for
the ADM Or
configuration
34
9.1 Administration - Change Access Password of ADM
35
10. Annex - Summary of ADM and backup Strategies
Evaluation of AGS data volume on disk
Use the following arrays to estimate hard disk size for AGS exploitation and its
backup according number of A/C.
• Raw data.
Based on 3000 hours per year per AC and a Recording rate :128 wps.
Aircraft Nr Size of stored raw data in Gbytes (compressed data)
1 week 1 month 3 months 6 months 12 months18 months60 months
• Database.
Aircraft Nr Size of relational database in Gbytes
1 week 1 month 3 months 6 months 12 months18 months60 months
36
10. Annex - Summary of ADM and backup Strategies
AGS Mono
• ADM installed and used -y:\backup
-NAS
-Optical media
Manually
Scheduled optional
WKST IT
x:\...\FLTDATA\*.*
ADM
Manually
Scheduled
-y:\backup\...
-NAS
-Optical media
37
10. Annex - Summary of ADM and backup Strategies
AGS Multi
• ADM Installed on SERVER and used -y:\backup
-NAS
-Optical media
SERVER IT
x:\...\FLTDATA\*.*
ADM
Manually
Scheduled
-y:\backup\...
-NAS
-Optical media
38
10. Annex - Summary of ADM and backup Strategies
AGS Multi
• ADM Installed on WKST and used -y:\backup
-NAS
-Optical media
x:\...\FLTDATA\*.*
WKST
ADM
-y:\backup\...
Manually -NAS
Scheduled
-Optical media
Caution
Data Restore The wkst must be on in schedul
Note
mode (night running)
DB restore : By ADM If backup destination is a
network disk, the administrator
Raw Data restore : by AGS Import will create several folders of
destination.
Associated functions
Physical de-identification (if set) runs before the Backup
39
10. Annex - Summary of ADM and backup Strategies
AGS Mono or AGS Multi
• No ADM Using, backup managed by IT only
Caution.
Reorg not performed (low performance) :
Physical De-Identification not performed (low confidentiality)
x:\APPS\AGSDB\RDB\AGS.DB
x:\APPS\AGSDB\RDB\AGS.LOG IT
Caution Multi
the DB is locked by DB Engine,
Mono/Multi ! file copy can be impossible.
IT must check backup log.
Any destination type
x:\...\FLTDATA\*.*
IT
Any destination type
Data Restore
DB restore : By ADM
Raw Data restore : by AGS Import
40
11. Annex - Summary of REORG Process
REORG AGS Mono
• ADM only
WKST
Before After
ADM
c:\...\RDB\RDB\AGS.DB
REORG c:\...\RDB\RDB\AGS.DB
Manually
Scheduled
Do not Forget :
DB Backup before
41
11. Annex - Summary of REORG Process
REORG AGS Multi
• ADM installed on SERVER
SERVER
ADM
REORG
Process
Manually Scheduled
BEFORE AFTER
1. Automatic Stop of Windows
Service of DB Engine
2 Reorg of DB
x:\Apps\...\RDB\RDB\AGS.DB
3. Automatic Start of Windows x:\Apps\...\RDB\RDB\AGS.DB
Service of DB Engine
Do not Forget :
DB Backup before
42
11. Annex - Summary of REORG Process
REORG AGS Multi
• ADM installed on WKST
Process
SERVER
1.Manual Stop of Windows
Service of DB Engine
BEFORE AFTER
SERVER WKST SERVER
ADM
x:\Apps\...\RDB\RDB\AGS.DB 2. Manual DB REORG x:\Apps\...\RDB\RDB\AGS.DB
SERVER
3.Manual Start of Windows
Service of DB Engine
Do not Forget :
DB Backup before
43
12. Annex - Management of the Service of DB Engine
Context
• In Multi user configuration, the link between AGS software and the database is perform thanks to a specific
interface, because the AGS software runs on workstation and the database is located on server.
• The Database Engine manages the dialog between the AGS software and the database file.
• In order to execute the DB Engine when the server runs but also when there is no user logon on the server, the
engine runs as a service.
• Services are specific software managed by windows as system application, they are launched automatically at
windows starting.
Goals
• For specific maintenance purpose for AGS, it is necessary to stop the service of the DB Engine.
Operation
Navigation in the Windows Administration Tools.
3300088356/R11/000/01, 05-2007 AGS 2006 Version 11 - AGS DATABASE MANAGEMENT
44
12. Annex - Management of the Service of DB Engine
Tutorial –
• Stopping the service of the AGS DB engine :
- On server,
- Start Menu,
- In right side of the start menu, action on Administrative tools,
- Look for and activate : Services,
- In the Services window,
- Look for the service name : Adaptive Server Anywhere - AGSMultiservice
- In the left column (or right click) activate the command : Stop.
Tutorial –
• Starting the service of the AGS DB engine :
- From the Services window (see above for access),
- Look for the service name : Adaptive Server Anywhere - AGSMultiservice
- In the left column (or right click) activate the command : Start
45
13. Annex - Miscellaneous
•Transfer Database from Pc to Pc
!
Caution
EXPORT Erase the previous DB
IMPORT
46
13. Annex - Miscellaneous
Transfer Database from Pc to Pc
Before Restore
Stop Multi user
the service of the DB Engine mode only
47
13. Annex - Miscellaneous
The raw data backup process
1) Before Backup
Server raw data filename: x:\FLTDATA\Ty5\Uy6\RDy1y2y3y4y5y6.SAx or .SLx
2) Backup operation
a) Copy RDxxxxxx.SAx and RDxxxxxx.SLx to backup media
b) Rename to RDxxxxxx.DAx all the backuped files in the server
3) After Backup
Server raw data filename: x:\FLTDATA\Ty5\Uy6\RDy1y2y3y4y5y6.DAx
Disk No
AGS Flight list A01A
KU P
BAC
48