Reset Database on Lab Remote Server Virtual Machines
Reset Database on Lab Remote Server Virtual Machines
Objectives
- Delete
existing data in a database on a lab VM (i.e. drop all objects in
application schema).
- Import
data from a database backup/export on a lab VM.
Prerequisites
- SSH
access to a lab remote server VM.
- SSH
access to "admin.portal.fullcount.net".
- Community
ID for the community that you would like to import data from.
Instructions
- Log
into the lab VM as the "root" user.
- Change
to the "/home/oracle" directory:
# cd /home/oracle
- Download
the database backup/export file from
"admin.portal.fullcount.net".
- Files
are in "/oracle/XE/remote_backups".
- File
names start with "backup_" followed by the community ID and a
timestamp (for example, "backup_380_20180216010602.dmp").
# scp -p
admin.portal.fullcount.net:/oracle/XE/remote_backups/backup_380_20180216010602.dmp
/home/oracle
- Check
out scripts for databases on lab VMs:
# svn checkout
http://sourcecontrol.fullcount.net/repos/database/trunk/processes/lab
- Change
to the directory where scripts are checked out:
# cd /home/oracle/lab
- Run
the "reset_lab_db.sh" script as the "root" user, with
the name of the backup/export file as the first argument:
# ./reset_lab_db.sh backup_380_20180216010602.dmp
- Test
against database and re-run "reset_lab_db.sh" as needed.
Related Articles
Remote Server Decommission Process
Remote Server Decommission Process The purpose of this document is to track the process for decommissioning a FullCount remote server as part of the transition for the client to be centrally hosted or if the client is leaving FullCount. The first ...
Run Remote Deployment Process - Java
Remote Server Configuration This has already been completed for all existing remote servers. Java 1.8 installed Tomcat located at /srv/tomcat XE database installed and running with fc_obj_owner user Directory /home/deployment exists Database backup ...
Scheduled Jobs on Remote Servers
Scheduled Jobs on Remote Servers The tables below contain descriptions and schedules for regularly scheduled jobs on remote (i.e. at a customer's site) FullCount servers. This article does not apply to central FullCount servers (i.e. fcadmin01, ...
Remote Deployment Process - Java
Deployment Process Determine if a valid argument has been passed in Only continue if downloadOnly, postDownload, fullDeployment, handleSuccess, checkHash, verifyApplications passed through. Lock file to stop deployment from running more than once ...
Print Server
Print Server Objectives Set print server settings so printing via non-FullCount terminals can routed through a different machine. Prerequisites Access to back office Instructions Overview The print server allows for non-FullCount terminals (typically ...