How to Rename or Move Oracle Tablespace Datafile to Another Location Como mudar o nome ou mover Oracle tablespace Datafile para outro local

Oracle database does not provide an easy user interface to rename a datafile of tablespace, nor database administrator can easily move or relocate the datafile to another location or directory that different from original location on creation of database. Banco de dados Oracle não fornece uma interface de usuário fácil de renomear um datafile do tablespace, nem administrador de dados pode facilmente mover ou deslocalizar o datafile para outro local ou diretório que diferente da localização original de criação do banco de dados. The rename or move place task has to be performed via Oracle SQLPlus command line interface. O renomear ou mover lugar tarefa tem de ser realizado através Oracle SQLPlus interface de linha de comando. However, if the operation is performed when the tablespace which owns the datefile is online, error will occur. No entanto, se a operação é realizada quando o tablespace que é a proprietária dos datefile está on-line, irá ocorrer erros.

The error message may include the following: A mensagem de erro pode incluir o seguinte:

ORA-01511: error in renaming log/data files ORA-01511: erro na renomeação log / ficheiros de dados
ORA-01121: cannot rename database file <string> - file is in use or recovery ORA-01121: não pode renomear arquivos de dados <string> - arquivo está em uso ou recuperação
ORA-01110: data file <string>: ‘datafile.dbf’ ORA-01110: dados <string> arquivo: 'datafile.dbf'

To properly move the datafile around or rename the datafile, follow this guide: Para o movimento em torno do datafile ou mudar o nome do datafile, siga este guia:

  1. Login to SQLPlus. Entrar para SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. Conecte como SYS DBA com CONNECT / AS SYSDBA comando.
  3. Shutdown the database instance with SHUTDOWN command. Encerrar a base de dados exemplo com comando SHUTDOWN.
  4. Rename or/and move the datafiles at operating system level. Mudar o nome e / ou mover os datafiles a nível do sistema operacional.
  5. Start Oracle database in mount state with STARTUP MOUNT command. Inicie o banco de dados Oracle em montar estado com ARRANQUE comando mount.
  6. Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Modifique o nome ou a localização da datafiles Oracle no dicionário de dados usando o comando seguinte sintaxe:

    ALTER DATABASE RENAME FILE ‘<fully qualified path to original data file name>’ TO ‘<new or original fully qualified path to new or original data file name>’; ALTER DATABASE RENAME FILE '<fully qualificada caminho para o arquivo de dados original name>' para '<new original ou caminho totalmente qualificado para novos ou arquivo de dados original name>';

  7. Open Oracle database instance completely with ALTER DATABASE OPEN command. Abrir banco de dados Oracle exemplo completamente com ALTER DATABASE OPEN comando.

If the datafiles that need to be changed or moved do not belong to SYSTEM tablespaces, and do not contain active rollback segments or temporary segments, there is another workaround that does not require database instance to be shutdown. Se os datafiles que precisam de ser alterados ou movidos não pertencem ao SISTEMA tablespaces, e não contêm activa rollback segmentos temporária ou segmentos, há outra solução que não requer banco de dados exemplo a ser programada. Instead, only the particular tablespace that contains the date files is taken offline. Em vez disso, só o particular tablespace que contém a data é tida arquivos off-line.

  1. Login to SQLPlus. Entrar para SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. Conecte como SYS DBA com CONNECT / AS SYSDBA comando.
  3. Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. Faça offline a tablespace afetada com ALTER tablespace <tablespace name> OFF-LINE; comando.
  4. Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Modifique o nome ou a localização da datafiles Oracle no dicionário de dados usando o comando seguinte sintaxe:

    ALTER TABLESPACE <tablespace name> RENAME DATAFILE ‘<fully qualified path to original data file name>’ TO ‘<new or original fully qualified path to new or original data file name>’; ALTER tablespace <tablespace name> RENAME DATAFILE '<fully qualificada caminho para o arquivo de dados original name>' para '<new original ou caminho totalmente qualificado para novos ou arquivo de dados original name>';

  5. Bring the tablespace online again with ALTER TABLESPACE alter tablespace <tablespace name> ONLINE; command. Traga o tablespace online novamente com ALTER tablespace alterar tablespace <tablespace name> ONLINE; comando.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.

Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .



Leave a Reply Deixe uma resposta

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Você pode usar estas tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Subscreva sem comentar


