Re: [oracle_br] Problemas para excluir uma tablespace de UNDO
Olá Pessoal, Seguem os comandos: create undo tablespace new_tbs DATAFILE size 2048m autoextend on next 500M maxsize 2048m; alter system set undo_tablespace=new_tbs; drop tablespace old_tbs including contents and datafiles; Contudo, conforme eu já tinha comentado com o Mufalani, o problema já foi resolvido, tinha uns processos travados (talvez algum rollback sendo executado), que demorou pelo menos 3 horas para que eu conseguisse excluir a antiga tbs. Att, Wanderson Em 17 de abril de 2014 21:22, Fabricio Pedroso Jorge fpjb...@gmail.comescreveu: Ola, Executa essa query, vê quem ainda tem undo ativo e mata a sessão: select s.sql_text from v$sql s, v$undostat u where u.maxqueryid = s.sql_id; Após matar a sessão, creio que seja possível remover a tablespace de undo. Em 17 de abril de 2014 16:49, Wanderson Barrence wbarre...@gmail.comescreveu: Olá Pessoal, Estou com problema aqui que aparentemente parece fácil de resolver, mas depois muitas tentativas resolvi apelar para os Especialistas. k... Preciso excluir uma tablespace de undo em um banco de dados 24x7 (que não posso baixar de maneira alguma), geralmente eu utilizo o fluxo abaixo: 1. Crio uma nova tablespace de UNDO. 2. Ativo essa tablespace com: alter system set undo_tablespace=nova_tbs; 3. Excluo a antiga TBS com o comando: drop tablespace antiga_tbs including contents and datafiles; Como nem tudo são flores, está ocorrendo o erro: Ao setar a nova tbs: SQL alter system set undo_tablespace=nova_tbs; alter system set undo_tablespace=nova_tbs * ERROR at line 1: ORA-02097: parameter cannot be modified because specified value is invalid ORA-30012: undo tablespace 'nova_tbs' does not exist or of wrong type E ao excluir a antiga tbs: SQL drop tablespace antiga_tbs including contents and datafiles; drop tablespace antiga_tbs including contents and datafiles * ERROR at line 1: ORA-30013: undo tablespace 'antiga_tbs' is currently in use Inclusive já reduzi o undo_retention, já matei todas as sessões, mas até agora nada!!! Alguém tem alguma nova dica? Ambiente: Oracle Database 10g Release 10.2.0.3.0 - 64bit Production With the Real Application Clusters option Red Hat Enterprise Linux AS release 4 (Nahant Update 6) Att, Wanderson -- *Fabrício Pedroso Jorge.* Administrador de Banco de Dados Oracle 11g Certified SQL Expert Oracle 11g Certified Associate Oracle 11g Certified Professional Linux Professional Institute Certified Level I (LPIC-I) ITIL V3 Foudations certificacaodb.com.br *Resumo Profissional:* http://br.linkedin.com/in/fabriciojorge *Contatos:* + 55 91 88991116 skype: fabricio.pedroso.jorge fpjb...@gmail.com
Re: [oracle_br] Problemas para excluir uma tablespace de UNDO
Wanderson, no teu primeiro ERRO tu mandou: SQL alter system set undo_tablespace=nova_tbs; alter system set undo_tablespace=nova_tbs * ERROR at line 1: ORA-02097: parameter cannot be modified because specified value is invalid ORA-30012: undo tablespace 'nova_tbs' does not exist or of wrong type Então não é suposição, é FATO que tu tava tentando alterar uma tablespace de UNDO para uma que não é o tipo correto ou simplesmente colocou o nome errado, ok? Sobre ter conseguido o drop da undo, após ter corrigido esse erro, pode sim ter uma transação efetuando rollback que impeça a operação, agora um erro não desfaz o outro. Att,/Regards, Vitor Jr. Infraestrutura / Infrastructure Team Oracle 11g DBA Certified Professional - OCP Oracle Certified Expert, Oracle Real Application Clusters 11g and Grid Infrastructure Administrator - OCE Oracle Database 11g Performance Tuning Certified Expert - OCE Oracle Exadata 11g Certified Implementation Specialist Oracle Certified Associate, MySQL 5 mail, gtalk e msn: vitorj...@gmail.com http://certificacaobd.com.br/ skype: vjunior1981 https://mybizcard.co/vitor.jr.385628 Em 19 de abril de 2014 14:30, Wanderson Barrence wbarre...@gmail.comescreveu: Olá Pessoal, Seguem os comandos: create undo tablespace new_tbs DATAFILE size 2048m autoextend on next 500M maxsize 2048m; alter system set undo_tablespace=new_tbs; drop tablespace old_tbs including contents and datafiles; Contudo, conforme eu já tinha comentado com o Mufalani, o problema já foi resolvido, tinha uns processos travados (talvez algum rollback sendo executado), que demorou pelo menos 3 horas para que eu conseguisse excluir a antiga tbs. Att, Wanderson Em 17 de abril de 2014 21:22, Fabricio Pedroso Jorge fpjb...@gmail.comescreveu: Ola, Executa essa query, vê quem ainda tem undo ativo e mata a sessão: select s.sql_text from v$sql s, v$undostat u where u.maxqueryid = s.sql_id; Após matar a sessão, creio que seja possível remover a tablespace de undo. Em 17 de abril de 2014 16:49, Wanderson Barrence wbarre...@gmail.comescreveu: Olá Pessoal, Estou com problema aqui que aparentemente parece fácil de resolver, mas depois muitas tentativas resolvi apelar para os Especialistas. k... Preciso excluir uma tablespace de undo em um banco de dados 24x7 (que não posso baixar de maneira alguma), geralmente eu utilizo o fluxo abaixo: 1. Crio uma nova tablespace de UNDO. 2. Ativo essa tablespace com: alter system set undo_tablespace=nova_tbs; 3. Excluo a antiga TBS com o comando: drop tablespace antiga_tbs including contents and datafiles; Como nem tudo são flores, está ocorrendo o erro: Ao setar a nova tbs: SQL alter system set undo_tablespace=nova_tbs; alter system set undo_tablespace=nova_tbs * ERROR at line 1: ORA-02097: parameter cannot be modified because specified value is invalid ORA-30012: undo tablespace 'nova_tbs' does not exist or of wrong type E ao excluir a antiga tbs: SQL drop tablespace antiga_tbs including contents and datafiles; drop tablespace antiga_tbs including contents and datafiles * ERROR at line 1: ORA-30013: undo tablespace 'antiga_tbs' is currently in use Inclusive já reduzi o undo_retention, já matei todas as sessões, mas até agora nada!!! Alguém tem alguma nova dica? Ambiente: Oracle Database 10g Release 10.2.0.3.0 - 64bit Production With the Real Application Clusters option Red Hat Enterprise Linux AS release 4 (Nahant Update 6) Att, Wanderson -- *Fabrício Pedroso Jorge.* Administrador de Banco de Dados Oracle 11g Certified SQL Expert Oracle 11g Certified Associate Oracle 11g Certified Professional Linux Professional Institute Certified Level I (LPIC-I) ITIL V3 Foudations certificacaodb.com.br *Resumo Profissional:* http://br.linkedin.com/in/fabriciojorge *Contatos:* + 55 91 88991116 skype: fabricio.pedroso.jorge fpjb...@gmail.com
Re: [oracle_br] Problemas para excluir uma tablespace de UNDO
Durante a criação da nova undo tu deve ter esquecido a palavra undo no comando: Errado Create tablespace undotbs1... Certo Create undo tablespace undotbs1... Por isso o erro de wrong type. Em 17/04/2014 17:03, Wanderson Barrence wbarre...@gmail.com escreveu: Olá Pessoal, Estou com problema aqui que aparentemente parece fácil de resolver, mas depois muitas tentativas resolvi apelar para os Especialistas. k... Preciso excluir uma tablespace de undo em um banco de dados 24x7 (que não posso baixar de maneira alguma), geralmente eu utilizo o fluxo abaixo: 1. Crio uma nova tablespace de UNDO. 2. Ativo essa tablespace com: alter system set undo_tablespace=nova_tbs; 3. Excluo a antiga TBS com o comando: drop tablespace antiga_tbs including contents and datafiles; Como nem tudo são flores, está ocorrendo o erro: Ao setar a nova tbs: SQL alter system set undo_tablespace=nova_tbs; alter system set undo_tablespace=nova_tbs * ERROR at line 1: ORA-02097: parameter cannot be modified because specified value is invalid ORA-30012: undo tablespace 'nova_tbs' does not exist or of wrong type E ao excluir a antiga tbs: SQL drop tablespace antiga_tbs including contents and datafiles; drop tablespace antiga_tbs including contents and datafiles * ERROR at line 1: ORA-30013: undo tablespace 'antiga_tbs' is currently in use Inclusive já reduzi o undo_retention, já matei todas as sessões, mas até agora nada!!! Alguém tem alguma nova dica? Ambiente: Oracle Database 10g Release 10.2.0.3.0 - 64bit Production With the Real Application Clusters option Red Hat Enterprise Linux AS release 4 (Nahant Update 6) Att, Wanderson
Re: [oracle_br] Problemas para excluir uma tablespace de UNDO
Wanderson, lendo teu e-mail a primeira coisa que eu percebi foi: - Você tentou setar uma nova tablespace para usá-la como UNDO. Te retornou um ERRO. Aí depois vc colou outro erro, de quando vc tentou EXCLUIR a tablespace antiga! Tá, mas perae... vc já criou a tablespace nova??? Vc não colou o comando pra gente, mostrando que vc criou uma tablespace nova de UNDO. Como é que vamos saber se vc fez isso? E se fez, como vamos saber se fez corretamente? A impressão que tenho é que vc criou uma tablespace NORMAL (e não de UNDO) e tentou setá-la como undo pelo alter system é isso que vc fez? (se foi isso, obviamente está errado). Então cole pra gente TUDO que vc fez, senão fica difícil adivinhar! Em 17 de abril de 2014 16:49, Wanderson Barrence wbarre...@gmail.comescreveu: Olá Pessoal, Estou com problema aqui que aparentemente parece fácil de resolver, mas depois muitas tentativas resolvi apelar para os Especialistas. k... Preciso excluir uma tablespace de undo em um banco de dados 24x7 (que não posso baixar de maneira alguma), geralmente eu utilizo o fluxo abaixo: 1. Crio uma nova tablespace de UNDO. 2. Ativo essa tablespace com: alter system set undo_tablespace=nova_tbs; 3. Excluo a antiga TBS com o comando: drop tablespace antiga_tbs including contents and datafiles; Como nem tudo são flores, está ocorrendo o erro: Ao setar a nova tbs: SQL alter system set undo_tablespace=nova_tbs; alter system set undo_tablespace=nova_tbs * ERROR at line 1: ORA-02097: parameter cannot be modified because specified value is invalid ORA-30012: undo tablespace 'nova_tbs' does not exist or of wrong type E ao excluir a antiga tbs: SQL drop tablespace antiga_tbs including contents and datafiles; drop tablespace antiga_tbs including contents and datafiles * ERROR at line 1: ORA-30013: undo tablespace 'antiga_tbs' is currently in use Inclusive já reduzi o undo_retention, já matei todas as sessões, mas até agora nada!!! Alguém tem alguma nova dica? Ambiente: Oracle Database 10g Release 10.2.0.3.0 - 64bit Production With the Real Application Clusters option Red Hat Enterprise Linux AS release 4 (Nahant Update 6) Att, Wanderson
Re: [oracle_br] Problemas para excluir uma tablespace de UNDO
Ola, Executa essa query, vê quem ainda tem undo ativo e mata a sessão: select s.sql_text from v$sql s, v$undostat u where u.maxqueryid = s.sql_id; Após matar a sessão, creio que seja possível remover a tablespace de undo. Em 17 de abril de 2014 16:49, Wanderson Barrence wbarre...@gmail.comescreveu: Olá Pessoal, Estou com problema aqui que aparentemente parece fácil de resolver, mas depois muitas tentativas resolvi apelar para os Especialistas. k... Preciso excluir uma tablespace de undo em um banco de dados 24x7 (que não posso baixar de maneira alguma), geralmente eu utilizo o fluxo abaixo: 1. Crio uma nova tablespace de UNDO. 2. Ativo essa tablespace com: alter system set undo_tablespace=nova_tbs; 3. Excluo a antiga TBS com o comando: drop tablespace antiga_tbs including contents and datafiles; Como nem tudo são flores, está ocorrendo o erro: Ao setar a nova tbs: SQL alter system set undo_tablespace=nova_tbs; alter system set undo_tablespace=nova_tbs * ERROR at line 1: ORA-02097: parameter cannot be modified because specified value is invalid ORA-30012: undo tablespace 'nova_tbs' does not exist or of wrong type E ao excluir a antiga tbs: SQL drop tablespace antiga_tbs including contents and datafiles; drop tablespace antiga_tbs including contents and datafiles * ERROR at line 1: ORA-30013: undo tablespace 'antiga_tbs' is currently in use Inclusive já reduzi o undo_retention, já matei todas as sessões, mas até agora nada!!! Alguém tem alguma nova dica? Ambiente: Oracle Database 10g Release 10.2.0.3.0 - 64bit Production With the Real Application Clusters option Red Hat Enterprise Linux AS release 4 (Nahant Update 6) Att, Wanderson -- *Fabrício Pedroso Jorge.* Administrador de Banco de Dados Oracle 11g Certified SQL Expert Oracle 11g Certified Associate Oracle 11g Certified Professional Linux Professional Institute Certified Level I (LPIC-I) ITIL V3 Foudations certificacaodb.com.br *Resumo Profissional:* http://br.linkedin.com/in/fabriciojorge *Contatos:* + 55 91 88991116 skype: fabricio.pedroso.jorge fpjb...@gmail.com
Re: [oracle_br] Problemas para excluir uma tablespace de UNDO
Boa tarde, Meu caro, você não deve ter criado a tablespace nova como tablespace de UNDO, e sim uma tablespace normal.. create tablespace XX ao invés de create undo tablespace X Recomendo que se é um banco de produção, tenha domínio do processo em uma base de testes, isso é bem simples. Mas vc pelos logs tentou dropar a tablespace mesmo com o seu passo inicial tendo falhado. Imagina o que teria ocorrido se o Oracle liga-se o 'fod!%*%*-se' e deixasse vc eliminar? --- Atenciosamente, Rodrigo Mufalani Database Consultant +55 XX(21) 3193-0326 rodr...@mufalani.com.br www.mufalani.com.br Stop guessing… Be Sure… Because performance matters Em 17/04/2014 16:49, Wanderson Barrence escreveu: Olá Pessoal, Estou com problema aqui que aparentemente parece fácil de resolver, mas depois muitas tentativas resolvi apelar para os Especialistas. k... Preciso excluir uma tablespace de undo em um banco de dados 24x7 (que não posso baixar de maneira alguma), geralmente eu utilizo o fluxo abaixo: 1. Crio uma nova tablespace de UNDO. 2. Ativo essa tablespace com: alter system set undo_tablespace=nova_tbs; 3. Excluo a antiga TBS com o comando: drop tablespace antiga_tbs including contents and datafiles; Como nem tudo são flores, está ocorrendo o erro: Ao setar a nova tbs: SQL alter system set undo_tablespace=nova_tbs; alter system set undo_tablespace=nova_tbs * ERROR at line 1: ORA-02097: parameter cannot be modified because specified value is invalid ORA-30012: undo tablespace 'nova_tbs' does not exist or of wrong type E ao excluir a antiga tbs: SQL drop tablespace antiga_tbs including contents and datafiles; drop tablespace antiga_tbs including contents and datafiles * ERROR at line 1: ORA-30013: undo tablespace 'antiga_tbs' is currently in use Inclusive já reduzi o undo_retention, já matei todas as sessões, mas até agora nada!!! Alguém tem alguma nova dica? Ambiente: Oracle Database 10g Release 10.2.0.3.0 - 64bit Production With the Real Application Clusters option Red Hat Enterprise Linux AS release 4 (Nahant Update 6) Att, Wanderson Links: -- [1] https://br.groups.yahoo.com/neo/groups/oracle_br/conversations/messages/116667;_ylc=X3oDMTJyb2QzZ3NpBF9TAzk3NDkwNDM3BGdycElkAzE2ODI4OTYEZ3Jwc3BJZAMyMTM3MTE0Njg5BG1zZ0lkAzExNjY2NwRzZWMDZnRyBHNsawNycGx5BHN0aW1lAzEzOTc3NjUwMjc-?act=replyamp;messageNum=116667 [2] https://br.groups.yahoo.com/neo/groups/oracle_br/conversations/newtopic;_ylc=X3oDMTJlOGdlaG9tBF9TAzk3NDkwNDM3BGdycElkAzE2ODI4OTYEZ3Jwc3BJZAMyMTM3MTE0Njg5BHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTM5Nzc2NTAyNw-- [3] https://br.groups.yahoo.com/neo/groups/oracle_br/conversations/topics/116667;_ylc=X3oDMTM4YWZicDJoBF9TAzk3NDkwNDM3BGdycElkAzE2ODI4OTYEZ3Jwc3BJZAMyMTM3MTE0Njg5BG1zZ0lkAzExNjY2NwRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzEzOTc3NjUwMjcEdHBjSWQDMTE2NjY3 [4] http://www.mail-archive.com/oracle_br@yahoogrupos.com.br/ [5] https://br.groups.yahoo.com/neo/groups/oracle_br/conversations/messages [6] https://br.groups.yahoo.com/neo/groups/oracle_br/info;_ylc=X3oDMTJlbnQyYzZnBF9TAzk3NDkwNDM3BGdycElkAzE2ODI4OTYEZ3Jwc3BJZAMyMTM3MTE0Njg5BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTM5Nzc2NTAyNw-- [7] https://br.groups.yahoo.com/neo;_ylc=X3oDMTJkbnUwZWJqBF9TAzk3NDkwNDM1BGdycElkAzE2ODI4OTYEZ3Jwc3BJZAMyMTM3MTE0Njg5BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMzk3NzY1MDI3 [8] https://info.yahoo.com/privacy/br/yahoo/groups/details.html [9] https://info.yahoo.com/legal/br/yahoo/utos/terms/
[oracle_br] Problemas para excluir uma tablespace de UNDO
Olá Pessoal, Estou com problema aqui que aparentemente parece fácil de resolver, mas depois muitas tentativas resolvi apelar para os Especialistas. k... Preciso excluir uma tablespace de undo em um banco de dados 24x7 (que não posso baixar de maneira alguma), geralmente eu utilizo o fluxo abaixo: 1. Crio uma nova tablespace de UNDO. 2. Ativo essa tablespace com: alter system set undo_tablespace=nova_tbs; 3. Excluo a antiga TBS com o comando: drop tablespace antiga_tbs including contents and datafiles; Como nem tudo são flores, está ocorrendo o erro: Ao setar a nova tbs: SQL alter system set undo_tablespace=nova_tbs; alter system set undo_tablespace=nova_tbs * ERROR at line 1: ORA-02097: parameter cannot be modified because specified value is invalid ORA-30012: undo tablespace 'nova_tbs' does not exist or of wrong type E ao excluir a antiga tbs: SQL drop tablespace antiga_tbs including contents and datafiles; drop tablespace antiga_tbs including contents and datafiles * ERROR at line 1: ORA-30013: undo tablespace 'antiga_tbs' is currently in use Inclusive já reduzi o undo_retention, já matei todas as sessões, mas até agora nada!!! Alguém tem alguma nova dica? Ambiente: Oracle Database 10g Release 10.2.0.3.0 - 64bit Production With the Real Application Clusters option Red Hat Enterprise Linux AS release 4 (Nahant Update 6) Att, Wanderson