Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFKIq-0007Mj-Cx for pgsql-general@arkaria.postgresql.org; Mon, 29 May 2017 13:01:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dFKIp-0004T6-S4 for pgsql-general@arkaria.postgresql.org; Mon, 29 May 2017 13:01:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFKGL-0005oU-Uk for pgsql-general@postgresql.org; Mon, 29 May 2017 12:59:10 +0000 Received: from smtp3.hushmail.com ([65.39.178.200]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFKGI-0007Oh-JK for pgsql-general@postgresql.org; Mon, 29 May 2017 12:59:08 +0000 Received: from smtp3.hushmail.com (localhost [127.0.0.1]) by smtp3.hushmail.com (Postfix) with SMTP id 3F94FE0C15 for ; Mon, 29 May 2017 12:59:04 +0000 (UTC) Received: from smtp.hushmail.com (w6.hushmail.com [65.39.178.92]) by smtp3.hushmail.com (Postfix) with ESMTP; Mon, 29 May 2017 12:59:02 +0000 (UTC) Subject: Re: Oracle to PostgreSQL Migration. To: PAWAN SHARMA Cc: pgsql-general@postgresql.org References: <342051cfd508755a032d133ed0ab666e@smtp.hushmail.com> From: Chris Mair Message-ID: <85c78636081d539aa0cfdd8380c37d52@smtp.hushmail.com> Date: Mon, 29 May 2017 14:58:54 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org > C:\ora2pg>ora2pg -c ora2pg.conf > [========================>] 2/2 tables (100.0%) end of scanning. > [> ] 0/2 tables (0.0%) end of scanning. > [========================>] 2/2 tables (100.0%) end of table export. Looks good so far. This means you could connect to Oracle DB now. > DBD::Pg::st execute failed: ERROR: relation "mytab" does not exist This is coming from the Postgres side. In ora2pg.conf go to the section OUTPUT SECTION (Control output to file or PostgreSQL database) I suggest you comment out (prefix with #) the part #PG_DSN dbi:Pg:dbname=test_db;host=localhost;port=5432 #PG_USER test #PG_PWD test and just have ora2pg write its ouput to a file by setting OUTPUT like this: OUTPUT output.sql This way you have your oputput for Postgres in a file that you can check out and try importing step by step. I guess you are running this on some test data, so the file will be small enough to open it with an editor. You cap paste piece by piece into a Postgres prompt (psql or pgadmin or whatever you're using). You can then see at what point you get an error (and hopefully understand what's happening). 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