Live Webinar | Jan 15, 11 AM EST — Search, Import, Automate: How Enterprises Launch AI Workflows in Minutes. Register Now !

Skip to the content

Automate Everything !

🤖 Explore with AI: ChatGPT Perplexity Claude Google AI Grok

For Enterprises | Teams | Start-Ups

eZintegrations – AI Workflows & AI Agents Automation Hub

eZintegrations – AI Workflows & AI Agents Automation Hub

Automate to Innovate

0
$0.00
eZintegrations – AI Workflows & AI Agents Automation Hub

eZintegrations – AI Workflows & AI Agents Automation Hub

Automate to Innovate

Menu
0
$0.00
  • Categories
    • Workflow Automation
    • AI Workflow
    • AI Agent
    • Agentic AI
  • Home
  • Automate Now !
  • About Us
  • Contact
  • Blog
  • Free AI Workflow
  • Free AI Agents

eZintegrations

  • eZintegrations Introduction
  • Integration Bridge
    • Rename Integration Bridge
    • Enable and Disable Integration Bridge
    • Integration Bridge Save
    • Integration Bridge Run Once
    • Clear Logs of An Integration Bridge
    • Integration Bridge Share Feature
    • Copy Operation
    • Integration Bridge Import/Export
    • Integration Bridge Auto Save Feature
    • View An Integration Bridge
    • Copy Integration Bridge
    • Streaming Logs of Integration Bridge
    • Download Logs of An Integration Bridge
    • Status of Integration Bridge
    • Refresh an Integration Bridge
    • Stop An Integration Bridge
    • Start An Integration Bridge
    • Frequency
  • Feedback
    • Feedback: Tell Us What You Think
  • Understanding Session Timeout
    • Understanding Session Timeout and the Idle Countdown Timer
  • Alerts
    • Alerts
  • Marketplace
    • Marketplace
  • DIY Articles
    • 60+ Transformations for Smarter Data: How eZintegrations Powers Operations
    • From SOAP to GraphQL: Modernizing Integrations with eZintegrations
    • Accelerate Growth with eZintegrations Unified API Marketplace
    • Collaborative Integrations: Sharing Bridges in eZintegrations to Foster Cross-Team Innovation
    • Unlocking Hidden Value in Unstructured Data: eZintegrations AI Document Magic for Strategic Insights
    • Workflow Cloning Wizardry: Replicating Success with eZintegrations Integration Duplication for Rapid Scaling
    • Time Zone Triumph: Global Scheduling in eZintegrations for Synchronized Cross-Border Operations
    • Parallel Processing Power: eZintegrations Multi-Threaded Workflows for Lightning Fast Data Syncs
    • From Data Chaos to Competitive Edge: How eZintegrations AI Syncs Silos and Boosts ROI by 40%
    • From Emails to Insights: eZintegrations AI Turns Chaos into Opportunity
    • Handling XML Responses in eZintegrations
    • Text to Action: Shape Data with Plain English or Python in eZintegrations
    • AI Magic: Send Data to Any Database with a Simple English Prompt in eZintegrations
    • Configuring Netsuite as Source
    • Configuring Salesforce as Source
    • Overcoming Upsert Limitations: A Case Study on Enabling Upsert Operations in APIs without Inherent Support
    • Connecting QuickBooks to Datalake
    • Connecting Salesforce to Netsuite
    • Connecting My-SQL to Salesforce Using Bizdata Universal API
    • Effortless Integration Scheduling: Mastering Biweekly Execution with eZintegrations
    • Connecting MS-SQL or Oracle Database to Salesforce Using Bizdata Universal API
    • Establishing Token-Based Authentication within NetSuite
    • Registering a Salesforce App and Obtaining Client ID / Secret (for API Calls / OAuth)
  • Management
    • Adding Users and Granting Organization Admin Privileges : Step-by-Step Guide
    • Security Matrix
    • Adding Users as an Organization Admin (Step-by-Step Guide)
  • Appendix
    • Pivot Operation Use Cases
    • Efficient Column Renaming in eZintegration Using Python Operation
    • Filter Operation Use Cases
    • Connecting any Database to Database
    • Connecting Data Targets
    • Connecting Data Sources
  • Release Notes
    • Release Notes
  • Accounting & Billing
    • Invoices
    • Billing Information
    • Payment Method
    • Current Plan
    • Plans
    • Dashboard
  • My Profile
    • My Profile
  • OnBoarding
    • Microsoft Login
    • Multi-Factor Authentication
    • Login for New Users
  • Pycode Examples
    • Extract Domain Name from Email using Split
    • Split String with Regular Expression
    • Bulk Rename of Keys
    • Form a JSON Object from array of array
    • URL Parsing
    • Form a JSON Object based on the key and values available in JSON Dataset
    • Convert Empty String in a JSON to a “null” value
    • Generate a OAuth 1.0 Signature or Store a Code Response in a User Defined Variable
    • Rename JSON Key based on other key’s value
  • Sprintf
    • Sprintf
  • Data Source Management
    • Data Source Management
  • Data Source API
    • Response Parameters: Text, XML, and JSON Formats
    • Environment Settings for Reusable and Dynamic Configuration
    • API Numeric Parameters for Pagination and Record Limits
    • API Time Parameters for Date and Time Filtering
    • How to test the Data Source API
    • Pre- Request Scripts
      • Pre- Request Scripts for Amazon S3
      • Pre- Request Scripts for Oracle Netsuite
      • Pre-Request Script for Amazon SP API
      • Pre-Request Scripts
    • API Pagination Methods
      • Custom Pagination
      • Encoded Next Token Pagination
      • Cursor Pagination
      • Pagination with Body
      • Total Page Count Pagination
      • Offset Pagination
      • Next URL Pagination
      • API Pagination Introduction
      • Pagination examples
        • SAP Shipment API Pagination
        • Amazon SP API Pagination
    • API Authorization
      • OAuth 2.0 Authorization
      • OAuth 1.0 Authorization
      • Basic Authentication Method
      • API Key Authorization Method
      • Different Types of API Authorization
  • Console
    • Console: Check Your Data at Every Step
  • eZintegrations Dashboard Overview
    • eZintegrations Dashboard Overview
  • Monitoring Dashboard
    • Monitoring Dashboard
  • Advanced Settings
    • Advanced Settings
  • Summary
    • Summary
  • Data Target- Email
    • Data Target- Email
  • Data Target- Bizintel360 Datalake Ingestion
    • Data Target- Goldfinch Analytics Datalake Ingestion
  • Data Target- Database
    • Data Target – Database SQL Examples
    • Database as a Data Target
  • Data Target API
    • Response Parameters
    • REST API Target
    • Pre-Request Script
    • Test the Data Target
  • Bizdata Dataset
    • Bizdata Dataset Response
  • Data Source- Email
    • Extract Data from Emails
  • Data Source- Websocket
    • WebSocket Data Source Overview
  • Data Source Bizdata Data Lake
    • How to Connect Data Lake as Source
  • Data Source Database
    • How to connect Data Source Database
  • Data Operations
    • Deep Learning
    • Data Orchestration
    • Data Pipeline Controls
    • Data Cleaning
    • Data Wrangling
    • Data Transformation

