I would like to after running the below from a pl-sql block run the line that is produced...
Any ideas how to do this?
set serveroutput on
Server Output ON
declare
runexport VARCHAR2(200);
begin
SELECT 'host ''exp FILE=exp_'
||user||'_'||TO_CHAR(sysdate,'dd-mm-yyyy_HH24:MI:SS')||'_seq'
||ExportDumpID.NEXTVAL
||'.dmp OWNER=Y GRANTS=Y ROWS=Y COMPRESS=Y'''
INTO runexport
FROM dual;
dbms_output.put_line(runexport);
end;
/
Statement processed.
host 'exp FILE=exp_DBSERVICES_23-07-2001_12:03:41_seq69.dmp OWNER=Y GRANTS=Y ROWS=Y COMPRESS=Y' Many Thanks.
Thiko!
Any ideas how to do this?
set serveroutput on
Server Output ON
declare
runexport VARCHAR2(200);
begin
SELECT 'host ''exp FILE=exp_'
||user||'_'||TO_CHAR(sysdate,'dd-mm-yyyy_HH24:MI:SS')||'_seq'
||ExportDumpID.NEXTVAL
||'.dmp OWNER=Y GRANTS=Y ROWS=Y COMPRESS=Y'''
INTO runexport
FROM dual;
dbms_output.put_line(runexport);
end;
/
Statement processed.
host 'exp FILE=exp_DBSERVICES_23-07-2001_12:03:41_seq69.dmp OWNER=Y GRANTS=Y ROWS=Y COMPRESS=Y' Many Thanks.
Thiko!