プライマリ・コンテンツに移動
Oracle® Fusion Middleware Oracle Reports ServicesレポートWeb公開ガイド
12c (12.2.1.2)
E82763-01
  ドキュメント・ライブラリへ移動
ライブラリ
製品リストへ移動
製品
目次へ移動
目次
索引へ移動
索引

前
 
次
 

14.2 テキストPDSの構成と使用

テキストPDSは、Oracle Reportsのデフォルト設定を使用するように構成されているので、そのまま使用できます。

14.2.1 テキスト構成ファイル

textpds.confファイルは、変更、追加、削除が可能なOracle ReportsテキストPDS構成ファイルです。このファイルは、次のディレクトリに格納されています。

  • Reports Serverの場合:

    ${DOMAIN_HOME}/config/fmwconfig/components/ReportsServerComponent/<reports_server_name>/textpds.conf

  • Oracle Reports Builderの場合:

    ${DOMAIN_HOME}/config/fmwconfig/components/ReportsToolsComponent/<reports_tools_name>/textpds.conf

  • Oracle WebLogic ServerにデプロイされたReportsアプリケーション(インプロセスReports Server)の場合:
    DOMAIN_HOME/config/fmwconfig/servers/WLS_REPORTS/applications/reports_version/configuration

次の例は、textpds.confファイルの内容を示しています。

<!--XML section.Please edit this section to give your file format information-->
<textPDS  
    xmlns="http://xmlns.oracle.com/reports/pdstext"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/reports/pdstext file:c:\orawin/reports/dtd/textpds.xsd" 
    >

<!--Data definition for Apache Log file format-->
  <fileFormat  name = "Apache Log File" comment = "#" delimiter = "default"
               type ="variable" nullValue = "-">
    <columnInfo>
<column    name = "Remote Host"      type = "string" />
      <column    name = "Remote Log Name"  type = "string"/>
      <column    name = "Remote User"      type = "string"/>
      <column    name = "time"             type = "date"    cellWrapper = "\[]"
                 pattern = "dd/MMM/yyyy:hh:mm:ss zzz"/>
      <column    name = "Request"          type = "string"  cellWrapper = "&quot;"/>
      <column    name = "status"           type = "number"/>
      <column    name = "bytes"            type = "number"/>
    </columnInfo>
  </fileFormat>

<!--Data definition for Comma Delimited file format-->
 <fileFormat  name = "Example Variable Width Comma Delimited" comment = "#" 
              delimiter = "," type = "variable"> 
     <columnInfo> 
      <column    name = "var_cd_col1"     type = "string" /> 
      <column    name = "var_cd_col2"     type = "string"/> 
      <column    name = "var_cd_col3"     type = "string"/> 
     </columnInfo> 
  </fileFormat>

  <!--Data definition for Fixed Width format-->
  <fileFormat  name = "Example Fixed Width Space Delimited" comment = "#" 
               delimiter = ""  type = "fixed"> 
     <columnInfo> 
      <column    name = "fw_sd_col1"     type = "string" startpos = "1"  width = "13"/>
      <column    name = "fw_sd_col2"     type = "number" startpos = "14" width = "10"/>
      <column    name = "fw_sd_col3"     type = "date"   startpos = "25" width = "10"/>
    </columnInfo> 
 </fileFormat> 
</textPDS>

表14-13では、ファイル形式に関連付けることのできる各種の値を説明しています。

表14-13 ファイル形式の属性

属性名 説明

name

「ファイル形式」の名前。この名前は「データ定義」ドロップダウン・リストに表示されます。

Comment

「コメント」の文字。この文字は「データ・ソース」で使用されます。

Delimiter

列のデリミタ。データ・ソース・ファイルにはデータが行単位で記述されています。各行には、構成ファイルに指定された列に対応するフィールドまたはトークンがあります。それぞれのフィールドやトークンは、列のデリミタ(「cell Wrapper」を参照)で区切られます。

type

ファイル形式のタイプ。このタイプはfixedまたはvariableのいずれかにできます。variableファイル形式の場合、列の幅が可変になります。fixedファイル形式の場合、列の幅は固定となり、列ごとにstartposおよびwidthの属性を使用して指定します。

nullValue

NULL値の文字。


表14-14では、列に関連付けることのできる各種の値を説明しています。

表14-14 列の属性

属性名 説明

name

列見出しの名前。

type

列のデータ型。3つのデータ型がサポートされています。

  • String

  • Number

  • Date

cell Wrapper

オプション属性。この属性を指定すると、文字が指定されている列のファイル形式のデリミタよりもこの文字が優先されます。

pattern

オプション属性。現在は、日付フィールドにのみ使用されます。これは、期待される日付フィールドのパターンを指定します。