Goldfinch AI

  • Goldfinch AI Introduction

Bizdata API

  • Universal API for Database
    • API for PostgreSQL Database – Universal API
    • API for Amazon Aurora Database (MySQL/Maria) – Universal API
    • API for Amazon Redshift Database – Universal API
    • API for Snowflake Database – Universal API
    • API for MySQL/Maria Database – Universal API
    • API for MS-SQL Database-Universal API
    • API for Oracle Database- Universal API
    • Introduction to Universal API for Databases
  • SFTP API
    • SFTP API
  • Document Understanding APIs
    • Document Understanding API- Extract data from Documents
  • Web Crawler API
    • Web Crawler API – Fast Website Scraping
  • AI Workflow Testing APIs
    • Netsuite Source Testing API (Netsuite API Replica)
    • Salesforce Testing API (Salesforce API replica)
    • OAuth2.0 Testing API 
    • Basic Auth Testing API 
    • No Auth Testing API
    • Pagination with Body Testing API
    • Next URL Pagination Testing API 
    • Total Page Count Pagination Testing API
    • Cursor Pagination Testing API 
    • Offset Pagination Testing API
  • Import IB API
    • Import Integration service with .JSON file
  • Linux File & Folder Monitoring APIs
    • Monitor Linux Files & Folder using APIs
  • Webhook
    • Webhook Integration-Capture Events in Real Time
  • Websocket
    • Websocket Integration- Fetch Real Time Data
  • Image Understanding
    • Image Understanding API – Extract data from Images

