Erro ao conectar com banco Oracle XE

Erro ao conectar com banco Oracle XE

Conexão funcionando pelo SQL*Plus, mas dando erro pelo SQL Developer

Eu instalei Oracle Database 11g Express Edition (XE) na minha máquina com as configurações padrões, sempre seguindo com next, next e next. Por possuir uma versão do Windows 64 bits e a Oracle disponibilizar instalador apenas para a de 32 bits (conforme falei nesse post), tive que fazer um procedimento na instalação, mas eu testei a conexão pelo SQL*Plus e funcionou normalmente.

O problema apareceu quando eu tentei me conectar pelo SQL Developer. Apareceu o seguinte erro “The network adapter could not establish the connection“, conforme mostrado abaixo:

The network adapter could not establish the connection

Então entrei na pasta “bin” do diretório de instalação do banco, no meu caso C:\oraclexe\app\oracle\product\11.2.0\server\bin, e executei o seguinte comando:

lsnrctl start

Ao executar esse comando, foi retornado o erro abaixo:

Failed to start service, error 0
TNS-12560: TNS:erro de adaptador de protocolo 

Esse erro ocorreu porque a minha variável de ambiente “ORACLE_HOME” não estava definida. Bastou eu clicar no menu iniciar, botão direito em Computador e Propriedades. Depois selecionei Configurações avançadas do sistema e na aba Avançado em Variáveis de Ambiente. Em Variáveis do sistema eu cliquei em Novo e informei ORACLE_HOME e o caminho C:\oraclexe\app\oracle\product\11.2.0\server.

Pronto. Parei e iniciei o serviço do banco e funcionou normalmente.

Boa sorte.

97 Replies to “Erro ao conectar com banco Oracle XE”

  1. Seus comentários foram de muita ajuda, mas tive que “catar” algumas informações de outros… Meu sistema é Windows 7 Home Premium 64. Instalei o Oracle XE e tentei conexão com o Delphi 7 e RDS2010, após muita luta consegui sucesso. vou escrever uma documentação com o ocorrido e enviarei…

  2. O problema foi resolvido

    1) Configurando as variáveis de ambiente

    2) Verifiquei que o banco de dados estava “parado”. Pude contar através de :
    Painel de controle\ Sistema de seguraça\ Ferramentas administrativas\ Serviços\OracleServiceXE
    3) Cliquei duas vezes sobre o serviço “OracleServiceXE” e depois em “iniciar” e “ok”.

    Após inicializar o Banco de dados consegui conectar novamente tanto com o SQL*PLUS tanto como com o SQL Developer.

    Abraços

  3. Hey there would you mind stating which blopg
    platform you’re using? I’m looking to start myy own blg in the
    near futhre but I’m having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.

    The reason I ask is because your design seems different then moset blogs and
    I’m looking for something completely unique.
    P.S Apologies for getting off-topic but I hadd to
    ask!

  4. You’re so interesting! I do not suppose I have read through a single thing like this before.

    So good to find another person with a few original thoughts on this subject.
    Really.. thank you for starting this up. This website is something that is
    required on thhe web, someone with a bit of originality!

  5. I am not positive the place you are getting your info, however good topic.
    I needs to spend a while studying much more or working out
    more. Thanhk you forr excellent info I was on the lookout for this info forr my mission.

  6. Thanks for every other fantastic article. Where else could anybody get that type of ingo in such an ideal mewans of writing?
    I have a presentation subsequent week, and I am oon the sedarch for such information.

  7. May I juust say what a comfort to discover someone who genuinely understands what they are discussing over
    the internet. You definitely know how to bring an issue to light and make it important.
    More people must read this and understand this side oof your story.

    I was surprised that you are nnot more popular given that you most
    certainly have the gift.

  8. Hey there terrific website! Does running a blog similar to this
    take a massige amount work? Ihave virtually no knowledge of computer programming
    but I had been hoping to start my own blog in the near future.

    Anyway, shuould you have any suggestions or techniques for new blog owners please share.
    I understand this is off subject but I simply wanted
    to ask. Many thanks!

    My blog; kalite ayakkabı

  9. Hello would you minjd sharing which bblog platform you’re using?
    I’m going to startt my own blog in thhe near future but I’m having a tough time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design seems different then most blogs and I’m looking
    foor something completely unique. P.S Sorry for being off-topic but I had to ask!

    my site – bilgimsel

  10. Wonderful goods from you, man. I’ve understand your stuff previous to and you’re just too magnificent.
    I really like wwhat you’ve acquired here, really like what you are
    saying and the way in which you say it. Youu make iit
    enjoyable and you still tzke carde of to keep it wise. I can’t wait to rsad mmuch more from
    you. This is really a tremendous website.

    My blog … fatih eryılmaz kktc

  11. Hey just wanted to give you a quick heads up. The text in your pot seem to be running off the screen in Chrome.
    I’m not sure if this is a formattung issue or something to do with intetnet browser compatibility but I figured I’d post to let you know.
    The design and style look great though! Hope you get the
    issue fixded soon. Many thanks

    my blog post;sosyal içerik platformu

  12. Hi there very nice site!! Guy .. Beautiful .. Wonderful ..
    I will bookmark your website and take the feeds also? I’m glad to search oout numerous useful inormation here in the submit, we want develop more strategies in this
    regard, thanks for sharing. . . . . .

    Look at my site nulled Script

  13. Hey very nice web site!! Man .. Excellent .. Superb ..

    I will bookmark your website and take the feedds additionally?
    I aam satisfied to search out numwrous helpful information here in the submit, we nedd
    develop moore techniwues on this regard, thank you for sharing.
    . . . . .

    Have a liok at myy wweb blog; yuxuda gormek

  14. Greetings! Quick question that’s entirely off topic. Do you know how to make
    your site mobile friendly? My website looks weird when browsing from my iphone.

    I’m trying to find a theme or plugin that might be
    able too correct this problem. If you have any suggestions, please share.
    Appreciate it!

    Here is mmy site: denizli

  15. Howdy I am so glad I found your website, I really fohnd you by mistake,
    while I was browsing on Aol for something else,
    Regardless I am here now and would just like tto say thnk you for a remarkable poswt and a
    all round entertaining blog (I also love the
    theme/design), I don’t have time to browse it all at the minute but I have book-marked iit and
    also added your RSS feeds, so when I have time I
    will be back to read more, Please do keep uup the fantastic job.

    my website – Ege haber sitesi

  16. You are so cool! I don’t believe I have red through anything like that before.
    So wonderful too find somebody with original thoughts on this subject.
    Seriously.. many tjanks for starting this up.

    This web site iss one thing that’s needed on the internet,someone with a little originality!

    Also visitt my page :: Madencilik

Deixe uma resposta

O seu endereço de e-mail não será publicado.