Subject | Re: [firebird-support] Multifile Firebird Database |
---|---|
Author | Milan Tomeš - Position |
Post date | 2010-01-19T20:20:47Z |
Dne 19.01.2010 20:07, D K napsal(a):
systems that doesn't support files longer than 4GB or for some other
reasons. You cannot choose where the table is located. Declaring
EXTERNAL FILE in CREATE TABLE syntax is just for declaring tables that
aren't stored in database file but somewhere else. Structure of that
file differs from structure of database file and there are some
limitations when you're using external table.
Milan Tomes
[Non-text portions of this message have been removed]
>That's correct
> Hello,
> I would like to create a multifile firebird database.I found how to do
> that by,
> CREATE DATABASE “c:\test\test.fdb”
> USER 'sysdba' PASSWORD 'masterkey'
> PAGE_SIZE 8192
> LENGTH 10000 PAGES
> FILE “c:\test\test.fd1” LENGTH 10000
> FILE “c:\test\test.fd2”;
>
>And this is a big misunderstanding. Multi-file database is eg. for file
>
> I wanted that Table_1 reside in Primary file and Table_2 reside in
> First secondary File(test.fd1) and table_3 reside in secnd secondary
> file(test.fd2)..
> For this i tried,
> CREATE TABLE TABLE_2 EXTERNAL FILE 'C:\test\test.fd1'
> (TABLE_2_ID smallint not null);
>
systems that doesn't support files longer than 4GB or for some other
reasons. You cannot choose where the table is located. Declaring
EXTERNAL FILE in CREATE TABLE syntax is just for declaring tables that
aren't stored in database file but somewhere else. Structure of that
file differs from structure of database file and there are some
limitations when you're using external table.
> But when i tried to insert values to table2 i got errorThat's ok because file TEST.FD1 is already in use by database.
> Statement failed, SQLCODE = -902
> Access to external file "C:\TEST\TEST.FD1" is denied by server
> administrator
>
>No
> Because EXTERNAL FILE 'filename' will be opened read-only
> Can we specify which table should go in which file in a multifile
> firebird database with all features?
>
> Please help me with this.HTH
>
> Thanks
> DK
>
>
Milan Tomes
[Non-text portions of this message have been removed]