このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。 |
(米)棚上げする/(英)提議する of Contents
HyperSQL has many 方式s of 操作/手術 and features that 許す it to be used in very different シナリオs. Levels of memory usage, 速度(を上げる) and accessibility by different 使用/適用s are 影響(力)d by how HyperSQL is (軍隊を)展開する,配備するd.
The 決定/判定勝ち(する) to run HyperSQL as a separate server 過程 or as an in-過程 database should be based on the に引き続いて:
When HyperSQL is run as a server on a separate machine, it is 孤立するd from 金物類/武器類 失敗s and 衝突,墜落s on the hosts running the 使用/適用.
When HyperSQL is run as a server on the same machine, it is 孤立するd from 使用/適用 衝突,墜落s and memory 漏れるs.
Server 関係s are slower than in-過程 関係s 予定 to the 総計費 of streaming the data for each JDBC call.
You can 接近 a Server from outside the main 使用/適用 and 成し遂げる backups and other 維持/整備 操作/手術s.
You can 減ずる (弁護士の)依頼人/server traffic using SQL 蓄える/店d 手続きs to 減ずる the number of JDBC 遂行する/発効させる calls.
During 開発, it is better to use a Server with
server.silent=誤った
, which 陳列する,発揮するs the
声明s sent to the server on the console window.
To 改善する 速度(を上げる) of 死刑執行 for 声明s that are
遂行する/発効させるd 繰り返して, 再使用する a parameterized
PreparedStatement
for the lifetime of the
関係s.
There are three types of database, mem:,
とじ込み/提出する: and res:. The
mem: type is 蓄える/店d all in memory and not
固執するd to とじ込み/提出する. The とじ込み/提出する: type is 固執するd to
とじ込み/提出する. The res: type is also based on とじ込み/提出するs, but
the とじ込み/提出するs are 負担d from the classpath, 類似の to 資源 and class
とじ込み/提出するs. Changes to the data in とじ込み/提出する: databases are
固執するd, unless the database is readonly
, or
files_readonly
(using optional 所有物/資産/財産 settings).
Changes to res: databases are not
固執するd.
A とじ込み/提出する: catalog can be made readonly
永久的に, or it can be opened as readonly. To make the database
readonly, the 所有物/資産/財産, value pair, readonly=true
can be 追加するd to the .所有物/資産/財産s
とじ込み/提出する of the
database. The SHUTDOWN 命令(する) must be used to の近くに the database
before making this change.
It is also possible to open a normal database as readonly. For this, the 所有物/資産/財産 can be 含むd in the URL of the first 関係 to the database.
With readonly databases, it is still possible to 挿入する and 削除する 列/漕ぐ/騒動s in TEMP (米)棚上げする/(英)提議するs.
There is another 選択 which 許すs MEMORY (米)棚上げする/(英)提議するs to be
writeable, but without 固執するing the changes at SHUTDOWN. This 選択
is 活動させる/戦時編成するd with the 所有物/資産/財産, value pair,
files_readonly=true, which can be 追加するd to the
.所有物/資産/財産s
とじ込み/提出する of the database, or 含むd in
the URL of the first 関係 to the database.
A res: catalog, is a 始める,決める of database
とじ込み/提出するs on the classpath (inside a jar or と一緒に class とじ込み/提出するs). The
database is opened with a URL in the form of
jdbc:hsqldb:res:<database path>
. These
databases are always files_readonly
and have the
same 制限s as files_readonly
とじ込み/提出する: catalogs.
CACHED (米)棚上げする/(英)提議するs and LOBS in these catalogs are readonly. It is not possible to create new LOBs in these catalogs, but you can use 存在するing LOBs in new 列/漕ぐ/騒動s.
These 選択s are useful for running 使用/適用 実験(する)s which operate on a predefined dataset.
In mem: catalogs, MEMORY (米)棚上げする/(英)提議するs without persistence are supported と一緒に TEXT (米)棚上げする/(英)提議するs with persistence but CACHED (米)棚上げする/(英)提議する are not supported.
In とじ込み/提出する: and res: catalogs, MEMORY, CACHED and TEXT (米)棚上げする/(英)提議するs are all supported with persistence.
TEXT (米)棚上げする/(英)提議するs are designed for special 使用/適用s where the data has to be in an interchangeable 判型, such as CSV (comma separated values). 列/漕ぐ/騒動s of data can be 挿入するd into TEXT (米)棚上げする/(英)提議するs and 存在するing 列/漕ぐ/騒動s can be updated or 削除するd. For data that is updated a lot, it is better to use a MEMORY or CACHED (米)棚上げする/(英)提議する to 改善する reliability in 事例/患者 of system 衝突,墜落. TEXT (米)棚上げする/(英)提議するs can also be used to open CSV or DSV (delimiter separated values) とじ込み/提出するs ーするために copy the data into other types of (米)棚上げする/(英)提議する.
MEMORY (米)棚上げする/(英)提議するs and CACHED (米)棚上げする/(英)提議するs are 一般に used for data 貯蔵. The difference between the two is as follows:
The data for all MEMORY (米)棚上げする/(英)提議するs is read from the
*.script
とじ込み/提出する when the database is started and
蓄える/店d in memory. In contrast the data for (武器などの)隠匿場所d (米)棚上げする/(英)提議するs is not
read into memory until the (米)棚上げする/(英)提議する is 接近d. その上に, only
part of the data for each CACHED (米)棚上げする/(英)提議する is held in memory, 許すing
(米)棚上げする/(英)提議するs with more data than can be held in memory.
When the database is shutdown in the normal way, all the data for MEMORY (米)棚上げする/(英)提議するs is written out to the disk. In comparison, the data in CACHED (米)棚上げする/(英)提議するs that has changed is written out during 操作/手術 and at shutdown.
The size and capacity of the data (武器などの)隠匿場所 for all the CACHED (米)棚上げする/(英)提議するs is configurable. This makes it possible to 許す all the data in CACHED (米)棚上げする/(英)提議するs to be (武器などの)隠匿場所d in memory. In this 事例/患者, 速度(を上げる) of 接近 is good, but わずかに slower than MEMORY (米)棚上げする/(英)提議するs.
For normal 使用/適用s it is recommended that MEMORY (米)棚上げする/(英)提議するs are used for small 量s of data, leaving CACHED (米)棚上げする/(英)提議するs for large data 始める,決めるs. For special 使用/適用s in which 速度(を上げる) is 最高位の and a large 量 of 解放する/自由な memory is 利用できる, MEMORY (米)棚上げする/(英)提議するs can be used for large (米)棚上げする/(英)提議するs 同様に.
You can change the type of the (米)棚上げする/(英)提議する with the SET
TABLE <(米)棚上げする/(英)提議する 指名する> TYPE { CACHED | MEMORY
}
声明.
HyperSQL supports 献身的な 貯蔵 and 接近 to BLOB and CLOB
反対するs. These 反対するs can have 抱擁する sizes. BLOB or CLOB is 明示するd as
the type of a column of the (米)棚上げする/(英)提議する. Afterwards, 列/漕ぐ/騒動s can be 挿入するd into
the (米)棚上げする/(英)提議する using a PreparedStatement for efficient 移転 of large LOB
data to the database. In mem: catalogs, CLOB and
BLOB data is 蓄える/店d in memory. In とじ込み/提出する: catalogs,
this data is 蓄える/店d in a 選び出す/独身 separate とじ込み/提出する which has the 拡張
*.高く弓形に打ち返すs
. The size of this とじ込み/提出する can grow to terabyte
人物/姿/数字s. By default, a 最小限 32 KB is 配分するd to each LOB. You can
減ずる this if your LOBs are 一般に smaller.
LOB data should be 蓄える/店d in the database using a JDBC
PreparedStatement 反対する. The streaming methods send the LOB to the
database in one 操作/手術 as a binary or character stream. Inside the
database, the disk space is 配分するd as needed and the data is saved as
it is 存在 received. LOB data should be retrieved from the database
using a JDBC ResultSet
method. When a streaming
method is used to retrieve a LOB, it is retrieved in large chunks in a
transparent manner. LOB data can also be retrieved as String or byte[],
but these methods use more memory and may not be practical for large
反対するs.
LOB data is not duplicated in the database when a 高く弓形に打ち返す is copied from one (米)棚上げする/(英)提議する to another. The disk space is 再使用するd when a LOB is 削除するd and is no longer 含む/封じ込めるd in any (米)棚上げする/(英)提議する. This happens only at the time of a CHECKPOINT.
With all-in-memory mem: databases, the memory space for 削除するd 高く弓形に打ち返すs is not 再使用するd by default, as there is no (a)自動的な/(n)自動拳銃 検問所. (a)自動的な/(n)自動拳銃 検問所s can be 活動させる/戦時編成するd by setting the LOG SIZE 所有物/資産/財産 to a value larger than 無. When the 蓄積するd size of 削除するd 高く弓形に打ち返すs reaches the LOG SIZE setting (in megabytes) an (a)自動的な/(n)自動拳銃 検問所 is 成し遂げるd and the memory space is 解放(する)d.
By using a 献身的な LOB 蓄える/店, HyperSQL 達成するs 終始一貫して high 速度(を上げる)s (usually over 20MB / s) for both 貯蔵 and retrieval of LOBs.
There is an 内部の LOBS schema in the database to 蓄える/店 the IDs, sizes and 演説(する)/住所s of the LOBs (but not the actual LOBS) in a few system (米)棚上げする/(英)提議するs. This schema is 蓄える/店d in the database as MEMORY (米)棚上げする/(英)提議するs. Therefore, the 量 of JVM memory should be 増加するd when more than tens of thousands of LOBs are 蓄える/店d in the database. If your database 含む/封じ込めるs more than a few hundreds of thousands of LOBs and memory use becomes an 問題/発行する, you can change one or all LOB schema (米)棚上げする/(英)提議するs to CACHED (米)棚上げする/(英)提議するs. See 声明s below:
Example 11.1. Using CACHED (米)棚上げする/(英)提議するs for the LOB schema
SET TABLE SYSTEM_LOBS.BLOCKS TYPE CACHED SET TABLE SYSTEM_LOBS.LOBS TYPE CACHED SET TABLE SYSTEM_LOBS.PARTS TYPE CACHED SET TABLE SYSTEM_LOBS.LOB_IDS TYPE CACHED
The とじ込み/提出するs used for 蓄える/店ing HyperSQL database data are all in the same directory. New とじ込み/提出するs are always created and 削除するd by the database engine. Two simple 原則s must be 観察するd:
The Java 過程 running HyperSQL must have 十分な 特権s on the directory where the とじ込み/提出するs are 蓄える/店d. This 含む create and 削除する 特権s.
The とじ込み/提出する system must have enough spare room both for the
'永久の' and '一時的な' とじ込み/提出するs. The default 最大限 size of the
*.スピードを出す/記録につける
とじ込み/提出する is 50MB. The *.data
とじ込み/提出する can grow to up to 64GB (more if the default has been
増加するd). The *.backup
とじ込み/提出する can be up to the
size of the *.data
とじ込み/提出する. The
*.高く弓形に打ち返すs
とじ込み/提出する can grow to several terabytes. The
一時的な とじ込み/提出するs created at the time of a SHUTDOWN can be equal in
size to the *.script
とじ込み/提出する and the
*.data
とじ込み/提出する.
In desktop (軍隊などの)展開,配備s, ウイルス checker programs may 干渉する with the 創造 and modification of database とじ込み/提出するs. You should 除外する the directory 含む/封じ込めるing the database とじ込み/提出するs from ウイルス checking.
HyperSQL supports PRIMARY KEY, UNIQUE and FOREIGN KEY 強制s, which can (期間が)わたる 多重の columns.
The engine creates 索引s internally to support PRIMARY KEY, UNIQUE and FOREIGN KEY 強制s: a unique 索引 is created for each PRIMARY KEY or UNIQUE 強制; a 非,不,無-unique 索引 is created for each FOREIGN KEY 強制.
From 見解/翻訳/版 2.6, you can 延長する the 非,不,無-unique 索引 for a FORIEGN
KEY 強制 to cover extra columns. For example, if you have a FOREIGN
KEY 強制 defined on INVOICES(CUSTOMER_ID)
, you
can 追加する an extra column such as INVOICE_DATE
to the
FOREIGN KEY 索引. This 速度(を上げる)s up queries with 条件s such as:
WHERE customer_id = 456 and invoice_date =
'2020-02-02'
. See the ALTER CONSTRAINT 声明 for
syntax.
HyperSQL 許すs you to define 索引s on 選び出す/独身 or 多重の columns with the CREATE INDEX 声明. You should not create duplicate 索引s on the same column 始める,決めるs covered by 強制s. This will result in unnecessary memory and 速度(を上げる) 総計費s. See the discussion on memory use in the (軍隊などの)展開,配備 Guide 一時期/支部 for more (警察などへの)密告,告訴(状).
索引s are 決定的な for 適する query 速度(を上げる). When 範囲 or equality
条件s are used e.g. SELECT ... WHERE acol > 10 AND bcol =
0
, an 索引 should 存在する on one of the columns that has a
条件. In this example, the bcol
column is the best
候補者. HyperSQL always uses the best 条件 and 索引. If there are
two 索引s, one on acol, and another on bcol, it will choose the 索引 on
bcol.
Queries always return results whether 索引s 存在する or not, but they
return much faster when an 索引 存在するs. As a 支配する of thumb, HSQLDB is
有能な of 内部の 過程ing of queries at around 1,000,000 列/漕ぐ/騒動s per
second. Any query that runs into several seconds is 明確に 接近ing many
thousands of 列/漕ぐ/騒動s. The query should be checked and 索引s should be 追加するd
to the 関連した columns of the (米)棚上げする/(英)提議するs if necessary. The EXPLAIN
PLAN FOR <query>
声明 can be used to see which
索引s are used to 過程 the query.
When 遂行する/発効させるing a DELETE or UPDATE 声明, the engine needs to find the 列/漕ぐ/騒動s that are to be 削除するd or updated. If there is an 索引 on one of the columns in the WHERE 条項, it is often possible to start 直接/まっすぐに from the first 候補者 列/漕ぐ/騒動. さもなければ all the 列/漕ぐ/騒動s of the (米)棚上げする/(英)提議する have to be 診察するd.
索引s are even more important in joins between 多重の (米)棚上げする/(英)提議するs.
SELECT ... FROM t1 JOIN t2 ON t1.c1 = t2.c2
is
成し遂げるd by taking 列/漕ぐ/騒動s of t1 one by one and finding a matching 列/漕ぐ/騒動 in
t2. If there is no 索引 on t2.c2, then for each 列/漕ぐ/騒動 of t1 all the 列/漕ぐ/騒動s of
t2 must be checked. 反して with an 索引 on t2.c2, a matching 列/漕ぐ/騒動 can be
設立する in a fraction of the time. If the query also has a 条件 on t1,
e.g., SELECT ... FROM t1 JOIN t2 ON t1.c1 = t2.c2 WHERE t1.c3 =
4
then an 索引 on t1.c3 would 除去する the need for checking
all the 列/漕ぐ/騒動s of t1 one by one, and will 減ずる query time to いっそう少なく than a
millisecond per returned 列/漕ぐ/騒動.
So if t1 and t2 each 含む/封じ込める 10,000 列/漕ぐ/騒動s, the query without 索引s 伴う/関わるs checking 100,000,000 列/漕ぐ/騒動 combinations. With an 索引 on t2.c2, this is 減ずるd to 10,000 列/漕ぐ/騒動 checks and 索引 lookups. With the 付加 索引 on t2.c2, only about 4 列/漕ぐ/騒動s are checked to get the first result 列/漕ぐ/騒動.
公式文書,認める that in HSQLDB an 索引 on 多重の columns can be used
internally as an 索引 on the first column in the 名簿(に載せる)/表(にあげる). For example:
CONSTRAINT name1 UNIQUE (c1, c2, c3)
means there is
the 同等(の) of CREATE INDEX name2 ON atable(c1);
. So
you do not need to 明示する an extra 索引 if you need one on the first
column of the 名簿(に載せる)/表(にあげる).
In HyperSQL, a multi-column 索引 will 速度(を上げる) up queries that 含む/封じ込める
joins or values on the first n columns of the 索引. You need NOT 宣言する
付加 individual 索引s on those columns unless you use queries that
search only on a subset of the columns, 除外するing the first column. For
example, 列/漕ぐ/騒動s of a (米)棚上げする/(英)提議する that has a PRIMARY KEY or UNIQUE 強制 on
three columns or 簡単に an ordinary 索引 on those columns can be 設立する
efficiently when values for all three columns, or the first two columns,
or the first column, are 明示するd in the WHERE 条項. For example,
SELECT ... FROM t1 WHERE t1.c1 = 4 AND t1.c2 = 6 AND t1.c3 = 8
will use an 索引 on t1(c1,c2,c3)
if it
存在するs.
A multi-column 索引 will not 速度(を上げる) up queries on the second or third column only. The first column must be 明示するd in the JOIN .. ON or WHERE 条件s.
いつかs query 速度(を上げる) depends on the order of the (米)棚上げする/(英)提議するs in the JOIN
.. ON or FROM 条項s. For example, the second query below should be
faster with large (米)棚上げする/(英)提議するs (供給するd there is an 索引 on
TB.COL3
). The 推論する/理由 is that TB.COL3
can be 評価するd by 索引 lookup and 減ずる the matching 列/漕ぐ/騒動s if it
適用するs to the first (米)棚上げする/(英)提議する:
-- TB is a very large (米)棚上げする/(英)提議する with only a few 列/漕ぐ/騒動s where TB.COL3 = 4 SELECT * FROM TA JOIN TB ON TA.COL1 = TB.COL2 AND TB.COL3 = 4; SELECT * FROM TB JOIN TA ON TA.COL1 = TB.COL2 AND TB.COL3 = 4;
The general 支配する is to put first the (米)棚上げする/(英)提議する that has a 狭くするing 条件 on one of its columns. In 確かな 事例/患者s, HyperSQL reorders the joined (米)棚上げする/(英)提議するs if it is obvious that this will introduce a 狭くするing 条件. This is discussed in the next section.
HyperSQL features (a)自動的な/(n)自動拳銃, on-the-飛行機で行く 索引s for 見解(をとる)s and subselects that are used in a query.
索引s are used when a LIKE 条件 searches from the start of the string.
索引s are used for ORDER BY 条項s if the same 索引 is used for 選択 and ordering of 列/漕ぐ/騒動s. It is also possible to 軍隊 the use of 索引 for ORDER BY.
HyperSQL 成し遂げるs "cost-base optimisation" to changes the order of (米)棚上げする/(英)提議するs in a query ーするために optimise 過程ing. It 計算するs and compares the approximate time (cost) it takes to 遂行する/発効させる the query with different (米)棚上げする/(英)提議する orders and chooses the one with the least costs. This happens only when one of the (米)棚上げする/(英)提議するs has a 狭くするing 条件 and reordering does not change the result of the query.
HyperSQL optimises queries to use 索引s, for all types of 範囲 and equality 条件s, 含むing IS NULL and NOT NULL 条件s. 条件s can be in join or WHERE 条項s, 含むing all types of joins.
In 新規加入, HyperSQL will use an 索引 (if one 存在するs) for IN 条件s, whether constants, variables, or subqueries are used on the 権利-手渡す 味方する of the IN predicate. Multicolumn IN 条件s can also use an 索引.
HyperSQL can always use 索引s when several 条件s are 連合させるd with the AND 操作者, choosing a 条件 which can use an 索引. This now 延長するd to all equality 条件s on 多重の columns that are part of an 索引.
HyperSQL will also use 索引s when several 条件s are 連合させるd with the OR 操作者 and each 条件 can use an 索引 (each 条件 may use a different 索引). For example, if a 抱擁する (米)棚上げする/(英)提議する has two separate columns for first 指名する and last 指名する, and each of these columns has an 索引, a query such as the に引き続いて example will use the 索引s and 完全にする in a short time:
-- TC is a very large (米)棚上げする/(英)提議する SELECT * FROM TC WHERE TC.FIRSTNAME = 'John' OR TC.LASTNAME = 'Smith' OR TC.LASTNAME = 'Williams'
Each subquery is considered a separate SELECT 声明 and uses 索引s when they are 利用できる.
In each SELECT 声明, at least one 索引 per (米)棚上げする/(英)提議する can be used if there is a query 条件s that can use the 索引. When 条件s on a (米)棚上げする/(英)提議する are 連合させるd with the OR 操作者, and each 条件 can use an 索引, 多重の 索引s per (米)棚上げする/(英)提議する are used.
HyperSQL optimises simple 列/漕ぐ/騒動 count queries in the form of
SELECT COUNT(*) FROM <(米)棚上げする/(英)提議する>
and returns the
result すぐに (this optimisation may not always take place in MVCC
方式).
HyperSQL can use an 索引 on a column for SELECT
MAX(<column>) FROM <(米)棚上げする/(英)提議する>
and SELECT
MIN(<column>) FROM <(米)棚上げする/(英)提議する>
queries. There should
be an 索引 on the <column> and the query can have a WHERE
条件 on the same column. In the example below the 最大限 value for
the TB.COL3 below 1000000 is returned.
SELECT MAX(TB.COL3) FROM TB WHERE TB.COL < 1000000
HyperSQL can use an 索引 for simple queries 含む/封じ込めるing DISTINCT or GROUP BY to 避ける checking all the 列/漕ぐ/騒動s of the (米)棚上げする/(英)提議する. 公式文書,認める that 索引s are always used if the query has a 条件, 関わりなく the use of DISTINCT or GROUP BY. This particular optimisation 適用するs to 事例/患者s in which all the columns in the SELECT 名簿(に載せる)/表(にあげる) are from the same (米)棚上げする/(英)提議する and are covered by a 選び出す/独身 索引, and any join or query 条件 uses this 索引.
For example, with the large (米)棚上げする/(英)提議する below, a DISTINCT or GROUP BY query to return all the last 指名するs, can use an the 索引 on the TC.LASTNAME column. 類似して, a GROUP BY query on two columns can use an 索引 that covers the two columns.
-- TC is a very large (米)棚上げする/(英)提議する SELECT DISTINCT LASTNAME FROM TC WHERE TC.LASTNAME > 'F' SELECT STATE, LASTNAME FROM TC GROUP BY STATE, LASTNAME
HyperSQL can use an 索引 on an ORDER BY 条項 if all the columns
in ORDER BY are in a 選び出す/独身-column or multi-column 索引 (in the exact
order). This is important if there is a LIMIT n (or FETCH n ROWS ONLY)
条項. In this 状況/情勢, the use of 索引 許すs the query 加工業者
to 接近 only the number of 列/漕ぐ/騒動s 明示するd in the LIMIT 条項, instead
of building the whole result 始める,決める, which can be 抱擁する. This also 作品 for
joined (米)棚上げする/(英)提議するs when the ORDER BY 条項 is on the columns of the first
(米)棚上げする/(英)提議する in a join. 索引s are used in the same way when ORDER BY
... DESC
is 明示するd in the query. 公式文書,認める that unlike some
other RDBMS, HyperSQL does not need or create DESC 索引s. It can use
any ordinary, 上がるing 索引 for ORDER BY ...
DESC
.
If there is an equality or 範囲 条件 (e.g. EQUALS, GREATER THAN) 条件 on the columns 明示するd in the ORDER BY 条項, the 索引 is still used.
In the two examples below, the 索引 on TA.COL3 is used and only up to 1000 列/漕ぐ/騒動s are 過程d and returned.
-- TA is a very large (米)棚上げする/(英)提議する with an 索引 on TA.COL3 SELECT * FROM TA JOIN TB ON TA.COL2 = TB.COL1 WHERE TA.COL3 > 40000 ORDER BY TA.COL3 LIMIT 1000; SELECT * FROM TA JOIN TB ON TA.COL2 = TB.COL1 WHERE TA.COL3 > 40000 AND TA.COL3 < 100000 ORDER BY TA.COL3 DESC LIMIT 1000;
But if the query 含む/封じ込めるs a 条件 on another 索引d column in the (米)棚上げする/(英)提議する, this may take 優先 and no 索引 may be used for ORDER BY. In this 事例/患者 USING INDEX can be 追加するd to the end of the query to 軍隊 the use of the 索引 for the LIMIT 操作/手術.
In the example below there is an 索引 on TA.COL1 同様に as the
索引 on TA.COL3. 普通は the 索引 on TA.COL1 is used, but the USING
INDEX hint results in the 索引 on TB.COL3 to be used for selecting the
first 1000 列/漕ぐ/騒動s. Supposing there are 10 million 列/漕ぐ/騒動s in the (米)棚上げする/(英)提議する and 1
million 列/漕ぐ/騒動s have COL1 = 'SENT'
, when the 索引 on
COL1 is used, one million 列/漕ぐ/騒動s are read before ORDER BY and LIMIT are
適用するd. But with the USING INDEX だいたい about 10 times the 1000
列/漕ぐ/騒動s are read and filtered until the 1000 列/漕ぐ/騒動 的 is reached.
-- TA is a very large (米)棚上げする/(英)提議する with an 索引 on TA.COL3 and a separate 索引 on TA.COL1 SELECT * FROM TA JOIN TB ON TA.COL2 = TB.COL1 WHERE TA.COL1 = 'SENT' ORDER BY TA.COL3 LIMIT 1000 USING INDEX;
HyperSQL's persistence 機械装置 has proven reliable, as the last 批判的な 問題/発行する was 直す/買収する,八百長をするd in 2008.
There are その上の enhancements in the 最新の 見解/翻訳/版.
More 広範囲にわたる locking 機械装置 has been 追加するd to code to support multithreaded 接近.
Incremental backup (an 内部の 機械装置 for 衝突,墜落 保護) 許すs 急速な/放蕩な 検問所 and shutdown.
All とじ込み/提出するs are synced at 検問所s and also just before の近くにing.
The data とじ込み/提出する is 大きくするd in 封鎖する increments
The NIO とじ込み/提出する 接近 実施 has been 改善するd
Persistence relies on the JVM, the operating system, and the computer 金物類/武器類. A database system like HyperSQL can 成し遂げる millions of read and 令状 操作/手術s in an hour. As system 金物類/武器類 and ソフトウェア can go wrong, it is impossible to 達成する 無 失敗 率. Therefore, 正規の/正選手 backups are recommended. HyperSQL has built-in database backup and 回復する features, discussed どこかよそで in this 一時期/支部.
A 公式文書,認める regarding the NIO とじ込み/提出する 接近 実施: This
実施 適用するs only to CACHED (米)棚上げする/(英)提議する data in the
.data
とじ込み/提出する. Other とじ込み/提出するs are not 接近d 経由で NIO. There
has been an 問題/発行する with some JVM 実施s of nio not 解放(する)ing the
とじ込み/提出する 衝撃を和らげるものs after they were の近くにd. HyperSQL uses workarounds which are
recommended for Sun JVMs and later OpenJDK ones. This does not 適用する to
other JVMs. In such 環境s, it is therefore recommended to 強調する/ストレス
実験(する) the CHECKPOINT DEFRAG 操作/手術 and the shutting 負かす/撃墜する and 再開するing
the database inside the same Java 過程 extensively with NIO. Use of NIO
is not 必須の and can be turned off if necessary.
Atomicity means a 処理/取引 either fails without changing the data, or 後継するs. HyperSQL 確実にするs atomicity both during 操作/手術s and in the event of a system 衝突,墜落.
Consistency means all the implicit and explicit 正直さ 強制s are always 施行するd. HyperSQL always 施行するs the 強制s and at the same time does not 許す unenforceable 強制s (違法な forms of CHECK 強制s) to be created.
孤立/分離 means 処理/取引s do not 干渉する with each other. HyperSQL 施行するs 孤立/分離 によれば strict 支配するs of the database 孤立/分離 model (MVCC or LOCKS).
Durability means a committed 処理/取引 is 保護するd in 事例/患者 of a
system 衝突,墜落. HyperSQL 確実にするs durability によれば the setting for
WRITE DELAY MILLIS. A 無 延期する setting results in an
FileDescriptor.sync()
call each time a
処理/取引 commits. A timed 延期する means the
FileDescriptor.sync()
call is 遂行する/発効させるd in the
given intervals and only the last 処理/取引s committed in the time
interval may be lost. The default time interval is 0.5 second. The
sync()
call is also made at all 批判的な
points, 含むing when a とじ込み/提出する is about to be の近くにd. Durability of とじ込み/提出するs
要求するs a reliable JVM and disk 貯蔵 system that 蓄える/店s the data
安全に with a sync()
call. In practice, many
systems are 一般に reliable in this 尊敬(する)・点.
A database is opened when the first 関係 is 首尾よく
made. It remains open until the SHUTDOWN
命令(する) is
問題/発行するd. If the 関係 所有物/資産/財産 shutdown=true is used for the first
関係 to the database, the database is shutdown when the last
関係 is の近くにd. さもなければ the database remains open and will
受託する the next 関係 試みる/企てる.
The SHUTDOWN
命令(する) shuts 負かす/撃墜する the database
適切に and 許すs the database to be 再開するd quickly. This 命令(する)
may take some seconds as it saves all the 修正するd data in the
.script
and .data
とじ込み/提出するs. Variants
of SHUTDOWN
such as SHUTDOWN
COMPACT
and SHUTDOWN SCRIPT
can be used
from time to time to 減ずる the 全体にわたる size of the database とじ込み/提出するs.
Another variant is SHUTDOWN IMMEDIATELY
which 確実にするs
all changes to data are 蓄える/店d in the .スピードを出す/記録につける
とじ込み/提出する but
does not save the changes in .script
and
.data
とじ込み/提出するs. The shutdown is 成し遂げるd quickly but
the database will take much longer to 再開する.
During the lifetime of the database the 検問所 操作/手術 may
be 成し遂げるd from time to time. The SET FILES LOG SIZE <
value >
setting and its 同等(の) URL 所有物/資産/財産 決定する
the frequency of (a)自動的な/(n)自動拳銃 検問所s. An online backup also 成し遂げるs a
検問所 when the backup is not a hot backup. A 検問所 can be
成し遂げるd by the 使用者 at any time using the
CHECKPOINT
声明. The main 目的 of 検問所s
is to 減ずる the total size of database とじ込み/提出するs and to 許す a quick
再開する in 事例/患者 the database is の近くにd without a proper shutdown. The
CHECKPOINT DEFRAG
variant compacts the
.data
とじ込み/提出する in a 類似の way to SHUTDOWN
COMPACT
does. 明白に, this variant takes much longer than a
normal CHECKPOINT
. A database setting 許すs a
CHECKPOINT DEFRAG
to be 成し遂げるd automatically when
wasted space in the .data
とじ込み/提出する 越えるs the 明示するd
百分率.
In a multi-使用者 使用/適用, (a)自動的な/(n)自動拳銃 or 使用者-始めるd
検問所s are 延期するd until all other 開会/開廷/会期s have committed or
rolled 支援する. During a 検問所, other 開会/開廷/会期s cannot 接近 the
database (米)棚上げする/(英)提議するs but can 接近 the INFORMATION_SCHEMA
system (米)棚上げする/(英)提議するs.
HyperSQL 2.5 and later 許すs you to 蓄える/店 data in temporal system-見解/翻訳/版d (米)棚上げする/(英)提議するs. The 付加 syntax elements for CREATE TABLE and ALTER TABLE 許す creating system-見解/翻訳/版d (米)棚上げする/(英)提議するs and 追加するing system 見解/翻訳/版ing to 存在するing (米)棚上げする/(英)提議するs. These are covered in the Schemas and Database 反対するs 一時期/支部. Only CACHED or MEMORY (米)棚上げする/(英)提議するs can be system-見解/翻訳/版d.
System 見解/翻訳/版ing has three main uses.
During 開発 and 実験(する)ing of 使用/適用s, system-見解/翻訳/版ing keeps all the changes made by a 始める,決める of 統合,差別撤廃 実験(する)s. Correctness of the data change 声明s can be 立証するd.
Retention of data for regulatory 必要物/必要条件s can be 安全に managed by the database engine, without the need for 付加 複雑さ in the 使用/適用.
Time travel queries 許す 見解(をとる)s of the data at any point in the past, 同様に as 見解(をとる)s of the changes over a given period.
Replicated 分配するd databases with system 見解/翻訳/版ing on all (米)棚上げする/(英)提議するs 許す changes to data to be synchronized between the replicas.
All DML 声明s that 修正する the (米)棚上げする/(英)提議する data see only the 現在の 列/漕ぐ/騒動s of the (米)棚上げする/(英)提議する, you cannot 修正する the old 見解/翻訳/版 history of 列/漕ぐ/騒動s. SELECT 声明s can 含む a FOR SYSTEM_TIME 条項 to 接近 historic data in a given timestamp 範囲. This is discussed in Data 接近 and Change 一時期/支部.
Old historic 列/漕ぐ/騒動s can be 除去するd up to a chosen point of time with a special form of the TRUNCATE 声明. This is covered in the Data 接近 and Change 一時期/支部.
An example of a system-見解/翻訳/版d (米)棚上げする/(英)提議する follows:
Example 11.2. Creating a system-見解/翻訳/版d (米)棚上げする/(英)提議する
CREATE TABLE codedata ( code CHAR(10) not null, id SMALLINT not null , 最初の/主要な 重要な (ID), PS TIMESTAMP GENERATED ALWAYS AS ROW (米ソ間の)戦略兵器削減交渉, PE TIMESTAMP GENERATED ALWAYS AS ROW END, PERIOD FOR SYSTEM_TIME(PS,PE) ) WITH SYSTEM VERSIONING
Replicated databases are databases with 多重の copies in different 場所s that 含む/封じ込める the same (米)棚上げする/(英)提議する structure and data. With system-見解/翻訳/版d (米)棚上げする/(英)提議するs, a 始める,決める of replicas can be synchronized.
Data changes to a replica after a point of time can be written to a script. The script can then be 適用するd to another replica. See the syntax 詳細(に述べる)s of PERFORM SCRIPT 声明 in this 一時期/支部. The timestamp used for 輸出(する) is the timestamp at the point of last synchronization. For example, if the first EXPORT occurs at TIMESTAMP '2020-10-01 10:10:10' and the script is later 輸入するd into the replica, the second EXPORT should use that timestamp to 確実にするs old histories that have already been 輸出(する)d are not 輸出(する)d again. The 輸入する will skip duplicates and there is no 害(を与える) in 輸出(する)ing from an earlier timestamp, except it will take longer to 輸入する.
-- on one replica, the changes from the given UTC timestamp are 輸出(する)d to a とじ込み/提出する PERFORM EXPORT SCRIPT FOR DATABASE VERSIONING DATA FROM '2022-03-21 08:00:00' TO '/data/diff_file' -- on another replica, the diff とじ込み/提出する is 輸入するd and the changes are 合併するd into the database PERFORM IMPORT SCRIPT VERSIONING DATA FROM '/data/diff_file'
Synchronization of (米)棚上げする/(英)提議するs with BLOB and CLOB columns is not 現在/一般に possible as the 輸出(する) script does not 含む/封じ込める the LOB data. This may be supported in a 未来 見解/翻訳/版.
For a replica 始める,決める where only one replica is updated and the others are only read, this method of replication has no 衝突. For replica 始める,決めるs where each replica is updated, the database schema and usage must account for this. During 輸入する, when there is a 衝突s, the 相反する change is not 適用するd and is instead written to another とじ込み/提出する to be reviewed.
Data for all CACHED (米)棚上げする/(英)提議するs is 蓄える/店d in the .data
とじ込み/提出する. With a new recommended setting, HyperSQL 2.5 and later 配分するs
separate 封鎖するs of the data とじ込み/提出する to different CACHED (米)棚上げする/(英)提議するs. This is
recommended for all databases with a data とじ込み/提出する larger than a few
megabytes. This method has the に引き続いて advantages:
When a (米)棚上げする/(英)提議する is dropped, all its data 配分 封鎖するs are 解放する/自由なd and become 利用できる for 再使用する.
When old 列/漕ぐ/騒動s are 削除するd in 本体,大部分/ばら積みの, the space is すぐに 解放(する)d and 再使用するd.
When many 列/漕ぐ/騒動s are updated or 削除するd over a long period, the disk space 占領するd by the old 見解/翻訳/版s of the 列/漕ぐ/騒動s is 結局 解放する/自由なd.
The に引き続いて 声明 should be 遂行する/発効させるd once to start the (米)棚上げする/(英)提議する spaces for the whole database:
SET FILES SPACE TRUE
The 代案/選択肢 is to 含む the corresponding 関係 所有物/資産/財産 on the JDBC 関係 URL that creates the database. For example:
jdbc:hsqldb:とじ込み/提出する:<database
path>;hsqldb.files_space=true
Then the 声明 below should be 遂行する/発効させるd for each CACHED (米)棚上げする/(英)提議する that will have its own space:
SET TABLE <(米)棚上げする/(英)提議する 指名する> NEW SPACE
If the above 声明 is not 遂行する/発効させるd, the (米)棚上げする/(英)提議する is 蓄える/店d in ありふれた 封鎖するs 株d by a number of (米)棚上げする/(英)提議するs.
If either of the above 声明s is 遂行する/発効させるd again after the first time, it does not change any settings.
It is better to 始める,決める any (米)棚上げする/(英)提議する that is known to grow larger than a few thousand 列/漕ぐ/騒動s its own space before any data is 蓄える/店d.
A database with (米)棚上げする/(英)提議する spaces uses a 最小限 of 4 to 6 megabytes for
its data structures to keep 跡をつける of とじ込み/提出する space use. The size 総計費 is
then about half a パーセント of the size of the .data
とじ込み/提出する as it
grows larger.
The size of the とじ込み/提出する 封鎖する is 2MB when the
hsqldb.cache_file_scale
is the default 32 (the size (テニスなどの)ダブルス
as the 規模 (テニスなどの)ダブルス). It is possible to 減ずる the 封鎖する size to 1MB for
databases that 含む/封じ込める many small (米)棚上げする/(英)提議するs that use their own, 献身的な
spaces. The 声明 SET FILES SPACE 1
can be 遂行する/発効させるd
instead of SET FILES SPACE TRUE
for a 減ずるd 封鎖する
size.
As the (米)棚上げする/(英)提議するs grow in size, more 封鎖するs are 配分するd to their spaces. These 封鎖するs are 配分するd from the 解放する/自由なd とじ込み/提出する 封鎖するs if there are any 利用できる. The INFORMATION_SCHEMA.SYSTEM_TABLESTATS 供給するs (警察などへの)密告,告訴(状) on the space usage of (米)棚上げする/(英)提議する spaces. In this (米)棚上げする/(英)提議する, the SPACE_ID column 含む/封じ込めるs the space id for the (米)棚上げする/(英)提議する. The value 1 is used for the space 配分するd by the system to its data structures. The value 7 is for (米)棚上げする/(英)提議するs that use the ありふれた space.
転換 of 存在するing databases to use (米)棚上げする/(英)提議する spaces is simple. If
the SET FILES SPACE TRUE
命令(する) is 遂行する/発効させるd when there are
already some 列/漕ぐ/騒動s in any CACHED (米)棚上げする/(英)提議する, the change does not happen
すぐに. In this 事例/患者, the (米)棚上げする/(英)提議する spaces are created only when
CHECKPOINT DEFRAG, SHUTDOWN COMPACT, or SHUTDOWN SCRIPT is 遂行する/発効させるd. の中で
these 命令(する)s, CHECKPOINT DEFRAG will also automatically 配分する a
separate space to each (米)棚上げする/(英)提議する that is larger than a 確かな size.
In a database with (米)棚上げする/(英)提議する spaces enabled, the SET TABLE
<(米)棚上げする/(英)提議する 指名する> NEW SPACE
命令(する) すぐに 適用するs a separate
space to the (米)棚上げする/(英)提議する, whether it is empty or has data..
The 正直さ of the 索引s and (米)棚上げする/(英)提議する data can be checked with a 声明. This 適用するs to CACHED (米)棚上げする/(英)提議するs only. Individual (米)棚上げする/(英)提議するs or all (米)棚上げする/(英)提議するs can be checked.
PERFORM CHECK TABLE PUBLIC.CUSTOMER INDEX [ AND FIX ]
PERFORM CHECK ALL TABLE INDEX [ AND FIX ]
The 命令(する) reads and compares all the 列/漕ぐ/騒動s and 名簿(に載せる)/表(にあげる)s the size of each (米)棚上げする/(英)提議する and the size of each 索引 on the (米)棚上げする/(英)提議する. If an 索引 is 損失d, the 名簿(に載せる)/表(にあげる) shows the number of 列/漕ぐ/騒動s that could be read as different from the number of 列/漕ぐ/騒動s in the (米)棚上げする/(英)提議する. With large (米)棚上げする/(英)提議するs, it can take a long time to 完全にする.
It is possible to 遂行する/発効させる the 命令(する) with the 新規加入 of
AND FIX
to the end. If some 索引s have been 損失d
but at least one 索引 on a (米)棚上げする/(英)提議する is undamaged, this should 直す/買収する,八百長をする the
problem and if the 命令(する) is run again, it should show no 損失.
The database engine saves the とじ込み/提出するs 含む/封じ込めるing all the data in a とじ込み/提出する catalog when a shutdown takes place. It automatically 回復するs from an 異常な termination and 保存するs the data when the catalog is opened next time. In an ideal operating 環境, where there is no OS 衝突,墜落, disk 失敗, bugs in code, etc., there would be no need to 支援する up a database. 支援 up catalogs is an 保険 政策 against all sorts of misadventure that are not under the 支配(する)/統制する of the database engine.
The data for each catalog consists of up to 5 とじ込み/提出するs in the same
directory with the endings such as *.所有物/資産/財産s
,
*.script
, etc., as 詳細(に述べる)d in previous
一時期/支部s.
HyperSQL features 命令(する)s to 支援する up the database とじ込み/提出するs into a
選び出す/独身 .tar
or .tar.gz
とじ込み/提出する 古記録,
or alternatively as copies of the database とじ込み/提出するs. The backup can be
成し遂げるd by a 命令(する) given in a JDBC 開会/開廷/会期 if the 的 database
catalog is running, or on the 命令(する)-line if the 的 catalog has been
shutdown.
It is not recommended to 支援する up the database とじ込み/提出する with an 外部の とじ込み/提出する backup program while the database is running. The resulting backup will probably be inconsistent and not useful for 回復するing the database
To 支援する up a running catalog, 得る a JDBC 関係 and
問題/発行する a BACKUP DATABASE
命令(する) in SQL. In its most
simple form, the 命令(する) 判型 below will 支援する up the database as a
選び出す/独身 .tar.gz
とじ込み/提出する to the given directory. This type
of backup 成し遂げるs a 検問所 すぐに before 支援 up the
とじ込み/提出するs.
BACKUP DATABASE TO <directory 指名する> BLOCKING [ AS FILES ]
The directory 指名する must end with a 削除する
to distinguish it as a directory, and the whole string must be in 選び出す/独身
引用するs like so: 'subdir/nesteddir/'
.
Normal backup may take a long time with very large databases. Hot backup may be used in those 状況/情勢s. This type of backup does not 成し遂げる a 検問所 and 許すs 接近 to the database while backup is in 進歩.
BACKUP DATABASE TO <directory 指名する> NOT BLOCKING [ AS FILES ]
If you 追加する AS FILES to the 声明s, the database とじ込み/提出するs are 支援するd up as separate とじ込み/提出するs in the directory, without any gzip compression or tar 古記録ing.
See the next section under 声明s for 詳細(に述べる)s about the 命令(する) and its 選択s. See the sections below about 回復するing a backup.
The DbBackup
class is used from the
命令(する)-line to make offline backups and to 回復する backups. Here is how
to see all 選択s for DbBackup
.
To 支援する up an offline catalog, the catalog must be in shut 負かす/撃墜する 明言する/公表する. You will run a Java 命令(する) like this. In this example, the database is 指名するd dbname and is in the dbdir directory. The backup is saved to a とじ込み/提出する 指名するd backup.tar in the tardir directory.
Example 11.4. Offline Backup Example
java -cp hsqldb.jar org.hsqldb.lib.tar.DbBackupMain --save tardir/backup.tar dbdir/dbname
where tardir/backup.tar
is a とじ込み/提出する path
to the *.tar
or *.tar.gz
とじ込み/提出する to
be created in your とじ込み/提出する system, and dbdir/dbname
is
the とじ込み/提出する path to the catalog とじ込み/提出する base 指名する (in same fashion as in
server.database.*
settings and JDBC URLs with catalog
type とじ込み/提出する:.
You can 名簿(に載せる)/表(にあげる) the contents of backup tar とじ込み/提出するs with
DbBackup
on your operating system 命令(する) line,
or with any Pax-compliant tar or pax (弁護士の)依頼人 (this 含むs GNU tar),
Example 11.5. 名簿(に載せる)/表(にあげる)ing a Backup with DbBackup
java -cp hsqldb.jar org.hsqldb.lib.tar.DbBackupMain --名簿(に載せる)/表(にあげる) tardir/backup.tar
You can also give 正規の/正選手 表現s at the end of the
命令(する) line if you are only 利益/興味d in some of the とじ込み/提出する 入ること/参加(者)s in
the backup. 公式文書,認める that these are real 正規の/正選手 表現s, not 爆撃する
globbing patterns, so you would use .+script
to match
入ること/参加(者)s ending in "script", not *script
.
You can 診察する the contents of the backup in their entirety by 回復するing the backup, as explained in the に引き続いて section, to a 一時的な directory.
You use DbBackup
on your operating system
命令(する) line to 回復する a catalog from a backup.
Example 11.6. 回復するing a Backup with DbBackup
java -cp hsqldb.jar org.hsqldb.lib.tar.DbBackupMain --抽出する tardir/backup.tar dbdir
where tardir/backup.tar
is a とじ込み/提出する path
to the *.tar or *.tar.gz とじ込み/提出する to be read, and dbdir
is the 的 directory to 抽出する the catalog とじ込み/提出するs into. 公式文書,認める that
dbdir
明示するs a directory path, without the
catalog とじ込み/提出する base 指名する. The とじ込み/提出するs will be created with the 指名するs 蓄える/店d
in the tar とじ込み/提出する (and which you can see as 述べるd in the 先行する
section). After 回復するing the database, you can connect to it as
usual.
HyperSQL supports encrypted databases. Encryption services use the Java Cryptography 拡張s (JCE) and uses the ciphers 任命する/導入するd with the JRE. HyperSQL itself does not 含む/封じ込める any cryptography code.
Four elements are 伴う/関わるd in 明示するing the cryptography 方式 of 操作/手術.
A cipher is identified by a 変形 string of the form "algorithm/方式/padding" or 簡単に "algorithm". 公式文書,認める The latter form uses the provider default 方式 and padding.
A 重要な is 代表するd as a hexadecimal string.
An optional initialization vector, for 方式s of 操作/手術 that use an IV, is 代表するd as a hexadecimal string.
An optional provider is the fully qualified class 指名する of the cipher provider.
The parameters, 含むing the 指名する of the cipher and the 重要な, are all 明示するd in the database 関係 URL No 重要な or other parameter is 蓄える/店d in the database とじ込み/提出するs.
First, a 重要な must be created for the 願望(する)d cipher and configuration using an 外部の 道具, such as openssl, or by calling the HyperSQL 機能(する)/行事 CRYPT_KEY(<cipher spec>, <provider>). If the default provider (the built-in JVM ciphers) is used, then NULL should be 明示するd as the provider. The CRYPT_KEY 機能(する)/行事 returns a hexadecimal 重要な. The 機能(する)/行事 call can be made in any HyperSQL database, so long as the provider class is on the classpath. This 重要な can be used to create a new encrypted database. Calls to this 機能(する)/行事 always return different 重要なs, based on 生成するd 無作為の values.
As an example, a call to CRYPT_KEY('Blowfish', null) returned the string, '604a6105889da65326bf35790a923932'. To create a new database with this 重要な, the URL below is used:
jdbc:hsqldb:とじ込み/提出する:<database
path>;crypt_key=604a6105889da65326bf35790a923932;crypt_type=blowfish
HyperSQL 作品 with any symmetric cipher and 変形 that may be 利用できる from the JVM. Some 方式s of 操作/手術s 要求する an initialization vector (IV) to be passed in as a hex string. This hex string can be 生成するd using an 外部の 道具, such as openssl, or 無作為に 生成するd by the 使用者.
jdbc:hsqldb:とじ込み/提出する:<database
path>;crypt_key=604a6105889da65326bf35790a923932;crypt_iv=9AB7A109507CD27BEADA2AE59BCEEF08;crypt_type=AES/CBC/PKCS5Padding
The fourth 所有物/資産/財産 指名する is crypt_provider. This is 明示するd only when the provider is not the default provider.
公式文書,認める: Do not use these example crypt_key or crypt_iv values in 生産/産物. Create your own 無作為の values.
The とじ込み/提出するs that are encrypted 含む the
.script
, .data
,
.backup
and .スピードを出す/記録につける
とじ込み/提出するs. From
見解/翻訳/版 2.5, the .高く弓形に打ち返すs
とじ込み/提出する is also encrypted by
default and the blobs and clobs are both compressed and encrypted. You
can 無視/無効 this with the 所有物/資産/財産
crypt_lobs=誤った on the URL. Earlier 見解/翻訳/版s of
HSQLDB did not support encrypted 高く弓形に打ち返すs, and in some 見解/翻訳/版s the default
for this 所有物/資産/財産 was 誤った. You will need to 始める,決める the 所有物/資産/財産 to 誤った
to open those databases.
Although the 詳細(に述べる)s of 外部の 道具s are outside the 範囲 of this 文書, openssl may be used to 生成する 十分に 無作為の 重要なs and initialization vectors for a given crypt_type using the に引き続いて syntax:
openssl enc -aes-128-cbc -k RANDOM_PASSPHRASE -P -md
sha256
General 操作/手術s on an encrypted database are 成し遂げるd the same as with any database. However, some 操作/手術s are 意味ありげに slower than with the 同等(の) (疑いを)晴らす text database. With MEMORY (米)棚上げする/(英)提議するs, there is no difference to the 速度(を上げる) of SELECT 声明s, but data change 声明s are slower. With CACHED (米)棚上げする/(英)提議するs, the 速度(を上げる) of all 声明s is slower.
安全 considerations for encrypted databases have been discussed at length in HyperSQL discussion groups. 開発 team members have commented that encryption is not a panacea for all 安全 needs. The に引き続いて 問題/発行するs should be taken into account:
Encrypted とじ込み/提出するs are 比較して 安全な in 輸送(する), but because databases 含む/封じ込める many repeated values and words, 特に known 記念品s such as CREATE, INSERT, etc., breaking the encryption of a database may be simpler than an unknown とじ込み/提出する.
Only the とじ込み/提出するs are encrypted, not the memory image. Peeking into computer memory, while the database is open, will expose the contents of the database.
HyperSQL is open source. Someone who has the 重要な, can 収集する and use a 修正するd 見解/翻訳/版 of the program that saves a 十分な (疑いを)晴らす text 捨てる of an encrypted database. Therefore, encryption is 一般に 効果的な only when the 使用者s who have 接近 to the crypt 重要な are 信用d.
Database 操作/手術s can be 監視するd at different levels using 内部の HyperSQL 能力s or 追加する-ons.
声明 level 監視するing 許すs you to gather 統計(学) about 遂行する/発効させるd 声明s. HyperSQL is supported by the 監視するing 道具 JAMon (Java 使用/適用 監視する). JAMon is 現在/一般に developed as the SourceForge 事業/計画(する), jamonapi.
JAMon 作品 at the JDBC level. It can 監視する and gather 統計(学) on different types of 遂行する/発効させるd 声明s or other JDBC calls.
早期に 見解/翻訳/版s of JAMon were developed with HyperSQL and had to be 統合するd into HyperSQL at code level. The 最新の 見解/翻訳/版s can be 追加するd on as a proxy in a much simpler fashion.
The internally 生成するd, individual SQL スピードを出す/記録につける for the database can
be enabled with the SET DATABASE EVENT LOG SQL LEVEL
声明, 述べるd in this 一時期/支部. As all the 遂行する/発効させるd 声明s are
logged, there is a small 衝撃 on 速度(を上げる). So you should only use this
for debugging. Four levels of SQL logging are supported.
HyperSQL can スピードを出す/記録につける important 内部の events of the engine. These events occur during the 操作/手術 of the engine, and are not always coupled with the exact type of 声明 存在 遂行する/発効させるd. Normal events such as 開始 and の近くにing of とじ込み/提出するs, or errors such as OutOfMemory 条件s are examples of logged events.
HyperSQL supports two methods of logging. One method is 明確な/細部 to the individual database and is managed internally by HyperSQL. The other method is 明確な/細部 to JVM and is managed by a logging 枠組み.
The internally-生成するd, individual スピードを出す/記録につける for the database can be
enabled with the SET DATABASE EVENT LOG LEVEL
声明, 述べるd in this 一時期/支部. This method of logging is very
useful for 使用/適用 (軍隊などの)展開,配備, as it 供給するs an 現在進行中の 記録,記録的な/記録する of
database 操作/手術s.
HyperSQL also supports log4J and JDK logging. The same event (警察などへの)密告,告訴(状) that is passed to the 内部の スピードを出す/記録につける, is passed to 外部の logging 枠組みs. These 枠組みs are typically configured outside HyperSQL. The スピードを出す/記録につける messages 含む the string "hsqldb.db." followed by the unique id (a 16 character string) of the database that 生成するd the message, so they can be identified in a multi-database server 状況.
The extent of logged messages is controlled with the SET
DATABASE EXTERNAL EVENT LOG LEVEL
声明, 述べるd in this
一時期/支部.
As the default JDK logging 枠組み has several shortcomings,
HyperSQL can configure this logging 枠組み for better 操作/手術. If
you want HyperSQL to configure the JDK logging 枠組み, you should
含む the system level 所有物/資産/財産
hsqldb.reconfig_logging=true
in your
環境.
HyperSQL has 広範囲にわたる 安全 features which are 器具/実施するd at different levels and covered in different 一時期/支部s of this guide.
The server can use SSL and IP 演説(する)/住所 接近 支配(する)/統制する 名簿(に載せる)/表(にあげる)s. See the HyperSQL 網状組織 Listeners (Servers) 一時期/支部.
You can define a system 所有物/資産/財産 to 許す the database engine 接近 to a 限られた/立憲的な 始める,決める of Java static methods that are on the classpath, This is only necessary if you want to use those Java static methods as SQL 決まりきった仕事s See 安全な・保証するing 接近 to Classes in the SQL-Invoked 決まりきった仕事s 一時期/支部.
You can define a system 所有物/資産/財産 to 許す 接近 to とじ込み/提出するs on the とじ込み/提出する system outside the database directory and its children. This 接近 is only necessary if you use TEXT (米)棚上げする/(英)提議するs or want to 負担 and save とじ込み/提出するs 直接/まっすぐに to the とじ込み/提出する system as BLOB or CLOB. See the Text (米)棚上げする/(英)提議するs 一時期/支部.
The database とじ込み/提出するs can be encrypted. Discussed in this 一時期/支部.
Within the database, the DBA 特権s are 要求するd for system and 維持/整備 職業s.
You can define 使用者s and 役割s and 認める them 接近 on different database 反対するs. Each 使用者 has a password and is 認めるd a 始める,決める of 特権s. HyperSQL supports (米)棚上げする/(英)提議する level, column level, and 列/漕ぐ/騒動 level 特権s. See the 接近 支配(する)/統制する 一時期/支部.
You can define a password 複雑さ check 機能(する)/行事 for new and changed passwords. This is covered below under Authentication Settings.
You can use 外部の authentication such as LDAP instead of internally 蓄える/店d password to authenticate 使用者s for each database. This is covered below under Authentication Settings.
HyperSQL 安全 is multi-層d and 避けるs any (法などの)抜け穴s to 回避する 安全. It is however the 使用者's 責任/義務 to enable the 要求するd level of 安全.
The default settings are 一般に 適する for embedded use of the database in 選び出す/独身-使用者 使用/適用s. For servers on the host that are 接近d from the same machine or 接近d within a 網状組織, and 特に for those 接近d from outside the 網状組織, 付加 安全 settings must be used. This is the 最小限 名簿(に載せる)/表(にあげる) of changes you need to make:
Change the admin password. Change the admin 指名する (the default is SA) 同様に for extra 安全.
Create a 非,不,無-admin 使用者 for normal database 接近 and 認める the 要求するd SELECT, INSERT, UPDATE and DELETE 特権s to this 使用者. Connect with this 使用者's 信任状 from the 使用/適用.
始める,決める up SSL and IP 演説(する)/住所 接近 支配(する)/統制する on the Server.
制限する the 死刑執行 of 多重の 声明s with
SET DATABASE SQL RESTRICT EXEC TRUE
.
Backup the database 定期的に and 蓄える/店 the backups in a different 場所 than the machine running the Server.
The default settings for server and web server do not use SSL or IP 接近 支配(する)/統制する 名簿(に載せる)/表(にあげる)s. These features are enabled programmatically, or with the 所有物/資産/財産s used to start the server.
The default settings 許す a database 使用者 with the DBA 役割 or with schema 創造 役割 to 接近 static 機能(する)/行事s on the classpath. You can 無能にする this feature or 限界 it to 明確な/細部 classes and methods. This can be done programmatically or by setting a system 所有物/資産/財産 when you start a server.
If 接近 to 明確な/細部 static 機能(する)/行事s is 認めるd, then these 機能(する)/行事s must be considered as part of the database program and checked for any 安全 欠陥s before 傾向 in the classpath.
The default settings do not 許す a 使用者 to 接近 とじ込み/提出するs outside the database directory. This 接近 is for TEXT (米)棚上げする/(英)提議する source とじ込み/提出するs. You can 無視/無効 this programmatically or with a system 所有物/資産/財産 when you start a server.
The encryption of database とじ込み/提出する does not utilise any 使用者-供給(する)d (警察などへの)密告,告訴(状) for encryption 重要なs. This level of 安全 is outside the realm of 使用者s and passwords.
The first 使用者 for a new database has the DBA 役割. This 使用者 指名する was always SA in older 見解/翻訳/版s of HyperSQL, but not in the 最新の 見解/翻訳/版s. The 指名する of the first DBA 使用者 and its password can be 明示するd when the database is created by the first 関係 to the database. These settings are then 蓄える/店d in the database. You can also change the 指名する after creating the database.
The 初期の 使用者 with the DBA 役割 should be used for admin 目的s only. At least one 付加 役割 should be created for normal database use in the 使用/適用 and at least one 付加 使用者 should be created and 認めるd this 役割. The new 役割 should not be given the DBA 役割. It can be given the CREATE_SCHEMA 役割, which 許すs it to create and 接近 多重の schemas. Alternatively, the 使用者 with the DBA 役割 can create the schemas and their 反対するs and then 認める 明確な/細部 特権s on the 反対するs to the 非,不,無-DBA 役割.
Authentication is the 機械装置 that 決定するs if a 使用者 can 接近 the database at all. Once authentication is 成し遂げるd, the authorization 機械装置 is used to 決定する which database 反対するs the particular 使用者 can 接近. The default authentication 機械装置 is password authentication. Each 使用者 is created with a password, which is 蓄える/店d as a hash in the database and checked each time a new database 関係 is created.
Password 複雑さ Check
HyperSQL 許すs you to define a 機能(する)/行事 that checks the 質 of the passwords defined in the database. The passwords are 蓄える/店d in the database. Each time a 使用者 connects, the 使用者's 指名する and password are checked against the 蓄える/店d 名簿(に載せる)/表(にあげる) of 使用者s and passwords. The 関係 試みる/企てる is 拒絶するd if there is no match.
外部の Authentication
You can use an 外部の authentication 機械装置 instead of the 内部の authentication 機械装置. HyperSQL 許すs you to define a 機能(する)/行事 that checks the combination of database unique 指名する, 使用者 指名する, and password for each 関係 試みる/企てる. The 機能(する)/行事 can use 外部の 資源s to authenticate the 使用者. For example, a directory server may be used. The password may be ignored if the 外部の 資源 can 立証する the 使用者's credential without it.
You can 無視/無効 外部の authentication for a 使用者 with the ALTER USER 声明. See the 接近 支配(する)/統制する 一時期/支部
System level 声明s are 名簿(に載せる)/表(にあげる)d in this section. 声明s that begin with SET DATABASE or SET FILES are for 所有物/資産/財産s that have an 影響 on the normal 操作/手術 of HyperSQL. The 影響s of these 声明s are also discussed in different 一時期/支部s.
These 声明s 成し遂げる a system level 活動/戦闘.
SHUTDOWN
shutdown 声明
<shutdown 声明> ::= SHUTDOWN [IMMEDIATELY |
COMPACT | SCRIPT]
Shutdown the database. If the optional qualifier is not used, a normal SHUTDOWN is 成し遂げるd. A normal SHUTDOWN 確実にするs all data is saved 正確に and the database opens without 延期する on next use.
SHUTDOWN |
Normal shutdown saves all the database とじ込み/提出するs, then 削除するs
the |
SHUTDOWN IMMEDIATELY |
Saves the |
SHUTDOWN COMPACT |
This is 類似の to normal SHUTDOWN, but 減ずるs the
|
SHUTDOWN SCRIPT |
This is 類似の to SHUTDOWN COMPACT, but it does not rewrite
the This 命令(する) produces a 十分な script of the database which can be edited for special 目的s 事前の to the next startup. |
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
BACKUP DATABASE
backup database 声明
<backup database 声明> ::= BACKUP DATABASE
TO <とじ込み/提出する path> [SCRIPT] {[NOT] COMPRESSED} {[NOT] BLOCKING} [AS
FILES]
Backup the database to 明示するd <とじ込み/提出する
path>
for 古記録ing 目的s.
The <とじ込み/提出する path>
can be in two forms.
If the <とじ込み/提出する path>
ends with a 今後 削除する,
it 明示するs a directory. In this 事例/患者, an (a)自動的な/(n)自動拳銃 指名する for the
古記録 is 生成するd that 含むs the date, time and the base 指名する of
the database. The database is 支援するd up to this 古記録 とじ込み/提出する in the
明示するd directory. The 古記録 is in .tar.gz
or
.tar
判型 depending on whether it is compressed or
not.
If the <とじ込み/提出する path>
does not end with a
今後 削除する, it 明示するs a 使用者-defined とじ込み/提出する 指名する for the backup
古記録. The とじ込み/提出する 拡張 must be either .tar.gz
or
.tar
and this must match the compression
選択.
The default 始める,決める of 選択s is COMPRESSED BLOCKING.
If SCRIPT is 明示するd, the backup will 含む/封じ込める a
*.script
とじ込み/提出する, which 含む/封じ込める all the data and
settings of the database. This type of backup is suitable for smaller
databases. With larger databases, this takes a long time. When the
SCRIPT 選択 is no used, the backup 始める,決める will consist of the 現在の
snapshot of all database とじ込み/提出するs.
If NOT COMPRESSED is 明示するd, the backup is a tar とじ込み/提出する, without compression. さもなければ, it is in gzip 判型.
The qualifier, BLOCKING, means all database 操作/手術s are 一時停止するd during backup. During backup, a CHECKPOINT 命令(する) is silently 遂行する/発効させるd. This 方式 is always used when SCRIPT is 明示するd.
Hot backup is 成し遂げるd if NOT BLOCKING is 明示するd. In this 方式, the database can be used during backup. This 方式 should only be used with very large databases. A hot backup 始める,決める is いっそう少なく compact and takes longer to 回復する and use than a normal backup 始める,決める produced with the BLOCKING 選択. You can 成し遂げる a CHECKPOINT just before a hot backup ーするために 減ずる the size of the backup 始める,決める.
If AS FILES is 明示するd, the database とじ込み/提出するs are copied to a directory 明示するd by <とじ込み/提出する path> without any compression. The とじ込み/提出する path must be a directory. If the directory does not 存在する, it is created. The とじ込み/提出する path may be 絶対の or 親族. If it is 親族, it is 解釈する/通訳するd as 親族 to the 場所 of database とじ込み/提出するs. When AS FILES is 明示するd, SCRIPT or COMPRESSED 選択s are not 利用できる. The backup can be 成し遂げるd as BLOCKING or NOT BLOCKING.
The HyperSQL jar also 含む/封じ込めるs a program that creates an 古記録 of an offline database. It also 含む/封じ込めるs a program to 拡大する an 古記録 into database とじ込み/提出するs. These programs are 文書d in this 一時期/支部 under 支援 up Database Catalogs.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
CHECKPOINT
検問所 声明
<検問所 声明> ::= CHECKPOINT
[DEFRAG]
の近くにs the database とじ込み/提出するs, rewrites the script とじ込み/提出する, 削除するs the スピードを出す/記録につける とじ込み/提出する and 再開するs the database.
If DEFRAG
is 明示するd, also 縮むs the
*.data
とじ込み/提出する to its 最小限 size. CHECKPOINT
DEFRAG
time depends on the size of the database and can take a
long time with 抱擁する databases.
A 検問所 on a multi-使用者 database waits until all other 開会/開廷/会期s have committed or rolled 支援する. While the 検問所 is in 進歩 other 開会/開廷/会期s are kept waiting. 検問所 does not の近くに any 開会/開廷/会期s.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
SCRIPT
script 声明
<script 声明> ::= SCRIPT [<とじ込み/提出する
指名する>]
Returns a script 含む/封じ込めるing SQL 声明s that define the
database, its 使用者s, and its schema 反対するs. If <とじ込み/提出する
指名する>
is not 明示するd, the 声明s are returned in a
ResultSet, with each 列/漕ぐ/騒動 含む/封じ込めるing an SQL 声明. No data 声明s
are 含むd in this form. The optional とじ込み/提出する 指名する is a 選び出す/独身-引用するd
string. If <とじ込み/提出する 指名する>
is 明示するd, then the
script is written to the 指名するd とじ込み/提出する. In this 事例/患者, all the data in all
(米)棚上げする/(英)提議するs of the database is 含むd in the script as INSERT
声明s.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
These 声明s 許す data to be transferred in 本体,大部分/ばら積みの from one
database to another using とじ込み/提出するs formatted in the same manner as the
.script
とじ込み/提出するs.
EXPORT SCRIPT
輸出(する) script 声明
<輸出(する) script 声明> ::= PERFORM EXPORT
SCRIPT FOR DATABASE [ { STRUCTURE | DATA } ] [WITH COLUMN NAMES] TO
<選び出す/独身-引用するd とじ込み/提出する path>
<輸出(する) script (米)棚上げする/(英)提議する 声明> ::= PERFORM
EXPORT SCRIPT FOR TABLE <(米)棚上げする/(英)提議する 指名する> DATA [WITH COLUMN NAMES] TO
<選び出す/独身-quouted とじ込み/提出する path>
<輸出(する) script for 見解/翻訳/版ing 声明> ::=
PERFORM EXPORT SCRIPT FOR DATABASE VERSIONING DATA FROM TIMESTAMP
<選び出す/独身-引用するd UTC timestamp string> TO <とじ込み/提出する
指名する>
令状s a script 含む/封じ込めるing SQL 声明s for the database.
The first form 令状s the whole database, its structure only,
or its data only to the とじ込み/提出する. When only DATABASE is 明示するd,
everything is written out. When STRUCTURE is 明示するd, only the
database settings and the 鮮明度/定義 of schema 反対するs are written. When
DATA is 明示するd, only the data in the (米)棚上げする/(英)提議するs is written. The optional
WITH COLUMN NAMES
条項 含むs the 名簿(に載せる)/表(にあげる) of column
指名するs in INSERT 声明s and may be useful for 輸出(する)ing data to other
database engines. This 選択 should not be used for scripts that are
輸入するd into HSQLDB with the PERFORM IMPORT SCRIPT
声明, as the script will be 拒絶するd.
The second form 令状s the data for one (米)棚上げする/(英)提議する only.
The third form 令状s the data in all system-見解/翻訳/版d (米)棚上げする/(英)提議するs from a given UTC timestamp. This form is used for database replica synchronization, to be 輸入するd into another replica. For synchronization 目的s, all system-見解/翻訳/版d (米)棚上げする/(英)提議するs must have a 最初の/主要な 重要な as those without are not 輸出(する)d. UTC timestamps are used to 許す synchronization across time zones.
Only a 使用者 with the SCRIPT_OPS 役割 can 遂行する/発効させる this 声明.
EXPORT DSV
輸出(する) DSV 声明
<輸出(する) DSV 声明> ::= PERFORM EXPORT DATA
FROM TABLE <(米)棚上げする/(英)提議する 指名する> TO <選び出す/独身-quouted text とじ込み/提出する source
string>
令状s the contents of a (米)棚上げする/(英)提議する as a DSV とじ込み/提出する, for example as a Comma-Seperated Values (CSV).
The 目的地 is defined as a とじ込み/提出する path together with optional setting as defined for a TEXT (米)棚上げする/(英)提議する. See the Text (米)棚上げする/(英)提議するs 一時期/支部 for the 所有物/資産/財産s.
Only a 使用者 with the SCRIPT_OPS 役割 can 遂行する/発効させる this 声明.
IMPORT SCRIPT
輸入する script 声明
<輸入する script 声明> ::= PERFORM IMPORT
SCRIPT DATA FROM <選び出す/独身-引用するd とじ込み/提出する path> { CONTINUE | STOP |
CHECK } ON ERROR
<輸入する script for 見解/翻訳/版ing 声明> ::=
PERFORM IMPORT SCRIPT VERSIONING DATA FROM <選び出す/独身-引用するd とじ込み/提出する
path>
輸入するs data for database (米)棚上げする/(英)提議するs. The とじ込み/提出する to be 輸入するd must be a とじ込み/提出する 輸出(する)d with the EXPORT SCRIPT 声明s 名簿(に載せる)/表(にあげる)d above with DATA qualifier, or 厳密に in the same 判型.
The first form is for 輸入するing data for ordinary (米)棚上げする/(英)提議するs. The {
CONTINUE | STOP | CHECK } ON ERROR 条項 決定するs the 活動/戦闘 when an
error occurs 予定 to 強制 違反. The CHECK 選択 does not
挿入する the data, but checks each INSERT 声明 in the script for type
強制s such as string size 限界 or 列/漕ぐ/騒動 強制s such as NOT
NULL. It cannot check for UNIQUE 強制s. The STOP 選択 stops the
輸入する at the first error. The CONTINUE 選択 令状s the 列/漕ぐ/騒動s that
cannot be 輸入するd, to a とじ込み/提出する in the same 場所 as the 輸入するd
script, with the とじ込み/提出する suffix .拒絶する
and the
timestamp of the 輸入する, then continues the 輸入する.
The second form is for 輸入するing data for system-見解/翻訳/版d
(米)棚上げする/(英)提議するs. This form of 輸入する always uses the CONTINUE 選択 について言及するd
above. When two replicas of a database 存在する, an EXPORT is made from one
replica and the script とじ込み/提出する is used for an IMPORT into the other
replica. The 輸入する automatically ignores any history that is already in
the (米)棚上げする/(英)提議する and 避ける any duplication of data. Errors can arise when the
same 列/漕ぐ/騒動 has been 挿入するd, updated or 削除するd in both databases. In
this 事例/患者, the changes for the 列/漕ぐ/騒動 are not 適用するd and are written to
the .拒絶する
とじ込み/提出する.
Only a 使用者 with the SCRIPT_OPS 役割 can 遂行する/発効させる this 声明.
IMPORT DSV
輸入する DSV 声明
<輸入する DSV 声明> ::= PERFORM IMPORT DATA
INTO <(米)棚上げする/(英)提議する 指名する> FROM <選び出す/独身-引用するd とじ込み/提出する path> { CONTINUE
| STOP | CHECK } ON ERROR
輸入するs data from a DSV とじ込み/提出する into a (米)棚上げする/(英)提議する. The とじ込み/提出する to be 輸入するd may be a とじ込み/提出する 輸出(する)d with the EXPORT DSV 声明 名簿(に載せる)/表(にあげる)d above, or a とじ込み/提出する from another source. The source is defined as a とじ込み/提出する path together with optional setting as defined for a TEXT (米)棚上げする/(英)提議する. See the Text (米)棚上げする/(英)提議するs 一時期/支部 for the 所有物/資産/財産s.
The { CONTINUE | STOP | CHECK } ON ERROR 条項 決定するs the
活動/戦闘 when an error occurs 予定 to 強制 違反. The CHECK
選択 does not 挿入する the data, but checks each line of data in the DSV
とじ込み/提出する for type 強制s such as string size 限界 or 列/漕ぐ/騒動 強制s
such as NOT NULL. It cannot check for UNIQUE 強制s. The STOP
選択 stops the 輸入する at the first error. The CONTINUE 選択 令状s
the 列/漕ぐ/騒動s that cannot be 輸入するd, to a とじ込み/提出する in the same 場所 as the
輸入するd script, with the とじ込み/提出する suffix .拒絶する
and the
timestamp of the 輸入する, then continues the 輸入する. If there is a
malformed line in the DSV とじ込み/提出する, the 輸入する is 中止するd with an error
message, 関わりなく the ON ERROR 選択.
Only a 使用者 with the SCRIPT_OPS 役割 can 遂行する/発効させる this 声明.
CHECK INDEX
check 索引 声明
<check 索引 声明> ::= PERFORM CHECK { ALL
TABLE | TABLE < (米)棚上げする/(英)提議する 指名する > } INDEX [ AND FIX
]
Checks the 索引s on a 選び出す/独身 CACHED (米)棚上げする/(英)提議する, or all the CACHED
(米)棚上げする/(英)提議するs in the database. It returns a 名簿(に載せる)/表(にあげる) of (米)棚上げする/(英)提議するs and 索引s with
列/漕ぐ/騒動s counts together with any errors 設立する. The optional AND
FIX
直す/買収する,八百長をするs the 損失d 索引s on a (米)棚上げする/(英)提議する if at least one 索引
is undamaged. If this 選択 is used, you must 成し遂げる a CHECKPOINT
after 完成, さもなければ the 直す/買収する,八百長をするs will be lost.
This 声明s takes a long time to 遂行する/発効させる on large (米)棚上げする/(英)提議するs as all the 列/漕ぐ/騒動s are read again for each 索引. It also needs extra Java heap memory over and above normal usage.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明. An example of the 生産(高) is given below.
TABLE_OR_INDEX_NAME INFO -------------------------- --------------------- TABLE PUBLIC.ZIP 列/漕ぐ/騒動s 4096 SYS_IDX_SYS_PK_10092_10093 readable 列/漕ぐ/騒動s 4096 TABLE PUBLIC.TEST 列/漕ぐ/騒動s 2084352 SYS_IDX_SYS_PK_10096_10097 readable 列/漕ぐ/騒動s 2084352
These 声明s change the database settings.
SET DATABASE COLLATION
始める,決める database collation 声明
<始める,決める database collation 声明> ::= SET
DATABASE COLLATION <collation 指名する> [ NO PAD | PAD SPACE
]
Each database can have its own default collation. 始める,決めるs the collation from the 始める,決める of collations supported by HyperSQL. Once this 命令(する) has been 問題/発行するd, the database can be opened in any JVM and will 保持する its collation.
All collations pad the shorter string with spaces when two
strings are compared. If NO PAD is 明示するd, comparison is 成し遂げるd
without padding. The default system collation is 指名するd
SQL_TEXT
. To use the default without padding use
SET DATABASE COLLATION SQL_TEXT NO PAD
.
After you change the collation for a database that 含む/封じ込めるs
collated data, you must 遂行する/発効させる SHUTDOWN COMPACT
or
SHUTDOWN SCRIPT
ーするために recreate the
索引s.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
Collations are discussed in the Schemas and Database 反対するs 一時期/支部. Some examples of setting the database collation follow:
-- this collation is an ascii collation with Upper 事例/患者 Comparison (coverts strings to uppercase for comparison) SET DATABASE COLLATION SQL_TEXT_UCC -- this collation is 事例/患者-insensitive English SET DATABASE COLLATION "English 1" -- this collation is 事例/患者-極度の慎重さを要する French SET DATABASE COLLATION "French 2"
SET DATABASE DEFAULT RESULT MEMORY ROWS
始める,決める database default result memory 列/漕ぐ/騒動s
声明
<始める,決める database default result memory 列/漕ぐ/騒動s> ::=
SET DATABASE DEFAULT RESULT MEMORY ROWS <unsigned integer
literal>
始める,決めるs the 最大限 number of 列/漕ぐ/騒動s of each result 始める,決める and 内部の
一時的な (米)棚上げする/(英)提議する that is held in memory. 一時的な (米)棚上げする/(英)提議するs 含むs 見解(をとる)s,
schema-based and 開会/開廷/会期-based TEMPORARY (米)棚上げする/(英)提議するs, transient (米)棚上げする/(英)提議するs for
subqueries, and INFORMATION_SCHEMA
(米)棚上げする/(英)提議するs.
This setting 適用するs to all 開会/開廷/会期s. Individual 開会/開廷/会期s can
change the value with the SET SESSION RESULT MEMORY
ROWS
声明. The default is 0, meaning all result 始める,決めるs are
held in memory.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.result_max_memory_rows.
SET DATABASE DEFAULT TABLE TYPE
始める,決める database default (米)棚上げする/(英)提議する type
声明
<始める,決める database default (米)棚上げする/(英)提議する type> ::= SET
DATABASE DEFAULT TABLE TYPE { CACHED | MEMORY }
始める,決めるs the type of (米)棚上げする/(英)提議する created when the next CREATE TABLE 声明 is 遂行する/発効させるd. The default is MEMORY.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.default_table_type.
SET DATABASE EVENT LOG LEVEL
始める,決める database event スピードを出す/記録につける level 声明
<始める,決める database event スピードを出す/記録につける level> ::= SET DATABASE
[EXTERNAL] EVENT LOG [ SQL ] LEVEL { 0 | 1 | 2 | 3 |
4}
This 声明 has 3 different 目的s and can be used up to three times with different 選択s to configure さまざまな event logging 操作/手術s.
When the EXTERNAL and SQL 選択s are not used, this 声明 始める,決めるs the 量 of (警察などへの)密告,告訴(状) logged in the 内部の, database-明確な/細部 event スピードを出す/記録につける. Level 0 means no スピードを出す/記録につける. Level 1 means only important (error) events. Level 2 means 警告 events 同様に. Level 3 means more events, 含むing both important and いっそう少なく important (normal) events. Level 4 含むs even more 詳細(に述べる)s.
The events are logged in a とじ込み/提出する with the 拡張
.app.スピードを出す/記録につける
と一緒に the main database とじ込み/提出するs. For
readonly and mem: databases, if the level is 始める,決める
above 0, the スピードを出す/記録につける messages are directed to stderr, but these databases do
not 生成する many スピードを出す/記録につける messages.
This 命令(する) is 同等(の) to the 関係 所有物/資産/財産 hsqldb.applog.
When the EXTERNAL 選択 is used (the SQL 選択 is not 許すd in this 事例/患者), the 声明 configures the level of events that are logged to the JDK or Log4J logger. For example, LEVEL 2 示すs error and 警告 events (levels 1 and 2) are logged.
When the SQL 選択 is used, this 声明 スピードを出す/記録につけるs the SQL 声明s as they are 遂行する/発効させるd. Each スピードを出す/記録につける line 含む/封じ込めるs the timestamp and the 開会/開廷/会期 number, followed by the SQL 声明 and JDBC arguments if any.
Levels 1, 2, 3 and 4 are supported. Level 1 only スピードを出す/記録につけるs commits and rollbacks. Level 2 and above スピードを出す/記録につける all 声明s. Level 2 truncates long 声明s, while level 3 報告(する)/憶測s the 十分な 声明 and parameter values. Level 4 追加する the update count or the size of the returned result 始める,決める.
The logged lines are 蓄える/店d in a とじ込み/提出する with the 拡張
.sql.スピードを出す/記録につける
と一緒に the main database とじ込み/提出するs.
This 命令(する) is 同等(の) to the 関係 所有物/資産/財産 hsqldb.sqllog.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
From 見解/翻訳/版 2.3.0, the 同等(の) URL 所有物/資産/財産s,
hsqldb.app_log
and hsqldb.sql_log
,
can be used not only for a new database, but also when 開始 an
存在するing とじ込み/提出する database to change the event スピードを出す/記録につける level.
An 抽出する from an .sql.スピードを出す/記録につける
とじ込み/提出する created
with スピードを出す/記録につける Level 3 is shown below. The numbers after the timestamp (10 and
1) show the 開会/開廷/会期 number. The values for 用意が出来ている 声明 parameters
are shown in parentheses at the end of the 声明.
Example 11.7. SQL スピードを出す/記録につける Example
2012-11-29 10:40:40.250 10 INSERT INTO TEST_CLOB VALUES (1,'Ut enim 広告 minima veniam, quis nostrum exercitationem ...') 2012-11-29 10:40:40.250 1 INSERT INTO SYSTEM_LOBS.LOB_IDS VALUES(?, ?, ?, ?) (1,49,0,40) 2012-11-29 10:40:40.250 1 COMMIT 2012-11-29 10:40:40.265 1 CALL SYSTEM_LOBS.ALLOC_BLOCKS(?, ?, ?) (1,0,1) 2012-11-29 10:40:40.265 1 COMMIT
SET DATABASE GC
始める,決める database gc 声明
<始める,決める database gc 声明> ::= SET DATABASE GC
<unsigned integer literal>
In previous 見解/翻訳/版s, an optional 所有物/資産/財産 which 軍隊d calls
to System.gc()
after the 明示するd number of
列/漕ぐ/騒動 操作/手術s. This has no 影響 from 見解/翻訳/版 2.5.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
SET DATABASE TEXT TABLE DEFAULTS
始める,決める database text (米)棚上げする/(英)提議する defaults 声明
<始める,決める database text (米)棚上げする/(英)提議する defaults 声明> ::=
SET DATABASE TEXT TABLE DEFAULTS <character
literal>
An optional 所有物/資産/財産 to 無視/無効 default text (米)棚上げする/(英)提議する settings. The string literal has the same 判型 as the string used for setting the data source of a text (米)棚上げする/(英)提議する, but without the とじ込み/提出する 指名する. See the Text (米)棚上げする/(英)提議するs 一時期/支部.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
SET DATABASE TRANSACTION CONTROL
始める,決める database 処理/取引 支配(する)/統制する 声明
<始める,決める database 処理/取引 支配(する)/統制する 声明> ::=
SET DATABASE TRANSACTION CONTROL { LOCKS | MVLOCKS | MVCC
}
始める,決める the concurrency 支配(する)/統制する system for the database. It can be 問題/発行するd only when all 開会/開廷/会期s have been committed or rolled 支援する. This 命令(する) and its 方式s is discussed in the 開会/開廷/会期s and 処理/取引s 一時期/支部.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.tx.
SET DATABASE TRANSACTION ROLLBACK ON CONFLICT
始める,決める database 処理/取引 rollback on 衝突 声明
<始める,決める database 処理/取引 rollback on 衝突
声明> ::= SET DATABASE TRANSACTION ROLLBACK ON CONFLICT { TRUE |
FALSE }
When a 処理/取引 行き詰まる or 衝突 is about to happen, the 現在の 処理/取引 is rolled 支援する and an exception is raised. When this 所有物/資産/財産 is 始める,決める 誤った, the 処理/取引 is not rolled 支援する. Only the 最新の 声明 that would 原因(となる) the 衝突 is undone and an exception is raised. The 所有物/資産/財産 should not be changed unless the 使用/適用 can quickly 成し遂げる an 代案/選択肢 声明 and 完全にする the 処理/取引. It is 供給するd for compatibility with other database engines which do not roll 支援する the 処理/取引 upon 行き詰まる. This 命令(する) is also discussed in the 開会/開廷/会期s and 処理/取引s 一時期/支部.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.tx_conflict_rollback.
SET DATABASE TRANSACTION ROLLBACK ON INTERRUPT
始める,決める database 処理/取引 rollback on interrupt 声明
<始める,決める database 処理/取引 rollback on interrupt
声明> ::= SET DATABASE TRANSACTION ROLLBACK ON INTERRUPT { TRUE
| FALSE }
When the 使用者 使用/適用 interrupts a thread that is 遂行する/発効させるing a HyperSQL 声明, the engine resets the interrupted 旗 on the thread. Setting this 所有物/資産/財産 to TRUE changes the behaviour and the 処理/取引 is rolled 支援する when the interrupt is (悪事,秘密などを)発見するd. This 命令(する) is also discussed in the 開会/開廷/会期s and 処理/取引s 一時期/支部.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.tx_conflict_rollback.
SET DATABASE DEFAULT ISOLATION LEVEL
始める,決める database default 孤立/分離 level
声明
<始める,決める database default 孤立/分離 level> ::= SET
DATABASE DEFAULT ISOLATION LEVEL { READ COMMITTED | SERIALIZABLE
}
始める,決めるs the 処理/取引 孤立/分離 level for new 開会/開廷/会期s. The default is READ COMMITTED. Each 開会/開廷/会期 can also 始める,決める its 孤立/分離 level.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.tx_level.
SET DATABASE UNIQUE NAME
始める,決める database unique 指名する
<始める,決める database unique 指名する 声明> ::= SET
DATABASE UNIQUE NAME <identifier>
Each HyperSQL catalog (database) has an engine-生成するd 内部の 指名する. This 指名する is a 16-character long string, beginning with HSQLDB and based on the time of 創造 of the database. The 指名する is used for the スピードを出す/記録につける events that are sent to 外部の logging 枠組みs. The new 指名する must be 正確に/まさに 16 characters long with no spaces.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
SET TABLE TYPE
始める,決める (米)棚上げする/(英)提議する type
<始める,決める (米)棚上げする/(英)提議する type 声明> ::= SET TABLE
<(米)棚上げする/(英)提議する 指名する> TYPE { MEMORY | CACHED }
Changes the 貯蔵 type of an 存在するing (米)棚上げする/(英)提議する between CACHED and MEMORY types.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
These 声明s 修正する the level of conformance to the SQL 基準 in different areas. The settings that 明示する SQL SYNTAX are for compatibility with other database engines and are FALSE by default. For all the 残り/休憩(する) of the settings, TRUE means better conformance to the 基準 (unless the 基準 defines the behaviour as 実施 扶養家族). The default value of a few of these settings is FALSE, 予定 to 普及した 非,不,無-適合するing 声明s that are already in use in 使用者 使用/適用s or 声明s 生成するd by 反対する relational 道具s. So long as it is practical, it is best to 始める,決める the 非,不,無-適合するing defaults to TRUE ーするために 改善する the 質 of the database 使用/適用.
SET DATABASE SQL RESTRICT EXEC
始める,決める database sql 制限する exec 声明
<始める,決める database sql 制限する exec 声明> ::=
SET DATABASE SQL RESTRICT EXEC { TRUE | FALSE }
制限するs or 許すs 死刑執行 of SQL 命令(する)s consisting of
多重の 声明s in a 選び出す/独身 string. The 所有物/資産/財産 also disallows or
許すs the use of
java.sql.声明.executeQuery()
for any DDL
or DML 声明.
This 所有物/資産/財産 is FALSE
by default. SQL
基準 and JDBC 要求する 制限 to a 選び出す/独身 声明. It is
advisable to 制限する 死刑執行.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.restrict_exec.
SET DATABASE SQL SIZE
始める,決める database sql size 声明
<始める,決める database sql size 声明> ::= SET
DATABASE SQL SIZE { TRUE | FALSE }
Enable or 無能にする 施行 of column sizes for CHAR and
VARCHAR columns. The default is TRUE, meaning (米)棚上げする/(英)提議する 鮮明度/定義 must
含む/封じ込める VARCHAR(n)
instead of
VARCHAR
.
SQL 基準 要求するs 施行.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.enforce_size.
SET DATABASE SQL NAMES
始める,決める database sql 指名するs 声明
<始める,決める database sql 指名するs 声明> ::= SET
DATABASE SQL NAMES { TRUE | FALSE }
Enable or 無能にする 十分な 施行 of the 支配する that 妨げるs
SQL keywords 存在 used for database 反対する 指名するs such as columns and
(米)棚上げする/(英)提議するs. The default is FALSE
, meaning
無能にするd.
SQL 基準 要求するs 施行. It is better to enable this check, ーするために 改善する the 質 and correctness of SQL 声明s.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.enforce_names.
SET DATABASE SQL REGULAR NAMES
始める,決める database sql 正規の/正選手 指名するs 声明
<始める,決める database sql 正規の/正選手 指名するs 声明> ::=
SET DATABASE SQL REGULAR NAMES { TRUE | FALSE }
Enable or 無能にする use of the 強調する character at the
beginning, or the dollar character anywhere in database 反対する 指名するs
such as columns and (米)棚上げする/(英)提議するs. The default is TRUE
,
meaning 無能にするd.
SQL 基準 does not 許す the 強調する character at the start of 指名するs, and does not 許す the dollar character anywhere in a 指名する. This setting can be changed for compatibility with 存在するing database or for porting databases which 含む 指名するs that do not 適合する to the 基準.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.regular_names.
SET DATABASE SQL REFERENCES
始める,決める database sql 言及/関連s 声明
<始める,決める database sql 言及/関連s 声明> ::= SET
DATABASE SQL REFERENCES { TRUE | FALSE }
This 命令(する) can enable or 無能にする 十分な 施行 of the 支配する that 妨げるs あいまいな column 言及/関連s in SQL 声明s (usually SELECT 声明s). A column 言及/関連 is あいまいな when it is not qualified by a (米)棚上げする/(英)提議する 指名する or (米)棚上げする/(英)提議する 偽名,通称 and can 言及する to more than one column in a JOIN 名簿(に載せる)/表(にあげる).
The 所有物/資産/財産 is FALSE
by default.
SQL 基準 要求するs 施行. It is better to enable this check, ーするために 改善する the 質 and correctness of SQL 声明s. When 誤った, the first matching (米)棚上げする/(英)提議する is used to 解決する the column 言及/関連.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.enforce_refs.
SET DATABASE SQL TYPES
始める,決める database sql types 声明
<始める,決める database sql types 声明> ::= SET
DATABASE SQL TYPES { TRUE | FALSE }
This 命令(する) can enable or 無能にする 十分な 施行 of the
支配するs that 妨げるs 違法な type 転換s and parameters or nulls
without type in SQL 声明s (usually SELECT 声明s). For example,
an INTEGER column or a DATE column cannot be compared to a character
string or searched with a LIKE 表現 when the 所有物/資産/財産 is
TRUE
.
The 所有物/資産/財産 is FALSE
by default.
SQL 基準 要求するs 施行. It is better to enable this check, ーするために 改善する the 質 and correctness of SQL 声明s.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.enforce_type.
SET DATABASE SQL TDC DELETE
始める,決める database sql tdc 削除する 声明
<始める,決める database sql tdc 削除する 声明> ::= SET
DATABASE SQL TDC DELETE { TRUE | FALSE }
This 命令(する) can enable or 無能にする 十分な 施行 of the SQL 基準 支配するs that 妨げるs 誘発する/引き起こすd data change exceptions 原因(となる)d by ON DELETE CASCADE 条項s of foreign 重要な 強制.
When there are 多重の 強制s, a 列/漕ぐ/騒動 may be updated by one 強制 and 削除するd by another 強制 in the same 操作/手術. This is not 許すd by default. Changing this to 誤った 許すs such 違反s of the 基準 to pass without an exception.
The 所有物/資産/財産 is TRUE
by default.
SQL 基準 要求するs 施行; this 所有物/資産/財産 shouldn't be changed unless an 使用/適用 written for a 非,不,無-適合するing RDBMS needs it.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.enforce_tdc_delete.
SET DATABASE SQL TDC UPDATE
始める,決める database sql tdc update 声明
<始める,決める database sql tdc update 声明> ::= SET
DATABASE SQL TDC UPDATE { TRUE | FALSE }
This 命令(する) can enable or 無能にする 十分な 施行 of the SQL
基準 支配するs that 妨げるs 誘発する/引き起こすd data change exceptions 原因(となる)d by
多重の ON UPDATE or ON DELETE SET 条項s of foreign 重要な 強制.
When there are 多重の 強制s, a field in a 列/漕ぐ/騒動 may be updated by
two 強制s to different values in the same 操作/手術. This is not
許すd by default. Changing this to FALSE
許すs
such 違反s of the 基準 to pass without an exception.
The 所有物/資産/財産 is TRUE
by default.
SQL 基準 要求するs 施行; this 所有物/資産/財産 shouldn't be changed unless an 使用/適用 written for a 非,不,無-適合するing RDBMS needs it.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.enforce_tdc_update.
SET DATABASE SQL TRANSLATE TTI TYPES
始める,決める database sql translate tti types 声明
<始める,決める database sql translate tti types 声明>
::= SET DATABASE SQL TRANSLATE TTI TYPES { TRUE | FALSE
}
The JDBC Specification up to 見解/翻訳/版 4.1 does not support some
SQL 基準 built-in types. Therefore, these types must be translated
to a supported type when 接近d through JDBC
ResultSet
and
PreparedStatement
methods.
If the 所有物/資産/財産 is true, the TIME / TIMESTAMP WITH TIME ZONE
types and INTERVAL types are 代表するd in JDBC methods of
ResultSetMetaData
and
DatabaseMetaData
as JDBC datetime types without
time zone and the VARCHAR type それぞれ. The 初めの type 指名するs are
保存するd.
The 所有物/資産/財産 is TRUE
by default. If 始める,決める to
FALSE
, the type codes for WITH TIME ZONE types will
be SQL type codes as …に反対するd to JDBC type codes.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 jdbc.translate_tti_types.
SET DATABASE SQL CHARACTER LITERAL
始める,決める database sql character literal
<始める,決める database sql character literal 声明>
::= SET DATABASE SQL CHARACTER LITERAL { TRUE | FALSE
}
When the 所有物/資産/財産 is TRUE
, the data type of
character literal strings is CHARACTER
. When the
所有物/資産/財産 is FALSE
the data type is
VARCHAR
.
Setting this 所有物/資産/財産 FALSE
results in
strings not padded with spaces in CASE WHEN
表現s that have 多重の literal 代案/選択肢s.
SQL 基準 要求するs the CHARACTER
type.
The 所有物/資産/財産 is TRUE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.char_literal.
SET DATABASE SQL TRUNCATE TRAILING
始める,決める database sql truncate 追跡するing
<始める,決める database sql truncate 追跡するing> ::= SET
DATABASE SQL TRUNCATE TRAILING { TRUE | FALSE }
By default, this 所有物/資産/財産 is TRUE
, Whan a
string that is longer than the 最大限 size of a column is 挿入するd,
spaces at the end are 除去するd to 減ずる the length of the string to the
最大限 size of the column. If this is not possible, an exception is
raised.
When the 所有物/資産/財産 is 始める,決める to FALSE
, no
truncation take place and an exception is always raised. This behaviour
is ありふれた to some other database engines.
SQL 基準 要求するs the default behaviour.
The 所有物/資産/財産 is TRUE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.truncate_trailing.
SET DATABASE SQL CONCAT NULLS
始める,決める database sql concat nulls 声明
<始める,決める database sql concat nulls 声明> ::=
SET DATABASE SQL CONCAT NULLS { TRUE | FALSE }
When the 所有物/資産/財産 is TRUE
, concatenation of
a null value with a not-null value results in a null value. When the
所有物/資産/財産 is FALSE
this type of concatenation result
in the not-null value.
Setting this 所有物/資産/財産 FALSE
results in
concatenation behaviour 類似の to Oracle or MS SQL Server.
SQL 基準 要求するs a NULL result.
The 所有物/資産/財産 is TRUE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.concat_nulls.
SET DATABASE SQL UNIQUE NULLS
始める,決める database sql unique nulls 声明
<始める,決める database sql unique nulls 声明> ::=
SET DATABASE SQL UNIQUE NULLS { TRUE | FALSE }
When the 所有物/資産/財産 is TRUE
, with multi-column
UNIQUE 強制s, it is possible to 挿入する 多重の 列/漕ぐ/騒動s for which one
or more of the values for the 強制 columns is NULL. When the
所有物/資産/財産 is FALSE
, if there is any not-null value in
the columns, then the 始める,決める of values is compared to the 存在するing 列/漕ぐ/騒動s and
if there is a match, an exception is thrown. The setting
FALSE
, makes the behaviour more 制限する. For
example, 挿入するing (1, null) twice is possible by default, but not
possible when the 所有物/資産/財産 is FALSE
.
Setting this 所有物/資産/財産 FALSE
results in
UNIQUE 強制 behaviour 類似の to Oracle.
SQL 基準 要求するs the default (TRUE) behaviour.
The 所有物/資産/財産 is TRUE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.unique_nulls.
SET DATABASE SQL CONVERT TRUNCATE
始める,決める database sql 変える truncate
<始める,決める database sql 変える truncate 声明>
::= SET DATABASE SQL CONVERT TRUNCATE { TRUE | FALSE
}
When the 所有物/資産/財産 is TRUE
, 転換 from a
floating-point value (a DOUBLE value) to an integral type always
truncates the わずかの part. When the 所有物/資産/財産 is
FALSE
, 一連の会議、交渉/完成するing takes place instead of truncation.
For example, 割り当てるing the value 123456E-2 to an integer column will
result in 1234 by default, but 1235 when the 所有物/資産/財産 is
FALSE
.
基準 SQL considers this behaviour 実施 扶養家族.
The 所有物/資産/財産 is TRUE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.convert_trunc.
SET DATABASE SQL AVG SCALE
始める,決める database sql avg 規模
<始める,決める database sql avg 規模> ::= SET DATABASE
SQL AVG SCALE <numeric value>
By default, the result of 分割 and the AVG and MEDIAN aggregate 機能(する)/行事s has the same type as the aggregated type of the values. This 含むs the 規模. The 規模 明示するd with this 所有物/資産/財産 is used if it is larger than the 規模 of the 操作/手術. For example, the 普通の/平均(する) of 5 and 10 is 7 by default, but 7.50 if the 規模 is 明示するd as 2. The result of 7/3 is 2 by default but 2.33 if the 規模 is 明示するd as 2.
基準 SQL considers this behaviour 実施 扶養家族. Some databases use a default 規模 larger than 無.
The 所有物/資産/財産 is 0
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.avg_scale.
SET DATABASE SQL DOUBLE NAN
始める,決める database sql 二塁打 nan
<始める,決める database sql 二塁打 nan> ::= SET DATABASE
SQL DOUBLE NAN { TRUE | FALSE }
When the 所有物/資産/財産 is TRUE
, 分割 of a
floating-point value (a DOUBLE value) by 無 raises an exception. When
the 所有物/資産/財産 is FALSE
, a Java
二塁打.NaN
, POSITIVE_INFINITY
or
NEGATIVE_INFINITY
value is returned.
基準 SQL 要求するs an exception to be raised.
The 所有物/資産/財産 is TRUE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.double_nan.
SET DATABASE SQL NULLS FIRST
始める,決める database sql nulls first
<始める,決める database sql nulls first> ::= SET DATABASE
SQL NULLS FIRST { TRUE | FALSE }
When the 所有物/資産/財産 is TRUE
, nulls appear
before values in result 始める,決めるs with ORDER BY. When 始める,決める FALSE, nulls appear
after the values. Some databases, 含むing PostgreSQL, Oracle, and MS
SQL Server, return nulls after the values.
The 所有物/資産/財産 is TRUE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.nulls_first.
SET DATABASE SQL NULLS ORDER
始める,決める database sql nulls order
<始める,決める database sql nulls order> ::= SET DATABASE
SQL NULLS ORDER { TRUE | FALSE }
When NULLS FIRST or NULLS LAST is used explicitly in the ORDER BY 条項, this 所有物/資産/財産 is ignored.
When the 所有物/資産/財産 is TRUE
, nulls appear
によれば the value of NULL FIRST 所有物/資産/財産 as 述べるd
above.
When 始める,決める FALSE
, nulls appear によれば
the value of NULLS FIRST 所有物/資産/財産 when DESC is not used in the ORDER BY
条項. But if DESC is used, the position of nulls is 逆転するd. Some
databases, 含むing MySQL and Oracle, return nulls in this manner when
DESC is used in ORDER BY.
The 所有物/資産/財産 is TRUE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.nulls_order.
SET DATABASE SQL IGNORECASE
始める,決める database sql ignorecase
<始める,決める database sql ignorecase> ::= SET DATABASE
SQL IGNORECASE { TRUE | FALSE }
This 所有物/資産/財産 is FALSE
by default and should
only be used in special circumstances where compatibility with a
different database is 要求するd.
When the 所有物/資産/財産 is TRUE
, all 宣言s
of VARCHAR
columns in (米)棚上げする/(英)提議するs or other database
反対するs are 変えるd to VARCHAR_IGNORECASE
. This has
a 全世界の 影響 on the database, unlike the SET
IGNORECASE
声明 which 適用するs only to the 現在の
開会/開廷/会期.
The 所有物/資産/財産 is FALSE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.ignore_case.
SET DATABASE SQL LOWER CASE IDENTIFIER
始める,決める database sql lower 事例/患者 identifier
<始める,決める database sql lower 事例/患者 identifier> ::= SET
DATABASE SQL LOWER CASE IDENTIFIER { TRUE | FALSE }
This 所有物/資産/財産 is FALSE
by default and should
only be used in special circumstances where 付加 compatibility
with MySQL or PostgreSQL is 要求するd.
When the 所有物/資産/財産 is TRUE
, the 指名するs of
column, (米)棚上げする/(英)提議するs and schemas are returned from JDBC
ResultSetMetaData
methods in lowercase instead of
uppercase if the database 反対するs were created as unquoted identifiers.
引用するd identifier 指名するs are still returned in the 初めの
事例/患者.
The 所有物/資産/財産 is FALSE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.lowercase_ident.
SET DATABASE SQL LIVE OBJECT
始める,決める database sql live 反対する
<始める,決める database sql live 反対する> ::= SET DATABASE
SQL LIVE OBJECT { TRUE | FALSE }
This 所有物/資産/財産 is FALSE
by default and can
only be used in mem: databases.
When the 所有物/資産/財産 is FALSE
, all java 反対するs
蓄える/店d in a column of type OTHER
are serialized. When
the 所有物/資産/財産 is FALSE
, 反対するs are not serialized at
all.
This is 同等(の) to the 関係 所有物/資産/財産 sql.live_object.
SET DATABASE SQL SYS INDEX NAMES
始める,決める database sql sys 索引 指名するs
<始める,決める database sql sys (米)棚上げする/(英)提議する 指名するs 声明> ::=
SET DATABASE SQL SYS INDEX NAMES { TRUE | FALSE }
This 所有物/資産/財産, when 始める,決める TRUE, changes the 指名するing method for system 生成するd 索引s that are used to support UNIQUE and FOREIGN KEY 強制s. By default, the 指名するs of those 索引s are 生成するd as strings with SYS_ prefixes. When the 所有物/資産/財産 is 始める,決める TRUE, the 指名するs will be the same as the 強制 指名するs.
Changing the 所有物/資産/財産 does not 影響する/感情 the 指名するs of 索引s for the 強制s that have already been defined. After a 再開する of the database all system-生成するd 索引s are 指名するd によれば the setting for this 所有物/資産/財産.
The 所有物/資産/財産 is FALSE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.sys_index_names.
SET DATABASE SQL SYNTAX DB2
始める,決める database sql syntax DB2
<始める,決める database sql syntax DB2 声明> ::= SET
DATABASE SQL SYNTAX DB2 { TRUE | FALSE }
This 所有物/資産/財産, when 始める,決める TRUE, enables support for some elements
of DB2 syntax. 選び出す/独身-列/漕ぐ/騒動 SELECT 声明s (SELECT
<表現 名簿(に載せる)/表(にあげる)>
without the FROM 条項) are supported
and 扱う/治療するd as the SQL 基準 同等(の), VALUES
<表現 名簿(に載せる)/表(にあげる)>
. The DUAL (米)棚上げする/(英)提議する is supported, 同様に
as the ROWNUM pseudo column. BINARY type 鮮明度/定義s such as VARCHAR(L)
FOR BIT DATA are supported. Empty DEFAULT 条項s in column 鮮明度/定義s
are supported.
The 所有物/資産/財産 is FALSE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.syntax_db2.
SET DATABASE SQL SYNTAX MSS
始める,決める database sql syntax MSS
<始める,決める database sql syntax MSS 声明> ::= SET
DATABASE SQL SYNTAX MSS { TRUE | FALSE }
This 所有物/資産/財産, when 始める,決める TRUE, enables support for some elements
of SQLServer syntax. 選び出す/独身-列/漕ぐ/騒動 SELECT 声明s (SELECT
<表現 名簿(に載せる)/表(にあげる)>
without the FROM 条項) are supported
and 扱う/治療するd as the SQL 基準 同等(の), VALUES
<表現 名簿(に載せる)/表(にあげる)>
. The parameters of CONVERT() 機能(する)/行事
are switched in this 方式.
The 所有物/資産/財産 is FALSE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.syntax_mss.
SET DATABASE SQL SYNTAX MYS
始める,決める database sql syntax MYS
<始める,決める database sql syntax MYS 声明> ::= SET
DATABASE SQL SYNTAX MYS { TRUE | FALSE }
This 所有物/資産/財産, when 始める,決める TRUE, enables support for some elements of MySQL syntax. The TEXT data type is translated to LONGVARCHAR.
In CREATE TABLE 声明s, [NOT NULL | NULL] can be used すぐに after the column type 指名する and before the DEFAULT 条項. AUTO_INCREMENT is translated to the GENERATED BY DEFAULT AS IDENTITY 条項.
選び出す/独身-列/漕ぐ/騒動 SELECT 声明s (SELECT <表現
名簿(に載せる)/表(にあげる)>
without the FROM 条項) are supported and 扱う/治療するd as
the SQL 基準 同等(の), VALUES <表現
名簿(に載せる)/表(にあげる)>
.
The 所有物/資産/財産 is FALSE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.syntax_mys.
SET DATABASE SQL SYNTAX ORA
始める,決める database sql syntax ORA
<始める,決める database sql syntax ORA 声明> ::= SET
DATABASE SQL SYNTAX ORA { TRUE | FALSE }
This 所有物/資産/財産, when 始める,決める TRUE, enables support for some elements of Oracle syntax. The DUAL (米)棚上げする/(英)提議する is supported, together with ROWNUM, NEXTVAL and CURRVAL syntax and semantics.
The 非,不,無-基準 types are translated to supported 基準 types. BINARY_DOUBLE and BINARY_FLOAT are translated to DOUBLE. LONG RAW and RAW are translated to VARBINARY with long or medium length 限界s. LONG and VARCHAR2 are translated to VARCHAR with long or medium length 限界s. NUMBER is translated to DECIMAL. Some extra type 転換s and no-arg 機能(する)/行事s are also 許すd in this 方式.
The 所有物/資産/財産 is FALSE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.syntax_ora.
SET DATABASE SQL SYNTAX PGS
始める,決める database sql syntax PGS
<始める,決める database sql syntax PGS 声明> ::= SET
DATABASE SQL SYNTAX PGS { TRUE | FALSE }
This 所有物/資産/財産, when 始める,決める TRUE, enables support for some elements of PosgtreSQL syntax. The TEXT data type is translated to LONGVARCHAR, while the SERIAL data types is translated to BIGINT together with GENERATED BY DEFAULT AS IDENTITY.
選び出す/独身-列/漕ぐ/騒動 SELECT 声明s (SELECT <表現
名簿(に載せる)/表(にあげる)>
without the FROM 条項) are supported and 扱う/治療するd as
the SQL 基準 同等(の), VALUES <表現
名簿(に載せる)/表(にあげる)>
.
The 機能(する)/行事s NEXTVAL(<sequence 指名する
string>)
, CURRVAL(<sequence 指名する
string>)
and LASTVAL()
are supported in
this compatibility 方式.
The 所有物/資産/財産 is FALSE
by default.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 sql.syntax_pgs.
SET DATABASE REFERENTIAL INTEGRITY
始める,決める database referential 正直さ 声明
<始める,決める database referential 正直さ 声明>
::= SET DATABASE REFERENTIAL INTEGRITY { TRUE | FALSE
}
This 命令(する) enables or 無能にするs the 施行 of referential 正直さ 強制s (foreign 重要な 強制s), check 強制s apart from NOT NULL and 死刑執行 of 誘発する/引き起こすs. By default, all 強制s are checked.
The only 合法的 use of this 声明 is before 輸入するing large 量s of 外部の data into (米)棚上げする/(英)提議するs that have 存在するing FOREIGN KEY 強制s. After 輸入する, the 声明 must be used again to enable 強制 施行.
If you are not sure the data 適合するs to the 強制s, run queries to 立証する all 列/漕ぐ/騒動s 適合する to the FOREIGN KEY 強制s and take appropriate 活動/戦闘s for the 列/漕ぐ/騒動s that do not 適合する.
A query example to return the 列/漕ぐ/騒動s in a foreign 重要な (米)棚上げする/(英)提議する that have no parent is given below:
Example 11.8. Finding foreign 重要な 列/漕ぐ/騒動s with no parents after a 本体,大部分/ばら積みの 輸入する
SELECT * FROM foreign_key_table LEFT OUTER JOIN primary_key_table ON foreign_key_table.fk_col = primary_key_table.pk_col WHERE primary_key_table.pk_col IS NULL
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
These 声明s 支配(する)/統制する the memory and other settings for database persistence.
SET FILES BACKUP INCREMENT
始める,決める とじ込み/提出するs backup increment 声明
<始める,決める とじ込み/提出するs backup increment 声明> ::= SET
FILES BACKUP INCREMENT { TRUE | FALSE }
Before any part of the .data
とじ込み/提出する is
修正するd, the 初めの contents are 蓄える/店d in the
.backup
とじ込み/提出する. At CHECKPOINT or SHUTDOWN the 最新の
data is fully saved and the .backup
とじ込み/提出する is
削除するd.
In older 見解/翻訳/版s, this 命令(する) 許すd an 代案/選択肢 method of backup that is no longer supported. From 見解/翻訳/版 2.5.1 this 命令(する) is still 受託するd but has no 影響.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.inc_backup.
SET FILES CACHE ROWS
始める,決める とじ込み/提出するs (武器などの)隠匿場所 列/漕ぐ/騒動s 声明
<始める,決める とじ込み/提出するs (武器などの)隠匿場所 列/漕ぐ/騒動s 声明> ::= SET FILES
CACHE ROWS <unsigned integer literal>
始める,決めるs the 最大限 number of 列/漕ぐ/騒動s (of CACHED (米)棚上げする/(英)提議するs) held in the memory (武器などの)隠匿場所. The default is 50000 列/漕ぐ/騒動s.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.cache_rows.
SET FILES CACHE SIZE
始める,決める とじ込み/提出するs (武器などの)隠匿場所 size 声明
<始める,決める とじ込み/提出するs (武器などの)隠匿場所 size 声明> ::= SET FILES
CACHE SIZE <unsigned integer literal>
始める,決めるs 最大限 量 of data (of CACHED (米)棚上げする/(英)提議するs) in kilobytes held in the memory (武器などの)隠匿場所. The default is 10000 kilobytes. 公式文書,認める the 量 of memory used is larger than this 量, which does not account for Java 反対する size 総計費s.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.cache_size.
SET FILES DEFRAG
始める,決める とじ込み/提出するs defrag 声明
<始める,決める とじ込み/提出するs defrag 声明> ::= SET FILES
DEFRAG <unsigned integer literal>
始める,決めるs the threshold for 成し遂げるing a DEFRAG during a 検問所.
The <unsigned integer literal>
is the
百分率 of abandoned space in the *.data
とじ込み/提出する.
When a CHECKPOINT is 成し遂げるd either as a result of the
.スピードを出す/記録につける
とじ込み/提出する reaching the 限界 始める,決める by SET
FILES LOG SIZE m
, or by the 使用者 問題/発行するing a CHECKPOINT 命令(する),
the 量 of space abandoned since the database was opened is checked
and if it is larger than the 明示するd 百分率, a CHECKPOINT DEFRAG
is 成し遂げるd instead of a CHECKPOINT. As the DEFRAG 操作/手術 uses a lot
of memory and takes a long time with large databases, setting the
threshold 井戸/弁護士席 above 無 is suitable for databases that are around than
500 MB or more.
The default is 0, which 示すs no DEFRAG. Useful values are between 30 to 60.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.defrag_limit.
SET FILES LOG
始める,決める とじ込み/提出するs スピードを出す/記録につける 声明
<始める,決める とじ込み/提出するs スピードを出す/記録につける 声明> ::= SET FILES LOG {
TRUE | FALSE }
始める,決めるs logging of database 操作/手術s on or off. Turning logging off is for special usage, such as 一時的な (武器などの)隠匿場所 usage. The default is TRUE.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.log_data.
SET FILES LOG SIZE
始める,決める とじ込み/提出するs スピードを出す/記録につける size 声明
<始める,決める とじ込み/提出するs スピードを出す/記録につける size 声明> ::= SET FILES LOG
SIZE <unsigned integer literal>
始める,決めるs the 最大限 size in MB of the *.スピードを出す/記録につける
とじ込み/提出する to the 明示するd value. The default 最大限 size is 50 MB. If the
value is 無, no 限界 is used for the size of the とじ込み/提出する. When the size
of the とじ込み/提出する reaches this value, a CHECKPOINT is 成し遂げるd and the the
*.スピードを出す/記録につける
とじ込み/提出する is (疑いを)晴らすd to size 0.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.log_size.
SET FILES NIO
始める,決める とじ込み/提出するs nio
<始める,決める とじ込み/提出するs nio 声明> ::= SET FILES NIO {
TRUE | FALSE }
始める,決めるs the 接近 method of the .data
とじ込み/提出する.
The default is TRUE and uses the Java nio classes to 接近 the とじ込み/提出する 経由で
memory-mapped 衝撃を和らげるものs.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.nio_data_file.
SET FILES NIO SIZE
始める,決める とじ込み/提出するs nio size
<始める,決める とじ込み/提出するs nio size 声明> ::= SET FILES NIO
SIZE <unsigned integer literal>
始める,決めるs The 最大限 size of .data とじ込み/提出する in megabytes that can use the nio 接近 method. When the とじ込み/提出する gets larger than this 限界, 非,不,無-nio 接近 methods are used. Values 64, 128, 256, 512, 1024 and larger 多重のs of 512 can be used. The default is 256MB.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.nio_max_size.
SET FILES WRITE DELAY
始める,決める とじ込み/提出するs 令状 延期する 声明
<始める,決める とじ込み/提出するs 令状 延期する 声明> ::= SET FILES
WRITE DELAY {{ TRUE | FALSE } | <seconds value> | <milliseconds
value> MILLIS}
始める,決める the WRITE DELAY 所有物/資産/財産 of the database. The WRITE DELAY 支配(する)/統制するs the frequency of とじ込み/提出する sync for the スピードを出す/記録につける とじ込み/提出する. When WRITE_DELAY is 始める,決める to FALSE or 0, the sync takes place すぐに at each COMMIT. WRITE DELAY TRUE 成し遂げるs the sync once every 0.5 seconds (which is the default). A numeric value can be 明示するd instead.
The 目的 of this 命令(する) is to 支配(する)/統制する the 量 of data loss in 事例/患者 of a total system 衝突,墜落. A 延期する of 1 second means at most the data written to disk during the last second before the 衝突,墜落 is lost. All data written 事前の to this has been synced and should be recoverable.
A 令状 延期する of 0 衝撃s 業績/成果 in high 負担 状況/情勢s, as the engine has to wait for the とじ込み/提出する system to catch up.
To 避ける this, you can 始める,決める 令状 延期する 負かす/撃墜する to 10 milliseconds.
Each time the SET FILES WRITE DELAY 声明 is 遂行する/発効させるd with any value, a sync is すぐに 成し遂げるd.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産s hsqldb.write_delay and hsqldb.write_delay_millis.
SET FILES SCALE
始める,決める とじ込み/提出するs 規模
<始める,決める とじ込み/提出するs 規模 声明> ::= SET FILES SCALE
<規模 value>
Changes the 規模 factor for the .data
とじ込み/提出する.
The default 規模 is 32 and 許すs 64GB of data 貯蔵 capacity. The
規模 can be 増加するd ーするために 増加する the 最大限 data 貯蔵
capacity. The 規模 values 16, 32, 64, 128, 256, 512, 1024 are 許すd.
規模 value 1024 許すs a 最大限 capacity of 2 TB.
This 命令(する) should be used before data is 挿入するd into CACHED TABLES. It can also be used when there is some data in CACHED (米)棚上げする/(英)提議するs but then it has no 影響 until a SHUTDOWN COMPACT or SHUTDOWN SCRIPT is 成し遂げるd. This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.cache_file_scale.
The 規模 factor 示すs the size of the 部隊 of 貯蔵 of data in bytes. For example, with a 規模 factor of 128, a 列/漕ぐ/騒動 含む/封じ込めるing a small 量 of data will use 128 bytes. Larger 列/漕ぐ/騒動s may use 多重の 部隊s of 128 bytes.
When the data とじ込み/提出する already 存在するs, you must 成し遂げる SHUTDOWN COMPACT or SHUTDOWN SCRIPT after changing the 規模. さもなければ the change will be forgotten.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.cache_file_scale.
SET FILES LOB SCALE
始める,決める とじ込み/提出するs 高く弓形に打ち返す 規模
<始める,決める とじ込み/提出するs 高く弓形に打ち返す 規模 声明> ::= SET FILES
LOB SCALE <規模 value>
Changes the 規模 factor for the .高く弓形に打ち返すs
とじ込み/提出する.
The 規模 is 解釈する/通訳するd in kilobytes. The default 規模 is 32 and
許すs 64TB of 高く弓形に打ち返す data 貯蔵 capacity. The 規模 can be 減ずるd in
order to 改善する 貯蔵 efficiency. If the 高く弓形に打ち返すs are a lot smaller than
32 kilobytes, 減ずるing the 規模 will 減ずる wasted space. The 規模
values 1, 2, 4, 8, 16, 32 are 許すd. For example, if the 普通の/平均(する) size
of 高く弓形に打ち返すs is 4 kilobytes, the default 規模 of 32 will result in 28KB
wasted space for each 高く弓形に打ち返す. 減ずるing the 高く弓形に打ち返す 規模 to 2 will result in
普通の/平均(する) 1KB wasted space for each 高く弓形に打ち返す.
This 命令(する) can be used only when there is no 高く弓形に打ち返す in the database.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.lob_file_scale.
SET FILES LOB COMPRESSED
始める,決める とじ込み/提出するs 高く弓形に打ち返す compressed
<始める,決める とじ込み/提出するs 高く弓形に打ち返す compressed 声明> ::= SET
FILES LOB COMPRESSED { TRUE | FALSE }
By default, 高く弓形に打ち返すs are not compressed for 貯蔵. When this
setting is TRUE
, all BLOB and CLOB values 蓄える/店d in
the database are compressed. Compression 減ずるs the 貯蔵 size but
増加するs the 接近 time.
This 命令(する) can be used only when there is no 高く弓形に打ち返す in the database.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
This is 同等(の) to the 関係 所有物/資産/財産 hsqldb.lob_compressed.
SET FILES SCRIPT FORMAT
始める,決める とじ込み/提出するs script 判型
<始める,決める とじ込み/提出するs script 判型 声明> ::= SET
FILES SCRIPT FORMAT { TEXT | COMPRESSED }
Changes the compression setting for database scripts. The
default is text. Using COMPRESSED results in the 貯蔵 of the
.scrip
t とじ込み/提出する in gzip compressed form. Using this
命令(する) 原因(となる)s a CHECKPOINT.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
SET FILES SPACE
始める,決める とじ込み/提出するs space
<始める,決める とじ込み/提出するs space 声明> ::= SET FILES SPACE
TRUE
Enables use of (米)棚上げする/(英)提議する spaces for CACHED (米)棚上げする/(英)提議するs. Each (米)棚上げする/(英)提議する is 配分するd space in 封鎖するs. The size of each 封鎖する in megabytes is equal to the data とじ込み/提出する 規模 divided by 16. The default data とじ込み/提出する 規模 is 32 so the default size of each 封鎖する is 2 MB. See the SET TABLE NEW SPACE 声明 below.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
SET TABLE NEW SPACE
始める,決める (米)棚上げする/(英)提議する new space
<始める,決める (米)棚上げする/(英)提議する new space 声明> ::= SET TABLE
<(米)棚上げする/(英)提議する 指名する> NEW SPACE
始める,決めるs the 指名するd (米)棚上げする/(英)提議する to use its own space 封鎖するs within the
.data
とじ込み/提出する. Use of (米)棚上げする/(英)提議する spaces should be enabled
with the SET FILES SPACE 声明 above, before this 声明 is
遂行する/発効させるd.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
Two settings are 利用できる for authentication 支配(する)/統制する.
When the default password authentication is used, the passwords can be checked for 複雑さ によれば 行政の 支配するs
SET DATABASE PASSWORD CHECK FUNCTION
始める,決める database password check 機能(する)/行事
<始める,決める database password check 機能(する)/行事 声明>
::= SET DATABASE PASSWORD CHECK FUNCTION { <決まりきった仕事 団体/死体> | NONE
}
The 決まりきった仕事 団体/死体 is the 団体/死体 of a 機能(する)/行事 that has a VARCHAR
parameter and returns a BOOLEAN. This 機能(する)/行事 checks the
PASSWORD
submitted as parameter and returns TRUE if
it 適合するs to 複雑さ checks, or FALSE, if it does not.
The <決まりきった仕事 団体/死体>
can be an SQL 封鎖する
or an 外部の Java 機能(する)/行事 言及/関連. This is covered in the SQL-Invoked 決まりきった仕事s
一時期/支部
To 無能にする this 機械装置, the 記念品 NONE
can be 明示するd instead of the <決まりきった仕事
団体/死体>
.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
In the examples below, an SQL 機能(する)/行事 and a Java 機能(する)/行事 are used.
SET DATABASE PASSWORD CHECK FUNCTION BEGIN ATOMIC IF CHAR_LENGTH(PASSWORD) > 6 THEN RETURN TRUE; ELSE RETURN FALSE; END IF; END SET DATABASE PASSWORD CHECK FUNCTION EXTERNAL NAME 'CLASSPATH:org.anorg.接近.AccessClass.accessMethod' // the Java method is defined like this public static boolean accessMethod(String param) { return param != null && param.length > 6; }
It is possible to 取って代わる the default password authentication 完全に with a 機能(する)/行事 that uses 外部の authentication servers, such as LDAP. This 機能(する)/行事 is called each time a 使用者 connects to the database.
SET DATABASE AUTHENTICATION FUNCTION
始める,決める database authentication 機能(する)/行事
<始める,決める database authentication 機能(する)/行事 声明>
::= SET DATABASE AUTHENTICATION FUNCTION { <外部の 団体/死体
言及/関連> | NONE }
The 決まりきった仕事 団体/死体 is an 外部の Java 機能(する)/行事 言及/関連. This 機能(する)/行事 has three String parameters. The first parameter is the unique 指名する of the database, the second parameter the 使用者 指名する, and the third parameter the password.
外部の authentication can be used in two different patterns. In the first pattern, 使用者 指名するs must be 蓄える/店d in the database. In the second pattern, 使用者 指名するs shouldn't be 蓄える/店d in the database and any 指名するs that are 蓄える/店d in the database are ignored.
In both patterns, the username and password are checked by the authentication 機能(する)/行事. If the 機能(する)/行事 throws a runtime exception then authentication fails.
In the first pattern, the 機能(する)/行事 always returns null if authentication is successful.
In the second pattern, the 機能(する)/行事 returns a 名簿(に載せる)/表(にあげる) of 役割 指名するs that have been 認めるd to the 使用者. These 役割s must match the ROLE 反対するs that have been defined in the database.
The Java 機能(する)/行事 should return an instance of
org.hsqldb.jdbc.JDBCArrayBasic
建設するd with a
String[] argument that 含む/封じ込めるs the 役割 指名するs.
Only a 使用者 with the DBA 役割 can 遂行する/発効させる this 声明.
SET DATABASE AUTHENTICATION FUNCTION EXTERNAL NAME 'CLASSPATH:org.anorg.接近.AccessClass.accessExernalMethod' // the Java method is defined like this public static java.sql.Array accessExternalMethod(String database, String 使用者, String password) { if (externalCheck(database, 使用者, password) { return null; } throw new RuntimeException("failed to authenticate"); }
$Revision: 6787 $