Coder Social home page Coder Social logo

Comments (7)

marco44 avatar marco44 commented on August 18, 2024 1

well, the TABLEDESC should have been created by the db2topg step. If you don't have a TABLEDESC, it means that either you didn't do this step, or the file is in another directory.

from db2topg.

marco44 avatar marco44 commented on August 18, 2024 1

The only issue is that the objects in this unsure file wont be migrated. The unsure file is produced so that you can inpect it, see if there are things you may want to try to migrate, and rewrite them yourself. The content cannot be re-written by db2topg (because of large differences in SQL or PL language mostly)

from db2topg.

sarathmv avatar sarathmv commented on August 18, 2024

Thanks that was in another directory i just moved it into the same and now it is working.
Now if i run unsure.sql and error occurs

psql.bin:/home/db2topgdir/unsure.sql:32: ERROR: syntax error at or near "LANGUAGE"
LINE 1: CREATE OR REPLACE FUNCTION rmsvcchk_fn LANGUAGE plpgsql RETU...
^
psql.bin:/home/abc/db2topgdir/unsure.sql:32: STATEMENT: CREATE OR REPLACE FUNCTION rmsvcchk_fn LANGUAGE plpgsql RETURNS (trigger) AS
$func$

NEW AS N FOR EACH ROW MODE DB2SQL WHEN (LCASE(N.SVR_SERVERNAME) = (SELECT
LCASE(SVR_SERVERNAME) FROM RMSERVER WHERE LCASE(N.SVR_SERVERNAME) = LCASE(SVR_SERVERNAME)))
SIGNAL SQLSTATE '75000' ('Servername already exists')
$func$
;

from db2topg.

marco44 avatar marco44 commented on August 18, 2024

Yes, that's the principle of the "unsure" file: there are statements that probably won't run in PostgreSQL.

To be honest, I didn't even try to run it once with stored procedures in it, these are too different between postgresql and db2.

from db2topg.

sarathmv avatar sarathmv commented on August 18, 2024

IS there any issue happens if we not run that unsure.sql

from db2topg.

sarathmv avatar sarathmv commented on August 18, 2024

Yes i checked that in db2 and it was some different kind ok data all other data was restored.

OK thanks for the valuable information and also thanks for such a great script db2topg

from db2topg.

marco44 avatar marco44 commented on August 18, 2024

I'm delighted it helped you.

from db2topg.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.