Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ INSTANCE and/or DATABASE:
@showsrc.sql: show source of PL/SQL stored objects
@show-x-dollar-tables.sql: list of all x$tables
@sql-version-counts.sql: top 10 count of versions of SQL_ID
@startup_Date_time.sql: get Last Starstup Date time
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I didn't see this until just now.
I would prefer to keep filenames as all lower case

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. right.

@tabcols.sql: list of columns in alpha order for owner and table_name
@tabidx.sql: show indexes and columns for owner and table_name
@plsql_called_objects.sql: Shows entry PL/SQL object and current PL/SQL object for a session
Expand Down
10 changes: 10 additions & 0 deletions sql/startup_Date_time.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- last_startup_time.sql
-- Laurent L - zoltix
-- 2020-01-31
-- get Last Starstup Date time

select
to_char(startup_time, 'HH24:MI DD-MON-YY') "Startup time"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard coded date formats should be in ISO 8601 format

ie. 'YYYY-MM-DD HH24:MI:SS' works for dates

'YYYY-MM-DD HH24:MI:SSXFF' is good for timestamps

from
v$instance;