ORACLE FORMATTING MANY PROBLEM SOLVED :)

FORMATTING OPTIONS AS FOLLOWS:

Line and Page display format.

SQL> SET LINES 150

SQL> SET PAGESIZE 500

TO FORMAT COLUMNS

SQL> column username format a18

====================================

SQL> SELECT MAX(LENGTH(USERNAME)), MAX(LENGTH(ACCOUNT_STATUS)),MAX(LENGTH(DEFAULT_TABLESPACE)),MAX(LENGTH( TEMPORARY_TA
LESPACE)) FROM DBA_USERS;

MAX(LENGTH(USERNAME)) MAX(LENGTH(ACCOUNT_STATUS)) MAX(LENGTH(DEFAULT_TABLESPACE))
--------------------- --------------------------- -------------------------------
MAX(LENGTH(TEMPORARY_TABLESPACE))
---------------------------------
                   18                          16                               6
                                4


SQL> COLUMN USERNAME FORMAT A18
SQL> COLUMN ACCOUNT_STATUS FORMAT A16
SQL> COLUMN DEFAULT_TABLESPACE FORMAT A6
SQL> COLUMN TEMPORARY_TABLESPACE FORMAT A4
SQL> SELECT USERNAME, ACCOUNT_STATUS,DEFAULT_TABLESPACE, TEMPORARY_TABLESPACE FROM DBA_USERS;

USERNAME           ACCOUNT_STATUS   DEFAUL TEMP
------------------ ---------------- ------ ----
MGMT_VIEW          OPEN             SYSTEM TEMP
SYS                OPEN             SYSTEM TEMP
SYSTEM             OPEN             SYSTEM TEMP
DBSNMP             OPEN             SYSAUX TEMP
SYSMAN             OPEN             SYSAUX TEMP
NEWUSER            OPEN             USERS  TEMP
HELLO              OPEN             USERS  TEMP
SCOTT              OPEN             USERS  TEMP
XYZ                OPEN             USERS  TEMP
OUTLN              EXPIRED & LOCKED SYSTEM TEMP
MDSYS              EXPIRED & LOCKED SYSAUX TEMP
ORDSYS             EXPIRED & LOCKED SYSAUX TEMP
CTXSYS             EXPIRED & LOCKED SYSAUX TEMP
ANONYMOUS          EXPIRED & LOCKED SYSAUX TEMP
EXFSYS             EXPIRED & LOCKED SYSAUX TEMP
DMSYS              EXPIRED & LOCKED SYSAUX TEMP
WMSYS              EXPIRED & LOCKED SYSAUX TEMP
XDB                EXPIRED & LOCKED SYSAUX TEMP
ORDPLUGINS         EXPIRED & LOCKED SYSAUX TEMP
SI_INFORMTN_SCHEMA EXPIRED & LOCKED SYSAUX TEMP
OLAPSYS            EXPIRED & LOCKED SYSAUX TEMP
MDDATA             EXPIRED & LOCKED USERS  TEMP
DIP                EXPIRED & LOCKED USERS  TEMP
TSMSYS             EXPIRED & LOCKED USERS  TEMP

24 rows selected.

Comments

Popular posts from this blog

Query for Tablespace usage with Autoextend

How to configure multiple Oracle listeners

sheel script - automatic tablespace addition in oracle 11g