我在Linux環境下的Oracle DB上作業,我寫了以下腳本:
col TABLESPACE_NAME format a30;
col username format a30;
col bytes format a30;
col max_bytes format a20;
col blocks format a20;
col max_blocks format a20;
col dropped format a20;
set wrap off;
set linesize 3000;
set pagesize 500;
Select; Select
表空間名稱
, 用戶名
, bytes
, max_bytes
, 塊
, max_blocks
, 洗掉
from
DBA_TS_QUOTAS。
但是,位元組數、最大位元組數、塊數、最大塊數的資料顯示為'##',我怎樣才能解決這個問題,使資料真正顯示出來?
提前感謝
uj5u.com熱心網友回復:
數字欄位應表示為數字。column和format應該與你想要顯示的內容相匹配
我將使用col xxxx format 999999999999作為位元組、max_bytes或任何其他數字欄位。如果你仍然有####,嘗試增加格式子句中的9的數量。
col TABLESPACE_NAME format a30;
col username format a30;
col bytes format 999999999999;
col max_bytes format 999999999999;
col blocks format 999999999999;
col max_blocks format 9999999999;
col dropped format a20;
set wrap off;
set linesize 3000;
set pagesize 500;
Select; Select
表空間名稱
, 用戶名
, bytes
, max_bytes
, 塊
, max_blocks
, 洗掉
from
DBA_TS_QUOTAS。
例子
SQL>/span> col TABLESPACE_NAME format a30;
SQL> col username format a30;
SQL> col bytes format 9999999999。
SQL>col max_bytes格式99999999。
SQL>col blocks format 99999999;
SQL>col max_blocks format 99999999;
SQL> col dropped format a20;
SQL> set wrap off。
SQL> set linesize 3000;
SQL> set pagesize500;
SQL> Select
表空間_名稱
, 用戶名
, bytes
, max_bytes
, 塊
, max_blocks
, 洗掉
from
DBA_TS_QUOTAS;
表空間名稱 用戶名 bytes max_bytes blocks max_blocks dropped
------------------------------ ------------- -------------- ------------ --------------------
TBOUT_202206 FDM_OUTPUT 393216 -1 24 -1 NO
TBOUT_202210 FDM_OUTPUT 393216 -1 24 -1 no
TBFCDSTORE FCD_OUT 3285123072 -1 200508 -1 NO
TBALMSTORE DMS_ALM 1696595968 -1 103552 -1 no
TBRDMSTORE DMS_RDM 68878336 -1 4204 -1 NO
TBCDR_202101 DMS_CDR 277938176 -1 16964 -1 no
TBDAT_202001 FDM_DATA 19595264 -1 1196 -1 no
TBDAT_202004 FDM_DATA 12189696 -1 744 -1 no
TBCPTSTORE DMS_CPT 17629184 -1 1076 -1 no
TBCPT_202002 DMS_CPT 67108864 -1 4096 -1 NO
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/332519.html
標籤:
上一篇:ORACLE-正則運算式
下一篇:重新初始化一個現有的git存盤庫
