Well, Well, everyone likes their computer to be really really fast. 2 years back i just bought Dell N5110 laptop with Core i7 , 6GB RAM, 1 GB G-force graphics card and 720GB 5400 RPM HDD . Laptop is good with configuration wise but still bit of slow. Booting computer would take like 4-5 mins and opening application is even slow, i tried to format the computer but after 2-3 weeks with all necessary software installation, things again starts to get slow 🙁 poor me. After lots of try, finally i decided to buy SSD hard disk which is expensive but i managed to buy Kingston SSD 120GB (SV300S37A 450MB/s Read and Write) which cost me like 2790 Baht (87$) . Now its been like 2 month and computer start ups in 10sec and everything is fast fast. Now I can say one this one my best investment. so have you ever thought to upgrade your computer? think about SSD as well. i can say you wont regret it 🙂
And here is my Kingston Benchmark:
You can find lots of procedure or steps to load file from filesystem to database.
one of the easy method is to make a function.
Sample of function:-
CREATE OR REPLACE FUNCTION FN_FILE_BLOB(V_FILENAME VARCHAR2, V_DIRECTORY VARCHAR2) RETURN BLOB
SRC_LOC := BFILENAME(V_DIRECTORY, V_FILENAME);
DBMS_LOB.CREATETEMPORARY(lob_loc => dest_loc, cache => true , dur => dbms_lob.session);
DBMS_LOB.LOADFROMFILE(dest_lob => dest_loc, src_lob => src_loc , amount => DBMS_LOB.getLength(src_loc));
WHEN Others THEN
SELECT FN_FILE_BLOB('image1.jpg','DUMP_DIR') FROM DUAL;
There are many ways to copy Blob column from one server to Another like,
1. Generate file from blob in source server, and import file into destination server using Tools like SQL developer, TOAD.
2. Using DBLink,
INSERT INTO BLOB_TEST SELECT BLOB_COL1 FROM TEST_BLOB@SOURCEDB;
3. I have recently discovered, you can make dynamic insert statement and run as normal insert statement in destination server.
Example here: sample_blob
Scripts to make dynamic script can be written as
Set serveroutput on
SELECT BLOB_COL INTO M FROM TEST_BLOB;
while (n+l_limit<=length(m)) loop
Dbms_Output.Put_Line('INSERT INTO blob_test VALUES (c,9);