Skip to content

Commit 094c3d5

Browse files
committed
Fix date format
1 parent c1ee48c commit 094c3d5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

warehouse-discovery-scripts/oracle/export.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ WHENEVER SQLERROR EXIT 1;
44
SET HEADING ON
55
SET FEEDBACK OFF
66
SET TERMOUT OFF
7+
SET ECHO OFF
78
SET PAGESIZE 0
89
SET LINESIZE 32767
910
SET TRIMOUT ON
10-
SET COLSEP ','
1111
set 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
1518
DEFINE INPUT_SCRIPT = &1
@@ -18,20 +21,17 @@ DEFINE DURATION_DAYS = &3
1821

1922
-- Spool the output to the specified CSV file
2023
SPOOL &OUTPUT_FILE
21-
22-
-- Execute the SQL statement from the input file
2324
@&INPUT_SCRIPT &DURATION_DAYS;
2425
/
25-
26-
-- Stop spooling
2726
SPOOL OFF;
2827

2928
-- Reset SQL*Plus environment options
29+
SET ECHO ON
30+
SET VERIFY ON
3031
SET FEEDBACK ON
3132
SET TERMOUT ON;
3233
SET PAGESIZE 50;
3334
SET LINESIZE 80;
34-
SET COLSEP ' ';
3535

3636
-- Exit successfully
3737
EXIT SUCCESS

warehouse-discovery-scripts/oracle/spinner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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+
}

warehouse-discovery-scripts/oracle/tco_discovery.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ EOL
5858

5959
# Build final ZIP artifact that can be used with BigQuery Migration Assessment.
6060
zip -j "oracle_assessment_tco.zip" $OUTPUT_DIR/*.csv $OUTPUT_DIR/*.yaml
61-
rm -rf "$TMP_QUERY_FILE"
61+
rm -rf "$TMP_QUERY_FILE"

0 commit comments

Comments
 (0)