Oracle Learning Four (ongoing updates)

Source: Internet
Author: User

When settling the table, it appears.

ORA-01658: Cannot create INITIAL zone for a segment in tablespace MAXDATA

This problem occurs because the size of the table space is not enough, you can give him the capacity to expand this will be more than a data file. The specific wording is as follows:

ALTER Tablespace the name of the table space  ADD' path to the table space ' SIZE 1000M;

The following Oracle-brought system table queries can be used when querying the path of a tablespace

Select *  from where = ' User_data '

Where the Where condition is followed by the name of the tablespace to query.

The total size of the query table space, how much is used, how much is left, and the use of percentages can use the following statement

SelectA.tablespace_name,a.bytes/1024x768/1024x768"SumMB ", (a.bytes-B.bytes)/1024x768/1024x768"Used MB", b.bytes/1024x768/1024x768"Free MB",round(((A.bytes-B.bytes)/A.bytes)* -,2) "percent_used" from(SelectTablespace_name,sum(bytes) bytes fromDba_data_filesGroup  byTablespace_name) A, (SelectTablespace_name,sum(bytes) Bytes,Max(bytes) Largest fromDba_free_spaceGroup  bytablespace_name) bwhereA.tablespace_name=B.tablespace_nameOrder  by((a.bytes-B.bytes)/A.bytes)desc;

The total size of the query data file Total_space

SELECTfile_name  round/(1024x768 * 1024x768 0   from ORDER by

Query information about which tablespace the user resides in:

Select *  from Dba_users;

To build a table statement:

Create Table t_user_info (  user_idnumber   ,  user_name nvarchar2 (  ()) tablespace user_data  Storage  (    initial 64K    Maxextents unlimited  );

Make sure you give him the table space after the statement is built.

Oracle Learning Four (ongoing updates)

Related Article

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.