Subject | Re: [firebird-support] External tables on Linux |
---|---|
Author | Helen Borrie |
Post date | 2004-04-16T21:18:17Z |
At 04:19 PM 16/04/2004 +0000, you wrote:
btw, it's not true that the file has to pre-exist. If it doesn't exist, it
gets created. Problem here is one of two things is stopping that, either
1. User firebird doesn't have the permissions
2. The OS user you are logged in as doesn't have the permissions
or
3. The default EFA NONE is still in sway because you're still in the same
instance of the server that you were in before you edited firebird.conf
the file?
>Hi,Did you start a new connection after editing firebird.conf
>
>I am having trouble using external tables on a red hat linux 9
>machine. I am using firebird 1.5 classic final release.
>
>I have edited the firebird.conf to allow external file access:
> ExternalFileAccess = Full
btw, it's not true that the file has to pre-exist. If it doesn't exist, it
gets created. Problem here is one of two things is stopping that, either
1. User firebird doesn't have the permissions
2. The OS user you are logged in as doesn't have the permissions
or
3. The default EFA NONE is still in sway because you're still in the same
instance of the server that you were in before you edited firebird.conf
>I log on as SYSDBA, connect to the database alias, and try to createDoes the user **firebird** have rwx on the directory where you are writing
>the external table:
> create table broadext
> EXTERNAL FILE '/home/listpi/junk/broad.ext' (
> BROADID INTEGER NOT NULL
> , ACCOUNTID INTEGER NOT NULL
> , SENDDATE TIMESTAMP NOT NULL
> , MESSAGEID INTEGER NOT NULL
> , SENDCOUNT INTEGER
> , BROADSTAT VARCHAR( 10 ) NOT NULL
> , BROADTYPE CHAR( 1 ) NOT NULL
> , TARGETDOC BLOB( 65535, 1 ) NOT NULL
> );
>
>
>But I get the error:
> Statement failed, SQLCODE = -902
> I/O error for file "/home/listpi/junk/broad.ext"
> -Error while trying to open file
> -Permission denied
>
>I have made the /home/listpi/junk directory owned by the firebird
>user and for good measure give everyone complete read/write/execute
>permissions.
the file?
>Am I missing something?/hb