Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Oracle VM and Linux Support

630557Jan 22 2010 — edited Jan 27 2010
Hi all:

We are considering a pilot project, with Linux and VM, but with using VM Ware since we already have the expertise in house with VM Ware.

I have a couple questions,

1. If you have VMWare and Oracle VM experience, what are the pros/cons in comparison of Oracle VM vs. VMWare? Which do you feel is better?

2. In regards to Support and licensing, if you go with Oracle Enterprise Linux, you can get support thru Oracle, do you have to buy additional support for Oracle VM?

3. What is the approximately OEL support cost per processor? Is it still approx. $1,500 per proc?

I'm attempting to get the powers that be to seriously consider Oracle VM and OEL rather than VM Ware and Red Hat. I suspect that we would have to license VMWare, then, purchase Red Hat Support. I know, I know, OEL is a recompile of Red Hat. But, I don't believe VMWare supports OEL as a guest OS. Where I'm going with this is Oracle already provides a linux image, so why not get your support via Oracle since you are already getting support for your Oracle products like databases, milddleware, etc.

Thanks,
Pete's
Anyhow, your info would be

Comments

66232
Hi,
attached two functions one for dumping the other for loading ...

public class Test {
private File fHandle = null;
private static String PATH = null ;
private BLOB bHandle = null;
private String fileName = null ;

protected void dumpBlobToFile() throws SQLException
{

FileOutputStream outstream = null;
InputStream instream = null;

try {
getFileHandle(); // Gets a new file handle.
if (bHandle != null)
instream = bHandle.getBinaryStream(); // Get the blob input stream
else
return ;

if (outstream == null)
outstream = new FileOutputStream(fHandle); // Get the file output stream.


// Read the input stream and write the output stream by chunks.
byte[] chunk = new byte[bHandle.getChunkSize()];
int i = -1;

while ((i = instream.read(chunk)) != -1) {
outstream.write(chunk, 0, i);
}
outstream.flush();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {

// Close the input and output stream.
if (instream != null) {
instream.close();
instream = null ;
}

if (outstream != null) {
outstream.close();
outstream = null ;
}

} catch (IOException e) {
e.printStackTrace();
}
}
}
protected void dumpFileToBlob() throws SQLException
{

FileInputStream instream = null;
OutputStream outstream = null;

try {
getFileHandle(); // Gets a new file handle.

if (bHandle != null) // Get the clob output stream
outstream = bHandle.getBinaryOutputStream();
else
return ;

if (instream == null)
instream = new FileInputStream(fHandle); // Get the file input stream.


// Read the input stream and write the output stream by chunks.
byte[] chunk = new byte[bHandle.getChunkSize()];
int i = -1;

while ((i = instream.read(chunk)) != -1) {
outstream.write(chunk, 0, i);
}
} catch (IOException e) {
e.printStackTrace();
} finally {
try {

// Close the input and output stream.
if (instream != null) {
instream.close();
instream = null ;
}

if (outstream != null) {
outstream.close();
outstream = null ;
}

} catch (IOException e) {
e.printStackTrace();
}
}
}

public void setPath(String path)
{
this.PATH = path ;
}
/**
* Get a file handle
*/
private void getFileHandle()
{
fHandle = new File(PATH + fileName);
}
}

EA
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 24 2010
Added on Jan 22 2010
5 comments
3,184 views