Get execution time of sql script in oracle sqlplus

后端 未结 5 1102
既然无缘
既然无缘 2021-02-13 11:38

I have a script that i use to load my data into my tables in Oracle (by a list of insert statements). How can i get the execution time of the entire loading process? I have trie

5条回答
  •  盖世英雄少女心
    2021-02-13 12:17

    It old question but i have found easy way to measure time of running a script in sqlplus. You just have to add this on the beginning

    timing start timing_name
    

    And this on the end of a script

    timing stop
    

    More information about this command can be found at Oracle's SQL*Plus® User's Guide and Reference: Collecting Timing Statistics

提交回复
热议问题