C:\Users\psoft>sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jul 24 16:52:39 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: SYSADM@FSCM92
Enter password:
Connected to:
TABLESPACE_NAME Used Megabytes Max Megabytes
------------------------------ ----------------- ----------------
APWORK 1 0
SQL> desc dba_data_files
Name Null? Type
--------------------------- ----------------------------
FILE_NAME VARCHAR2(513)
FILE_ID NUMBER
TABLESPACE_NAME VARCHAR2(30)
BYTES NUMBER
BLOCKS NUMBER
STATUS VARCHAR2(9)
RELATIVE_FNO NUMBER
AUTOEXTENSIBLE VARCHAR2(3)
MAXBYTES NUMBER
MAXBLOCKS NUMBER
INCREMENT_BY NUMBER
USER_BYTES NUMBER
USER_BLOCKS NUMBER
ONLINE_STATUS VARCHAR2(7)
SQL> select file_name, tablespace_name from dba_data_files where tablespace_name
='APWORK';
FILE_NAME TABLESPACE_NAME
-------------- -------------------------
E:\APP\PSOFT\PRODUCT\11.2.0\DBHOME_2\ORADATA\FSCM92\APWORK.DBF APWORK
Tablespace altered.
SQL> commit;
Commit complete.
TABLESPACE_NAME Used Megabytes Max Megabytes
------------------------------ ----------------- -----------------
APWORK 501 0
SQL>
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jul 24 16:52:39 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter user-name: SYSADM@FSCM92
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> SELECT tablespace_name, SUM(bytes)/1024/1024 "Used Megabytes", SUM(maxbytes
)/1024/1024 "Max Megabytes" FROM dba_data_files WHERE tablespace_name='APWORK' G
ROUP BY tablespace_name;
TABLESPACE_NAME Used Megabytes Max Megabytes
------------------------------ ----------------- ----------------
APWORK 1 0
SQL> desc dba_data_files
Name Null? Type
--------------------------- ----------------------------
FILE_NAME VARCHAR2(513)
FILE_ID NUMBER
TABLESPACE_NAME VARCHAR2(30)
BYTES NUMBER
BLOCKS NUMBER
STATUS VARCHAR2(9)
RELATIVE_FNO NUMBER
AUTOEXTENSIBLE VARCHAR2(3)
MAXBYTES NUMBER
MAXBLOCKS NUMBER
INCREMENT_BY NUMBER
USER_BYTES NUMBER
USER_BLOCKS NUMBER
ONLINE_STATUS VARCHAR2(7)
SQL> select file_name, tablespace_name from dba_data_files where tablespace_name
='APWORK';
FILE_NAME TABLESPACE_NAME
-------------- -------------------------
E:\APP\PSOFT\PRODUCT\11.2.0\DBHOME_2\ORADATA\FSCM92\APWORK.DBF APWORK
SQL> ALTER TABLESPACE APWORK ADD DATAFILE 'E:\APP\PSOFT\PRODUCT\11.2.0\DBHOME_2\
ORADATA\FSCM92\APWORK_01.DBF' SIZE 500M;
Tablespace altered.
SQL> commit;
Commit complete.
SQL> SELECT tablespace_name, SUM(bytes)/1024/1024 "Used Megabytes", SUM(maxbytes
)/1024/1024 "Max Megabytes" FROM dba_data_files WHERE tablespace_name='APWORK' G
ROUP BY tablespace_name;
------------------------------ ----------------- -----------------
APWORK 501 0
SQL>
No comments :
Post a Comment