Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TOlVZ-0005Ny-1w for pgsql-admin@postgresql.org; Thu, 18 Oct 2012 08:31:13 +0000 Received: from delta01.pnet.xcon.it ([62.48.53.16]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TOlVT-00074i-Cp for pgsql-admin@postgresql.org; Thu, 18 Oct 2012 08:31:12 +0000 Received: from localhost (localhost [127.0.0.1]) by delta01.pnet.xcon.it (Postfix) with ESMTP id 16CA110339FB1; Thu, 18 Oct 2012 10:31:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at delta01.pnet.xcon.it Received: from delta01.pnet.xcon.it ([127.0.0.1]) by localhost (delta01.pnet.xcon.it [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xTMOoHNASxAe; Thu, 18 Oct 2012 10:31:04 +0200 (CEST) Received: from webmail.xcon.it (unknown [10.68.1.35]) (Authenticated sender: gabriele.bartolini@2ndquadrant.it) by delta01.pnet.xcon.it (Postfix) with ESMTPSA id 208D6103398F1; Thu, 18 Oct 2012 10:31:04 +0200 (CEST) Received: from eggIB-wan.comune.prato.it ([193.43.108.2]) by webmail.xcon.it with HTTP (HTTP/1.1 POST); Thu, 18 Oct 2012 10:31:04 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 18 Oct 2012 10:31:04 +0200 From: Gabriele Bartolini To: Shams Khan Cc: Subject: Re: Migration from Postgresql 9 to Oracle 10g In-Reply-To: References: Message-ID: <28e7bf5060708a323543621f1fe1d80b@2ndquadrant.it> X-Sender: Gabriele.Bartolini@2ndQuadrant.it User-Agent: [X]con Webmail/0.4.2 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201210/74 X-Sequence-Number: 40190 Hi Shams, On Thu, 18 Oct 2012 11:43:52 +0530, Shams Khan wrote: > I am in the process of migration from PG 9 to oracle. All of the > database objects has been migrated apart from functions. The main > issue I am facing with function code where DML statements are used in > the code. On the other side, Oracle doesn't support DML's in > functions > or procedures. I used ESF Database Migration tool in order to convert > and does some remaing task manually. Is there any tool by which can > convert functions as well? I guess you are better off asking this to an Oracle forum or to Oracle itself (or consultants). Here I am sure you can find a lot of people (including myself) who are really eager to talk about the inverse process and who are specialised with that. We - for instance - manage Oracle to vanilla PostgreSQL migrations with semi-automated tools able to convert PLSQL functions, but not the other way around. Sorry. :( Just for the record and to understand if this is due to PostgreSQL limitations, are you in a position to give us technical/product reasons for this decision? Cheers, Gabriele -- Gabriele Bartolini - 2ndQuadrant Italia PostgreSQL Training, Services and Support Gabriele.Bartolini@2ndQuadrant.it - www.2ndQuadrant.it