diff --git a/app/helpers/database_helper.rb b/app/helpers/database_helper.rb index cb27a62e..d12ffc32 100644 --- a/app/helpers/database_helper.rb +++ b/app/helpers/database_helper.rb @@ -52,7 +52,7 @@ def strftime_format_with_fractions3 def strftime_format_with_fractions6 case get_locale when "de" then "%d.%m.%Y %H:%M:%S.%6N" - when "en" then "%Y\u2011%m\u2011%d %H:%M:%S.%6N".encode('utf-8') # use unbreakable hyphen instead of '-' + when "en" then "%Y\u2011%m\u2011%d %H:%M:%S.​%6N".encode('utf-8') # use unbreakable hyphen instead of '-' else "%d.%m.%Y %H:%M:%S.%6N" end end diff --git a/app/views/dba_schema/_list_audit_trail.html.erb b/app/views/dba_schema/_list_audit_trail.html.erb index 2117d403..59958534 100644 --- a/app/views/dba_schema/_list_audit_trail.html.erb +++ b/app/views/dba_schema/_list_audit_trail.html.erb @@ -24,17 +24,16 @@ [ {:caption=> 'Time', :data=>proc{|rec| localeDateTime(rec.extended_timestamp, :fractions6)}, :title=> 'Timestamp of recorded action'}, {:caption=> 'Audit type', :data=>proc{|rec| rec.audit_type}, :title=> 'Type of audit record source'}, - {:caption=> 'Machine', :data=>proc{|rec| link_machine_ip_info(@update_area, rec.userhost)}, :title=> 'Client machine'}, + {:caption=> 'Machine', :data=>proc{|rec| link_machine_ip_info(@update_area, rec.userhost)}, :title=> 'Client machine', data_title: proc{|rec| "%t\n\nTerminal = #{rec.terminal}"}}, {:caption=> 'OS-User', :data=>proc{|rec| rec.os_user}, :title=> 'Client OS user name'}, {:caption=> 'DB-User', :data=>proc{|rec| rec.db_user}, :title=> 'DB user name used to connect'}, {:caption=> 'Proc', :data=>proc{|rec| rec.os_process}, :title=> "OS process identifier of the database Oracle process"}, - {:caption=> 'Terminal', :data=>proc{|rec| rec.terminal}, :title=> 'Terminal info'}, {:caption=> 'Action', :data=>proc{|rec| rec.statement_type}, :title=> 'Action name (from column STATEMENT_TYPE)'}, - {:caption=> 'Object', :data=>proc{|rec| link_object_description(@update_area, rec.object_schema, rec.object_name) }, :title=> 'Owner and name of affected object'}, + {:caption=> 'Object', :data=>proc{|rec| link_object_description(@update_area, rec.object_schema, rec.object_name) }, :title=> 'Owner and name of affected object', max_wrap_width: 90, data_title: proc{|rec| "%t\n\n#{rec.object_schema}.#{rec.object_name}"}}, {:caption=> 'I', :data=>proc{|rec| rec.instance_number}, :title=> 'Instance number as specified by the INSTANCE_NUMBER initialization parameter'}, {:caption=> 'Session-ID', :data=>proc{|rec| link_session(rec)}, :title=> 'ID of database session (AUDSID)', data_title: proc{|rec| "%t\nStatement ID = #{rec.statementid}\nEntry ID = #{rec.entryid}"}}, - {:caption=> 'SQL-Text', :data=>proc{|rec| link_sql_text(rec)}, :title=> 'SQL-Text'}, - {:caption=> 'B', :data=>proc{|rec| rec.sql_bind}, :title=> 'Bind variable data of the query'}, + {:caption=> 'SQL-Text', :data=>proc{|rec| link_sql_text(rec)}, :title=> 'SQL-Text', max_wrap_width: 70, data_title: proc{|rec| "%t\n\n#{rec.sql_text}"}}, + {:caption=> 'Binds', :data=>proc{|rec| rec.sql_bind}, :title=> 'Bind variable data of the query', max_wrap_width: 70, data_title: proc{|rec| "%t\n\n#{rec.sql_bind}"}}, {:caption=> 'N.O.', :data=>proc{|rec| "#{rec.new_owner}.#{rec.new_name}" if rec.new_owner || rec.new_name}, :title=> 'Owner and name after rename'}, {:caption=> 'O.P.', :data=>proc{|rec| rec.obj_privilege}, :title=> 'Object privileges granted or revoked by a GRANT or REVOKE statement'}, {:caption=> 'S.P.', :data=>proc{|rec| rec.sys_privilege}, :title=> 'System privileges granted or revoked by a GRANT or REVOKE statement'}, @@ -46,15 +45,14 @@ {:caption=> 'LR', :data=>proc{|rec| fn rec.logoff_lread}, :title=> 'Logical reads for the session', :align=>:right}, {:caption=> 'PR', :data=>proc{|rec| fn rec.logoff_pread}, :title=> 'Physical reads for the session', :align=>:right}, {:caption=> 'LW', :data=>proc{|rec| fn rec.logoff_lwrite}, :title=> 'Logical writes for the session', :align=>:right}, - {:caption=> 'DL', :data=>proc{|rec| fn rec.logoff_dlock if rec.logoff_dlock != '0' - }, :title=> 'Deadlocks detected during the session', :align=>:right}, + {:caption=> 'DL', :data=>proc{|rec| fn rec.logoff_dlock if rec.logoff_dlock != '0' }, :title=> 'Deadlocks detected during the session', :align=>:right}, {:caption=> 'C', :data=>proc{|rec| fn rec.session_cpu}, :title=> 'Amount of CPU time used by each Oracle session', :align=>:right}, {:caption=> 'Comment', :data=>proc{|rec| rec.comment_text}, :title=> 'Text comment on the audit trail entry, providing more information about the statement audited'}, {:caption=> 'R', :data=>proc{|rec| rec.returncode}, :title=> 'Oracle error code generated by the action. Some useful values: 0 - Action succeeded, 2004 - Security violation'}, {:caption=> 'Priv.', :data=>proc{|rec| rec.priv_used}, :title=> 'System privilege used to execute the action'}, - {:caption=> 'P.', :data=>proc{|rec| rec.policy_name}, :title=> 'Name of the Fine-Grained Auditing Policy'}, - {:caption=> 'Tx.', :data=>proc{|rec| rec.transactionid_hex}, :title=> 'Transaction identifier of the transaction in which the object was accessed or modified'}, - {:caption=> 'SCN', :data=>proc{|rec| fn(rec.scn)}, :title=> 'System change number (SCN) of the query', align: :right}, + {:caption=> 'FGA pol.', :data=>proc{|rec| rec.policy_name}, :title=> 'Name of the Fine-Grained Auditing Policy', max_wrap_width: 25, data_title: proc{|rec| "%t\n\n#{rec.policy_name}"}}, + {:caption=> 'Tx.', :data=>proc{|rec| rec.transactionid_hex}, :title=> 'Transaction identifier of the transaction in which the object was accessed or modified', max_wrap_width:20, data_title: proc{|rec| "%t\n#{rec.transactionid_hex}"}}, + {:caption=> 'SCN', :data=>proc{|rec| fn(rec.scn)}, :title=> 'System change number (SCN) of the query', align: :right, max_wrap_width: 25, data_title:proc{|rec| "%t\n#{fn(rec.scn)}"}}, {:caption=> 'Client-ID', :data=>proc{|rec| rec.client_id}, :title=> 'Client identifier in each Oracle session'}, ] diff --git a/app/views/dba_schema/_list_indexes.html.erb b/app/views/dba_schema/_list_indexes.html.erb index ed46a066..900bc9cd 100644 --- a/app/views/dba_schema/_list_indexes.html.erb +++ b/app/views/dba_schema/_list_indexes.html.erb @@ -214,7 +214,7 @@ "%t: - YES: Index has been used for access since last monitoring start - NO: Index has not been used for access since last monitoring start - - Undef.: MONITORING USAGE is not active for this index + - ?: MONITORING USAGE is not active for this index monitoring index = #{rec.monitoring} start monitoring = #{localeDateTime(rec.start_monitoring)} @@ -233,7 +233,7 @@ link_used = proc do |rec| if get_db_version >= '12.2' - ajax_link(rec.used ? rec.used : 'Undef.', + ajax_link(rec.used ? rec.used : '?', {controller: :dba_schema, action: :list_index_usage, owner: rec.owner, diff --git a/app/views/dba_schema/_list_unified_audit_trail.html.erb b/app/views/dba_schema/_list_unified_audit_trail.html.erb index 93bac3d5..e8586f91 100644 --- a/app/views/dba_schema/_list_unified_audit_trail.html.erb +++ b/app/views/dba_schema/_list_unified_audit_trail.html.erb @@ -70,9 +70,9 @@ #{:caption=> 'LW', :data=>proc{|rec| fn rec.logoff_lwrite}, :title=> 'Logical writes for the session', :align=>:right}, #{:caption=> 'DL', :data=>proc{|rec| fn rec.logoff_dlock if rec.logoff_dlock != '0'}, :title=> 'Deadlocks detected during the session', :align=>:right}, # {:caption=> 'C', :data=>proc{|rec| fn rec.session_cpu}, :title=> 'Amount of CPU time used by each Oracle session', :align=>:right}, - {:caption=> 'R', :data=>proc{|rec| rec.return_code}, :title=> 'Oracle error code generated by the action. Some useful values: 0 - Action succeeded, 2004 - Security violation'}, + {:caption=> 'Error code', :data=>proc{|rec| rec.return_code}, :title=> 'Oracle error code generated by the action. Some useful values: 0 - Action succeeded, 2004 - Security violation', align: :right}, {:caption=> 'Priv.', :data=>proc{|rec| rec.system_privilege_used}, :title=> 'System privilege used to execute the action'}, - {:caption=> 'P.', :data=>proc{|rec| rec.fga_policy_name}, :title=> 'Name of the Fine-Grained Auditing Policy'}, + {:caption=> 'FGA pol.', :data=>proc{|rec| rec.fga_policy_name}, :title=> 'Name of the Fine-Grained Auditing Policy', max_wrap_width: 20, data_title: proc{|rec| "%t\n\n#{rec.fga_policy_name}"}}, {:caption=> 'Tx.', :data=>proc{|rec| rec.transactionid_hex}, :title=> 'Transaction identifier of the transaction in which the object was accessed or modified', max_wrap_width:20, data_title: proc{|rec| "%t\n#{rec.transactionid_hex}"}}, {:caption=> 'SCN', :data=>proc{|rec| fn(rec.scn)}, :title=> 'System change number (SCN) of the query', align: :right, max_wrap_width: 25, data_title:proc{|rec| "%t\n#{fn(rec.scn)}"}}, {:caption=> 'Client-ID', :data=>proc{|rec| rec.client_identifier}, :title=> 'Client identifier in each Oracle session'}, diff --git a/config/application.rb b/config/application.rb index 1cad7c6e..7ae1feef 100644 --- a/config/application.rb +++ b/config/application.rb @@ -10,8 +10,8 @@ module Panorama # VERSION and RELEASE_DATE should have fix syntax and positions because they are parsed from other sites - VERSION = '2.17.11' - RELEASE_DATE = Date.parse('2023-09-18') + VERSION = '2.17.12' + RELEASE_DATE = Date.parse('2023-09-21') RELEASE_DAY = "%02d" % RELEASE_DATE.day RELEASE_MONTH = "%02d" % RELEASE_DATE.month