Pular para o conteúdo

Fóruns Banco de dados Oracle Removendo um índice teimoso… Removendo um índice teimoso…

#86601
Rodrigo Almeida
Participante

    Falo isso, pq é possível criar uma tbs com o nome reservado tablespace.

    Veja.

    ===============================================

    SQL> conn sys@pel_dist_hom as sysdba
    Informe a senha:
    Conectado.
    SQL> create tablespace “tablespace” datafile ‘/u02/oracle/oradata/tbs01.dbf’ size 10m;

    Tablespace criado.

    SQL> select tablespace_name from dba_tablespaces where tablespace_name = ‘TABLESPACE’;

    nÒo hß linhas selecionadas

    SQL> drop tablespace tablespace including contents and datafiles;
    drop tablespace tablespace including contents and datafiles
    *
    ERRO na linha 1:
    ORA-00959: tablespace ‘TABLESPACE’ does not exist

    SQL> drop tablespace “tablespace” including contents and datafiles;

    Tablespace eliminado.

    SQL> select * from v$version;

    BANNER
    —————————————————————-
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – Prod
    PL/SQL Release 10.2.0.4.0 – Production
    CORE 10.2.0.4.0 Production
    TNS for Linux: Version 10.2.0.4.0 – Production
    NLSRTL Version 10.2.0.4.0 – Production

    SQL>

    ===============================================

    Abraços, 😯
    Rodrigo Almeida