Test the tablespace available space of LinuxLVM + RAW Devices

Source: Internet
Author: User
This article mainly verifies the maximum available space size of the lvm + raw device tablespace-1. Preparations before creating the tablespace, the size of devrawraw14 is 8 Mb [Oracle @ master ~] $ Ln-s

This article mainly verifies the maximum available space size of the lvm + raw device tablespace-1. Preparations before creating the tablespace, the/dev/raw/raw14 size is 8 M [Oracle @ master ~] $ Ln-s

This article mainly verifies the maximum available space size of the lvm + raw device tablespace.

-- 1. Prepare the tablespace before it is created. The size of/dev/raw/raw14 is 8 Mb.
[Oracle @ master ~] $ Ln-s/dev/raw/raw14/oracle/oradata/rawt/test01.dbf

-- 2. Create a tablespace
SQL> create tablespace test
Datafile '/oracle/oradata/rawt/test01.dbf' size 2 M
Autoextend on;

-- 3. Check the file size and insert data until the space is insufficient.
SQL> select bytes/1024/1024, maxbytes/1024/1024 from dba_data_files where file_id = 5;

BYTES/1024/1024 MAXBYTES/1024/1024
---------------------------------
2 32767.9844 -- when creating a tablespace, the maximum value is not specified, which is about 32 GB.

SQL>
SQL>
SQL>
SQL>
SQL> select count (*) from dba_objects;

COUNT (*)
----------
50032

SQL> create table t (id int, name varchar2 (20) tablespace test;

Table created.

SQL> insert into t select rownum, '000000' from dba_objects where rownum <1111111111;

49999 rows created.

SQL> commit;

Commit complete.

SQL> insert into t select rownum, '000000' from dba_objects where rownum <1111111111;

49999 rows created.

SQL> commit;

Commit complete.

SQL> insert into t select rownum, '000000' from dba_objects where rownum <1111111111;

49999 rows created.

SQL> insert into t select rownum, '000000' from dba_objects where rownum <1111111111;

49999 rows created.

SQL> insert into t select rownum, '000000' from dba_objects where rownum <1111111111;

49999 rows created.

SQL> insert into t select rownum, '000000' from dba_objects where rownum <1111111111;
Insert into t select rownum, '000000' from dba_objects where rownum <1111111111
*
ERROR at line 1:
ORA-01653: unable to extend table SYS. T by 128 in tablespace TEST


SQL> commit;

Commit complete.

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.