Goldfinch Analytics

  • Visualization Login
    • Enabling Two Factor Authentication
    • Visualization login for analytics users
  • Profile
    • Profile
  • Datalake
    • Datalake
  • Discover
    • Discover
  • Widgets
    • Filter
    • Widget List
    • Widgets Guide
    • Creating Widgets & Adding Widgets to Dashboard
  • Dashboard
    • Dashboard
  • Views
    • Views
  • Filter Queries
    • Filter Queries for Reports and Dashboard
  • Alerts
    • Alerts
  • Management
    • Management
  • Downloading Reports with Filtered Data
    • Downloading Reports with Filtered Data in Goldfinch Analytics
  • Downloads
    • Downloads – eZIntegrations Documents & Resources | Official Guides & Manuals
View Categories

Data Target – Database SQL Examples

SQL Actions is Insert

This will go inside the SQL Statment of Database Target

"""Insert into table_name 
(column1,column2,column3,column4) values 
(?,?,?,?)""","column1","column2","column3","column4"
SQL Actions is Update

This will go inside the SQL Statment of Database Target


"""UPDATE table_name SET PICKED_STATUS = 'Y', 
column_name = systimestamp where column1= ? and column2= ? and column3= ? 
and column4= ?""", 
"column1", "column2", "column3", "column4"
SQL Actions is PLSQL Procedure with tuple

This will go inside the SQL Statment of Database Target


"""DECLARE
    column_name    VARCHAR2;
BEGIN    
apps.xxxxxxx.insert_prc(     
                 column_1 => ?
                ,column_2  => ?
                ,column_3 => ?  
     );     
    EXCEPTION WHEN OTHERS THEN
     OUTPUT.PUT_LINE ('xxxxxx ' || xxxxx);
END;""","column_1","column_2","column_3"
SQL Actions are not Insert, Update like Delete or Running a PLSQL Procedure

This will go inside the SQL Statment of Database Target

The field Order Set of Values (Tuple Key) should be empty in the Database Target


"""DECLARE
    column_name varchar2; BEGIN
END;"""
SQL Action is Upsert or Merge

Below is the example of Merge query in Oracle Database . Insert and Update at same time in ORDERS_TEST table

t is a alias for target table

s is a alias for source table

This will go inside the SQL Statment of Database Target


