ORA-01653: unable to extend table by in tablespace ORA-06512

前端 未结 3 1995
逝去的感伤
逝去的感伤 2020-12-13 00:09

I tried to generate some test data by running the following sql.

BEGIN    
  FOR i IN 1..8180 LOOP
    insert into SPEEDTEST
    select \'column1\', \'column         


        
相关标签:
3条回答
  • 2020-12-13 00:18

    You could also turn on autoextend for the whole database using this command:

    ALTER DATABASE DATAFILE 'C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF'
    AUTOEXTEND ON NEXT 1M MAXSIZE 1024M;
    

    Just change the filepath to point to your system.dbf file.

    Credit Here

    0 讨论(0)
  • 2020-12-13 00:20

    Just add a new datafile for the existing tablespace

    ALTER TABLESPACE LEGAL_DATA ADD DATAFILE '/u01/oradata/userdata03.dbf' SIZE 200M;
    

    To find out the location and size of your data files:

    SELECT FILE_NAME, BYTES FROM DBA_DATA_FILES WHERE TABLESPACE_NAME = 'LEGAL_DATA';
    
    0 讨论(0)
  • 2020-12-13 00:37

    To resolve this error:

    ORA-01653 unable to extend table by 1024 in tablespace your-tablespace-name

    Just run this PL/SQL command for extended tablespace size automatically on-demand:

    alter database datafile '<your-tablespace-name>.dbf' autoextend on maxsize unlimited;
    

    I get this error in import big dump file, just run this command without stopping import routine or restarting the database.

    Note: each data file has a limit of 32GB of size if you need more than 32GB you should add a new data file to your existing tablespace.

    More info: alter_autoextend_on

    0 讨论(0)
提交回复
热议问题