Solution to Oracle Tablespace not enough

Source: Internet
Author: User

Execute the following commands by using SYSTEM account login Oracle:

  >sqlplus System/[email Protected]:1522/xe;

Sql*plus:release 12.1.0.1.0 Production on Tue Sep 22 20:16:29 2015

Copyright (c) 1982, Oracle. All rights reserved.


Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0-64bit Production

Sql>

1.the below command to display thecurrent size of tablespace

> Select T.tablespace_name,round (SUM ( Bytes/(1024*1024)), 0) ts_size from dba_tablespaces t,dba_data_files D where t.tablespace_name=d.tablespace_name  Group by T.tablespace_name;

tablespace_name           ts_size
------------------- ---------------------
undotbs1                   510


SQL>

2.use the below command to display the path of tablespace that would be used in command to modify the size of tablespace.

>Select File_name,tablespace_name from Dba_data_files;

file_name tablespace_name
------------------------------------------------------------------------------------------------------- -------
/u01/app/oracle/oradata/xe/system.dbf System


3.the Last command was to expand the size of current tablespace.
> ALTER DATABASE datafile '/U01/APP/ORACLE/ORADATA/XE/SYSTEM.DBF ' resize 5600M;


Database altered.

Sql>


Solution to Oracle Tablespace not enough

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.