What is the fastest way to insert data into an Oracle table?

前端 未结 8 2026
逝去的感伤
逝去的感伤 2020-12-30 07:22

I am writing a data conversion in PL/SQL that processes data and loads it into a table. According to the PL/SQL Profiler, one of the slowest parts of the conversion is the a

8条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 07:40

    Check this link http://www.dba-oracle.com/t_optimize_insert_sql_performance.htm

    1. main points to consider for your case is to use Append hint as this will directly append into the table instead of using freelist. If you can afford to turn off logging than use append with nologging hint to do it
    2. Use a bulk insert instead instead of iterating in PL/SQL
    3. Use sqlloaded to load the data directly into the table if you are getting data from a file feed

提交回复
热议问题