Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Базы";
Текущий архив: 2003.06.12;
Скачать: [xml.tar.bz2];

Вниз

---|Ветка была без названия|---   Найти похожие ветки 

 
Dmitriy E   (2003-05-21 18:29) [0]

Уважаемые мастера! При запуске в сети БД на Paradox при включении таблиц вылазит "Directoty is controled by other .Net file". Чтобы это значило?


 
Zelius   (2003-05-21 20:23) [1]

На всех машинах, что обращаются к этой базе должен быть одинаковый NetFileDir.


 
Dmit   (2003-05-21 23:30) [2]

>Zelius
Работало без этого с установками по умолчанию. Проблемы пошли после перестановки сети.
P.S. BDE стоит на всех машинах.


 
Виталий Панасенко   (2003-05-22 08:24) [3]

Человек же тебе дело сказал - в BDE для драйвера Paradox укажи один и тот же ФИЗИЧЕСКИЙ каталог NetFileDir или делай это из приложения для Session


 
Dmit   (2003-05-22 23:22) [4]

При всем уважении к Вам, но при установки BDE по умолчанию NetFileDir указывает на локальный диск. При запуске проги с удаленной машины никаких ислючений не вызывалось. После перестановки систем на машинах подобная схема перестала работать. Что изменилось? И если ТАВ должна указывать на один и тот же физ. диск, то как это работало без всяких установок и подключений сетевых дисков.
PS
Я понимаю, что это кривой вариант работы в сети с локальной СУБД, но в один момент времени с БД работает только один пльзователь,что в полне клиента устраивает


 
Виталий Панасенко   (2003-05-23 08:36) [5]

Вот если он ОДИН одновременно работает тогда все пройдет, но при попытке работать с большим числом клиентов будет выдаваться эта ошибка. Потому как по умолчанию NetFileDir указывает на c:\.
Вот, что рекомендует Borland, это попутно снимает проблему с возникновением ошибки "Lock file has ground too large":
TI256B.txt Removing "Lock file has grown too large" Error
Category :General Programming
Platform :All
Product :BDE All
Description:
Lock file has grown too large, Decimal:9495 Hex:2517
----------------------------------------------------
This problem is specific to Paradox tables and can be caused
in any BDE (16 or 32 Bit) application that meet some or all
of the following criteria:

1) The Executable is in the same directory as the table.
2) The Private Directory is not correctly set or not set
at all.
3a) Delphi: Having a TTable open on a paradox table and
then performing multiple TQuery operations.
3b) C / C++: Having a table open with DbiOpenTable and
then performing multiple queries with DbiQExec and/or
DbiQExecDirect.
4) LOCAL SHARE set to true in the BDE Configuration
Utility on the System page.

To solve the problem, make sure that your application has
done ALL of the following:

1) Under the directory where the executable is, create
three new directories: TABLES, PRIV, and NET. Place
all the tables for the application into the TABLES
directory.
2) Set the session"s private directory to the PRIV
directory. Take the following steps according to
the software you are using.

DELPHI:
Session.PrivateDir := ExtractFilePath(ParamStr(0)) + "PRIV";

C / C++:
DbiSetPrivateDir(szPath);
// szPath is the fully qualified path (not relative)
// to the PRIV directory.

3) Set the session"s network directory to the NET
directory. Take the following steps according to
the software you are using.

DELPHI:
Session.NetFileDir := ExtractFilePath(ParamStr(0)) + "NET";

C / C++:
DbiSetProp(hSes, sesNETFILE, (UINT32)szPath);
// szPath is the fully qualified path (not relative)
// to the NET directory.

// hSes is the current session handle. This can be
// retrieved using the DBiGetCurrSession function.

4) If LOCAL SHARE is set to true and you are not sharing
tables between different applications at the same time,
change LOCAL SHARE to false.

The above steps will correct the Lock File Too Large error.


 
Виталий Панасенко   (2003-05-23 08:38) [6]

Хотя может все у тебя намного проще: остались файлы *.lck в папке, где лежат *.DB из предыдущего варианта настройки сети. Удали их.


 
Dmit   (2003-05-23 20:44) [7]

> Виталий Панасенко
Большое спасибо за участие. На сайт к Borland"у заесть не догадался - .NET смутило.
На буднях об-но проверю - про *.lck очень даже может быть.
О результате напишу. Спасибо



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

Форум: "Базы";
Текущий архив: 2003.06.12;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.47 MB
Время: 0.007 c
1-34884
prorok2
2003-05-30 19:49
2003.06.12
Как сделать


1-34871
АЛЕКС
2003-05-31 12:30
2003.06.12
МЕНЮ


14-34971
ArtemB
2003-05-28 12:35
2003.06.12
QuickReport с выключенным принтером ....


3-34703
sly fox
2003-05-23 08:16
2003.06.12
конвертация dat в dbf


3-34756
Troy_piter
2003-05-24 18:39
2003.06.12
Помогите с поиском записей в БД!





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский