Battle of external table: files that contain only a picture

Hello

Does anyone know if this is possible: use an external table to load files that each contain only one photo (photo) in a BLOB column?

So: just a photo, not other columns and not many lines.

I tried, in the sense of this article: ORACLE-DATABASE external Tables containing LOB -

I'm starting to believe it is not possible due to the "delimited records by ' and 'fields terminated by' clauses, which are not really applicable given files (just a picture), but maybe (hopefully), I'm wrong.

Any pointer is more than welcome!

BANNER

----------------------------------------------------------------

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi

PL/SQL Release 10.2.0.4.0 - Production

CORE 10.2.0.4.0 Production

AMT for HP - UX: release 10.2.0.4.0 - Production

NLSRTL Version 10.2.0.4.0 - Production

5 selected lines.

SQL > drop table photo_ext is serving;

Deleted table.

SQL > create table photo_ext

2 (blob_content blob

3   )

4 external organization

5 (type oracle_loader

6 default directory tmp

7 access settings

8 (records delimited by newline

9 nobadfile

10 nologfile

11 fields completed by «,»

12 field missing values are null

(13)

14 blob_filename tank (100)

15)

16 transformations column (lobfile (blob_filename) of the blob (tmp) blob_content)

17)

18 rental

19 ("54618645837_vp3.jpg",

20 "54618645837_vp4.jpg."

21 "54618645837_vp2.jpg."

22 "54618645837_vp1.jpg."

23 "54618645837.jpg."

24 "54618636860_vp6.jpg."

25 "54618636860_vp5.jpg."

26 "54618636860_vp4.jpg."

27 "54618636860_vp3.jpg."

28 '54618636860_vp2.jpg '.

29       )

30)

31 reject limit unlimited;

Table created.

SQL > select DBMS_LOB.getlength (blob_content) AS blob_length of photo_ext;

Select DBMS_LOB.getlength (blob_content) AS photo_ext blob_length

*

ERROR on line 1:

ORA-29913: error in executing ODCIEXTTABLEFETCH legend

ORA-29400: data cartridge error

KUP-04001: doing bij openen van bestand/tmp /.

ORA-06512: at "SYS." ORACLE_LOADER', line 52

You need for your names to jpg files in a text file, the name of one file per line in the list, then use the name of the text file as your location in your outer table.  In the example below, I've listed just a jpg file bridge.jpg in text file test.dat.

Scott@orcl12c > host type test.dat

Bridge.jpg

Scott@orcl12c > create or replace directory tmp as 'c:\my_oracle_files '.

2.

Created directory.

Scott@orcl12c > create table photo_ext

2 (blob_content blob)

3 the external organization

4 (type oracle_loader

5 by default directory tmp

6 access settings

7 (records delimited by newline

8 nobadfile

9 nologfile

10 fields completed by «,»

11 lack of field values are null

12 (blob_filename tank (100))

13 column transformations

14 (lobfile (blob_filename) of the blob (tmp) blob_content))

15 rental ("test.dat"))

release limit 16 unlimited

17.

Table created.

Scott@orcl12c > select DBMS_LOB.getlength (blob_content) AS photo_ext blob_length

2.

BLOB_LENGTH

-----------

511500

1 selected line.

Tags: Database

