Usage
Creates mappings to one or more FileSystem servers.
CREATE FILE MAPPING
TARGET filename AT [SERVER] targetfilesystem, …
FROM SOURCE shared-table-name AT [SERVER] source-server-name
[LOCATION pathname]
[ROLLOVER {AT hh:mm:ss | EVERY hhh:mm:ss | SIZE nsize |
ROWS nrows | REQSTOPS } ]
[CHARSET {"default" | "utf-8"}]
[DELIMITER 'delchar']
[QUOTE_CHAR 'quotechar']
[NULL_STRING 'nullval']
[DISTRIBUTION distname, …]
[GATE_CONDITION 'text of expression-embed single quotes by doubling']
{ target-column-name [DKEY] :
same as described in CREATE TABLE MAPPING
}, … [WRITE_BEFORE_VALUES];
Parameters
Parameter |
Description |
---|---|
LOCATION |
Specifies the path to location of the target file. |
ROLLOVER |
Specifies the criteria for the target file to roll over to a new operating system file. Event options are:
|
CHARSET |
Specifies the character set for the target flat file:
|
DELIMITER |
Specifies the column delimiter character. The default is comma. This character must be an ASCII character from 1 to 253. The character itself may be entered. To enter a single quote, use four single quotes ’’’’. |
QUOTE_CHAR |
Specifies the quote character. The default is a double quote (“). This character must be an ASCII character from 1 to 253. The character itself may be entered. |
NULL_STRING |
The default is “~”. Connect CDC differentiates between null and empty strings. Connect CDC identifies an empty string as no character. |
DISTRIBUTION |
Specifies the name of the Distribution that is to include the request and table mapping for the flat file. |
GATE_CONDITION |
Include the text of the expression. Embed any single quotes by doubling. |
WRITE_BEFORE_VALUES |
Before and After values for all columns will be written to the File Server when an update statement is captured. |
-- RSL File Mapping (ricks.dbo.parts@sqlserver to ricks.dbo.partsMODIFIED@fsnew) definition.
create file mapping
target "ricks.dbo.partsmodified" at server fsnew
from source ricks.dbo.parts at server sqlserver
location "c:\src\omnienterprise\debug\targetfiles\filesysnew\sqlserver\"
charset "utf-8" delimiter ':'
quote_char '''' null_string '<null>' rollover at 23:59:09
city: city, price: price, weight: weight, pno DKEY: pno,
sv_manip_type: "Row manipulation type "( ), sv_trans_id: "Transaction id
"( ), sv_trans_row_seq: "Transaction row sequence "( ),
sv_sending_table: "Sending table name "( ), sv_sending_dbms:
"Sending DBMS type "( ), sv_sending_server: "Sending server name "( ),
sv_trans_timestamp: "Transaction timestamp "( ), sv_trans_username:
"Transaction username "( );