【正文】
size from v$rollstat r, v$rollname n where =。processes39。 d、創(chuàng)建pfile create pfile from spfile。sessions39。db_block_size39。cursor_sharing39。db_file_multiblock_read_count39。undo_tablespace39。undo_retention39。undo_management39。M39。sga_target39。M39。sga_max_size39。M39。pga_aggregate_target39。timed_statistics39。spfile39。db_name39。db_unique_name39。instance_name39。service_names39。 各類型段的數(shù)量 查看各種類型的段的數(shù)量select segment_type, 段的類型 count(*) 該類型的段的數(shù)量 from user_segments group by segment_type order by segment_type。 前20個(gè)大段 列出占用存儲(chǔ)空間最多的前20個(gè)段select segment_name, 段的名稱 segment_type, 段的類型 tablespace_name, 所在表空間 bytes, 段的大小 round(bytes / 1024 / 1024 / 1024, 3) as space_gb from (select segment_name, segment_type, tablespace_name, bytes, blocks, extents from user_segments order by bytes desc) where rownum = 10。你要查找的表的名字39。 表的基本信息 查看表的基本信息select table_name, 表的名稱 tablespace_name, 表空間的名稱 num_rows, 記錄數(shù) avg_row_len, 行的平均長(zhǎng)度 last_analyzed, 統(tǒng)計(jì)信息收集時(shí)間 sample_size 統(tǒng)計(jì)信息收集樣本 from user_tables where table_name = 39。 字段的基本信息 查看字段的基本信息select table_name, 表的名稱 column_id, 字段的順序 column_name, 字段的名稱 data_type, 數(shù)據(jù)類型 data_length, 字段長(zhǎng)度 nullable, 是否允許空值 num_distinct, 不同值的個(gè)數(shù) num_nulls 空值記錄數(shù) from user_tab_columns where table_name = 39。 order by column_id。POSTPAY_BILLED_REVENUE39。POSTPAY_BILLED_REVENUE39。POSTPAY_BILLED_REVENUE39。P39。POSTPAY_BILLED_REVENUE_PK39。1 索引的字段 查看索引的字段select table_name, 表名稱 index_name, 字段名稱 column_position, 字段順序 column_name 字段名稱 from user_ind_columns where table_name = 39。 order by index_name, column_position。VALID39。1 對(duì)象分類數(shù)量 查看各種類型對(duì)象的數(shù)量select object_type, 對(duì)象的類型 count(*) 對(duì)象的數(shù)量 from user_objects group by object_type order by object_type。1 大對(duì)象列表select * from user_lobs。1 視圖列表select * from user_views。amp。2 視圖定義 從數(shù)據(jù)字典視圖中直接查詢視圖的定義select text from dba_views wher