169 похожих чатов

Hello I'm performing ora2pg migration there is blob data

types in oracle, when I importing insert script in to postgres which is generated by ora2pg I'm getting this error "invalid memory alloc request size 1073741824"...I know we have maximum size of field in postgres is 1gb...is there any way to avoid this issue ?

6 ответов

10 просмотров

Reduce the sice in Oracle. If you really need that size of data, split it into several records and put it together again in your application.

N@R£N- Автор вопроса
Stefanie Janine Stölting
Reduce the sice in Oracle. If you really need that...

I did it in oracle, we have problem with one row so I created a new table with that one row.even that one row size is more than 1GB

N@R£N
I did it in oracle, we have problem with one row s...

Check if that data is really needed would be my first advice. And if yes, I would split it into smaller chunks than the maximum column size.

N@R£N- Автор вопроса
Stefanie Janine Stölting
Check if that data is really needed would be my fi...

I have one doubt how can we split that particular row as it blob data I can see only binary values

N@R£N
I have one doubt how can we split that particular ...

Split the data stream in the application. And for binary data the default advice is to store it outside of the database and only store paths within the db.

N@R£N
I have one doubt how can we split that particular ...

so, in PG we store that as Bytea right? In PG, if I split it into multiple rows of binary data on insert. Then I return all of those rows, and in my application, I assemble them back as one field. Yes, this requires a change to your application. The other alternative is to store it as a file somewhere. We had to implement this very thing, for the same reason. And we had 2 rows that exceeded the limit. It was a bit of a pain. But since we knew conversion was a 2yr process for us, we decided early on, that things like this we would REDESIGN in Oracle to make the conversion to PG more seamless. (Like rewriting (+) queries to proper JOIN queries, and fixing "Quoted" DB Field Names, etc. etc.) This way, the conversion got easier/cleaner over time. Because we could stabilize the fixes in PG. And manually adjust the data for now, but still have an Automatable process for future conversion of data.

Похожие вопросы

Обсуждают сегодня

@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
Подобного рода ;Следующие три строки это директивы ассемблера, ;которые можно не задавать, т.к.работаем в Visual Studio. ;Символ ";" - это начало однострочного комментария ...
Егор Анелькин
3
Привет всем. появился вопрос. Разрабатываю сайт, в данный момент он запущен. Хостинг beget. Добавляю на сайт яндекс метрику с помощью полей client-settings (взято отсюда http...
Andrew
2
Подскажите, где смотреть результат выполнения программы? Код: ;.686 ;Система команд процессора 686 ;.MODEL FLAT,stdcall ;Модель памяти плоская, станда...
Егор Анелькин
5
еще вопрос, допустим мы создадим char массив из 10 элементов и присвоим ему через сканф 10 символов. и выведем все символы. Хотел спросить последний элемент /0 будет включать...
Anthem
11
открыть папку в проводнике: 1 - ShellExecute 2 - ExecuteProcess 3 - OpenDocument что лучше выбрать?
Alexey Kulakov
12
Изменение типа с SomeException на String и правда удобней @cheese_hs . А вот такой вариант насколько некрасив еще? loadConfigDB :: IO (Either String ConfigDataBase) loadConfi...
Camara
7
Где в Астане можно купить мясо для шашлыков?
Dancing Іңұқәһүғө
21
Карта сайта