Batch Batch
Batch Certified

Bulk insert rows into Oracle Database using prepared statements

yaml
type: io.kestra.plugin.jdbc.oracle.Batch
yaml
id: oracle_batch
namespace: company.team

tasks:
  - id: query
    type: io.kestra.plugin.jdbc.oracle.Query
    url: jdbc:oracle:thin:@dev:49161:XE
    username: oracle
    password: oracle_password
    sql: |
      SELECT *
      FROM xref
      FETCH FIRST 1500 ROWS ONLY;
    fetchType: STORE

  - id: update
    type: io.kestra.plugin.jdbc.oracle.Batch
    from: "{{ outputs.query.uri }}"
    url: jdbc:oracle:thin:@prod:49161:XE
    username: oracle
    password: oracle_password
    sql: |
      insert into xref values( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )

yaml
id: oracle_batch
namespace: company.team

tasks:
  - id: query
    type: io.kestra.plugin.jdbc.oracle.Query
    url: jdbc:oracle:thin:@dev:49161:XE
    username: oracle
    password: oracle_password
    sql: |
      SELECT *
      FROM xref
      FETCH FIRST 1500 ROWS ONLY;
    fetchType: STORE

  - id: update
    type: io.kestra.plugin.jdbc.oracle.Batch
    from: "{{ outputs.query.uri }}"
    url: jdbc:oracle:thin:@prod:49161:XE
    username: oracle
    password: oracle_password
    table: XREF
Properties
Default1000
SubTypestring
DefaultAUTO
Possible Values
AUTOSTREAMLOCAL
Default104857600
Default3
Defaulttrue
DefaultPT1S
DefaultINPUT
Possible Values
NONEINPUTALL
Unitqueries
Unitrecords
Unitrecords