Related
I need to convert an ISO-8859-1 (isoLatin1) encoded XML string to UTF-8. I tried some code I found on other questions, but most of them covers converting string to utf8 and vice-versa. I don't have any code, so none will be posted.
Sorry, to make it clear, I tried:
String(data:isoLatin1EncodedData, encoding: .uf8) is nil
String(data:isoLatin1EncodedData, encoding: .isoLatin1) returns the string with the wrong encoding.
String(utf8String: isoLatin1EncodedString.cString(using: String.Encoding.isoLatin1)!) is nil
I need the string with to be converted from one encoding to another...
Edit2: Sample feed - http://feeds.folha.uol.com.br/colunas/monicabergamo/rss091.xml
Not sure if this is what you are looking for:
Code:
let inputString = String("Não tenho ai-ai-ai, ui-ui-ui")
if let data = inputString.data(using: .isoLatin1),
let convertedString = String(data: data, encoding: .isoLatin1) {
print("convertedString = \(convertedString)")
}
else {
print("Something went wrong in conversion")
}
Output:
convertedString = Não tenho ai-ai-ai, ui-ui-ui
The string returned by your url is isoLatin1. You can try this in a Playground and verify it yourself:
import UIKit
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
let url = URL(string:"http://feeds.folha.uol.com.br/colunas/monicabergamo/rss091.xml")!
URLSession.shared.dataTask(with: url) { data, response, error in
print(data ?? "") // "16646 bytes\n"
guard let data = data else {
print(error ?? "none")
return
}
if let attStr = try? NSAttributedString(data: data, options: [.documentType: NSAttributedString.DocumentType.html, .characterEncoding: String.Encoding.isoLatin1.rawValue], documentAttributes: nil) {
print(attStr.string) // "http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/ Primeiro jornal em tempo real em língua portuguesa pt-br Copyright Folha de S.Paulo. Todos os direitos reservados. http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/folha/conheca/arquivo_e_copyright.shtml webmaster#grupofolha.com.br (Webmaster Folha de S.Paulo) colunas/monicabergamo/ http://f.i.uol.com.br/folha/furniture/5.2/images/lgo-folha_de_spaulo-167x31.gif http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/ 88 31 Primeiro jornal em tempo real em língua portuguesa http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1919007-nao-tenho-ai-ai-ai-ui-ui-ui-diz-tony-ramos-sobre-proximidade-dos-70.shtml <b>Tony Ramos</b> conta que sua reação à prisão do empresário Joesley Batista, da JBS, no domingo (10), foi "como a de qualquer brasileiro. Primeiro, um susto. Depois, você fica triste. E então espera que a Justiça faça o seu serviço". Leia mais (09/17/2017 - 02h00) 17 Sep 2017 02:00:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1919022-prefeitura-autoriza-instalacao-de-bandeiras-do-brasil-nas-marginais.shtml O advogado José Marcelo Braga Nascimento, que encabeça a campanha "Embandeirando São Paulo", recebeu autorização da prefeitura para instalar mastros com a bandeira nacional em 26 pontes das marginais Tietê e Pinheiros. Ele já tinha conseguido instalar outras iguais na avenida Brasil. Leia mais (09/16/2017 - 02h00) 16 Sep 2017 02:00:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1918981-miller-e-acionado-na-justica-sobre-caso-que-envolve-o-mpf-e-a-embraer.shtml O ex-procurador Marcello Miller está sendo questionado, na Justiça, por sua atuação em outro caso rumoroso: a assinatura, em 2016, de um termo de ajustamento de conduta entre o Ministério Público Federal, que ele representava, e a Embraer. Um ex-diretor da empresa o acusa de atuação indevida no processo. Leia mais (09/16/2017 - 02h00) 16 Sep 2017 02:00:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1918965-janaina-paschoal-fica-em-ultimo-lugar-em-concurso-para-professor-titular-da-usp.shtml A advogada Janaína Paschoal foi a última colocada em um concurso que escolheu os dois novos professores titulares de direito penal da Faculdade de Direito da Universidade de São Paulo. Leia mais (09/15/2017 - 20h09) 15 Sep 2017 20:09:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1918588-vereadores-de-sp-pedem-que-mpf-investigue-mostra-cancelada.shtml A bancada cristã da Câmara Municipal de SP fez um requerimento que pede que o Ministério Público Federal apure "ilícitos penais" e "atos de improbidade administrativa" por parte do Ministério da Cultura, de executivos do Santander e do curador da mostra "Queermuseu". Leia mais (09/15/2017 - 02h00) 15 Sep 2017 02:00:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1918438-reacao-do-mercado-enfraquece-tese-de-que-jf-quebrara-sem-wesley-e-joesley.shtml A reação positiva do mercado em relação à troca de comando na J&F enfraquece o principal argumento de Joesley Batista para conseguir o perdão judicial: sem ele e sem o irmão Wesley à frente da empresa, ela poderia quebrar. Leia mais (09/15/2017 - 02h00) 15 Sep 2017 02:00:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1918459-preparador-nuno-cobra-deixara-prisao.shtml O preparador físico Nuno Cobra deve deixar a carceragem da Polícia Federal de São Paulo, onde está preso desde a segunda (11), nas próximas horas. Leia mais (09/14/2017 - 16h51) 14 Sep 2017 16:51:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1918386-morre-em-sp-o-jornalista-fernando-pacheco-jordao-autor-de-dossie-herzog.shtml O jornalista Fernando Pacheco Jordão morreu nesta quinta (14), em São Paulo, aos 80 anos. Leia mais (09/14/2017 - 12h03) 14 Sep 2017 12:03:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1918236-ex-presidente-da-eletronuclear-preso-em-2015-opera-cancer-de-pele.shtml O ex-presidente da Eletronuclear Othon Luiz Pinheiro da Silva foi operado na quarta (13) de um câncer de pele, no hospital da Marinha no Rio de Janeiro. Aos 78 anos e condenado a 43 anos de prisão, o vice-almirante, considerado o pai do programa nuclear brasileiro, está detido em uma unidade militar desde julho de 2015. Em janeiro, ele tentou o suicídio. Leia mais (09/14/2017 - 02h00) 14 Sep 2017 02:00:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1918087-joesley-batista-desconfia-que-pode-ser-traido-por-ricardo-saud.shtml O clima entre os delatores da J&F é de desconfiança. Joesley Batista e seu irmão, Wesley, acreditam que o executivo Ricardo Saud pode traí-los caso a negociação com o Ministério Público Federal para preservar benefícios que obtiveram no acordo de delação premiada naufrague. Leia mais (09/14/2017 - 02h00) 14 Sep 2017 02:00:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1917896-luiza-brunet-e-ex-se-cumprimentam-mas-audiencia-de-conciliacao-fracassa.shtml A atriz Luiza Brunet se reencontrou com o ex, Lírio Parisotto, na segunda (11), na 4ª Vara da Família e Sucessões. Os dois se cumprimentaram de forma polida - mas a audiência de conciliação entre eles foi um fracasso. Leia mais (09/13/2017 - 02h00) 13 Sep 2017 02:00:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1917891-para-criminalistas-82888288saida-para-joesley-pode-ser-anular-processo-de-delacao.shtml A defesa dos delatores da J&F tem pouca esperança de manter a delação deles integralmente em pé. Se a repactuação dos benefícios com a PGR (Procuradoria-Geral da República) não evoluir a contento, a saída para Joesley Batista e Ricardo Saud, entendem advogados criminalistas, seria partir para o tudo ou nada e tentar anular todo o processo. Leia mais (09/13/2017 - 02h00) 13 Sep 2017 02:00:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1917885-rodrigo-maia-diz-que-nao-vai-ser-facil-negociar-a-reforma-da-previdencia.shtml O presidente da Câmara dos Deputados, Rodrigo Maia (DEM-RJ), afirma que só depois da passagem do "furacão" que deve ser a votação da segunda denúncia contra Michel Temer será possível negociar com as lideranças no parlamento se a reforma da Previdência será ou não votada. Mesmo assim, as tratativas não serão nada fáceis. Leia mais (09/13/2017 - 02h00) 13 Sep 2017 02:00:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1917677-fhc-e-cardozo-serao-testemunhas-de-defesa-de-lula-nesta-terca-feira-em-sp.shtml O ex-presidente Fernando Henrique Cardoso será mais uma vez testemunha de defesa de Lula em um processo. Leia mais (09/12/2017 - 07h10) 12 Sep 2017 07:10:00 -0300 http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1917580-joao-carlos-martins-viajara-pelo-brasil-para-formar-orquestras.shtml <b>PARTITURA</b><br/> A Fundação Bachiana Filarmônica, do maestro João Carlos Martins, teve seu plano de atividades de 2018 aprovado na Lei Rouanet. Estão previstos 28 concertos durante o ano, 22 deles gratuitos, além de cursos de música para jovens e crianças. O total do incentivo é de R$ 4,3 milhões. Leia mais (09/12/2017 - 02h00) 12 Sep 2017 02:00:00 -0300 \n"
}
}.resume()
As I said your string will always be unicode (UTF-8) but you can convert the data to any encoding. For instance:
let url = URL(string:"http://feeds.folha.uol.com.br/colunas/monicabergamo/rss091.xml")!
URLSession.shared.dataTask(with: url) { data, response, error in
print(data ?? "") // "16355 bytes" isoLatin1 data size
guard let data = data else { print(error ?? "none")
return
}
let string = String(data: data, encoding: .isoLatin1) ?? "" // data is Latin1
print(string) // prints OK string is always UTF8
let isoLatin1Data = string.data(using: .isoLatin1) // 16355 bytes OK
print(isoLatin1Data == data) // true
let utf8Data = Data(string.utf8) // 16498 bytes
let string2 = String(data: utf8Data, encoding: .utf8) ?? ""
print(string == string2) // true
print(Data(string.utf8) == Data(string2.utf8)) // true
}.resume()
The resulting String is:
// <?xml version="1.0" encoding="ISO-8859-1" ?>
Folha de S.Paulo - Colunas - Mônica Bergamo
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/
Primeiro jornal em tempo real em língua portuguesa
pt-br
Copyright Folha de S.Paulo. Todos os direitos reservados.
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/folha/conheca/arquivo_e_copyright.shtml
webmaster#grupofolha.com.br (Webmaster Folha de S.Paulo)
colunas/monicabergamo/
Folha de S.Paulo - Colunas - Mônica Bergamo
http://f.i.uol.com.br/folha/furniture/5.2/images/lgo-folha_de_spaulo-167x31.gif
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/*http://www1.folha.uol.com.br/colunas/monicabergamo/
88
31
Primeiro jornal em tempo real em língua portuguesa
Equipe de Alckmin vê Doria 'louco' com pesquisa
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/10/1924066-geraldo-alckmin-e-michel-temer-ensaiam-reaproximacao.shtml
O governador Geraldo Alckmin (PSDB-SP) se reuniu com seu staff político e de comunicação no domingo para analisar os números do <a href="http://www1.folha.uol.com.br/poder/2017/10/1923269-forca-eleitoral-de-lula-resiste-apos-condenacao-na-lava-jato.shtml">Datafolha</a> e de pesquisas feitas por sua equipe, por telefone, cujos números coincidem com o do instituto. Concluíram que, com o empate dele com João Doria, o prefeito vai "enlouquecer" e intensificar a campanha para ser candidato a presidente.
Leia mais (10/04/2017 - 02h00)
04 Oct 2017 02:00:00 -0300
Diplomata que criticou Temer é removido de consulado em NY
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/10/1924064-diplomata-que-criticou-temer-e-removido-de-consulado-em-ny.shtml
O diplomata Julio de Oliveira Silva foi removido na terça (3) do cargo de segundo-secretário do consulado do Brasil em NY pelo chanceler Aloysio Nunes Ferreira (PSDB-SP). Ele não recebeu aviso prévio nem explicação para a transferência e soube dela pelo Diário Oficial.
Leia mais (10/04/2017 - 02h00)
04 Oct 2017 02:00:00 -0300
Ministro da Justiça quer mudar classificação indicativa no país
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/10/1924062-ministro-da-justica-quer-mudar-classificacao-indicativa-no-pais.shtml
O ministro da Justiça, Torquato Jardim, quer mudar o sistema de classificação indicativa no Brasil. "Vamos continuar tendo uma repartição em Brasília para dizer a idade em que se pode assistir a novela e cinema no país? É uma loucura. Está na hora de a sociedade assumir isso", diz ele.
Leia mais (10/04/2017 - 02h00)
04 Oct 2017 02:00:00 -0300
Planos de saúde perderam 700 mil usuários no último ano, diz associação
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/10/1923878-planos-de-saude-perderam-700-mil-usuarios-no-ultimo-ano-diz-associacao.shtml
Os planos de saúde perderam 700 mil usuários em agosto em comparação com o mesmo mês de 2016. Só em São Paulo foram 370 mil clientes a menos, segundo levantamento da FenaSaúde, associação que representa as maiores operadoras do setor e que credita a queda à crise.
Leia mais (10/03/2017 - 11h50)
03 Oct 2017 11:50:00 -0300
Defesa acredita que Palocci passará o Natal em casa
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/10/1923730-defesa-acredita-que-palocci-passara-o-natal-em-casa.shtml
A defesa de Antonio Palocci acredita que o ex-ministro da Fazenda passará o Natal em casa. Ainda que, depois de fechado o acordo de delação premiada, ele tenha que passar mais um tempo preso, a esperança é que seja beneficiado com a permissão para comemorar a data em casa, com a família.
Leia mais (10/03/2017 - 02h00)
03 Oct 2017 02:00:00 -0300
Vídeo sobre exposição gera tensão entre Doria e o MAM
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/10/1923727-video-sobre-exposicao-gera-tensao-entre-e-doria-e-o-mam.shtml
A manifestação</a> de João Doria contra a <a href="http://www1.folha.uol.com.br/ilustrada/2017/09/1922810-na-internet-museu-e-acusado-de-pedofilia-apos-performance-com-nudez.shtml">performance do MAM (Museu de Arte Moderna) que mostrava um homem nu surpreendeu e causou desconforto aos diretores da instituição. Eles esperavam que o tucano se posicionasse na linha da defesa da liberdade de expressão.
Leia mais (10/03/2017 - 02h00)
03 Oct 2017 02:00:00 -0300
Vanderlei Luxemburgo depõe como testemunha de defesa de filho de Lula
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/10/1923584-vanderlei-luxemburgo-depoe-como-testemunha-de-defesa-de-filho-de-lula.shtml
Vanderlei Luxemburgo, técnico do Sport, vai depor na tarde desta segunda (2) como testemunha de defesa de Luis Cláudio Lula da Silva, filho do ex-presidente Lula, em processo da Operação Zelotes.
Leia mais (10/02/2017 - 13h44)
02 Oct 2017 13:44:00 -0300
Deputado pede que CPI faça acareação entre Meirelles e irmãos Batistas
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/10/1923094-deputado-pede-que-cpi-faca-acareacao-entre-meirelles-e-irmaos-batista.shtml
A CPI da JBS decide nesta semana se submete Henrique Meirelles, ministro da Fazenda, a uma acareação com Joesley e Wesley Batista, donos da empresa. O ministro foi presidente do conselho de administração da J&F, holding do grupo.
Leia mais (10/02/2017 - 02h00)
02 Oct 2017 02:00:00 -0300
Delatores da Odebrecht começam a receber intimação do STF
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/10/1923085-delatores-da-odebrecht-comecam-a-receber-intimacao-do-stf.shtml
Delatores da Odebrecht começaram a receber uma intimação do STF (Supremo Tribunal Federal) sobre os acordos de colaboração que fizeram com a Justiça e passaram a tomar conhecimento das mudanças determinadas por Cármen Lúcia em cada um deles.
Leia mais (10/02/2017 - 02h00)
02 Oct 2017 02:00:00 -0300
"Tento manter a cabeça pensando que voltarei a andar", diz Lais Souza
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/10/1923105-tento-manter-a-cabeca-pensando-que-voltarei-a-andar-diz-lais-souza.shtml
<b>O "Tema da Vitória"</b>, música que coroa as conquistas de atletas brasileiros na televisão, toca quando <b>Lais Souza</b>, 28, entra no auditório. A ex-ginasta ajudou a seleção nacional a alcançar resultados históricos nas Olimpíadas de 2004 e 2008. Em 2014, se preparava para representar o país em uma nova modalidade, o esqui, quando sofreu o acidente que a deixou tetraplégica.
Leia mais (10/01/2017 - 02h00)
01 Oct 2017 02:00:00 -0300
Desafio de Doria é subir na pesquisa, avaliam aliados
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1923081-desafio-de-doria-e-subir-na-pesquisa-avaliam-aliados.shtml
Secretários de João Doria analisam que ele tem que crescer já nas próximas pesquisas de opinião pública, de institutos com credibilidade, para que sua pré-candidatura à Presidência da República não naufrague antes mesmo de decolar.
Leia mais (09/30/2017 - 02h00)
30 Sep 2017 02:00:00 -0300
Carregador da Receita é preso por furto no shopping 25 de Março
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1922942-carregador-da-receita-e-preso-por-furto-no-shopping-25-de-marco.shtml
Um prestador de serviço da Receita Federal foi preso durante a operação que fechou o shopping 25 de Março, no dia 12 de setembro. A detenção foi feita em flagrante depois que um dos comerciantes viu, por câmeras de segurança que acessou pelo celular, o carregador terceirizado roubando uma pochete com R$ 522. A informação foi confirmada pela Receita.
Leia mais (09/30/2017 - 02h00)
30 Sep 2017 02:00:00 -0300
Caetano Veloso não vai a encontro com Haddad
http://redir.folha.com.br/redir/online/colunas/monicabergamo/rss091/http://www1.folha.uol.com.br/colunas/monicabergamo/2017/09/1922903-caetano-veloso-nao-vai-a-encontro-com-haddad.shtml
O cantor Caetano Veloso não estará presente no encontro de artistas hoje com Fernando Haddad, no Rio de Janeiro.
Leia mais (09/29/2017 - 13h52)
29 Sep 2017 13:52:00 -0300
Fernando Haddad encontrará artistas na casa de Caetano Veloso
<-- post text limit
I'm trying to use ansible-mongodb-cluster scripts to create a mongodb cluster.
I've edited hosts in order to have just a primary and a slave.
I use molecule with vagrant to test it.
this is my molecule.yml
ansible:
playbook: 01_create_cluster.yml
verbose: vvv
inventory: hosts
vagrant:
platforms:
- name: centos
box: centos/7
providers:
- name: virtualbox
type: virtualbox
options:
memory: 512
cpus: 2
instances:
- name: mongo1
ansible_groups:
- mongo_servers
- mongod_primary
- mongod_slaves
interfaces:
- network_name: private_network
type: static
ip: 192.168.80.1
- name: mongo2
ansible_groups:
- mongo_servers
- mongod_primary
- mongod_slaves
interfaces:
- network_name: private_network
type: static
ip: 192.168.80.2
and this is hosts inventory ansible file:
[mongo_servers]
mongo1 mongod_port=27017
mongo2 mongod_port=27017
[mongod_primary]
mongo1 mongod_port=27017
[mongod_slaves]
mongo2 mongod_port=27017
the problem borns when, after primary is created and replication is activated on it, slave trying to connect to the primary:
"MongoDB shell version v3.4.4",
"connecting to: mongodb://mongo1:27017/",
"2017-05-25T15:38:51.399+0000 I NETWORK [thread1] getaddrinfo(\"mongo1\") failed: Name or service not known",
"2017-05-25T15:38:51.400+0000 E QUERY [thread1] Error: couldn't initialize connection to host mongo1, address is invalid :",
"connect#src/mongo/shell/mongo.js:237:13",
"#(connect):1:6"
it doesn't know mongo1 host.
Even if i add in /etc/hosts the relation
192.168.80.1 mongo1
it says me that Destination Net Unreachable
how can i solve and let every VM "see" the others in the network?
EDIT
ping goes in timeout and telnet too
EDIT2
This is traceroute
[vagrant#mongo2 ~]$ traceroute mongo1
traceroute to mongo1 (192.168.80.1), 30 hops max, 60 byte packets
1 gateway (10.0.2.2) 0.191 ms 0.111 ms 0.063 ms
2 192.168.93.254 (192.168.93.254) 0.614 ms 0.716 ms 0.710 ms
3 10.17.254.1 (10.17.254.1) 3.410 ms 3.366 ms 3.316 ms
4 93-57-16-193.ip162.fastwebnet.it (93.57.16.193) 5.409 ms 5.384 ms 5.340 ms
5 93-54-33-65.ip127.fastwebnet.it (93.54.33.65) 21.192 ms 21.135 ms 21.084 ms
6 10.2.7.101 (10.2.7.101) 10.390 ms 2.447 ms 2.318 ms
7 10.254.20.77 (10.254.20.77) 2.228 ms 10.254.20.73 (10.254.20.73) 2.171 ms 2.045 ms
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
[vagrant#mongo2 ~]$
I solved adding two other configuration to the molecule.yml:
interfaces:
- network_name: private_network
type: static
ip: 192.168.80.1
auto_config: true
options:
append_platform_to_hostname: no
auto_config: true
and
options:
append_platform_to_hostname: no
now if i ping the other vm, they reply successfully!
I've got several CentOS 6 servers, synced to pool.ntp.org time-servers.
But sometimes time on them is out of sync, which make difference for 20-30 seconds, which causes errors in my app.
What can be the cause of this, and where should I look for it?
Config
tinker panic 1000 allan 1500 dispersion 15 step 0.128 stepout 900
statsdir /var/log/ntpstats/
leapfile /etc/ntp.leapseconds
driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
disable monitor
server 0.pool.ntp.org iburst minpoll 6 maxpoll 10
restrict 0.pool.ntp.org nomodify notrap noquery
server 1.pool.ntp.org iburst minpoll 6 maxpoll 10
restrict 1.pool.ntp.org nomodify notrap noquery
server 2.pool.ntp.org iburst minpoll 6 maxpoll 10
restrict 2.pool.ntp.org nomodify notrap noquery
server 3.pool.ntp.org iburst minpoll 6 maxpoll 10
restrict 3.pool.ntp.org nomodify notrap noquery
restrict default kod notrap nomodify nopeer noquery
restrict 127.0.0.1 nomodify
restrict -6 default kod notrap nomodify nopeer noquery
restrict -6 ::1 nomodify
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
srv1
remote refid st t when poll reach delay offset jitter
==============================================================================
server01.coloce .STEP. 16 u 11d 1024 0 0.000 0.000 0.000
+mt4.raqxs.net 193.190.230.66 2 u 510 1024 377 6.367 5.984 7.433
+16-164-ftth.ons 193.79.237.14 2 u 217 1024 375 11.339 -0.028 4.564
*services.freshd 213.136.0.252 2 u 419 1024 377 6.735 2.048 4.321
LOCAL(0) .LOCL. 10 l - 64 0 0.000 0.000 0.000
srv2
remote refid st t when poll reach delay offset jitter
==============================================================================
+ntp2.edutel.nl 80.94.65.10 2 u 527 1024 377 11.924 1.469 0.753
-95.211.224.12 193.67.79.202 2 u 364 1024 377 12.989 4.930 0.628
+app.kingsquare. 193.79.237.14 2 u 339 1024 377 5.485 0.493 0.591
*ntp.bserved.nl 193.67.79.202 2 u 206 1024 377 7.007 0.539 0.420
LOCAL(0) .LOCL. 10 l - 64 0 0.000 0.000 0.000
Consider these two use cases:
sub test1 {
my $v = 1;
sub test2 { print $v }
# ...
}
and
for (0..3) {
my $foo = $_;
sub test1 { print $foo }
# ...
}
The first one produces a Variable will not stay shared warning, while the second doesn't. It seems that the variable is not shared in both cases. Why isn't there any warning in the second case?
It seems that this may be a bug or omission in the warnings pragma.
Adding to the fun, this arrangement gives a different warning:
BEGIN {*outer = sub {
my $x;
sub inner {$x}
}}
Which warns Variable "$x" is not available
These warnings all come from the pad_findlex() API call defined in pad.c.
806 =for apidoc pad_findlex
807
808 Find a named lexical anywhere in a chain of nested pads. Add fake entries
809 in the inner pads if it's found in an outer one.
810
811 Returns the offset in the bottom pad of the lex or the fake lex.
812 cv is the CV in which to start the search, and seq is the current cop_seq
813 to match against. If warn is true, print appropriate warnings. The out_*
814 vars return values, and so are pointers to where the returned values
815 should be stored. out_capture, if non-null, requests that the innermost
816 instance of the lexical is captured; out_name_sv is set to the innermost
817 matched namesv or fake namesv; out_flags returns the flags normally
818 associated with the IVX field of a fake namesv.
819
820 Note that pad_findlex() is recursive; it recurses up the chain of CVs,
821 then comes back down, adding fake entries as it goes. It has to be this way
822 because fake namesvs in anon protoypes have to store in xlow the index into
823 the parent pad.
824
825 =cut
826 */
827
828 /* the CV has finished being compiled. This is not a sufficient test for
829 * all CVs (eg XSUBs), but suffices for the CVs found in a lexical chain */
830 #define CvCOMPILED(cv) CvROOT(cv)
831
832 /* the CV does late binding of its lexicals */
833 #define CvLATE(cv) (CvANON(cv) || SvTYPE(cv) == SVt_PVFM)
834
835
836 STATIC PADOFFSET
837 S_pad_findlex(pTHX_ const char *name, const CV* cv, U32 seq, int warn,
838 SV** out_capture, SV** out_name_sv, int *out_flags)
839 {
840 dVAR;
841 I32 offset, new_offset;
842 SV *new_capture;
843 SV **new_capturep;
844 const AV * const padlist = CvPADLIST(cv);
845
846 PERL_ARGS_ASSERT_PAD_FINDLEX;
847
848 *out_flags = 0;
849
850 DEBUG_Xv(PerlIO_printf(Perl_debug_log,
851 "Pad findlex cv=0x%"UVxf" searching \"%s\" seq=%d%s\n",
852 PTR2UV(cv), name, (int)seq, out_capture ? " capturing" : "" ));
853
854 /* first, search this pad */
855
856 if (padlist) { /* not an undef CV */
857 I32 fake_offset = 0;
858 const AV * const nameav = MUTABLE_AV(AvARRAY(padlist)[0]);
859 SV * const * const name_svp = AvARRAY(nameav);
860
861 for (offset = AvFILLp(nameav); offset > 0; offset--) {
862 const SV * const namesv = name_svp[offset];
863 if (namesv && namesv != &PL_sv_undef
864 && strEQ(SvPVX_const(namesv), name))
865 {
866 if (SvFAKE(namesv)) {
867 fake_offset = offset; /* in case we don't find a real one */
868 continue;
869 }
870 /* is seq within the range _LOW to _HIGH ?
871 * This is complicated by the fact that PL_cop_seqmax
872 * may have wrapped around at some point */
873 if (COP_SEQ_RANGE_LOW(namesv) == PERL_PADSEQ_INTRO)
874 continue; /* not yet introduced */
875
876 if (COP_SEQ_RANGE_HIGH(namesv) == PERL_PADSEQ_INTRO) {
877 /* in compiling scope */
878 if (
879 (seq > COP_SEQ_RANGE_LOW(namesv))
880 ? (seq - COP_SEQ_RANGE_LOW(namesv) < (U32_MAX >> 1))
881 : (COP_SEQ_RANGE_LOW(namesv) - seq > (U32_MAX >> 1))
882 )
883 break;
884 }
885 else if (
886 (COP_SEQ_RANGE_LOW(namesv) > COP_SEQ_RANGE_HIGH(namesv))
887 ?
888 ( seq > COP_SEQ_RANGE_LOW(namesv)
889 || seq <= COP_SEQ_RANGE_HIGH(namesv))
890
891 : ( seq > COP_SEQ_RANGE_LOW(namesv)
892 && seq <= COP_SEQ_RANGE_HIGH(namesv))
893 )
894 break;
895 }
896 }
897
898 if (offset > 0 || fake_offset > 0 ) { /* a match! */
899 if (offset > 0) { /* not fake */
900 fake_offset = 0;
901 *out_name_sv = name_svp[offset]; /* return the namesv */
902
903 /* set PAD_FAKELEX_MULTI if this lex can have multiple
904 * instances. For now, we just test !CvUNIQUE(cv), but
905 * ideally, we should detect my's declared within loops
906 * etc - this would allow a wider range of 'not stayed
907 * shared' warnings. We also treated already-compiled
908 * lexes as not multi as viewed from evals. */
909
910 *out_flags = CvANON(cv) ?
911 PAD_FAKELEX_ANON :
912 (!CvUNIQUE(cv) && ! CvCOMPILED(cv))
913 ? PAD_FAKELEX_MULTI : 0;
914
915 DEBUG_Xv(PerlIO_printf(Perl_debug_log,
916 "Pad findlex cv=0x%"UVxf" matched: offset=%ld (%lu,%lu)\n",
917 PTR2UV(cv), (long)offset,
918 (unsigned long)COP_SEQ_RANGE_LOW(*out_name_sv),
919 (unsigned long)COP_SEQ_RANGE_HIGH(*out_name_sv)));
920 }
921 else { /* fake match */
922 offset = fake_offset;
923 *out_name_sv = name_svp[offset]; /* return the namesv */
924 *out_flags = PARENT_FAKELEX_FLAGS(*out_name_sv);
925 DEBUG_Xv(PerlIO_printf(Perl_debug_log,
926 "Pad findlex cv=0x%"UVxf" matched: offset=%ld flags=0x%lx index=%lu\n",
927 PTR2UV(cv), (long)offset, (unsigned long)*out_flags,
928 (unsigned long) PARENT_PAD_INDEX(*out_name_sv)
929 ));
930 }
931
932 /* return the lex? */
933
934 if (out_capture) {
935
936 /* our ? */
937 if (SvPAD_OUR(*out_name_sv)) {
938 *out_capture = NULL;
939 return offset;
940 }
941
942 /* trying to capture from an anon prototype? */
943 if (CvCOMPILED(cv)
944 ? CvANON(cv) && CvCLONE(cv) && !CvCLONED(cv)
945 : *out_flags & PAD_FAKELEX_ANON)
946 {
947 if (warn)
948 Perl_ck_warner(aTHX_ packWARN(WARN_CLOSURE),
949 "Variable \"%s\" is not available", name);
950 *out_capture = NULL;
951 }
952
953 /* real value */
954 else {
955 int newwarn = warn;
956 if (!CvCOMPILED(cv) && (*out_flags & PAD_FAKELEX_MULTI)
957 && !SvPAD_STATE(name_svp[offset])
958 && warn && ckWARN(WARN_CLOSURE)) {
959 newwarn = 0;
960 Perl_warner(aTHX_ packWARN(WARN_CLOSURE),
961 "Variable \"%s\" will not stay shared", name);
962 }
963
964 if (fake_offset && CvANON(cv)
965 && CvCLONE(cv) &&!CvCLONED(cv))
966 {
967 SV *n;
968 /* not yet caught - look further up */
969 DEBUG_Xv(PerlIO_printf(Perl_debug_log,
970 "Pad findlex cv=0x%"UVxf" chasing lex in outer pad\n",
971 PTR2UV(cv)));
972 n = *out_name_sv;
973 (void) pad_findlex(name, CvOUTSIDE(cv),
974 CvOUTSIDE_SEQ(cv),
975 newwarn, out_capture, out_name_sv, out_flags);
976 *out_name_sv = n;
977 return offset;
978 }
979
980 *out_capture = AvARRAY(MUTABLE_AV(AvARRAY(padlist)[
981 CvDEPTH(cv) ? CvDEPTH(cv) : 1]))[offset];
982 DEBUG_Xv(PerlIO_printf(Perl_debug_log,
983 "Pad findlex cv=0x%"UVxf" found lex=0x%"UVxf"\n",
984 PTR2UV(cv), PTR2UV(*out_capture)));
985
986 if (SvPADSTALE(*out_capture)
987 && !SvPAD_STATE(name_svp[offset]))
988 {
989 Perl_ck_warner(aTHX_ packWARN(WARN_CLOSURE),
990 "Variable \"%s\" is not available", name);
991 *out_capture = NULL;
992 }
993 }
994 if (!*out_capture) {
995 if (*name == '#')
996 *out_capture = sv_2mortal(MUTABLE_SV(newAV()));
997 else if (*name == '%')
998 *out_capture = sv_2mortal(MUTABLE_SV(newHV()));
999 else
1000 *out_capture = sv_newmortal();
1001 }
1002 }
1003
1004 return offset;
1005 }
1006 }
1007
1008 /* it's not in this pad - try above */
1009
1010 if (!CvOUTSIDE(cv))
1011 return NOT_IN_PAD;
1012
1013 /* out_capture non-null means caller wants us to capture lex; in
1014 * addition we capture ourselves unless it's an ANON/format */
1015 new_capturep = out_capture ? out_capture :
1016 CvLATE(cv) ? NULL : &new_capture;
1017
1018 offset = pad_findlex(name, CvOUTSIDE(cv), CvOUTSIDE_SEQ(cv), 1,
1019 new_capturep, out_name_sv, out_flags);
1020 if ((PADOFFSET)offset == NOT_IN_PAD)
1021 return NOT_IN_PAD;
1022
1023 /* found in an outer CV. Add appropriate fake entry to this pad */
1024
1025 /* don't add new fake entries (via eval) to CVs that we have already
1026 * finished compiling, or to undef CVs */
1027 if (CvCOMPILED(cv) || !padlist)
1028 return 0; /* this dummy (and invalid) value isnt used by the caller */
1029
1030 {
1031 /* This relies on sv_setsv_flags() upgrading the destination to the same
1032 type as the source, independent of the flags set, and on it being
1033 "good" and only copying flag bits and pointers that it understands.
1034 */
1035 SV *new_namesv = newSVsv(*out_name_sv);
1036 AV * const ocomppad_name = PL_comppad_name;
1037 PAD * const ocomppad = PL_comppad;
1038 PL_comppad_name = MUTABLE_AV(AvARRAY(padlist)[0]);
1039 PL_comppad = MUTABLE_AV(AvARRAY(padlist)[1]);
1040 PL_curpad = AvARRAY(PL_comppad);
1041
1042 new_offset
1043 = pad_add_name_sv(new_namesv,
1044 (SvPAD_STATE(*out_name_sv) ? padadd_STATE : 0),
1045 SvPAD_TYPED(*out_name_sv)
1046 ? SvSTASH(*out_name_sv) : NULL,
1047 SvOURSTASH(*out_name_sv)
1048 );
1049
1050 SvFAKE_on(new_namesv);
1051 DEBUG_Xv(PerlIO_printf(Perl_debug_log,
1052 "Pad addname: %ld \"%.*s\" FAKE\n",
1053 (long)new_offset,
1054 (int) SvCUR(new_namesv), SvPVX(new_namesv)));
1055 PARENT_FAKELEX_FLAGS_set(new_namesv, *out_flags);
1056
1057 PARENT_PAD_INDEX_set(new_namesv, 0);
1058 if (SvPAD_OUR(new_namesv)) {
1059 NOOP; /* do nothing */
1060 }
1061 else if (CvLATE(cv)) {
1062 /* delayed creation - just note the offset within parent pad */
1063 PARENT_PAD_INDEX_set(new_namesv, offset);
1064 CvCLONE_on(cv);
1065 }
1066 else {
1067 /* immediate creation - capture outer value right now */
1068 av_store(PL_comppad, new_offset, SvREFCNT_inc(*new_capturep));
1069 DEBUG_Xv(PerlIO_printf(Perl_debug_log,
1070 "Pad findlex cv=0x%"UVxf" saved captured sv 0x%"UVxf" at offset %ld\n",
1071 PTR2UV(cv), PTR2UV(*new_capturep), (long)new_offset));
1072 }
1073 *out_name_sv = new_namesv;
1074 *out_flags = PARENT_FAKELEX_FLAGS(new_namesv);
1075
1076 PL_comppad_name = ocomppad_name;
1077 PL_comppad = ocomppad;
1078 PL_curpad = ocomppad ? AvARRAY(ocomppad) : NULL;
1079 }
1080 return new_offset;
1081 }
It seems it has to do with if the containing pad is held within a CV or not, but I am not sure of the exact specifics.
I created a Windows 2003 R2 Virtual Machine running on VirtualBox and I installed Oracle (10201_database_win32).
I assigned a static IP on the Virtual Ethernet too.
Everything worked great right after installation.
I listed(lsnrctl services) the services the listener knew right after installation and the result was:
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-JUL-2010 23:02
:19
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:39 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: ORACLE10GVM, pid: 760>
(ADDRESS=(PROTOCOL=tcp)(HOST=oracle10gvm)(PORT=1035))
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:39 refused:0 state:ready
LOCAL SERVER
The command completed successfully
So I restarted and nothing was working anymore. I executed the same command and here is what I got:
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-JUL-2010 21:29:20
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
The command completed successfully
I unistalled/reinstalled 5-6 times and nothing. So I do not quite get what's the problem.
The services are all started and running as far as I checked.
I am out of ideas and time here.
Any suggestions? I checked numerous forums etc with no concrete answer or solution.
I hope someone can help!
Here is the listener.log file:
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-JUL-2010 21:56:27
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to C:\oracle\product\10.2.0\db_1\network\log\listener.log
Trace information written to C:\oracle\product\10.2.0\db_1\network\trace\listener.trc
Trace level is currently 0
Started with pid=372
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle10gvm)(PORT=1521)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
15-JUL-2010 21:56:30 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
15-JUL-2010 21:56:35 * service_register * orcl * 0
15-JUL-2010 21:57:15 * service_update * orcl * 0
15-JUL-2010 21:57:17 * service_died * orcl * 12537
15-JUL-2010 21:57:19 * service_register * orcl * 0
15-JUL-2010 21:57:22 * service_update * orcl * 0
15-JUL-2010 21:57:25 * service_update * orcl * 0
15-JUL-2010 21:57:46 * service_update * orcl * 0
15-JUL-2010 21:57:55 * service_update * orcl * 0
15-JUL-2010 21:58:14 * service_update * orcl * 0
15-JUL-2010 21:58:17 * service_update * orcl * 0
15-JUL-2010 21:58:23 * service_update * orcl * 0
15-JUL-2010 21:58:26 * service_died * orcl * 12537
15-JUL-2010 21:58:28 * service_register * orcl * 0
15-JUL-2010 21:58:33 * service_update * orcl * 0
15-JUL-2010 21:58:36 * service_update * orcl * 0
15-JUL-2010 21:58:39 * service_update * orcl * 0
15-JUL-2010 21:58:45 * service_update * orcl * 0
15-JUL-2010 21:58:56 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1037)) * establish * orcl * 0
15-JUL-2010 21:58:57 * service_update * orcl * 0
15-JUL-2010 21:58:57 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1038)) * establish * orcl * 0
15-JUL-2010 21:58:57 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1039)) * establish * orcl * 0
15-JUL-2010 21:58:57 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1040)) * establish * orcl * 0
15-JUL-2010 21:59:00 * service_update * orcl * 0
15-JUL-2010 21:59:06 * service_update * orcl * 0
15-JUL-2010 21:59:39 * service_update * orcl * 0
15-JUL-2010 22:00:12 * service_update * orcl * 0
15-JUL-2010 22:00:20 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1046)) * establish * orcl * 0
15-JUL-2010 22:00:21 * service_update * orcl * 0
15-JUL-2010 22:00:23 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1047)) * establish * orcl * 0
15-JUL-2010 22:00:25 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1048)) * establish * orcl * 0
15-JUL-2010 22:00:26 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1050)) * establish * orcl * 0
15-JUL-2010 22:00:28 * ping * 0
15-JUL-2010 22:00:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:00:38 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1054)) * establish * orcl * 0
15-JUL-2010 22:00:39 * log_status * 0
15-JUL-2010 22:00:42 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
15-JUL-2010 22:00:45 * service_update * orcl * 0
15-JUL-2010 22:01:08 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1068)) * establish * orcl * 0
15-JUL-2010 22:01:18 * service_update * orcl * 0
15-JUL-2010 22:01:51 * service_update * orcl * 0
15-JUL-2010 22:02:04 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=services)(ARGUMENTS=64)(SERVICE=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521))))(VERSION=169869568)) * services * 0
15-JUL-2010 22:02:05 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:05:28 * ping * 0
15-JUL-2010 22:05:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:05:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1102)) * establish * orcl * 0
15-JUL-2010 22:07:01 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1111)) * establish * orcl * 0
15-JUL-2010 22:07:02 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1112)) * establish * orcl * 0
15-JUL-2010 22:07:03 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1113)) * establish * orcl * 0
15-JUL-2010 22:07:03 * service_update * orcl * 0
15-JUL-2010 22:07:55 * service_update * orcl * 0
15-JUL-2010 22:08:58 * service_update * orcl * 0
15-JUL-2010 22:10:28 * ping * 0
15-JUL-2010 22:10:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:10:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1137)) * establish * orcl * 0
15-JUL-2010 22:11:31 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1141)) * establish * orcl * 0
15-JUL-2010 22:12:31 * service_update * orcl * 0
15-JUL-2010 22:12:56 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1150)) * establish * orcl * 0
15-JUL-2010 22:15:28 * ping * 0
15-JUL-2010 22:15:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:15:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1170)) * establish * orcl * 0
15-JUL-2010 22:16:07 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1173)) * establish * orcl * 0
15-JUL-2010 22:16:53 * service_update * orcl * 0
15-JUL-2010 22:17:04 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=services)(ARGUMENTS=64)(SERVICE=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521))))(VERSION=169869568)) * services * 0
15-JUL-2010 22:17:05 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:19:02 * service_update * orcl * 0
15-JUL-2010 22:20:20 * service_update * orcl * 0
15-JUL-2010 22:20:28 * ping * 0
15-JUL-2010 22:20:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:20:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1199)) * establish * orcl * 0
15-JUL-2010 22:21:14 * service_update * orcl * 0
15-JUL-2010 22:25:28 * ping * 0
15-JUL-2010 22:25:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:25:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1227)) * establish * orcl * 0
15-JUL-2010 22:26:33 * service_update * orcl * 0
15-JUL-2010 22:27:01 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1236)) * establish * orcl * 0
15-JUL-2010 22:27:03 * service_update * orcl * 0
15-JUL-2010 22:30:28 * ping * 0
15-JUL-2010 22:30:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:30:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1259)) * establish * orcl * 0
15-JUL-2010 22:31:07 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1262)) * establish * orcl * 0
15-JUL-2010 22:31:09 * service_update * orcl * 0
15-JUL-2010 22:32:05 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=services)(ARGUMENTS=64)(SERVICE=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521))))(VERSION=169869568)) * services * 0
15-JUL-2010 22:32:06 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:35:22 * service_update * orcl * 0
15-JUL-2010 22:35:28 * ping * 0
15-JUL-2010 22:35:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:35:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1288)) * establish * orcl * 0
15-JUL-2010 22:40:28 * ping * 0
15-JUL-2010 22:40:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:40:34 * service_update * orcl * 0
15-JUL-2010 22:40:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1316)) * establish * orcl * 0
15-JUL-2010 22:42:56 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1329)) * establish * orcl * 0
15-JUL-2010 22:44:56 * service_update * orcl * 0
15-JUL-2010 22:45:28 * ping * 0
15-JUL-2010 22:45:29 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:45:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1345)) * establish * orcl * 0
15-JUL-2010 22:46:08 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1348)) * establish * orcl * 0
15-JUL-2010 22:46:08 * service_update * orcl * 0
15-JUL-2010 22:47:05 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=services)(ARGUMENTS=64)(SERVICE=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521))))(VERSION=169869568)) * services * 0
15-JUL-2010 22:47:06 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:50:20 * service_update * orcl * 0
15-JUL-2010 22:50:28 * ping * 0
15-JUL-2010 22:50:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:50:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1376)) * establish * orcl * 0
15-JUL-2010 22:55:28 * ping * 0
15-JUL-2010 22:55:28 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 22:55:36 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1404)) * establish * orcl * 0
15-JUL-2010 22:55:39 * service_update * orcl * 0
15-JUL-2010 22:58:32 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1423)) * establish * orcl * 0
15-JUL-2010 22:58:32 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1424)) * establish * orcl * 0
15-JUL-2010 22:58:33 * service_update * orcl * 0
15-JUL-2010 22:58:36 * service_update * orcl * 0
15-JUL-2010 22:58:37 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1425)) * establish * orcl * 0
15-JUL-2010 22:58:37 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SID=orcl)(SERVER=DEDICATED)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1426)) * establish * orcl * 0
15-JUL-2010 22:58:37 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1427)) * establish * orcl * 0
15-JUL-2010 22:58:39 * service_update * orcl * 0
15-JUL-2010 22:59:09 * service_update * orcl * 0
15-JUL-2010 22:59:43 * service_update * orcl * 0
15-JUL-2010 23:00:26 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1439)) * establish * orcl * 0
15-JUL-2010 23:00:29 * ping * 0
15-JUL-2010 23:00:29 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 23:00:37 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1445)) * establish * orcl * 0
15-JUL-2010 23:01:07 * service_update * orcl * 0
15-JUL-2010 23:01:08 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe)(HOST=ORACLE10GVM)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1448)) * establish * orcl * 0
15-JUL-2010 23:02:04 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=services)(ARGUMENTS=64)(SERVICE=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521))))(VERSION=169869568)) * services * 0
15-JUL-2010 23:02:05 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle10gvm)(PORT=1521)))(VERSION=169869568)) * status * 0
15-JUL-2010 23:02:20 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=services)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * services * 0
15-JUL-2010 23:03:07 * service_update * orcl * 0
15-JUL-2010 23:03:07 * service_died * orcl * 12547
TNS-12547: TNS:lost contact
15-JUL-2010 23:03:08 * (CONNECT_DATA=(SID=orcl)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\emagent.exe)(HOST=ORACLE10GVM)(USER=OraUser))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1459)) * establish * orcl * 12505
TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 15-JUL-2010 23:07:58
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
Log messages written to C:\oracle\product\10.2.0\db_1\network\log\listener.log
Trace information written to C:\oracle\product\10.2.0\db_1\network\trace\listener.trc
Trace level is currently 0
Started with pid=1552
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle10gvm)(PORT=1521)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
15-JUL-2010 23:08:17 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1030)) * establish * orcl * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
15-JUL-2010 23:08:18 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=1032)) * establish * orcl * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
I have some vague recollections of Oracle databases needing a bit of fiddling when you reboot for the first time after installing the database. However, you haven't given us enough information to work on. To start with:
What code are you using to connect to the database?
It's not clear whether the database instance has been started. Can you connect to the database using sqlplus / as sysdba from within the VM?
What has been written to the listener.log file (in %ORACLE_HOME%\network\log) since the last reboot?
EDIT: I've now been able to come up with a scenario which generates the same error message you got. It looks to me like the database you're attempting to connect to has not been started up. The example I present below uses Oracle XE on Linux, but I don't think this makes a significant difference.
First, let us confirm that the database is shut down:
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 17 18:16:43 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
It's the text Connected to an idle instance that tells us that the database is shut down.
Using sqlplus / as sysdba connects us to the database as SYS without needing a password, but it only works on the same machine as the database itself. In your case, you'd need to run this inside the virtual machine. SYS has permission to start up and shut down the database, and to connect to it when it is shut down, but normal users don't have these permissions.
Now let us disconnect and try reconnecting as a normal user, one that does not have permission to startup/shutdown the database nor connect to it when it is down:
SQL> exit
Disconnected
$ sqlplus -L "user/pw#(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=XE)))"
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 17 18:16:47 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12505: TNS:listener does not currently know of SID given in connect
descriptor
SP2-0751: Unable to connect to Oracle. Exiting SQL*Plus
That's the error message you've been getting.
Now, let's start the database up:
$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 17 18:17:00 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 805306368 bytes
Fixed Size 1261444 bytes
Variable Size 209715324 bytes
Database Buffers 591396864 bytes
Redo Buffers 2932736 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Now that the database is up, let's attempt to log in as a normal user:
$ sqlplus -L "user/pw#(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=XE)))"
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 17 18:17:11 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL>
We're in.
I hadn't seen an ORA-12505 error before because I don't normally connect to an Oracle database by entering the entire connection string on the command line. This is likely to be similar to how you are attempting to connect to the database. Usually, I either connect to a local database, or connect to a remote database by using a TNS name (these are listed in the tnsnames.ora file, in %ORACLE_HOME%\network\admin). In both of these cases you get a different error message if you attempt to connect to a database that has been shut down.
If the above doesn't help you (in particular, if the database has already been started, or you get errors starting up the database), please let us know.
EDIT 2: it seems the problems you were having were indeed because the database hadn't been started. It also appears that your database isn't configured to start up when the service starts. It is possible to get the database to start up when the service is started, and to shut down when the service is stopped. To do this, use the Oracle Administration Assistant for Windows, see here.
I Changed Sid Value to orcl, it works fine and connection established
You could try this.
In windows go to Administrative Tools->Services And see scroll down to where it says Oracle[instanceNameHere] and see if the listener and the service itself are running. You might have to start it. You can also set it to start automatically when you right-click on it and go to properties.
Give hibernate.connection.url as "jdbc:oracle:thin:#127.0.0.1:1521:xe" then you can solve above issue. Because oracle's default SID is "xe" so we should give like this. When I gave like this data has been inserted into DB without any SQL exceptions, it's my real time experience.
The following worked for me (Windows 7):
oradim -shutdown -sid enter_sid_here
oradim -startup -sid enter_sid_here
(with enter_sid_here replaced by the SID)
Start oracleserviceorcl service. (From services in Task Manager)
Set ORACLE_SID variable with orcl value. (In environment variables)