Generate tablespace processing statement

Source: Internet
Author: User

Select 'create tablespace' | V. tablespace_name |
'Datafile' E: \ oradata \ gisap \ '| V. tablespace_name |
'. Dbf'' size 8 m
Autoextend on next 8 m maxsize Unlimited
Logging
Online
Permanent
Extent management local autoallocate
Segment space management auto; 'As creates a tablespace,
'Create tablespace' | V. tablespace_name |
'Index
Datafile ''e: \ oradata \ gisap \ '| V. tablespace_name |
'Index. dbf' size 8 m
Autoextend on next 8 m maxsize Unlimited
Logging
Online
Permanent
Extent management local autoallocate
Segment space management auto; 'As create index tablespace,
'Drop tablespace' | V. tablespace_name |
'Including contents and datafiles; 'as to delete a tablespace,
'Drop tablespace' | V. tablespace_name |
'Index including contents and datafiles; 'As deletes the index tablespace,
'Alter user gisap quota unlimited on '| V. tablespace_name |'; 'authorizes the void of the table,
'Alter user gisap quota unlimited on '| V. tablespace_name |
'Index; 'authorize the index tablespace
From (select distinct T. table_name, T. tablespace_name
From all_tab_partitions t
Where T. table_owner = 'giap'
And T. table_name not like '% bin %') V

This statement is used to identify tables that use table partitions.

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.