Custom Search

New Articles Novos Artigos

Incoming Search Terms for the Article Incoming Termos de pesquisa para o artigo

rename datafile renomear datafile - -- oracle move datafile Oracle mover datafile - -- oracle move tablespace Oracle mover tablespace - -- move tablespace move tablespace - -- oracle rename datafile Oracle renomear datafile - -- oracle move datafiles Oracle mover datafiles - -- rename datafile oracle renomear datafile Oracle - -- move datafile mover datafile - -- change datafile location datafile mudar local - -- oracle datafile rename Oracle datafile renomear - -- rename oracle datafile renomear Oracle datafile - -- oracle show tablespaces Oracle mostrar tablespaces - -- move oracle datafile Oracle mover datafile - -- oracle tablespace location Oracle tablespace local - -- oracle tablespace path Oracle tablespace caminho - -- all todos - -- move datafile oracle mover datafile Oracle - -- oracle show datafiles Oracle mostrar datafiles - -- move datafiles oracle mover datafiles Oracle - -- rename data file renomear ficheiro de dados - -- oracle rename Oracle renomear - -- oracle show tablespace Oracle mostrar tablespace - -- move tablespace oracle move tablespace Oracle - -- Move Oracle Tablespace Mover Oracle tablespace - -- sqlplus show tablespaces sqlplus mostrar tablespaces - -- Oracle change datafile location Oracle datafile mudar local - -- oracle tablespace Oracle tablespace - -- mover datafile Movimentação datafile - -- move oracle datafiles Oracle mover datafiles - -- oracle datafile name Oracle datafile nome - -- sqlplus show tablespace sqlplus mostrar tablespace - -- change oracle datafile path Oracle mudança datafile caminho - -- change tablespace name tablespace mudar nome - -- oracle move temp file Oracle mover arquivo temporário - -- move datafiles mover datafiles - -- How to Rename or Move Oracle Tablespace Datafile to Another Location Como mudar o nome ou mover Oracle tablespace Datafile para outro local - -- ORA-01511: error in renaming log/data files ORA-01511: erro na renomeação log / ficheiros de dados - -- rename oracle tablespace renomear Oracle tablespace - -- datafile rename datafile renomear - -- mover datafile oracle Movimentação datafile Oracle - -- move data file mover dados arquivo - -- alter datafile rename alterar datafile renomear - -- rename datafile in oracle renomear datafile em Oracle - -- move tablespace datafile move tablespace datafile - -- move datafile in oracle mover datafile em Oracle - -- alter datafile move alterar datafile mover - -- change datafile name datafile mudar nome - -- Oracle tablespace filename Oracle tablespace filename - -- Oracle move tablespace file Oracle mover tablespace arquivo - -- how to rename a datafile a forma de renomear um datafile - -- rename datafiles renomear datafiles - -- move datafiles in oracle mover datafiles em Oracle - -- oracle tablespace rename Oracle tablespace renomear - -- ORACLE MOVE DATAFILE TO ANOTHER TABLESPACE ORACLE DATAFILE mover para outra tablespace - -- how to move oracle datafile como mover Oracle datafile - -- oracle move system datafile Oracle mover sistema datafile - -- oracle tablespace name Oracle tablespace nome - -- mover datafiles Movimentação datafiles - -- oracle alter move Oracle alterar mover - -- oracle tablespace files Oracle tablespace arquivos - -- move datafile online mover datafile on-line - -- oracle move temp datafile Oracle mover temp datafile - -- MOVE ORACLE DATA FILE Mover dados ORACLE arquivo - -- renaming datafiles renomeando datafiles - -- oracle tablespace move Oracle tablespace mover - -- MOVE DATAFILE TO ANOTHER TABLESPACE DATAFILE mover para outra tablespace - -- RENAME ORACLE RENAME ORACLE - -- Oracle data file path Dados Oracle arquivo caminho - -- oracle change datafile path Oracle mudança datafile caminho - -- renaming an oracle database renomeando um banco de dados Oracle - -- oracle Oracle - -- move oracle database mover banco de dados Oracle - -- oracle move tablespace data file mover dados Oracle tablespace arquivo - -- Moving Oracle Datafiles Passando Oracle Datafiles - -- rename a datafile in oracle renomear um datafile em Oracle - --