91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Oracle常用的查詢語句

發布時間:2020-07-21 17:58:54 來源:網絡 閱讀:379 作者:shangshanyang 欄目:關系型數據庫

SELECT * from user_views where view_name='v$session';

SELECT * FROM ALL_USERS where username like 'S%';

select * from v$database;

select username,profile from dba_users;;

select * from dba_profiles where profile='DEFAULT';

SELECT * from v$archive_dest;

select * from v$kccle;

select * from v$logfile;

select * from v$archive_dest;

select * from v$archive_dest_status;

select * from dba_tables T where owner='SYSTEM' AND TABLE_NAME LIKE 'FAM%';

analyze table family compute statistics for table--表分析;

select * from user_tables where table_name='FAMILY';

select * from v$parameter where name='db_block_size';

select segment_name,bytes from user_segments;

select count(*) from all_tables;

select count(*) from dba_tables;

select * from dba_tables where tablespace_name='SYSTEM' and table_name='FAMILY';

select segment_name,count(*),round(sum(bytes/1024/1024),9) MB from user_segments group by segment_name  order by MB desc;

select * from REPCAT$_DDL;

select * from user_segments wheRE segment_name='REPCAT$_DDL';

select count(*) from user_tables;

select * from DBA_tables WHERE TABLE_NAME='SYSTEM';


SELECT SUM(BYTES/1024/1024) FROM DBA_EXTENTS WHERE SEGMENT_NAME='FAMILY';

SELECT SUM(BYTES/1024/1024) FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='SYSTEM';

SELECT SUM(BYTES/1024/1024) FROM DBA_FREE_SPACE WHERE TABLESPACE_NAME='SYSTEM';

SELECT SEGMENT_NAME,sum(bytes/1024/1024) from user_segments group by segment_name having segment_name='FAMILY';

SELECT SUM(BYTES/1024/1024) FROM DBA_EXTENTS WHERE SEGMENT_NAME='FAMILY';

SELECT SUM(BYTES/1024/1024) FROM USER_SEGMENTS WHERE SEGMENT_NAME='FAMILY';

SELECT 1-104.5625/810 FROM DUAL;

/*select   a.tablespace_name,a.bytes/1024/1024 "sum MB",(a.bytes-b.bytes)/1024/1024   "used MB",b.bytes/1024/1024 "free MB",round(((a.bytes-b.bytes)/a.bytes)*100,2) "percent_used"

from

(select tablespace_name,sum(bytes) bytes from dba_data_files group by tablespace_name)   a,

(select tablespace_name,sum(bytes) bytes,max(bytes) largest from dba_free_space group by tablespace_name)   b

where   a.tablespace_name=b.tablespace_name

order   by   ((a.bytes-b.bytes)/a.bytes)   desc

--表空間*/

select SUM(BYTES/1024/1024) from SYS.DBA_FREE_SPACE t WHERE TABLESPACE_NAME='SYSTEM';

SELECT TABLESPACE_NAME,SUM(BYTES/1024/1024) MB FROM DBA_DATA_FILES GROUP BY TABLESPACE_NAME;

SELECT SUM(BYTES/1024/1024) MB FROM DBA_DATA_FILES WHERE TABLESPACE_NAME='SYSTEM';

select * from SYS.DBA_FREE_SPACE t;

SELECT * FROM DBA_EXTENTS WHERE SEGMENT_NAME='FAMILY';

SELECT SUM(BYTES/1024/1024) MB FROM DBA_EXTENTS WHERE SEGMENT_NAME='FAMILY' ;--表的大小;

SELECT BYTES/1024/1024 FROM DBA_SEGMENTS WHERE SEGMENT_NAME='FAMILY';--表的大小

select * from v$parameter where name='db_block_size';--塊的大小

select blocks*8/1024 from user_tables where table_name='FAMILY';--表的大小


select sql_text,first_load_time from v$sql order by first_load_time desc;

commit;

select * from family;

delete from family where name='zXq';

alter system switch logfile;--重做日志切換,切換后歸檔日志也會切換

select * from v$logfile; --重做日志

select * from v$archive_dest;--歸檔日志-

select *  from v$parameter where name='db_recovery_file_dest_size'; --歸檔日志總大小-

select * from v$parameter where name like '%retention_target';

select * from v$parameter where name='db_recovery_file_dest';


select * from v$flashback_database_log;

select flashback_on from v$database;--查看數據庫閃回功能有沒有打開

select * from v$version;--數據庫版本

select * from v$parameter where name like '%retention_target';

select value/1024/1024/1024 AS "LOG/GB" from v$parameter where name='db_recovery_file_dest_size'--3.76171875;

select * from v$parameter where name='db_recovery_file_dest';

select to_char(sysdate,'yyyy-mm-dd hh34:mi:ss') from dual;;

select * from user_recyclebin;--回收站

select * from v$parameter where name='background_dump_dest';--警告文件和系統跟蹤文件位置

select * from v$parameter where name='user_dump_dest';--用戶跟蹤文件位置



     


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

乳源| 武义县| 西青区| 景泰县| 阳新县| 新龙县| 博罗县| 内江市| 刚察县| 眉山市| 兴化市| 大田县| 和顺县| 象州县| 介休市| 玉林市| 婺源县| 安岳县| 甘德县| 临安市| 什邡市| 甘南县| 洛宁县| 晋宁县| 日土县| 马边| 沙河市| 凤凰县| 浪卡子县| 大埔区| 丹寨县| 资兴市| 漳浦县| 汪清县| 伽师县| 北流市| 化州市| 宁海县| 鹤壁市| 抚松县| 叶城县|