File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
warehouse-discovery-scripts/oracle Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,15 @@ WHENEVER SQLERROR EXIT 1;
44SET HEADING ON
55SET FEEDBACK OFF
66SET TERMOUT OFF
7+ SET ECHO OFF
78SET PAGESIZE 0
89SET LINESIZE 32767
910SET TRIMOUT ON
10- SET COLSEP ' ,'
1111set UNDERLINE OFF
12- SET MARKUP CSV ON
12+ SET VERIFY OFF
13+ SET MARKUP CSV ON DELIMITER ' ,' QUOTE OFF
14+ ALTER SESSION SET NLS_DATE_FORMAT = ' YYYY-MM-DD HH24:MI:SS' ;
15+ ALTER SESSION SET NLS_TIMESTAMP_FORMAT = ' YYYY-MM-DD HH24:MI:SS' ;
1316
1417-- Accept the input file name and output file name as arguments
1518DEFINE INPUT_SCRIPT = &1
@@ -18,20 +21,17 @@ DEFINE DURATION_DAYS = &3
1821
1922-- Spool the output to the specified CSV file
2023SPOOL &OUTPUT_FILE
21-
22- -- Execute the SQL statement from the input file
2324@&INPUT_SCRIPT &DURATION_DAYS;
2425/
25-
26- -- Stop spooling
2726SPOOL OFF;
2827
2928-- Reset SQL*Plus environment options
29+ SET ECHO ON
30+ SET VERIFY ON
3031SET FEEDBACK ON
3132SET TERMOUT ON ;
3233SET PAGESIZE 50 ;
3334SET LINESIZE 80 ;
34- SET COLSEP ' ' ;
3535
3636-- Exit successfully
3737EXIT SUCCESS
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ stop_spinner() {
1717 kill $SPINNER_PID & > /dev/null
1818 wait $SPINNER_PID & > /dev/null
1919 printf " \r" # Clears the spinner line
20- }
20+ }
Original file line number Diff line number Diff line change 5858
5959# Build final ZIP artifact that can be used with BigQuery Migration Assessment.
6060zip -j " oracle_assessment_tco.zip" $OUTPUT_DIR /* .csv $OUTPUT_DIR /* .yaml
61- rm -rf " $TMP_QUERY_FILE "
61+ rm -rf " $TMP_QUERY_FILE "
You can’t perform that action at this time.
0 commit comments