select * from v$version;
select * from dba_registry_database;
select instance_name,host_name,version,status,database_status from v$instance;
select dbms_utility.port_string from dual;
-----------檢視資料版本
select * from dba_registry;
-----------檢視資料庫安裝的元件
select protection_mode, protection_level, remote_archive, database_role, dataguard_broker,guard_status
from v$database;
-----------是否配置了dataguard
select log_mode from v$database;
-----------檢視資料庫是否啟用了歸檔模式;
select flashback_on from v$database;
-----------是否起用了flashback database特性
select force_logging,supplemental_log_data_min, supplemental_log_data_pk, supplemental_log_data_ui,
supplemental_log_data_fk, supplemental_log_data_all
from v$database;
-----------是否啟用了force logging和補充日誌
select * from v$controlfile; --------控制檔案的組成;
select l.group#, lf.type, lf.member, l.bytes, l.status log_status, lf.status logfile_status
from v$log l, v$logfile lf
where l.group# = lf.group#
order by 1,3; -------------redo log日誌檔案
select owner, object_type, count(*)
from dba_objects
where status = 'invalid'
group by owner, object_type; ---------資料庫中無效物件
select name,phyrds,phywrts,readtim,writetim
from v$filestat a,v$dbfile b
where a.file# = b.file#
order by readtim desc ----------檢視頻繁讀寫的表空間
檢視資料庫
1 檢視資料庫例項 sid select instance name from v instance 檢視例項的結構 desc v instance 2 檢視當前資料庫的名稱 select from global name 或者 select name from v database 3 j a連線...
建立資料庫及檢視資料庫
原文章出處 建立資料庫 ifdb id mydatabase6 is notnull drop database mydatabase6 create database mydatabase6 on primary 主資料檔案 name logicnameofdatafile6 1 filename...
Informix資料庫檢視資料庫大小
檢視資料庫空間,不看清單 select dbsname,count num of extents,sum pe size from sysmaster systabnames,sysmaster sysptnext where partnum pe partnum and dbsname dbnam...