pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Mair <chris@1006.org>
To: PAWAN SHARMA <er.pawanshr0963@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Oracle to PostgreSQL Migration.
Date: Mon, 29 May 2017 11:19:42 +0200
Message-ID: <342051cfd508755a032d133ed0ab666e@smtp.hushmail.com> (raw)
In-Reply-To: <CAPgXFMSJOLOz+tm+jzkh9GvEpQMUnYWCNPq7RDCmobVKS-BHzg@mail.gmail.com>
References: <CAPgXFMSJOLOz+tm+jzkh9GvEpQMUnYWCNPq7RDCmobVKS-BHzg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

> I am facing below issue while running below command.
> 
> *C:\ora2pg>ora2pg -c ora2pg.conf*
> DBI connect('host=<servername>;sid=<SID>;port=<port>',<username>',...) failed: ORA-01017: invalid username/p
> assword; logon denied (DBD ERROR: OCISessionBegin) at C:/Strawberry/perl/site/lib/Ora2Pg.pm line 1376.
> FATAL: 1017 ... ORA-01017: invalid username/password; logon denied (DBD ERROR: OCISessionBegin)
> Aborting export...
> 
> even I am able to login in Oracle with same <username> and <password>

If you can login from the same host using sqlplus like this:

sqlplus myuser/mypass@myhost:1521/mysid

then you likely can have ora2pg connect too. Just make sure that in ora2pg.conf you put the lines:

ORACLE_DSN  dbi:Oracle:host=myhost;sid=mysid
ORACLE_USER myuser
ORACLE_PWD  mypass

Bye,
Chris.




-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (29+ messages)  latest in thread

Message-ID: <342051cfd508755a032d133ed0ab666e@smtp.hushmail.com>
Permalink:  ../342051cfd508755a032d133ed0ab666e@smtp.hushmail.com/
Also on:    postgresql.org/message-id/342051cfd508755a032d133ed0ab666e@smtp.hushmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: chris@1006.org, er.pawanshr0963@gmail.com
  Subject: Re: Oracle to PostgreSQL Migration.
  In-Reply-To: <342051cfd508755a032d133ed0ab666e@smtp.hushmail.com>
  References: <CAPgXFMSJOLOz+tm+jzkh9GvEpQMUnYWCNPq7RDCmobVKS-BHzg@mail.gmail.com> <342051cfd508755a032d133ed0ab666e@smtp.hushmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox