Вниз
Скачать: CL | DM;

ODAC-TOraLoader   Найти похожие ветки 

← →
anat   (2004-10-08 11:23) [0]

Как с помощью TOraLoader(если это возможно)
загрузмть BLOB


← →
Reindeer Moss Eater ©   (2004-10-08 11:27) [1]

Выдержка из справки:

See Also

Working with TOraLoader

TDPColumns

TOraSession

Loader demo project


← →
anat   (2004-10-08 11:32) [2]

И как задать колонку типа BLOB ?


← →
Reindeer Moss Eater ©   (2004-10-08 11:33) [3]

так же как любую другую.

Limitations and Restrictions

TOraLoader has the following limitations similar to those of SQL*Loader:

· triggers are not supported
· check constraints are not supported
· referential integrity constraints are not supported
· clustered tables are not supported
· loading of remote objects is not supported
· user-defined types are not supported
· LOBs must be specified after all scalar columns · LONGs must be specified last


← →
anat   (2004-10-08 11:38) [4]

LOBs must be specified after all scalar columns

Где, в каком месте
Если знаешь - 2 строчки примера


← →
Reindeer Moss Eater ©   (2004-10-08 11:43) [5]

type
 TDPColumnDataType = (ctString,ctDate,ctInteger,ctUInteger,ctFloat);

property DataType: TDPColumnDataType;

Description

Use DataType to specify types of values which will be loaded. Data types for columns may not match data types for the corresponding fields in the database table. TOraLoader will cast data values to the types of their fields.


← →
anat   (2004-10-08 11:47) [6]

TOraLoded :
1.procedure PutColumnData(Col: Integer; Row: Integer; Value: Variant);
2.type
 TGetColumnDataEvent = procedure (Sender: TObject; Column:
   TDPColumn; Row: Integer; var Value: variant; var EOF: boolean) of object;

property OnGetColumnData : TGetColumnDataEvent;

? и как передать Variant-BLOB


← →
Reindeer Moss Eater ©   (2004-10-08 12:57) [7]

Используй GetColumnData.

procedure TfmMain.GetColumnData(Sender: TObject;
 Column: TDPColumn; Row: Integer; var Value: Variant; var EOF: Boolean);

Со скалярными типами полей все как обычно.
Блобы должны быть указаны в конце списка как и определено в документации.
Флаг EOF выставляй когда все данные блоба будут получены после нескольких вызовов GetColumnData (если не запостишь все данные за один вызов)
Какой базовый тип использовать для параметра Variant?
Так как ничего специального не предусмотрено, думаю что в качестве буфера подойдет строка. Для clob.
А вот как это поможет для blob и raw - трудно сказать.
В общем пробовать надо.


← →
anat   (2004-10-08 13:37) [8]

Не подскажешь как загрузить содержимое файла
в BLOB поле определенной таблицы
с помощью SQLLDR


← →
Reindeer Moss Eater ©   (2004-10-08 14:01) [9]

А нахрена с помощью лоадера-то?

TOraQuery.ParamByName("такой-то").AsOraBlob.LoadFromFile()


← →
anat   (2004-10-08 14:10) [10]

Файлы слишком большие(> 1G)
TOraQuery.ParamByName("такой-то").AsOraBlob.LoadFromFile()
долго грузит


← →
Reindeer Moss Eater ©   (2004-10-08 14:13) [11]

А лоадер их что, по твоему, через гиперпространство на сервер доставлять умеет?


← →
anat   (2004-10-08 14:27) [12]

Direct=TRUE
Еще раз

Не подскажешь как загрузить содержимое файла
в BLOB поле определенной таблицы
с помощью SQLLDR

На нет и суда нет.


← →
Reindeer Moss Eater ©   (2004-10-08 14:29) [13]

SQLLDR.EXE >HOWTOLOAD.TXT



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.47 MB
Время: 0.022 c
3-1097070131
Пуртик
2004-10-06 17:42
2004.11.07
Как ускорить закачку?


14-1098029285
Gero
2004-10-17 20:08
2004.11.07
Всем сисадминам


14-1097911237
Seldon
2004-10-16 11:20
2004.11.07
Патентование программ


1-1098343269
user 2
2004-10-21 11:21
2004.11.07
button


1-1098475502
voron
2004-10-23 00:05
2004.11.07
Как работать в Делфи с очень большими числами




   Наверх