"""MERGE INTO ORDERS_TEST t
    USING (
        SELECT
            ? AS AMAZON_ORDER_ID,
            TO_DATE(?, 'YYYY-MM-DD') AS LAST_SHIP_DATE,
            ? AS ORDER_TYPE,
            TO_DATE(?, 'YYYY-MM-DD') AS PURCHASE_DATE,
            ? AS BUYER_EMAIL,
            TO_DATE(?, 'YYYY-MM-DD') AS AMZ_LAST_UPDATE_DATE,
            ? AS IS_REPLACEMENT_ORDER,
            ? AS NUM_ITEMS_SHIPPED,
? AS SHIPMENT_SERVICE_LEVEL,
            ? AS ORDER_STATUS,
            ? AS SALES_CHANNEL,
            ? AS IS_BUSINESS_ORDER,
            ? AS NUM_ITEMS_UNSHIPPED,
            ? AS GLOBAL_EXPRESS_ENABLED,
            ? AS IS_SOLDBY_AB,
            ? AS IS_PREMIUM_ORDER,
            ? AS ORDER_TOTAL_AMOUNT,
            ? AS ORDER_TOTAL_CURRENCY,
            TO_DATE(?, 'YYYY-MM-DD') AS EARLIEST_SHIP_DATE,
            ? AS MARKETPLACE_ID,
            ? AS FULFILLMENT_CHANNEL,
            ? AS PAYMENT_METHOD,
            ? AS SHIPPING_CITY,
            ? AS SHIPPING_POSTAL,
            ? AS SHIPPING_STATE,
            ? AS SHIPPING_COUNTRY,
            ? AS IS_ISPU,
            ? AS IS_PRIME,
            ? AS SELLER_ORDER_ID,
            ? AS SHIPMENT_SERVICE_CATEGORY,
            ? AS NEXTTOKEN
        FROM dual
    ) s
    ON (t.AMAZON_ORDER_ID = s.AMAZON_ORDER_ID)
    WHEN MATCHED THEN
        UPDATE SET
            t.LAST_SHIP_DATE = s.LAST_SHIP_DATE,
            t.ORDER_TYPE = s.ORDER_TYPE,
            t.PURCHASE_DATE = s.PURCHASE_DATE,
            t.BUYER_EMAIL = s.BUYER_EMAIL,
            t.AMZ_LAST_UPDATE_DATE = s.AMZ_LAST_UPDATE_DATE,
            t.IS_REPLACEMENT_ORDER = s.IS_REPLACEMENT_ORDER,
            t.NUM_ITEMS_SHIPPED = s.NUM_ITEMS_SHIPPED,
            t.SHIPMENT_SERVICE_LEVEL = s.SHIPMENT_SERVICE_LEVEL,
            t.ORDER_STATUS = s.ORDER_STATUS,
            t.SALES_CHANNEL = s.SALES_CHANNEL,
            t.IS_BUSINESS_ORDER = s.IS_BUSINESS_ORDER,
            t.NUM_ITEMS_UNSHIPPED = s.NUM_ITEMS_UNSHIPPED,
            t.GLOBAL_EXPRESS_ENABLED = s.GLOBAL_EXPRESS_ENABLED,
            t.IS_SOLDBY_AB = s.IS_SOLDBY_AB,
            t.IS_PREMIUM_ORDER = s.IS_PREMIUM_ORDER,
            t.ORDER_TOTAL_AMOUNT = s.ORDER_TOTAL_AMOUNT,
            t.ORDER_TOTAL_CURRENCY = s.ORDER_TOTAL_CURRENCY,
            t.EARLIEST_SHIP_DATE = s.EARLIEST_SHIP_DATE,
t.MARKETPLACE_ID = s.MARKETPLACE_ID,
            t.FULFILLMENT_CHANNEL = s.FULFILLMENT_CHANNEL,
            t.PAYMENT_METHOD = s.PAYMENT_METHOD,
            t.SHIPPING_CITY = s.SHIPPING_CITY,
            t.SHIPPING_POSTAL = s.SHIPPING_POSTAL,
            t.SHIPPING_STATE = s.SHIPPING_STATE,
            t.SHIPPING_COUNTRY = s.SHIPPING_COUNTRY,
            t.IS_ISPU = s.IS_ISPU,
            t.IS_PRIME = s.IS_PRIME,
            t.SELLER_ORDER_ID = s.SELLER_ORDER_ID,
            t.SHIPMENT_SERVICE_CATEGORY = s.SHIPMENT_SERVICE_CATEGORY,
            t.NEXTTOKEN = s.NEXTTOKEN
    WHEN NOT MATCHED THEN
        INSERT (
            AMAZON_ORDER_ID,
            LAST_SHIP_DATE,
            ORDER_TYPE,
            PURCHASE_DATE,
            BUYER_EMAIL,
            AMZ_LAST_UPDATE_DATE,
            IS_REPLACEMENT_ORDER,
            NUM_ITEMS_SHIPPED,
            SHIPMENT_SERVICE_LEVEL,
            ORDER_STATUS,
            SALES_CHANNEL,
            IS_BUSINESS_ORDER,
            NUM_ITEMS_UNSHIPPED,
            GLOBAL_EXPRESS_ENABLED,
            IS_SOLDBY_AB,
            IS_PREMIUM_ORDER,
            ORDER_TOTAL_AMOUNT,
            ORDER_TOTAL_CURRENCY,
            EARLIEST_SHIP_DATE,
            MARKETPLACE_ID,
            FULFILLMENT_CHANNEL,
            PAYMENT_METHOD,
            SHIPPING_CITY,
            SHIPPING_POSTAL,
            SHIPPING_STATE,
            SHIPPING_COUNTRY,
            IS_ISPU,
            IS_PRIME,
            SELLER_ORDER_ID,
            SHIPMENT_SERVICE_CATEGORY,
            NEXTTOKEN
        ) VALUES (
            s.AMAZON_ORDER_ID,
            s.LAST_SHIP_DATE,
            s.ORDER_TYPE,
            s.PURCHASE_DATE,
            s.BUYER_EMAIL,
            s.AMZ_LAST_UPDATE_DATE,
            s.IS_REPLACEMENT_ORDER,
            s.NUM_ITEMS_SHIPPED,
            s.SHIPMENT_SERVICE_LEVEL,
            s.ORDER_STATUS,
            s.SALES_CHANNEL,
            s.IS_BUSINESS_ORDER,
            s.NUM_ITEMS_UNSHIPPED,
            s.GLOBAL_EXPRESS_ENABLED,
            s.IS_SOLDBY_AB,
            s.IS_PREMIUM_ORDER,
            s.ORDER_TOTAL_AMOUNT,
            s.ORDER_TOTAL_CURRENCY,
            s.EARLIEST_SHIP_DATE,
            s.MARKETPLACE_ID,
            s.FULFILLMENT_CHANNEL,
s.PAYMENT_METHOD,
            s.SHIPPING_CITY,
            s.SHIPPING_POSTAL,
            s.SHIPPING_STATE,
            s.SHIPPING_COUNTRY,
            s.IS_ISPU,
            s.IS_PRIME,
            s.SELLER_ORDER_ID,
            s.SHIPMENT_SERVICE_CATEGORY,
            s.NEXTTOKEN
        )
    """

