Upsert data from TXT (“|” pipe delimited text) file to Oracle without programming

Want to upsert data from TXT (“|” pipe delimited text) file to Oracle ?

Upsert: inserts rows into a table if they do not already exist, or updates them if they do.</>

Using FileToDB, a native GUI tool, you can upsert data from TXT (“|” pipe delimited text) file to Oracle easily and fast, no need to program, just a few mouse clicks!

Support Windows, Linux, macOS

Here you can download and install FileToDB.

Upsert data from TXT (“|” pipe delimited text) file to Oracle

Choose Oracle and logon.

convert online PIPE file to Oracle table - Choose Oracle and logon

Click “Wizard – 1 File To 1 Table” at task dialog.

convert online PIPE file to Oracle table - task window

Select the “TXT” file type.

Import file data to database table - select file type

then show the wizard.

1. Open a TXT (“|” pipe delimited text) file.

Upsert Data From TXT File To Oracle - open TXT file

2. Select a table and config fields.

Set “Load Type” to “Upsert”, choice “By Key”.

Upsert Data From TXT File To Oracle - select table

3. Preview data.

Upsert Data From TXT File To Oracle - preview

4. Upsert TXT data to Oracle .

Upsert Data From TXT File To Oracle - Upsert data

View upserted data

Copy Data From TXT File To Oracle - view data

You can schedule and automate this converting task by:

1) Save session and create .bat file.

2) Set scheduled task.


More about FileToDB – the tool to upsert data from TXT (“|” pipe delimited text) file to Oracle

30-day free trial Download FileToDB

TXT → Oracle reference

Type mapping

Value kindin TXTin Oracle
Int1234, or right-aligned in a fixed-width columnNUMBER(10)
Bigint9007199254740993NUMBER(19)
Decimal1234.56NUMBER(p,s)
Float1.234e+10BINARY_DOUBLE
Textwritten as-is; padding depends on the chosen layoutVARCHAR2(n)
Long textwritten as-isCLOB
Datewhatever the writer choseDATE
Datetimewhatever the writer choseTIMESTAMP
Binarynot representableBLOB
BooleanY / N, or 1 / 0, or TRUE / FALSENUMBER(1)

Dialect differences

TXT is a file format and Oracle is a database server, so the target has to be told the types the file never carried – the rows below are where the two sides diverge.

Propertyin TXTin Oracle
port—1521
identifiersNone by convention"double quotes"
row limit—FETCH FIRST n ROWS ONLY
datesWhatever the writer produced; no convention is guaranteedDATE, TIMESTAMP
long text—CLOB, NCLOB
binaryNot supportedBLOB, BFILE
separatorWhatever was chosen - often fixed column widths—
encodingNo declaration - UTF-8 works only with a BOM—
typingNone - every field is text—
shapeFree form; a parser has to be told the layoutTables of rows and columns
ceilingNo formal limit—

Command line

SideCommand
Oracleexp / expdp
Oracle (load)sqlldr (SQL*Loader)

Convert your data online, free

Free in-browser converters for CSV, Excel, JSON, XML and SQL: Withdata Online Data Conversion. Large files, batch conversion or scheduling? See the offline desktop apps, or browse all data conversion tools.


Posted

in

by

Tags: