Deprecated: Assigning the return value of new by reference is deprecated in /home/mangar.com.br/blogv3/wp-settings.php on line 399

Deprecated: Assigning the return value of new by reference is deprecated in /home/mangar.com.br/blogv3/wp-settings.php on line 414

Deprecated: Assigning the return value of new by reference is deprecated in /home/mangar.com.br/blogv3/wp-settings.php on line 421

Deprecated: Assigning the return value of new by reference is deprecated in /home/mangar.com.br/blogv3/wp-settings.php on line 456

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/mangar.com.br/blogv3/wp-includes/classes.php on line 576

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/mangar.com.br/blogv3/wp-includes/classes.php on line 576

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /home/mangar.com.br/blogv3/wp-includes/classes.php on line 576

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /home/mangar.com.br/blogv3/wp-includes/classes.php on line 576

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/mangar.com.br/blogv3/wp-includes/classes.php on line 593

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/mangar.com.br/blogv3/wp-includes/classes.php on line 687

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/mangar.com.br/blogv3/wp-includes/classes.php on line 687

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /home/mangar.com.br/blogv3/wp-includes/classes.php on line 687

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /home/mangar.com.br/blogv3/wp-includes/classes.php on line 687

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/mangar.com.br/blogv3/wp-includes/classes.php on line 710

Strict Standards: Redefining already defined constructor for class wpdb in /home/mangar.com.br/blogv3/wp-includes/wp-db.php on line 58

Deprecated: Assigning the return value of new by reference is deprecated in /home/mangar.com.br/blogv3/wp-includes/cache.php on line 99

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /home/mangar.com.br/blogv3/wp-includes/cache.php on line 404

Deprecated: Assigning the return value of new by reference is deprecated in /home/mangar.com.br/blogv3/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/mangar.com.br/blogv3/wp-includes/theme.php on line 576

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Add_to_Any_Subscribe_Widget::init() should not be called statically in /home/mangar.com.br/blogv3/wp-includes/plugin.php on line 311

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GoogleSitemapGeneratorLoader::Enable() should not be called statically in /home/mangar.com.br/blogv3/wp-includes/plugin.php on line 311

Deprecated: Function eregi() is deprecated in /home/mangar.com.br/blogv3/wp-content/plugins/wp-statpress/statpress.php on line 1139

Deprecated: Function eregi() is deprecated in /home/mangar.com.br/blogv3/wp-content/plugins/wp-statpress/statpress.php on line 1140

Deprecated: Function eregi() is deprecated in /home/mangar.com.br/blogv3/wp-content/plugins/wp-statpress/statpress.php on line 1141

Deprecated: Function eregi() is deprecated in /home/mangar.com.br/blogv3/wp-content/plugins/wp-statpress/statpress.php on line 1142

Deprecated: Function ereg() is deprecated in /home/mangar.com.br/blogv3/wp-content/plugins/wp-statpress/statpress.php on line 979
Oracle at Marcio Garcia

Marcio Garcia

Software Empowerment²

Archive for the ‘Oracle’ tag

OracleXE - esqueceu a senha … brute force!

without comments

Desde quando a Oracle lançou o Oracle Express Edition muitos desenvolvedores ficaram tentados a instalar em suas próprias maquinas o banco de dados “leve” da Oracle.

Muito legal, muito bacana, praticamente todas as funcionalidades do Oracle Enterprise estavam presentes naquela “Edição Expressa, como diria o Tio Ben: “… grandes poderes trazem grandes responsabilidades…”.

Pois bem, no mundo de DBA as grandes responsabilidades são: criar tablespaces, regras, contrants, objetos, queryes mal feitas, usuarios, hum, usuários, isso é um problema, ainda mais se vc se depara com uma instalação antiga do banco de dados, onde o “instalador” não está mais na empresa, vem aquela terrivel duvida: “Será que alguém mais que o ex-dono dessa máquina sabe a senha do system?

Como era de se esperar claro que não!

Só nos resta remover e instalar novamente o banco de dados, uma vez que este nao permite que seja instalada mais de uma instance na mesma maquina (esta é uma das limitações do XE).

Ok, baixado o isntalador do XE, vamos comecar a remoção, mas espere………… eis que uma mensagem aparece na tela, informando que não consegue remover pois o arquivo de clean nao está presente, eis que vc vai dar uma olhada no diretorio de binario e encontra apenas uma DLL.

Logo vem aquele pensamento: “alguém fez merda!”

Mais uma alternativa, se nao pode remover, entao ao menos instale por cima (terríveis experiencias com o windows!)

Uma nova mensagem é mostrada: “Não é possível instalar enquanto o serviço do oracle estiver instalado”.

Para resolver o problema de re-instalação do OracleXE capenga, eu recorri ao método: “brute force”, que é mais ou menos assim:

  1. Altere o registro do Windows

    1. Abra o RegEdt32 e vá em: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Service localize a entrada do oracle e (sem dó nem piedade) remova!Altere o registro do Windows
  2. Reinicie a máquina (lembre-se estamos lidando com o bicho Windows)
Pronto, agora vc pode reinstalar o Oracle Express Edition, não esqueça de anotar a senha do System!

Read the rest of this entry »

Written by Marcio

October 28th, 2007 at 2:16 pm

Posted in Oracle

Tagged with