Skip to Content
author's profile photo Former Member
Former Member

extract / file not created

Hi, Experts



IQ 15.4

OS : Linux



/tmp> dbisql -nogui ext.sql

---> NO ERROR BUT no file was created (a.dat)

/***************** ext.sql (bof) *************************/

set temporary option temp_extract_name1= '/tmp/a.dat';

select * from tab_a;

set temporary option temp_extract_name1='';

/****************** (eof) *********************************/

But not using script file( ext.sql)

Extracted file is created successfully without error ....

What is the problem ???

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 25, 2016 at 03:58 PM

    YOu do need set

    (DBA)> set option isql_show_multiple_result_sets='on' ;


    extract file default location is .db directory.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi, Saroj,

      I'm facing the same issue too... But after added the 2 option you mentioned, I still fail to create extract file with script... Here's my sample file --

      asiq160@bigDataIQ:/iq_data/bcp> cat


      echo `date +%F' '%T`:started

      dbisql -c "uid=dba;pwd=sql" -host -port 2641 -nogui << EOF

      set temporary option temp_extract_name1='export.dat';

      set temporary option temp_extract_directory='/iq_data/bcp';

      set temporary option isql_show_multiple_result_sets='on' ;


      select * from STOCK;

      set temporary option temp_extract_name1='';


      echo `date +%F' '%T`:ended

      asiq160@bigDataIQ:/iq_data/bcp> ./

      2016-07-26 03:00:12:started

      (DBA)> Execution time: 0.003 seconds

      (DBA)> 2016-07-26 03:00:13:ended

      asiq160@bigDataIQ:/iq_data/bcp> ls

      And I also checked the .db folder -- find no file named export.dat created. Would you please have a look? Thanks



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.