Skip to Main Content

Oracle Forms

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.

ORA-06508: PL/SQL: could not find program unit being called

2894370Nov 16 2017 — edited Jan 22 2018

We get randomly the error  ORA-06508: PL/SQL: could not find program unit being called...

We use Weblogic and forms / reports 12.2.1 and Oracle Database 11g Release 11.2.0.4.0 - 64bit Production.

We migrated our forms, reports, menu, plx from 10g to 12c.

Every source have been recompiled.

I saw this error for verions 11.., but not for 12c.

Is there a patch or a parameter to change to avoid this error?

The current forms/reports version on the web is 12.2.1.3, is it possible to migrate from 12.2.1 to 12.2.1.3 because install from 0 take a long time?

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 19 2018
Added on Nov 16 2017
19 comments
5,399 views