このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


虫垂 B. HyperSQL Database とじ込み/提出するs and 回復

HyperSQL Database とじ込み/提出するs and 回復

$Revision: 6692 $

2024-10-25

(米)棚上げする/(英)提議する of Contents

Database とじ込み/提出するs
明言する/公表するs
手続きs
Clean Shutdown
Startup
回復する

Database とじ込み/提出するs

Database catalogs opened with the とじ込み/提出する: 議定書 are 蓄える/店d as a 始める,決める of とじ込み/提出するs. This 文書 述べるs the contents of these とじ込み/提出するs and how they are 蓄える/店d.

A database 指名するd '実験(する)' is used in this description. The database とじ込み/提出するs will be as follows.

Database とじ込み/提出するs

実験(する).所有物/資産/財産s

含む/封じ込めるs the 入ること/参加(者) '修正するd'. If the 入ること/参加(者) '修正するd' is 始める,決める to 'yes' then the database is either running or was not の近くにd 正確に. When the database is 適切に shutdown, '修正するd' is 始める,決める to 'no'. You can 追加する the optional 入ること/参加(者) readonly=true to make the database とじ込み/提出するs read only.

実験(する).script

This とじ込み/提出する 含む/封じ込めるs the SQL 声明s that makes up the database up to the last 検問所. All the data for MEMORY (米)棚上げする/(英)提議するs is also 蓄える/店d in this とじ込み/提出する.

実験(する).data

This とじ込み/提出する 含む/封じ込めるs the binary data 記録,記録的な/記録するs for CACHED (米)棚上げする/(英)提議するs only.

実験(する).backup

This とじ込み/提出する 含む/封じ込めるs a backup of the parts of the 実験(する).data that have been 修正するd since the last 検問所. The とじ込み/提出する is 削除するd at each 検問所 or shutdown. The size of this とじ込み/提出する can be as large as the 実験(する).data とじ込み/提出する.

実験(する).スピードを出す/記録につける

This とじ込み/提出する 含む/封じ込めるs the extra SQL 声明s that have 修正するd the database since the last 検問所. It is used as a redo スピードを出す/記録につける.

実験(する).高く弓形に打ち返すs

This とじ込み/提出する 含む/封じ込めるs the 高く弓形に打ち返すs. If a database has no BLOB or CLOB 反対する, this とじ込み/提出する will not be 現在の. This とじ込み/提出する 含む/封じ込めるs all the 高く弓形に打ち返すs that are 現在/一般に in the database, 同様に as those that belong to 列/漕ぐ/騒動s that have been 削除するd since the last 検問所. The space for 削除するd 高く弓形に打ち返すs is always 再使用するd after a CHECKPOINT.

A CHECKPOINT is an 操作/手術s that saves all the changed data and 除去するs the 実験(する).スピードを出す/記録につける followed by the 創造 of an empty スピードを出す/記録につける. It also 削除するs the 実験(する).backup とじ込み/提出する. A SHUTDOWN is 同等(の) to a CHECKPOINT followed by の近くにing the database.

The disk space needed for the database depends on the 量 of data. After the database is opened more space, up to わずかに greater than the size of the 実験(する).script and 実験(する).data とじ込み/提出するs is needed during 操作/手術.

明言する/公表するs

Database is の近くにd 正確に

明言する/公表する after running the SHUTDOWN 声明

  • The 実験(する).data とじ込み/提出する is fully updated.

  • There is no 実験(する).backup とじ込み/提出する.

  • The 実験(する).script 含む/封じ込めるs all the metadata and CREATE TABLE and other DDL 声明s. It also 含む/封じ込めるs the data for MEMORY (米)棚上げする/(英)提議するs.

  • The 実験(する).所有物/資産/財産s 含む/封じ込めるs the 入ること/参加(者) '修正するd' 始める,決める to 'no'.

  • There is no 実験(する).スピードを出す/記録につける とじ込み/提出する.

Database is の近くにd 正確に with SHUTDOWN SCRIPT

明言する/公表する after running the SHUTDOWN SCRIPT 声明

  • The 実験(する).data とじ込み/提出する does not 存在する; all CACHED (米)棚上げする/(英)提議する data is now in the 実験(する).script とじ込み/提出する

  • There is no 実験(する).backup とじ込み/提出する.

  • The 実験(する).script 含む/封じ込めるs all the metadata and DDL 声明s, followed by the data for MEMORY, CACHED and TEXT (米)棚上げする/(英)提議するs.

  • The 実験(する).所有物/資産/財産s 含む/封じ込めるs the 入ること/参加(者) '修正するd' 始める,決める to 'no'.

  • There is no 実験(する).スピードを出す/記録につける とじ込み/提出する.

