Giter Site home page Giter Site logo

BLOB Migration Issue about ora2pg HOT 8 OPEN

guptasai675 avatar guptasai675 commented on August 15, 2024
BLOB Migration Issue

from ora2pg.

Comments (8)

guptasai675 avatar guptasai675 commented on August 15, 2024

Hi darold,

Could you please provide your comments .

from ora2pg.

darold avatar darold commented on August 15, 2024

Hi, with 64GB of memory you shoud not experiencing an OOM even with a higher DATA_LIMIT. What do you mean by "using OID datatype" are you talking about the --blob_to_lo option? By default BLOB are translated into bytea by Ora2Pg.

When a table have BLOB and the parameter BLOB_LIMIT is set Ora2Pg will use it, so here you will export 5 row at a time which is low. What is the maximum size of a BLOB in this table?

from ora2pg.

darold avatar darold commented on August 15, 2024

And also what is the ora2pg command you are using?

from ora2pg.

guptasai675 avatar guptasai675 commented on August 15, 2024

Hi Darold,
The Maximum length of the BLOB is 3GB
Yes am using --blob_to_lo option and below is the command were used for export
nohup ora2pg -t COPY -o data_DOC_STATUS_CONTENTS.sql -b ${WORK_DIR}/${P_CODE}/data -c ${WORK_DIR}/${P_CODE}/config/ora2pg.conf -l ${LOG_1} -d --blob_to_lo &

from ora2pg.

darold avatar darold commented on August 15, 2024

I think first that you should use direct import to PostgreSQL and not output to file. You should also parallelize the export from Oracle using the -J command line option provide that you have a column of NUMBER data type that has a unique constraints (PK or unique index) defined on this table.

from ora2pg.

guptasai675 avatar guptasai675 commented on August 15, 2024

Yes, that's right. But we can't import directly we have some network restriction on between the both datacenters so we're exporting to a local file and trying the --J option, but we're still getting the same problem. ORA-01062: define buffer any memory

when I trigger export , the export it self aborting with following error ORA-01062: define buffer any memory

from ora2pg.

darold avatar darold commented on August 15, 2024

I think the problem is not related to Ora2Pg but to Oracle, the OOM occurs at Oracle side. I don't know the Oracle version and the available memory on this server but you should look at Oracle side on what happen. You should also try to export using a WHERE clause in ora2pg.conf to extract a single row with a huge BLOB to see if this is the full extraction that has problem or just even a single line extraction reports an OOM.

from ora2pg.

guptasai675 avatar guptasai675 commented on August 15, 2024

That sounds good. I'll check the Oracle server end. Like you said, I'll try with a single export row.

from ora2pg.

Related Issues (20)

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.