Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » SQL Anywhere サーバ - SQL リファレンス » システム・オブジェクト » ビュー » 互換ビュー

 

SYSFILE 互換ビュー (旧式)

SYSFILE システム・ビューの各ローは、データベースの DB 領域を示します。各データベースは、1 つ以上の DB 領域で構成されます。各 DB 領域は、1 つのオペレーティング・システム・ファイルに対応します。

SQL Anywhere は、メイン・データベース・ファイル、テンポラリ・ファイル、トランザクション・ログ・ファイル、トランザクション・ログ・ミラー・ファイルの DB 領域を自動的に作成します。トランザクション・ログ、トランザクション・ログ・ミラーの DB 領域に関する情報は、SYSFILE システム・ビューには表示されません。事前定義の DB 領域を参照してください。

ALTER VIEW "SYS"."SYSFILE"
  as select b.dbfile_id as file_id,
    if b.dbspace_id = 0 and b.dbfile_id = 0 then
      db_property('File')
    else
      if b.dbspace_id = 15 and b.dbfile_id = 15 then
        db_property('TempFileName')
      else
        b.file_name
      endif
    endif as file_name,
    a.dbspace_name,
    a.store_type,
    b.lob_map,
    b.dbspace_id
    from SYS.ISYSDBSPACE as a
      join SYS.ISYSDBFILE as b on(a.dbspace_id = b.dbspace_id);