SQL BLOB bakup files constantly orphaned / leased
Hi,
I'm running SQL 2012 in a VM and constantly have issues with cleaning up BLOBs due to backup leases. Is it normal for a large percentage of backup files to end up in this state?
Thanks,
Sam
Malar,
Yes, the error occurs when attempting to delete BLOBs.
The error was similar to this:
Msg 3202, Level 16, State 1, Line 1
Write on https://somestorage.blob.core.windows.net/somecontainer/MyDb.bak failed: Backup to URL received an exception from the remote endpoint. Exception Message: The remote server returned an error: (412) There is currently a lease on the blob and no lease
ID was specified in the request..
The situation I'm having is as described here:
https://msdn.microsoft.com/en-us/library/jj919145.aspx
I just modified the powershell to just check leases and I have an additional lease on every backup file created since yesterday - on transaction log and full database backups. This is non-prod database, so some of the transaction backup files are very
small.
I'm using standard methods to backup the databases and logs.
Thanks for your help,
Sam
Similar Messages
-
Store a uploaded file of type binary into a java.sql.Blob
Hi all,
I try a File-Upload and store the file in a java.sql.Blob of a MaxDB.
My Problem is, that I'm not able to import a Model-Attribute of data type byte[]. Further I don't no how to convert the uploaded value attribute of data type binary, in a java.sql.Blob.
Regards,
Silvia Hofmannhttp://www.excelsior-usa.com/jet.html
http://www.ej-technologies.com/products/exe4j/overview.html
http://jsmooth.sourceforge.net/
Distributing your Application as an executable JAR file
Google is your friend. -
Oracle.sql.BLOB and oracle.sql.STRUCT
I'm development a application in Java with oracle, to manage media files. When I try to insert into oracle , I have this problem "oracle.sql.BLOB cannot be cast to oracle.sql.STRUCT" , and I don't know what that can be ..
This is my code , please help with that.. If you have a smaple code of java and oracle to insert media , that will be a great help ..
public void loadDataFromStream(OracleConnection con)
try {
Statement s = con.createStatement();
OracleResultSet rs = (OracleResultSet)
s.executeQuery("select * from blobs where id='video2.avi' for update ");
String index = "";
while(rs.next())
index = rs.getString(1);
index+="1";
System.out.println("llego hasta aki");
// el error esta en esta linea de abajo ...
OrdVideo vidObj = (OrdVideo) rs.getCustomDatum(2, OrdVideo.getFactory());
//rs.getBfile(3);///
FileInputStream fStream = new FileInputStream("/home/jova/movie.avi");
vidObj.loadDataFromInputStream(fStream);
vidObj.getDataInFile("/home/jova/movie.avi");
fStream.close();
System.out.println(" getContentLength output : " +
vidObj.getContentLength());
OraclePreparedStatement stmt1 =
(OraclePreparedStatement) con.prepareCall("update blob_col set image = ? where id = " + index);
stmt1.setCustomDatum(1,vidObj);
stmt1.execute();
stmt1.close() ;
index+="1";
System.out.println("OK");
catch(Exception e) {
System.out.println("exception raised " + e);
System.out.println("load data from stream unsuccessful");
}I'm development a application in Java with oracle, to manage media files. When I try to insert into oracle , I have this problem "oracle.sql.BLOB cannot be cast to oracle.sql.STRUCT" , and I don't know what that can be ..
This is my code , please help with that.. If you have a smaple code of java and oracle to insert media , that will be a great help ..
public void loadDataFromStream(OracleConnection con)
try {
Statement s = con.createStatement();
OracleResultSet rs = (OracleResultSet)
s.executeQuery("select * from blobs where id='video2.avi' for update ");
String index = "";
while(rs.next())
index = rs.getString(1);
index+="1";
System.out.println("llego hasta aki");
// el error esta en esta linea de abajo ...
OrdVideo vidObj = (OrdVideo) rs.getCustomDatum(2, OrdVideo.getFactory());
//rs.getBfile(3);///
FileInputStream fStream = new FileInputStream("/home/jova/movie.avi");
vidObj.loadDataFromInputStream(fStream);
vidObj.getDataInFile("/home/jova/movie.avi");
fStream.close();
System.out.println(" getContentLength output : " +
vidObj.getContentLength());
OraclePreparedStatement stmt1 =
(OraclePreparedStatement) con.prepareCall("update blob_col set image = ? where id = " + index);
stmt1.setCustomDatum(1,vidObj);
stmt1.execute();
stmt1.close() ;
index+="1";
System.out.println("OK");
catch(Exception e) {
System.out.println("exception raised " + e);
System.out.println("load data from stream unsuccessful");
} -
SQL Server 2008 File Stream On Existing Table
Hi Folks,
I have enabled the SQL Server File Stream option on a Existing table.
1. Created a GUID Column
2. Created a File Stream Column
3. Swapped the Blob Column information into file Stream column.
4. Dropped the BLOB Column.
I could evidence, The above Step 3 Process moved out all the Blob Data into an configured Network File Group.
Ex:
Existing BLOB Data Size --> 10 GB
Once after the completion of above step 4, SQL Server is not freeing up the BLOB occupied Space 10 GB. It should have only few MB's pointer address to the network file Group?
If we create a new table with File Stream data type and insert the existing BLOB data ,Will result few MB pointer Address occupied in the newly created table. We except the similar behaviour for updating BLOB to File Stream in existing table.
Please advice me.
Thanks
Narendran
NarendranWhen you drop a column, SQL Server only mark the column as dropped, but does not reclaim the space, as that requires data to be shuffled around. You need to rebuild the clustered index (and any other index with the column) to reclaim the space. See repro
below:
CREATE TABLE myblobbie (id int NOT NULL PRIMARY KEY,
name sysname NOT NULL,
blob varchar(MAX) NOT NULL)
go
INSERT myblobbie(id, name, blob)
SELECT object_id, name, replicate(convert(varchar(MAX), name), 1000)
FROM sys.objects
go
EXEC sp_spaceused myblobbie
go
ALTER TABLE myblobbie DROP COLUMN blob
go
EXEC sp_spaceused myblobbie
go
ALTER INDEX ALL ON myblobbie REBUILD
go
EXEC sp_spaceused myblobbie
go
DROP TABLE myblobbie
Erland Sommarskog, SQL Server MVP, [email protected] -
Insert Blob column in the client errors ClassCastException: oracle.sql.BLOB
Hi,
When I try to insert and commit a Blob column(picture) I am getting the following exception.
Is there any jar I need to add or any other setup I need to do to accept the BLOB column in the olite client database.
500 Internal Server Error
javax.faces.FacesException: #{backing_XXPBWorkOrderResultsCreatePGBean.saveButton_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.sql.BLOB
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
Caused by: java.lang.ClassCastException: oracle.sql.BLOB
at oracle.lite.poljdbc.LiteEmbPreparedStmt.setVal(Unknown Source)
at oracle.lite.poljdbc.POLJDBCPreparedStatement.setObject(Unknown Source)
at oracle.lite.poljdbc.POLJDBCPreparedStatement.setObject(Unknown Source)
at oracle.lite.poljdbc.POLJDBCPreparedStatement.setObject(Unknown Source)
at oracle.lite.web.JupPreparedStatement.setObject(Unknown Source)
at oracle.jbo.server.BaseSQLBuilderImpl.bindUpdateStatement(BaseSQLBuilderImpl.java:1765)
at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:7345)
With regareds,
Kali.
OSSI.Here are examples if inserting into a Blob from text, file, and retrieving a blob.
Insert into a Blob (Text)
import java.io.FileNotFoundException;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class InsertBlob {
public static void main(String[] args) throws FileNotFoundException {
Connection con = null;
PreparedStatement stmt = null;
ResultSet rs = null;
String letterText = "some letter text";
long id = 100;
try {
DriverManager.registerDriver((Driver)(Class.forName("oracle.lite.poljdbc.POLJDBCDriver").newInstance()));
try {
con = DriverManager.getConnection("jdbc:polite:polite", "system", "manager");
} catch (SQLException sqle) {
sqle.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
try {
stmt = con.prepareStatement("INSERT INTO BLOB_TABLE (BLOB_ID, BLOB_DATA) VALUES (?, EMPTY_BLOB())");
stmt.setLong(1, id);
stmt.executeUpdate();
stmt = con.prepareStatement("SELECT BLOB_DATA FROM BLOB_TABLE WHERE BLOB_ID = ? FOR UPDATE");
stmt.setLong(1, id);
rs = stmt.executeQuery();
if (rs.next()) {
try {
oracle.lite.poljdbc.BLOB oliteBlob = null;
oliteBlob = ((oracle.lite.poljdbc.OracleResultSet) rs).getBLOB(1);
byte[] byteLetterText = letterText.getBytes();
oliteBlob.putBytes(1, byteLetterText);
con.commit();
} catch (ClassCastException e) {
e.printStackTrace();
} finally {
rs = null;
stmt = null;
con.rollback();
con = null;
} catch (SQLException e) {
e.printStackTrace();
}Insert Into a Blob (File)
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class InsertBlobFile {
public static void main(String[] args) throws FileNotFoundException {
Connection con = null;
PreparedStatement stmt = null;
long id = 200;
try {
DriverManager.registerDriver((Driver)(Class.forName("oracle.lite.poljdbc.POLJDBCDriver").newInstance()));
try {
con = DriverManager.getConnection("jdbc:polite:polite", "system", "manager");
} catch (SQLException sqle) {
sqle.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
try {
stmt = con.prepareStatement("INSERT INTO BLOB_TABLE (BLOB_ID, BLOB_DATA) VALUES (?, ?)");
stmt.setLong(1, id);
File fBlob = new File ( "C:\\BLOB_TEST_FILE.TXT" );
FileInputStream is = new FileInputStream ( fBlob );
stmt.setBinaryStream (2, is, (int) fBlob.length() );
stmt.executeUpdate();
con.commit();
} catch (SQLException e) {
e.printStackTrace();
}Retrieve from Blob (Write to file)
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.sql.Blob;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class RetrieveBlob {
final static int bBufLen = 32 * 1024;
final static String outFile = "C:\\BLOB_OUTPUT_FILE.TXT";
public static void main(String[] args) throws IOException {
Connection con = null;
PreparedStatement stmt = null;
ResultSet rs = null;
try {
DriverManager.registerDriver((Driver)(Class.forName("oracle.lite.poljdbc.POLJDBCDriver").newInstance()));
try {
con = DriverManager.getConnection("jdbc:polite:polite", "system", "manager");
} catch (SQLException sqle) {
sqle.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
try {
stmt = con.prepareStatement("SELECT * FROM BLOB_TABLE");
rs = stmt.executeQuery();
while(rs.next()) {
int id = rs.getInt(1);
Blob value = rs.getBlob(2);
System.out.println(id + " | " + value);
writeBlobToFile(value);
} catch (SQLException e) {
e.printStackTrace();
public static long readFromBlob(Blob blob, OutputStream out)
throws SQLException, IOException {
InputStream in = blob.getBinaryStream();
int length = -1;
long read = 0;
byte[] buf = new byte[bBufLen];
while ((length = in.read(buf)) > 0) {
out.write(buf, 0, length);
read += length;
in.close();
return read;
public static long writeBlobToFile(Blob blob)
throws IOException, SQLException {
long wrote = 0;
OutputStream fwriter = new FileOutputStream(outFile);
wrote = readFromBlob(blob, fwriter);
fwriter.close();
return wrote;
} -
Writing blobs to files in 8.1.7
(Duplicate post of a message in the SQL forum - I belatedly realized it might belong under Java...)
I have got several thousand blobs in an Oracle 8.1.7 instance that I need to write to files.
I found sample procedures for doing this listed below.
I got them to compile and execute. But, when I do, the resulting file comes out much shorter than it should be (742 bytes vs. 2595), and unreadable.
Does anyone know how to correct this?
Thanks much,
Natasha
From:
http://www.oracle-base.com/articles/8i/ExportBlob.php
CREATE OR REPLACE JAVA SOURCE NAMED "BlobHandler" AS
import java.lang.*;
import java.sql.*;
import oracle.sql.*;
import java.io.*;
public class BlobHandler
public static void ExportBlob(String myFile, BLOB myBlob) throws Exception
// Bind the image object to the database object
// Open streams for the output file and the blob
File binaryFile = new File(myFile);
FileOutputStream outStream = new FileOutputStream(binaryFile);
InputStream inStream = myBlob.getBinaryStream();
// Get the optimum buffer size and use this to create the read/write buffer
int size = myBlob.getBufferSize();
byte[] buffer = new byte[size];
int length = -1;
// Transfer the data
while ((length = inStream.read(buffer)) != -1)
outStream.write(buffer, 0, length);
outStream.flush();
// Close everything down
inStream.close();
outStream.close();
ALTER java source "BlobHandler" compile;
show errors java source "BlobHandler"
CREATE OR REPLACE PROCEDURE ExportBlob (p_file IN VARCHAR2,
p_blob IN BLOB)
AS LANGUAGE JAVA
NAME 'BlobHandler.ExportBlob(java.lang.String, oracle.sql.BLOB)';
EXEC Dbms_Java.Grant_Permission( -
'USER', -
'SYS:java.io.FilePermission', -
'C:\temp\*', -
'read,write,execute,delete');
EXEC dbms_java.grant_permission('USER','SYS:java.lang.RuntimePermission','writeFileDescriptor', null);
EXEC dbms_java.grant_permission('USER','SYS:java.lang.RuntimePermission','readFileDescriptor', null);
EXEC dbms_java.grant_permission('USER','SYS:java.util.PropertyPermission','C:\test\*', 'read,write');
DECLARE
v_blob BLOB;
cursor c1 is
select detail
from blobtable
where row_id = 1006;
BEGIN
open c1;
fetch c1 into v_blob;
ExportBlob('c:\temp\test.txt',v_blob);
close c1;
END;i have 9i and it works
SQL> drop type t_b
2 /
Type dropped.
SQL> drop type t_a
2 /
Type dropped.
SQL> create type t_a as object (kol_a number)
2 /
Type created.
SQL> create type t_b as table of t_a
2 /
Type created.
SQL> create table t_c (kol_c1 number, kol_c2 t_a);
Table created.
SQL> alter type t_a add attribute (d DATE) CASCADE NOT INCLUDING TABLE DATA;
Type altered.
SQL>
SQL> desc t_a
Name Null? Type
KOL_A NUMBER
D DATE
SQL> desc t_c
Name Null? Type
KOL_C1 NUMBER
KOL_C2 T_ANot sure about 8.
Khurram -
Parsing BLOB (CSV file with special characters) into table
Hello everyone,
In my application, user uploads a CSV file (it is stored as BLOB), which is later read and parsed into table. The parsing engine is shown bellow...
The problem is, that it won't read national characters as Ö, Ü etc., they simply dissapear.
Is there any CSV parser that supports national characters? Or, said in other words - is it possible to read BLOB by characters (where characters can be Ö, Ü etc.)?
Regards,
Adam
|
| helper function for csv parsing
|
+-----------------------------------------------*/
FUNCTION hex_to_decimal(p_hex_str in varchar2) return number
--this function is based on one by Connor McDonald
--http://www.jlcomp.demon.co.uk/faq/base_convert.html
is
v_dec number;
v_hex varchar2(16) := '0123456789ABCDEF';
begin
v_dec := 0;
for indx in 1 .. length(p_hex_str) loop
v_dec := v_dec * 16 + instr(v_hex, upper(substr(p_hex_str, indx, 1))) - 1;
end loop;
return v_dec;
end hex_to_decimal;
|
| csv parsing
|
+-----------------------------------------------*/
FUNCTION parse_csv_to_imp_table(in_import_id in number) RETURN boolean IS
PRAGMA autonomous_transaction;
v_blob_data BLOB;
n_blob_len NUMBER;
v_entity_name VARCHAR2(100);
n_skip_rows INTEGER;
n_columns INTEGER;
n_col INTEGER := 0;
n_position NUMBER;
v_raw_chunk RAW(10000);
v_char CHAR(1);
c_chunk_len number := 1;
v_line VARCHAR2(32767) := NULL;
n_rows number := 0;
n_temp number;
BEGIN
-- shortened
n_blob_len := dbms_lob.getlength(v_blob_data);
n_position := 1;
-- Read and convert binary to char
WHILE (n_position <= n_blob_len) LOOP
v_raw_chunk := dbms_lob.substr(v_blob_data, c_chunk_len, n_position);
v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk)));
n_temp := ascii(v_char);
n_position := n_position + c_chunk_len;
-- When a whole line is retrieved
IF v_char = CHR(10) THEN
n_rows := n_rows + 1;
if n_rows > n_skip_rows then
-- Shortened
-- Perform some action with the line (store into table etc.)
end if;
-- Clear out
v_line := NULL;
n_col := 0;
ELSIF v_char != chr(10) and v_char != chr(13) THEN
v_line := v_line || v_char;
if v_char = ';' then
n_col := n_col+1;
end if;
END IF;
END LOOP;
COMMIT;
return true;
EXCEPTION
-- some exception handling
END;Uploading CSV files into LOB columns and then reading them in PL/SQL: [It’s|http://forums.oracle.com/forums/thread.jspa?messageID=3454184�] Re: Reading a Blob (CSV file) and displaying the contents Re: Associative Array and Blob Number of rows in a clob doncha know.
Anyway, it woudl help if you gave us some basic information: database version and NLS settings would seem particularly relevant here.
Cheers, APC
blog: http://radiofreetooting.blogspot.com -
Convert canvas.toDataURL('image/jpeg') to java.sql.Blob.
I am using oracle adf so I am able to action a backing bean from javascript and pass in parameters as a map. I pass in the canvas.toDataURL('image/jpeg') which I then try to decode in my bean. Using BASE64Decoder and the converting the bytearray to a file I can see the image is corrupted as I can't open the file thus converting the bytearray to blob is also a waste.
Has anyone any ideas on base64 encoding from canvas.toDataURL to file or Blob?Use Case:
A jsf page that enables a user to take photos using the HTML5 canvas feature - interact with webcam -, take photos and upload to profile
1. I have created the jsf page with the javascript below; this pops up as a dialog and works okay and onclick an upload image, triggers the snapImage javascript function below and sends the imgURL parameter to the serverside managedbean
<!-- java script-->
function snapImage(event){
var canvas = AdfPage.PAGE.findComponent('canvas');
AdfCustomEvent.queue(event.getSource(),"getCamImage",{imgURL:canvas.toDataURL('image/jpeg'),true);
event.cancel();
<!-- bean -->
public void getCamImage(ClientEvent ce){
String url=(String)ce.getAttributes().get("imgURL");
decodeBase64URLToBlob(url);
private BlobDomain decodeBaseB4URLToBlob(String url64){
BASE64Decoder de=new BASE64Decoder();
byte[] bytes=de.decode(url64);
File file=new File("abc.jpg");
InputStream in = new ByteArrayInputStream(bytes);
BufferedImage bImageFromConvert = ImageIO.read(in);
in.close();
ImageIO.write(bImageFromConvert, "jpg", file);
return createBlobDomainFromFile(file);
----problem---
Accessing the generated jpeg file shows the image is corrupted, probably missing bytes or encode/decoder issues.and the blob image after uploading to database is saved as a binary stream which ondownload doesnt render as an image or anything i know of.
Is there anyways of achieving the conversion without errors? -
Hi,
I seldom use the BLOB. Here is the coding that creates a BLOB.
private BLOB getBlob(byte[] str, Connection con) throws SQLException, IOException {
BLOB blob = BLOB.createTemporary(con, true, BLOB.DURATION_SESSION);
blob.open(BLOB.MODE_READWRITE);
OutputStream writer = blob.getBinaryOutputStream();
writer.write(str);
writer.flush();
writer.close();
blob.close();
return blob;
After inserting this BLOB into database table via ojdbc, BLOB.freeTemporary() is called.
BLOB blob = getBlob(compressedClaim,connStore);
rsImagePstmt.setObject(4,blob);
rsImagePstmt.executeUpdate();
BLOB.freeTemporary( blob );
Sometimes it's running ok and finished properly. Sometimes I got the following exception after running 2.5 hours.
Thanks a lot for any suggestion and help. We use oracle 10.2 and java1.4 library here.
> Exception: java.lang.NullPointerException
> at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:669)
> at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:602)
> at oracle.jdbc.driver.T2CConnection.createTemporaryBlob(T2CConnection.java:2039)
> at oracle.sql.BLOB.createTemporary(BLOB.java:590)
If I ran in the debug mode, I got the following errors after 2.5 hours:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x62F0BCF4
Function=Java_oracle_jdbc_driver_T2CStatement_t2cFetchDmlReturnParams+0x594
Library=C:\oracle\product\10.2.0\client\BIN\ocijdbc10.dll
Current Java thread:
at oracle.jdbc.driver.T2CConnection.lobCreateTemporary(Native Method)
at oracle.jdbc.driver.T2CConnection.createTemporaryBlob(T2CConnection.java:2039)
at oracle.sql.BLOB.createTemporary(BLOB.java:590)
at com.viant.consumer.impl.RateSheetConsumer.getBlob(RateSheetConsumer.java:386)
at com.viant.consumer.impl.RateSheetConsumer.finishRateSheet(RateSheetConsumer.java:293)
at com.viant.consumer.impl.RateSheetConsumer.run(RateSheetConsumer.java:156)
at java.lang.Thread.run(Thread.java:534)
Dynamic libraries:
0x00400000 - 0x0040B000 C:\jdk1.4\bin\javaw.exe
0x77220000 - 0x7735C000 C:\Windows\SYSTEM32\ntdll.dll
0x76CE0000 - 0x76DB4000 C:\Windows\system32\kernel32.dll
0x75620000 - 0x7566B000 C:\Windows\system32\KERNELBASE.dll
0x758D0000 - 0x75970000 C:\Windows\system32\ADVAPI32.dll
0x75C10000 - 0x75CBC000 C:\Windows\system32\msvcrt.dll
0x75B20000 - 0x75B39000 C:\Windows\SYSTEM32\sechost.dll
0x77170000 - 0x77211000 C:\Windows\system32\RPCRT4.dll
0x75B40000 - 0x75C09000 C:\Windows\system32\USER32.dll
0x75D50000 - 0x75D9E000 C:\Windows\system32\GDI32.dll
0x77440000 - 0x7744A000 C:\Windows\system32\LPK.dll
0x76F90000 - 0x7702D000 C:\Windows\system32\USP10.dll
0x77360000 - 0x7737F000 C:\Windows\system32\IMM32.DLL
0x75A00000 - 0x75ACC000 C:\Windows\system32\MSCTF.dll
0x62A20000 - 0x62A2C000 C:\PROGRA~1\NETINST\NIAMH.DLL
0x75330000 - 0x75368000 C:\PROGRA~1\SOPHOS\SOPHOS~1\SOPHOS~1.DLL
0x77420000 - 0x77425000 C:\Windows\system32\PSAPI.DLL
0x752B0000 - 0x752C5000 C:\Windows\system32\AMINIT32.DLL
0x08000000 - 0x08139000 C:\jdk1.4\jre\bin\client\jvm.dll
0x73510000 - 0x73542000 C:\Windows\system32\WINMM.dll
0x75210000 - 0x7525C000 C:\Windows\system32\apphelp.dll
0x10000000 - 0x10007000 C:\jdk1.4\jre\bin\hpi.dll
0x00270000 - 0x0027E000 C:\jdk1.4\jre\bin\verify.dll
0x00280000 - 0x00299000 C:\jdk1.4\jre\bin\java.dll
0x002A0000 - 0x002AD000 C:\jdk1.4\jre\bin\zip.dll
0x003D0000 - 0x003EC000 C:\jdk1.4\jre\bin\jdwp.dll
0x002B0000 - 0x002B5000 C:\jdk1.4\jre\bin\dt_socket.dll
0x773E0000 - 0x77415000 C:\Windows\system32\ws2_32.dll
0x75970000 - 0x75976000 C:\Windows\system32\NSI.dll
0x736D0000 - 0x736E0000 C:\Windows\system32\NLAapi.dll
0x71BE0000 - 0x71BF0000 C:\Windows\system32\napinsp.dll
0x71BA0000 - 0x71BB2000 C:\Windows\system32\pnrpnsp.dll
0x74D50000 - 0x74D8C000 C:\Windows\System32\mswsock.dll
0x74C10000 - 0x74C54000 C:\Windows\system32\DNSAPI.dll
0x71BF0000 - 0x71BF8000 C:\Windows\System32\winrnr.dll
0x71C30000 - 0x71C57000 C:\Program Files\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
0x75DA0000 - 0x75DF7000 C:\Windows\system32\SHLWAPI.dll
0x74370000 - 0x7438C000 C:\Windows\system32\IPHLPAPI.DLL
0x74820000 - 0x74827000 C:\Windows\system32\WINNSI.DLL
0x721E0000 - 0x72218000 C:\Windows\System32\fwpuclnt.dll
0x71C20000 - 0x71C26000 C:\Windows\system32\rasadhlp.dll
0x74840000 - 0x74857000 C:\ProgramData\Sophos\Web Intelligence\swi_ifslsp.dll
0x74830000 - 0x74839000 C:\Windows\system32\VERSION.dll
0x76090000 - 0x76CDB000 C:\Windows\system32\SHELL32.dll
0x74810000 - 0x74815000 C:\Windows\System32\wshtcpip.dll
0x01240000 - 0x0124F000 C:\jdk1.4\jre\bin\net.dll
0x62F00000 - 0x62F13000 C:\oracle\product\10.2.0\client\BIN\ocijdbc10.dll
0x08450000 - 0x084A9000 C:\oracle\product\10.2.0\client\bin\OCI.dll
0x7C340000 - 0x7C396000 C:\Windows\system32\MSVCR71.dll
0x61C20000 - 0x61E77000 C:\oracle\product\10.2.0\client\bin\OraClient10.Dll
0x60870000 - 0x60956000 C:\oracle\product\10.2.0\client\bin\oracore10.dll
0x60A80000 - 0x60B47000 C:\oracle\product\10.2.0\client\bin\oranls10.dll
0x63690000 - 0x636A8000 C:\oracle\product\10.2.0\client\bin\oraunls10.dll
0x60EB0000 - 0x60EB7000 C:\oracle\product\10.2.0\client\bin\orauts.dll
0x75770000 - 0x758CC000 C:\Windows\system32\ole32.dll
0x636B0000 - 0x636B6000 C:\oracle\product\10.2.0\client\bin\oravsn10.dll
0x60FA0000 - 0x61098000 C:\oracle\product\10.2.0\client\bin\oracommon10.dll
0x63430000 - 0x63457000 C:\oracle\product\10.2.0\client\bin\orasnls10.dll
0x08C40000 - 0x091B8000 C:\oracle\product\10.2.0\client\bin\orageneric10.dll
0x091C0000 - 0x09337000 C:\oracle\product\10.2.0\client\bin\oraxml10.dll
0x014F0000 - 0x01501000 C:\Windows\system32\MSVCIRT.dll
0x60960000 - 0x60A77000 C:\oracle\product\10.2.0\client\bin\oran10.dll
0x62740000 - 0x62780000 C:\oracle\product\10.2.0\client\bin\oranl10.dll
0x62790000 - 0x627A8000 C:\oracle\product\10.2.0\client\bin\oranldap10.dll
0x627F0000 - 0x628FD000 C:\oracle\product\10.2.0\client\bin\orannzsbb10.dll
0x62530000 - 0x62583000 C:\oracle\product\10.2.0\client\bin\oraldapclnt10.dll
0x62670000 - 0x6268B000 C:\oracle\product\10.2.0\client\bin\orancrypt10.dll
0x71230000 - 0x71237000 C:\Windows\system32\WSOCK32.dll
0x75CC0000 - 0x75D4F000 C:\Windows\system32\OLEAUT32.dll
0x62920000 - 0x6296D000 C:\oracle\product\10.2.0\client\bin\oranro10.dll
0x626B0000 - 0x626B7000 C:\oracle\product\10.2.0\client\bin\oranhost10.dll
0x62660000 - 0x62666000 C:\oracle\product\10.2.0\client\bin\orancds10.dll
0x629C0000 - 0x629C8000 C:\oracle\product\10.2.0\client\bin\orantns10.dll
0x09340000 - 0x096B5000 C:\oracle\product\10.2.0\client\bin\orapls10.dll
0x07B80000 - 0x07B89000 C:\oracle\product\10.2.0\client\bin\oraslax10.dll
0x63080000 - 0x63285000 C:\oracle\product\10.2.0\client\bin\oraplp10.dll
0x61ED0000 - 0x61F68000 C:\oracle\product\10.2.0\client\bin\orahasgen10.dll
0x62AB0000 - 0x62B24000 C:\oracle\product\10.2.0\client\bin\oraocr10.dll
0x084B0000 - 0x084F9000 C:\oracle\product\10.2.0\client\bin\oraocrb10.dll
0x73860000 - 0x73871000 C:\Windows\system32\NETAPI32.dll
0x74B00000 - 0x74B09000 C:\Windows\system32\netutils.dll
0x74F80000 - 0x74F99000 C:\Windows\system32\srvcli.dll
0x73850000 - 0x7385F000 C:\Windows\system32\wkscli.dll
0x73840000 - 0x7384F000 C:\Windows\system32\SAMCLI.DLL
0x74BE0000 - 0x74C02000 C:\Windows\system32\LOGONCLI.DLL
0x62980000 - 0x62991000 C:\oracle\product\10.2.0\client\bin\orantcp10.dll
0x63520000 - 0x635BB000 C:\oracle\product\10.2.0\client\bin\orasql10.dll
0x751E0000 - 0x751FB000 C:\Windows\system32\SspiCli.dll
0x70890000 - 0x7089B000 C:\Windows\system32\cscapi.dll
0x75290000 - 0x7529C000 C:\Windows\system32\CRYPTBASE.dll
0x740B0000 - 0x740F0000 C:\Windows\system32\uxtheme.dll
0x09B80000 - 0x09C92000 C:\jdk1.4\jre\bin\awt.dll
0x72870000 - 0x728C1000 C:\Windows\system32\WINSPOOL.DRV
0x09810000 - 0x09861000 C:\jdk1.4\jre\bin\fontmanager.dll
0x0ACF0000 - 0x0ADD7000 C:\Windows\system32\ddraw.dll
0x73AA0000 - 0x73AA6000 C:\Windows\system32\DCIMAN32.dll
0x76DF0000 - 0x76F8D000 C:\Windows\system32\SETUPAPI.dll
0x753F0000 - 0x75417000 C:\Windows\system32\CFGMGR32.dll
0x75450000 - 0x75462000 C:\Windows\system32\DEVOBJ.dll
0x73C80000 - 0x73C93000 C:\Windows\system32\dwmapi.dll
0x0ADE0000 - 0x0AE71000 C:\Windows\system32\igdumdx32.dll
0x0AF10000 - 0x0B3E1000 C:\Windows\system32\igdumd32.dll
0x742C0000 - 0x742E5000 C:\Windows\system32\PowrProf.dll
0x66150000 - 0x6621C000 C:\Windows\system32\D3DIM700.DLL
0x76DC0000 - 0x76DEA000 C:\Windows\system32\imagehlp.dll
0x70BF0000 - 0x70CDB000 C:\Windows\system32\dbghelp.dll
Heap at VM Abort:
Heap
def new generation total 4608K, used 291K [0x10010000, 0x10510000, 0x12770000)
eden space 4096K, 5% used [0x10010000, 0x10046aa0, 0x10410000)
from space 512K, 14% used [0x10490000, 0x104a2208, 0x10510000)
to space 512K, 0% used [0x10410000, 0x10410000, 0x10490000)
tenured generation total 60544K, used 56437K [0x12770000, 0x16290000, 0x30010000)
the space 60544K, 93% used [0x12770000, 0x15e8d4b8, 0x15e8d600, 0x16290000)
compacting perm gen total 12800K, used 12682K [0x30010000, 0x30c90000, 0x34010000)
the space 12800K, 99% used [0x30010000, 0x30c72900, 0x30c72a00, 0x30c90000)
Local Time = Thu Oct 17 11:29:35 2013
Elapsed Time = 9003
# The exception above was detected in native code outside the VMHi!
It seems you can do this:
try {
conn = new OracleDriver().defaultConnection(); graphblob = oracle.sql.BLOB.createTemporary(conn, false,oracle.sql.BLOB.DURATION_CALL); // must init
System.out.println("Blob is init");
} catch ( java.sql.SQLException sEx ) {
throw new RuntimeException ("No connection", sEx);
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1285601748584
http://www.unix.org.ua/orelly/oracle/guide8i/ch09_08.htm
/Bjoern -
Using oracle.sql.BLOB data type in Java Class to pass in a Blob
All,
I'm trying to pass in a BLOB from PL/SQL to a Java Class, but the BLOB isn't passed correctly.
When I check the length of the BLOB in PL/SQL its different from the length of the BLOB in java.
I'm using DB 11g and the ojdbc5.jar file in my java classes.
The java function uses the oracle.sql.BLOB type to get the parameter.
The java class is loaded into the DB and called via a PL/SQL function.
Kind regards,
NathalieThe question is indeed a little ambigious defined ;o)
When I pass the BLOB to the java method and invoke BLOB.getBytes() and then get the length of the BLOB in java the length of the BLOB is bigger than in PL/SQL.
When I use the method 'getBinaryStream' and write this to a buffer, the code works.
I will log a tar regarding the getBytes()-method to ask for more detailed information regarding the methods provided using the JDBC Drivers.
Kind regards,
Nathalie -
Importing oracle.sql.BLOB through SQL Loader
Hello,
Currently the system we have creates .sql files and executes them. This takes a long time, so we're attempting to change to using SQL Loader. The one problem I'm having that I can't seem to fix is finding out how to imitate the behavior of this SQL statement through SQL Loader:
INSERT INTO KRSB_QRTZ_BLOB_TRIGGERS (BLOB_DATA,TRIGGER_GROUP,TRIGGER_NAME)
VALUES (oracle.sql.BLOB@515263,'KCB-Delivery','PeriodicMessageProcessingTrigger')
I tried creating a lobfile and placing the text oracle.sql.BLOB@515263 within it this way
INTO TABLE KRSB_QRTZ_BLOB_TRIGGERS
WHEN tablename = 'KRSB_QRTZ_BLOB_TRIGGERS'
FIELDS TERMINATED BY ',' ENCLOSED BY '##'
TRAILING NULLCOLS
tablename FILLER POSITION(1),
TRIGGER_NAME CHAR(80),
TRIGGER_GROUP CHAR(80),
ext_fname FILLER,
BLOB_DATA LOBFILE(ext_fname) TERMINATED BY EOF
However, as expected, it merely loaded the text "oracle.sql.BLOB@515263" into the database. So does anyone have any ideas of how to imitate that insert statement through SQL Loader? The only information I have available is the string "oracle.sql.BLOB@515263", no other files or anything to aid with actually getting the binary data.
When the .sql file is run with that insert statement in it, a 1.2kb BLOB is inserted into the database versus a 22 byte BLOB that contains nothing useful when done through SQL Loader.
AlexMy preference is DBMS_LOB.LOADFROMFILE
http://www.morganslibrary.org/reference/dbms_lob.html
did you try it? -
Creating/constructing a java.sql.Blob and writing to Oracle with jdbc
I'm trying to understand how to create a blob from an image file to write it to a Oracle database using jdbc.
I know there'a a getBinaryStream method in java.sql.Blob to which I can write the files byte array, but how do I create an actual blob in the first place. All examples I've seen initialise the blob from an exiting Blob field in a database which I do not have filled yet
thanksIn general, you will do something like the following:
Ensure setAutoCommit is false
INSERT INTO foo (blob_column) values (empty_blob());
SELECT blob_column FROM foo FOR UPDATE;
Call getBlob() on the ResultSet
Cast it to Oracle's specific BLOB (different object)
Call getBinaryOutputStream() on the BLOB
Pipe your data
Commit (very importatnt as FOR UPDATE will lock that row)- Saish -
I am trying to extract a file name and its data from the database. The file data is stored as HUGEBLOB in the table. The file contains data which I found by downloading it directly from table using TOAD. However when I try to fetch the data throughh Java code :
Blob file = rs.getBlob("file_data");
I am getting null pointer in the next line which is:
InputStream inputStream = ((oracle.sql.BLOB)file).getBinaryStream();
Can anyone suggest why it is giving null exception and what is the solution to it.Have a go at [url http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java.html]this link. Note the drawBlob method and how it 'gets' the BLOB out.
-
Hi Folks,
We are using oracle.sql.BLOB to store some file information into the database.
Allocation of the temp space is done as below
BLOB blob=BLOB.createTemporary(conn, false, BLOB.DURATION_SESSION); // this results in the usage of TEMP space from database
And subsequent release is done as below
blob.freeTemporary(); // this should have release the space from the database.
This is on Oracle 10g, Java 1.6, ojdbc6.jar There are no exceptions. Even a simple program results in the same.
Anybody faced something similar? Any pointers would be really appreciated.
Thanks,
Deva
Edited by: user10728663 on Oct 11, 2011 5:33 AMThanks a lot for the information.
Memory is fine. And I am able to reproduce this within the scope of a simple example as well.
Would you have any reference to the thread which had earlier reported this as a bug. I tried a reasonable amount of search in the forum, but no success.
Thanks very much for any pointers. -
Af:inputFile componet - want to use class oracle.sql.BLOB instead
Hi,
I want to use the class oracle.sql.BLOB to get a blob from an input field. Can I use another ADF component instead of the af:inputFile component?
According to this site: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/apidocs/oracle/adf/view/faces/component/core/input/CoreInputFile.html - The "value" property of an inputFile component will be set to an instance of the oracle.adf.view.faces.model.UploadedFile class.
From the Oracle JDeveloper 10g (10.1.3) Documentationdocumentation:
UploadedFile file = (UploadedFile) event.getNewValue();
//Here's where we could call file.getInputStream()
I don't want to use getInputStream().
I am working with JDev, oracle ADF, and Toplink.
Any help is appreciated.
LinHi,
http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
Example 85
http://otn.oracle.com/products/jdev/tips/muench/uploadedfiletoblob/UploadedFileToBlob.zip
Frank
Maybe you are looking for
-
Install failed with exit code 11?
Hi, I am trying to deploy a language pack and set the override language to English-US which I have created 2 programs for in my package. When the first program runs I am getting an error in the execmgr.log that "Install failed with exit code 11" Any
-
Can no longer log into ECP on Exchange 2013
I am no longer able to log into my Exchange 2013 SP1 ECP site. Here are a few items to consider: Installed replacement UC on 5/7/14. Configured services POP, IMAP, SMTP, IIS. Removed IIS from existing UC which still had 6 days of life. Both certs
-
Receiver SOAP channel error-- Cant parse the document; HTTP 200 OK
Hi All, I am facing below error in SOAP receiver communication channel SOAP: Error occurred: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Cant parse the document; HTTP 200 OK If I use "Do Not se SOAP Enve
-
Tutorial Announcement :: Designing A Search Engine Friendly Website ::
Designing A Search Engine Friendly Website There are many factors that hinder search engines from ranking Websites for many keywords. When web development companies create Websites, often they do not create Websites for the search engines. Usually, t
-
Could not connect to tablet. (3001)
Hi I'm in South Africa, and recently got the Playbook. While trying to set it up, at the point where it needs to do the software up date it keeps throwing up an error saying "Could not connect to tablet. (3001)". Can anyone help me with this? Thanks