Oracle® Fusion Middleware Oracle Reports ServicesレポートWeb公開ガイド 11g リリース 1 (11.1.1) B61375-02 |
|
前 |
次 |
テキストPDSは、Oracle Reportsのデフォルト設定を使用するように構成されているので、そのまま使用できます。
textpds.conf
ファイルは、変更、追加、削除が可能なOracle ReportsテキストPDS構成ファイルです。このファイルは、次のディレクトリに格納されています。
Reports Serverの場合:
ORACLE_INSTANCE
\config\ReportsServerComponent\
server_name\textpdf.conf
Oracle Reports Builderの場合:
ORACLE_INSTANCE
\config\ReportsToolsComponent\ReportsTools\textpdf.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 = """/> <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 ファイル形式の属性
属性名 | 説明 |
---|---|
|
「ファイル形式」の名前。この名前は「データ定義」ドロップダウン・リストに表示されます。 |
|
「コメント」の文字。この文字は「データ・ソース」で使用されます。 |
|
列のデリミタ。データソース・ファイルにはデータが行単位で記述されています。各行には、構成ファイルに指定された列に対応するフィールドまたはトークンがあります。それぞれのフィールドやトークンは、列のデリミタ(「cell Wrapper」を参照)で区切られます。 |
|
ファイル形式のタイプ。このタイプはfixedまたはvariableのいずれかにできます。 |
|
NULL値の文字。 |
表14-14では、列に関連付けることのできる各種の値を説明しています。