Database is 中止するd

If the database 過程 was 終結させるd without a SHUTDOWN, or the SHUTDOWN IMMEDIATELY 命令(する) was used, the database is in 中止するd 明言する/公表する.

中止するd database 明言する/公表する

  • The 実験(する).所有物/資産/財産s 含む/封じ込めるs '修正するd=yes'.

  • The 実験(する).script 含む/封じ込めるs a snapshot of the database at the last 検問所.

  • The 実験(する).data とじ込み/提出する is not やむを得ず 一貫した.

  • The 実験(する).backup とじ込み/提出する 含む/封じ込めるs just sections of the 初めの 実験(する).data とじ込み/提出する that correspond to 実験(する).script at the time of the last 検問所.

  • The 実験(する).スピードを出す/記録につける とじ込み/提出する 含む/封じ込める all data change 声明s 遂行する/発効させるd since the last 検問所. As a result of 異常な termination, the end of とじ込み/提出する may be incomplete.

手続きs

The database engine 成し遂げるs the に引き続いて 手続きs internally in different circumstances.

Clean Shutdown

手続き B.1. Clean HyperSQL database shutdown

  1. The 実験(する).data とじ込み/提出する is written 完全に (all the 修正するd (武器などの)隠匿場所d (米)棚上げする/(英)提議する 列/漕ぐ/騒動s are written out) and の近くにd.

  2. The とじ込み/提出する 実験(する).script.new is created using the 現在の 明言する/公表する of the database.

  3. The 入ること/参加(者) '修正するd' in the 所有物/資産/財産s とじ込み/提出する is 始める,決める to 'yes-new-とじ込み/提出するs' (公式文書,認める: after this step, the 実験(する).data and 実験(する).script.new とじ込み/提出するs 構成する the database)

  4. The とじ込み/提出する 実験(する).スピードを出す/記録につける is 削除するd

  5. The とじ込み/提出する 実験(する).script is 削除するd

  6. The とじ込み/提出する 実験(する).script.new is 改名するd to 実験(する).script

  7. The とじ込み/提出する 実験(する).backup is 削除するd

  8. The 入ること/参加(者) '修正するd' in the 所有物/資産/財産s とじ込み/提出する is 始める,決める to 'no'

Startup

手続き B.2. 開始 the Database

  1. Check if the database とじ込み/提出するs are in use by checking a special 実験(する).lck とじ込み/提出する.

  2. See if the 実験(する).所有物/資産/財産s とじ込み/提出する 存在するs, さもなければ create it.

  3. If the 実験(する).script did not 存在する, then this is a new database.

  4. If it is an 存在するing database, check in the 実験(する).所有物/資産/財産s とじ込み/提出する if '修正するd=yes'. In this 事例/患者 the RESTORE 操作/手術 is 成し遂げるd before the database is opened 普通は.

  5. さもなければ, if in the 実験(する).所有物/資産/財産s とじ込み/提出する '修正するd=yes-new-とじ込み/提出するs', then the (old) 実験(する).backup and 実験(する).script とじ込み/提出するs are 削除するd if they 存在する and the new 実験(する).script.new とじ込み/提出する is 改名するd to 実験(する).script.

  6. Open the 実験(する).script とじ込み/提出する and create the database 反対するs.

  7. Create the empty 実験(する).スピードを出す/記録につける to append any data change 声明s.

回復する

The 現在の 実験(する).data とじ込み/提出する is not やむを得ず 一貫した. The database engine takes these steps:

手続き B.3. 回復する a Database

  1. 回復する the old 実験(する).data とじ込み/提出する from the backup by copying the 初めの sections from the 実験(する).backup とじ込み/提出する.

  2. 遂行する/発効させる all the 声明s in the 実験(する).script とじ込み/提出する.

  3. 遂行する/発効させる all 声明s in the 実験(する).スピードを出す/記録につける とじ込み/提出する. If 予定 to incomplete 声明s in this とじ込み/提出する an exception is thrown, the 残り/休憩(する) of the lines in the 実験(する).スピードを出す/記録につける とじ込み/提出する are ignored. This can be overridden with the database 関係 所有物/資産/財産 hsqldb.full_log_replay=true which results in the startup 過程 to fail and 許すs the 使用者 to 診察する and edit the 実験(する).スピードを出す/記録につける とじ込み/提出する.

  4. の近くに the database とじ込み/提出するs.

  5. Open the 回復するd database.


$Revision: 6787 $