Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Ora-1031 (Insufficient Privileges) Inserting BLOB Data With P erl
Resource on the tablespace should not matter. I don't want them to be able to create segments, but to perform DML on the lob_segment already there. If I use sqlplus and the dbms_lob functions in an anonymous pl/sql block then the insert is successful when the privileges on the table are given directly instead of via a role. I'll have the developer try his perl script with the direct grants.
Ian MacGregor
Stanford Linear Acclerator Center
ian_at_slac.stanford.edu
-----Original Message-----
Sent: Tuesday, November 20, 2001 6:30 AM
To: Multiple recipients of list ORACLE-L
Perl
Do 'other users' have any quota on 'BABAR_PAPERS_DATA' tablespace (where LOB is stored)?
Igor Neyman, OCP DBA
ineyman_at_perceptron.com
> One of our developers has written a program to upload files into the
database via perl. The actual file contents are stored in a blob.
>
> The table was created with the following script
>
> CREATE TABLE BP_FILES
> (FILE_ID NUMBER(7,0) NOT NULL
> ,FILE_TYPE VARCHAR2(1) NOT NULL
> ,FILE_FORMAT VARCHAR2(1) NOT NULL
> ,FILE_NAME VARCHAR2(80) NOT NULL
> ,FILE_PRIVATE VARCHAR2(1) NOT NULL
> ,COMMENTS VARCHAR2(240)
> ,DATE_CREATED DATE NOT NULL
> ,CREATED_BY VARCHAR2(30) NOT NULL
> ,DATE_UPDATED DATE
> ,UPDATED_BY VARCHAR2(30)
> ,CONTENT_TYPE VARCHAR2(240)
> ,CONTENT_DISPOSITION VARCHAR2(240)
> ,FILE_DATA BLOB
> Lob(FILE_DATA) STORE AS babar_papers_lob
> (TABLESPACE BABAR_PAPERS_DATA
> PCTVERSION 5
> ENABLE STORAGE IN ROW
> CHUNK 8192
> NOCACHE LOGGING)
> /
> --------------------------------------------------------------------------
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Igor Neyman INET: ineyman_at_perceptron.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: MacGregor, Ian A. INET: ian_at_SLAC.Stanford.EDU Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Nov 20 2001 - 10:31:15 CST
![]() |
![]() |