Moving to a Different Patch Release Using ttBackup and ttRestore
You can run the ttBackup
and ttRestore
utilities to move to a new patch release, although this is not the preferred method. For the preferred method, see About Moving to a Different Patch Release by Modifying the Instance.
Note:
TimesTen replication with Oracle Clusterware is not supported on Oracle Linux for Arm systems. If you are using Oracle Linux for Arm, Oracle Clusterware messages do not appear in any output in this example.Perform these steps for each database.
On the old release:
- Use the
ttAdmin
utility to close thedatabase1
database. This prevents further user connections.% ttAdmin -close database1 RAM Residence Policy : manual Manually Loaded In RAM : True Replication Agent Policy : manual Replication Manually Started : False Cache Agent Policy : manual Cache Agent Manually Started : False Database State : Closed
- Disconnect all applications from the database. Run the
ttStatus
utility to verify there are no connections to the database (database1
, in this example).% ttStatus TimesTen status report as of Sat Oct 2 04:37:10 2021 Daemon pid 4649 port 6624 instance myinstance TimesTen server pid 4656 started on port 6625 ------------------------------------------------------------------------ ------------------------------------------------------------------------ Data store /scratch/ttuser/database1 Daemon pid 4649 port 6624 instance myinstance TimesTen server pid 4656 started on port 6625 There are no connections to the data store Closed to user connections RAM residence policy: manual Data store is manually loaded into RAM Replication policy : Manual Cache Agent policy : Manual PL/SQL enabled. ------------------------------------------------------------------------ Accessible by group g900 End of report
-
Run the
ttVersion
utility to verify the current release (22.1.1.25.0
, in this example).% ttVersion TimesTen Release 22.1.1.1.0 (64 bit Linux/x86_64) (myinstance:6624) 2021-09-16T07:41:05Z Instance admin: instanceadmin Instance home directory: /scratch/ttuser/myinstance20/myinstance Group owner: g900 Daemon home directory: /scratch/ttuser/myinstance/myinstance/info PL/SQL enabled.
-
Backup the database. In this example, backup the
database1
database for release22.1.1.25.0
.% ttBackup -dir /tmp/dump/backup -fname database1_2211 database1 Backup started ... Backup complete
-
Unload the database from memory. This example assumes a RAM policy of manual. See Specifying a RAM Policy in the Oracle TimesTen In-Memory Database Operations Guide for information on the RAM policy.
% ttAdmin -ramUnload database1 RAM Residence Policy : manual Manually Loaded In RAM : False Replication Agent Policy : manual Replication Manually Started : False Cache Agent Policy : manual Cache Agent Manually Started : False Database State : Closed
-
Stop the TimesTen main daemon.
% ttDaemonAdmin -stop TimesTen Daemon (PID: 4649, port: 6624) stopped.
For the new release:
Once your databases are correctly configured and fully operational, you can optionally remove the backup file (in this example, /tmp/dump/backup/database1_2211
).