Similar Questions

  • How to convert a PDF file that contains an image (picture) with added text typewriter (numbers next to faces) in a JPEG file?

    I'm trying to convert a PDF to JPEG.  The PDF file contains a picture JPG (photo of a group of people) which I added text (numbers next to each face) using the Acrobat typewriter function.  When I use Save as and select JPEG saved file does not contain the added text.  I tried to export the file and got the same results.  Is it possible to save the PDF modified with the addition of text to a new JPEG file?

    Hi jackh46691612,

    Simply fill out the PDF using the Adobe PDF printer, make sure that you have selected "Document & annotations" in the dialog box to print before printing to the Adobe PDF printer.

    Kind regards

    Nicos

  • How to convert an AVI file that contains several video clips?

    I have an AVI file that contains two clips of concurrent synchronised video a audio track. None of the players AVI or conversion services, I tried (Handbrake, VLC, online - Convert.com) will convert or export the two clips - only clips gets output, in this case in MP4. Any help in getting the two clips on this container gratefully received!

    Why you want to convert it? He does not play in VLC?

  • need names of .dll files that contain icons

    I have win7 Home premium. I'm looking to change an icon for one of my pieces of freeware. Philippe, when I go through the process of 'change icon' I get only one choice, which is the icon even in use. I used to have a couple of files .dll residues many icons, but I lost them. "I used GOOGLE to find something on the files .dll holding icons and encuntered a suggestion that many files in C:\WINDOWS\System32 .dll ' are containers for icons. This turns out be a useless response. When I navigate to a .dll file (there are many of them) with the "change icon" shows, I get a msg of error indicating that the file in question contains no icons. Can someone provide a list of the .dll files that contain icons actually?

    The only other would Netshell.dll

    Not sure if that's what you're looking for.

  • Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value?

    Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value? I need the actual default value for an individual preference.
    Topic: config shows some default values, but I need the source from which everything: config returns to the default value.
    Any help in this direction is greatly appreciated.

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x 64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The preferences that are not hidden if they have by default are stored in two JavaScript text files in the Firefox program folder
    You can open them in a tab in Firefox through these links:
    resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js

    (702598/forum/1/702598)

  • Windows 7 is not find all files that contain the phrase that I have sought in their name

    I am looking for files with a certain expression in name. When I type top-right search gives me some files with this phrase in their name and then I cut them in the file. But when I go in the file I searched, I still see a lot of files that contain this phrase in their names that do not appear in the search.

    Hello

    1 did you change on your computer?

    2 did you receive an error message?

    Method 1:

    I suggest you run the fixit tool and check.

    Difficulty of Windows Desktop Search when it hangs or no display of results

    http://support.Microsoft.com/mats/windows_search/en-us

    Method 2:

    I also suggest you to see link and check.

    Open the troubleshooter for search and indexing

    http://Windows.Microsoft.com/en-us/Windows7/open-the-search-and-indexing-Troubleshooter

    See also:

    Improve Windows searches using the index: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/improve-Windows-searches-using-the-index-frequently-asked-questions

  • can I create a pdf file that opens only with adobe

    Can I create a pdf file that opens only with adobe

    To answer question you directly, no, you can't do nothing to prevent a valid PDF file opens in a non Adobe Reader, for better or worse.

    -Dov

  • I have a pdf file that contains the text if I copy all the text and paste it into Notepad and save the .txt file is it changes the ascii value of the text?

    I have a pdf file that contains the text if I copy all the text and paste it into Notepad and save the .txt file is it changes the ascii value of the text?

    If the encoding is ASCII? Laughing out loud

    Be well...

  • How to change the paragraph style to each paragraph that contains only one anchored object?

    Hello

    I have a document in word that should be converted in indesign. The document contains instructions, each step followed by an image.

    I managed to import the document into Indesign and applied a paragraph with numbering style to everything (text, image).

    Now, how do I change the the paragraph style to each paragraph that contains only an image? I need to get rid of the numbering.

    Thanks in advance.

    If the images are all anchored objects, you can use find/replace to find the anchor point and change the paragraph style only once for all paragraphs.

  • can not locate the jar file that contains com.bea.cache.jcache.cacheLoader

    Hello

    I'm trying to create a CEP Application in which an adapter look in the Cache. I knew that in this case, the adapter must implement the interface "com.bea.cache.jcache.cacheLoader" Interface. I see that this interface and the package (com.bea.cache.jcache) is not available in the file wlfullclient.jar.

    Can tell me where can I find the Jar file that contains the perl package, I mean any place where I can download or a steps I follow to get this jar file.

    Thanks in advance for your time,
    Regnier

    Published by: Raja Kumar April 1, 2010 08:19

    Hi reda,.

    It should be in modules/com.bea.core.cache_1.5.0.0.jar or a file with same name

    Andy

  • In the external table files forming themselves!

    Hi all

    I am facing a weird situation.

    Few days back, DB has been improved to 11g 10g R2 and we are facing the situation of the training of logfiles, throw files have joined with external tables in the directory of the OS!

    Without job is calling them and the only procedure in which these paintings have been used in the SELECT statement, are not running, even while these files form themselves and fill space in the BONE.

    Here is the version information:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    "CORE 11.2.0.3.0 Production."

    AMT for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production

    NLSRTL Version 11.2.0.3.0 - Production

    Please help in this regard.

    Thank you.

    Hi all

    Problem has been identified.

    11 g, dbms_stats.gather_stats_job runs all day until 22:00 and after every 4 hours on weekends.

    He also tried gathering statistics for external tables given through the GATHER_TABLE_STATS procedure.

    In the process, he joint/written in the log files.

    Now, I think of locking statistics from this table, so that no stats will be gathered for what is just an EXTERNAL table which is used/populated only once a month.

    Suggestions or comments?

    Thank you.

  • missing scenario of the external table file

    Hi What is happening...

    When we access the external table, and the file is not present... it throws an error? It simply returns the rows null?


    If I know I will get 5 files a.txt b.txt, c.txt, d.txt, .txt, and then I can put in the location

    LOCATION ('a.txt ',' b.txt ',' c.txt ',' d.txt', ' e.txt") creating the external table


    If for example b.txt and c.txt are not present at the time of access, it will throw an error or it just shows me the records of a, d and e?

    concerning
    REDA

    Raj,

    If you have missing files, you select will return an error. So make sure that file, even if its empty.

    You will see the following error

    CREATE TABLE ext_tab (
       empno CHAR (4),
       ename CHAR (20),
       job CHAR (20),
       deptno CHAR (2)
    )
    ORGANIZATION EXTERNAL
       ( TYPE oracle_loader DEFAULT DIRECTORY EXPORT_DIR ACCESS PARAMETERS (
       RECORDS DELIMITED BY NEWLINE BADFILE 'bad_%a_%p.bad' LOGFILE
       'log_%a_%p.log' FIELDS TERMINATED BY ',' MISSING FIELD VALUES ARE NULL
       REJECT ROWS WITH ALL NULL FIELDS ( empno  ,
       ename ,
       job   ,
       deptno) ) LOCATION ( 'emp.dat','emp.dat1' ) );
    
    select * from ext_tab;
    
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file emp.dat1 in EXPORT_DIR not found --> emp.dat1 doesn't exist but emp.dat exists
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    

    Concerning

  • Created by external computer files are read only on the file server.

    Is not a question of indesign, but have searched and searched but cannot find an answer, hoping that someone here had the same problem and find out if it can be fixed.

    Systems:

    MacPro running snow lepoard as the file server

    iMac, read and write files in the Macpro have access to shared files.

    Problem:

    When the iMac saves any type of file, or create directories everything the iMac on the Macpro system is read only the user to Macpro.

    Only solution so far has been to give the iMac user an admin on the MacPro account, then everything they create is not read-only.

    It works but it's not the best of ideas for them to access the system files and you have.

    Is there a way to make the iMac to create files that are not read only without obtaining the server version of Mac OS x or giving them administrative rights to the Macpro.

    For any idea or suggestion would be great

    Thank you

    Problem solved!

    All this is down to the property not sharing or perrmissions.

    For anyone who would need to know:

    in the dialog box get info select "property to ignore on this volume."

    tonyharmer:

    You right where people above in the apple forums where it is very useful

  • Remove the log from external Table file?

    Hello

    I don't want the log file to create each time I use an external table.

    Is is possible?

    You can specify one or more of the following options:

    NOBADFILE NODISCARDFILE NOLOGFILE
    

    In the passage of ACCESS SETTINGS of your table definition.

    I hope this helps!

  • How to read a file that contains a matrix!

    Hi all

    I have a file that I saved from matlab using this command: SAVE filename X - ascii-double - legs.

    but I don't know how to read and extract its data to draw the graph of the intensity.

    Any help please.

    Best regards

    Nams


Maybe you are looking for