DBAtlas · Veritabanı operasyon atlası

Sürüm ve çalışma süresini (uptime) göster

Oracle

SELECT banner_full FROM v$version;
SELECT startup_time, ROUND(SYSDATE - startup_time, 1) AS up_days
FROM v$instance;

v$instance status ve host_name gibi örnek bilgilerini de verir.

PostgreSQL

SELECT version();
SELECT pg_postmaster_start_time() AS started,
       now() - pg_postmaster_start_time() AS uptime;

server_version_num sayısal karşılaştırma için pratiktir (ör. 160002 = 16.2).

MySQL

SELECT VERSION();
SHOW GLOBAL STATUS LIKE 'Uptime';  -- saniye

Uptime saniye cinsindendir; /86400 ile güne çevrilir.

SQL Server

SELECT @@VERSION;
SELECT sqlserver_start_time,
       DATEDIFF(DAY, sqlserver_start_time, GETDATE()) AS up_days
FROM sys.dm_os_sys_info;

SERVERPROPERTY('ProductVersion') ve ('Edition') sürüm/edisyon ayrıntısı verir.

MongoDB

db.version()
db.serverStatus().uptime   // saniye

serverStatus() ayrıca host, process ve connections bilgisini de içerir.

Redis

INFO server
# redis_version ve uptime_in_seconds / uptime_in_days satırları

INFO server ayrıca os, run_id ve tcp_port bilgisini verir.

DBAtlas'ta aç →