Database Target Troubleshoot

Not able to update or truncate the records in RDBMS tables like Oracle, MSSQL etc.

Below is the example as how you can overcome the update issue in Oracle Database.

Assume a user X is updating a record in an application with a username appuser and at the same time user Y is also updating the same record by using the same username as appuser . In such case there will be two session for making update. At this stage the Oracle database will go into locking mode and you will get error like below and the update will not happen.

ORA-00060: deadlock detected while waiting for resource

If one of the user commits, then the lock will get open and then update will happen. In many cases the sessions get locks when user uses application like Oracle sql developer , TOAD or DBeaver.

To check is the session is open and locked, use the below sql. At any given time the below query response should be of 0 records. If there are 0 records then the update statement and truncate statement will work perfectly

SELECT s.sid, s.serial#, s.username, s.program, s.machine
FROM v$session s
WHERE s.sid IN (
SELECT DISTINCT l.sid
FROM v$lock l
JOIN dba_objects o ON l.id1 = o.OBJECT_ID
WHERE o.OBJECT_NAME = ‘YOUR_TABLE_NAME’ AND o.OBJECT_TYPE = ‘TABLE’
);

To kill the user session, use the below sql

–1551 is sid and 4184 is serial#
ALTER SYSTEM KILL SESSION ‘1551,4184’;
commit;

Updated on December 29, 2025

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Database as a Data Target
Table of Contents
  • SQL Actions is Insert
  • SQL Actions is Update
  • SQL Actions is PLSQL Procedure with tuple
  • SQL Actions are not Insert, Update like Delete or Running a PLSQL Procedure
  • SQL Action is Upsert or Merge
  • Database Target Troubleshoot
    • Not able to update or truncate the records in RDBMS tables like Oracle, MSSQL etc.
© Copyright 2026 Bizdata Inc. | All Rights Reserved | Terms of Use | Privacy Policy