摘要:
DROP FUNCTION IF EXISTS rand_string; DELIMITER $$CREATE FUNCTION rand_string(str_length TINYINT UNSIGNED, str_type TINYINT UNSIGNED) RETURNS VARCHA... 阅读全文
摘要:
1.sqlplus设置参数 set atuotrace onSET AUTOTRACE OFF --No AUTOTRACE report is generated. This is the default. SET AUTOTRACE ON EXPLAIN --The AUTOTRACE report shows only the optimizer execution path. SET AUTOTRACE ON STATISTICS --The AUTOTRACE report shows only the SQL statement execution ... 阅读全文
摘要:
--GET_DDL: Return the metadata for a single object as DDL.-- This interface is meant for casual browsing (e.g., from SQLPlus)-- vs. the programmatic OPEN / FETCH / CLOSE interfaces above.-- PARAMETERS:-- object_type - The type of object to be retrieved.-- name - Name of the object.-- schema - Schema 阅读全文
摘要:
查看当前用户每个表占用空间的大小: select segment_name,sum(bytes)/1024/1024 from user_extents group by segment_name查看每个表空间占用空间的大小: select tablespace_name,sum(bytes)/1024/1024 from dba_segments group by tablespace_name来源:http://www.west263.com/www/info/27329-1.htm 阅读全文