DBMS_CLOUD Package Format Options
The format parameter is used in several DBMS_CLOUD
subprograms to
specify the format of source files.
The two ways to specify the format parameter are:
format => '{"format_option" : "format_value" }'
And:
format => json_object('format_option' value 'format_value'))
Examples:
format => json_object('type' VALUE 'CSV')
To specify multiple format options, separate the
values with a ",
".
For example:
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true', 'dateformat' value 'YYYY-MM-DD-HH24-MI-SS', 'blankasnull' value 'true')
Format Option | Description | Syntax | Default |
---|---|---|---|
|
When set to |
|
|
|
Specifies the characterset of source files |
|
Database characterset |
|
Specifies the compression type of the source file. Note: ZIP archiving format is not supported. |
|
Specifying the value Null value meaning no compression. |
|
If a row is rejected because of data type conversion errors, the related columns are stored as null or the row is rejected. |
|
|
|
Specifies the date format in the source file. The format option J MM-DD-YYYYBC MM-DD-YYYY YYYYMMDD HHMISS YYMMDD HHMISS YYYY.DDD YYYY-MM-DD |
|
Database date format |
|
Specifies the field delimiter |
|
| (pipe character) |
|
The character "\" is used as the escape character when specified. |
|
|
|
Blank lines are ignored when set to true. |
|
|
|
If there are more columns in the |
|
|
|
Specifies a language name (for example, FRENCH), from which locale-sensitive information can be derived. |
See Locale Data in Oracle Database Globalization Support Guide for a listing of Oracle-supported languages. |
Null |
|
Specifies the characters to use as the group separator and decimal character. decimal_character: The decimal separates the integer portion of a number from the decimal portion. group_separator: The group separator separates integer groups (that is, thousands, millions, billions, and so on). |
See NLS_NUMERIC_CHARACTERS in Oracle Database Globalization Support Guide for more information. |
|
|
Specifies the number format model. Number format models cause the number to be rounded to the specified number of significant digits. A number format model is composed of one or more number format elements. This is used in combination with |
See Number Format Models in SQL Language Reference for more information. |
Default is derived from the setting of the |
|
Specifies the quote character for the fields, the quote characters are removed during loading when specified. |
|
Null meaning no quote |
|
Specifies the record delimiter. |
|
newline By default, Specify this parameter explicitly if you want to override the default behavior, for example:
|
|
The operation will error out after specified number of rows are rejected. |
|
0 |
|
Removes any quotes that are around any field in the source file. |
|
|
|
Specifies how many rows should be skipped from the start of the file. |
|
0 if not specified, 1 if specified without a value |
|
Specifies a territory name to further determine input data characteristics. |
See Locale Data in Oracle Database Globalization Support Guide for a listing of Oracle-supported territories. |
Null |
|
Specifies the timestamp format in the source file. The format option YYYY-MM-DD HH:MI:SS.FF YYYY-MM-DD HH:MI:SS.FF3 MM/DD/YYYY HH:MI:SS.FF3 |
|
Database timestamp format |
|
Specifies the timestamp with local timezone format in the source file. The format option DD Mon YYYY HH:MI:SS.FF TZR MM/DD/YYYY HH:MI:SS.FF TZR YYYY-MM-DD HH:MI:SS+/-TZR YYYY-MM-DD HH:MI:SS.FF3 DD.MM.YYYY HH:MI:SS TZR |
|
Database timestamp with local timezone format |
|
Specifies the timestamp with timezone format in the source file. The format option DD Mon YYYY HH:MI:SS.FF TZR MM/DD/YYYY HH:MI:SS.FF TZR YYYY-MM-DD HH:MI:SS+/-TZR YYYY-MM-DD HH:MI:SS.FF3 DD.MM.YYYY HH:MI:SS TZR |
|
Database timestamp with timezone format |
|
Specifies how the leading and trailing spaces of the fields are trimmed. See the description of |
|
|
|
If the data in the file is too long for a field, then this option will truncate the value of the field rather than reject the row. |
|
|
|
Specifies the source file type. Cannot be specified together with See the description of |
|
Null |
Related Topics
DBMS_CLOUD Package Format Options
Copyright © 2021, 2024, Oracle and/or its affiliates.