Timesten Backup Recovery and timesten backup

Source: Internet
Author: User

Timesten Backup Recovery and timesten backup


TtIsql "DSN = ttwind; UID = cacheuser; PWD = cacheuser; OraclePWD = cacheuser ;"

-- 1. view the current version

Command> version
TimesTen Release 11.2.2.7.0


Command> cachegroups;

Cache Group CACHEUSER. CACHETBLORDERS:

Cache Group Type: Read Only
Autorefresh: Yes
Autorefresh Mode: Incremental
Autorefresh State: On
Autorefresh Interval: 10 Seconds
Autorefresh Status: OK
Aging: No aging defined

Root Table: SCOTT. TBLORDERS
Table Type: Read Only

 

Command> select count (*) from scott. tblorders;
& Lt; 111001 & gt;

 


-- 2. Disconnect all connections to TT

 


-- 3. Back up the database

Mkdir/backup


TtBackup-type fileFull-dir/backup-fname ttwindbk-force-connstr "DSN = ttwind"

 


-- 4. Delete cachegroup

TtIsql "DSN = ttwind; UID = cacheuser; PWD = cacheuser; OraclePWD = cacheuser ;"

Call ttcachestop;


DROP Cache Group cachetblorders;

Exit;


-- 5. Detach memory

TtDaemonAdmin-stop

Ttadmin-ramunload ttwind -- either


-- 6. Destroy the database

TtDestroy ttwind;

 

-- 7. delete original data

Rm-rf/app/timesten/TimesTen/ttwind/info/datastore/ttwind. ds *

Rm-rf/app/timesten/TimesTen/ttwind/info/datastore/ttwind. log *

Rm-rf/app/timesten/TimesTen/ttwind/info/datastore/ttwind. res **


-- 8. Restore data

TtDaemonAdmin-start

TtRestore-dir/backup-fname ttwindbk-noconn-connstr "DSN = ttwind"

/****** Common Errors
Error 12133: TT12133: Data store file already exists -- file "restore. c", lineno 1006, procedure "doRestore"

Error 12134: TT12134: Log file (s) already exist -- file "restore. c", lineno 1040, procedure "doRestore"

 

Solution:
Rm-rf/app/timesten/TimesTen/ttwind/info/datastore/ttwind. ds *

Rm-rf/app/timesten/TimesTen/ttwind/info/datastore/ttwind. log *

Rm-rf/app/timesten/TimesTen/ttwind/info/datastore/ttwind. res **

*********/

 

TtIsql "DSN = ttwind; UID = cacheuser; PWD = cacheuser; OraclePWD = cacheuser ;"

Call ttCacheStart;


--- 9. Verify the recovery result


Command> cachegroups;

Cache Group CACHEUSER. CACHETBLORDERS:

Cache Group Type: Read Only
Autorefresh: Yes
Autorefresh Mode: Incremental
Autorefresh State: On
Autorefresh Interval: 10 Seconds
Autorefresh Status: C
Aging: No aging defined

Root Table: SCOTT. TBLORDERS
Table Type: Read Only

1 cache group found.
Command> select count (*) from scott. tblorders;
& Lt; 111001 & gt;
1 row found.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.