I'm trying to do my first CSV export into an existing AWS S3 bucket. Calling with type CSV:
call dbms_cloud.export_data(credential_name => 'cred', file_uri_list => 'https://s3.us-east-2.amazonaws.com/bucket/test/object.csv',
format => json_object('type' value 'csv', 'compression' value 'gzip'), query => 'select * from table');
Produces this error:
ERROR at line 1:
ORA-20000: Export operation is only allowed for Oracle Datapump
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 1181
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 3943
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 3962
ORA-06512: at line 1
I'm able to get it to work with type: JSON and with compression disabled. Any idea why CSV doesn't work?