Internal CLOB.getAsciiStream in GR 11, 2 problem with temp CLOB JVM
HelloI have a problem with the help of a temporary CLOB in PL/SQL that will be written with the Java Code that runs inside the Oracle (internal JVM) database. The code works without problem in Oracle 11 g R1 (11.1.0.7.0) but not with Oracle 11 g R2 (12.2.0.1.0). The example follows:
< b > Table Description: < /b >
NAME Null? Type
------------------------------- --------- -----
ID NOT NULL NUMBER(*,0)
TYPE_DE_FICHIER NOT NULL NUMBER(*,0)
INSERT_DATE NOT NULL DATE
NUMBER(*,0) NULL UNPROCESSED
LFIELD001 CLOB (4000)
BFIELD001 BLOB (4000)
FILE_NAME VARCHAR2 (4000)
< b > PL/SQL example Run: < /b >
DECLARE
CLB CLOB.
p_result NUMBER; p_err VARCHAR2 (4000);
t the BLOB;
BEGIN
SELECT bfield001
T
OF file_data
ID WHERE = 200;
CTR: = java_utils.clob_zipdecompress (t, 'BANKFILE_', p_result);
-The output results
dbms_output.put_line (SubStr ('p_result =' |)) To_char (p_result), 1, 255));
dbms_output.put_line (SubStr ('p_err =' | p_err, 1, 255));
dbms_output.put_line (SubStr ('p_return_clob =' |)) SUBSTR (CTR, 1 255), 1, 255));
END;
< b > example < /b > package
PACKAGE JAVA_UTILS
IS
-Unzip a BLOB in format ZIP to a CLOB and return it with the file name specified figure
FUNCTION clob_zipdecompress (p_blob IN BLOB, p_fname IN VARCHAR2, p_result OUT NUMBER)
CLOB RETURN;
END JAVA_UTILS;
JAVA_UTILS PACKAGE BODY
IS
-Unzip a BLOB in format ZIP to a CLOB and return it with the file name specified figure
FUNCTION clob_zipdecompress (p_blob IN BLOB, p_clob IN CLOB, p_fname IN VARCHAR2)
RETURN NUMBER
AS the JAVA LANGUAGE NAME "java_utils.Compress.ZipDecompress (oracle.sql.BLOB, oracle.sql.CLOB, java.lang.String) return int";
FUNCTION clob_zipdecompress (p_blob IN BLOB, p_fname IN VARCHAR2, p_result OUT NUMBER)
RETURN THE CLOB
IS
l_clob CLOB. l_result NUMBER;
BEGIN
IF p_blob IS NULL THEN
RETURNS A NULL VALUE.
END IF;
DBMS_LOB.CREATETEMPORARY (l_clob, TRUE);
p_result: = clob_zipdecompress (p_blob, l_clob, p_fname);
RETURN l_clob;
END clob_zipdecompress;
END JAVA_UTILS;
< b > function < /b > simplified example Java
package java_utils;
import java.lang. *;
Oracle.sql import. *;
import java. IO;
java.util.zip import. *;
public class Compress
{
/**
* Uncompresses the BLOB in CLOB
*
@param blob the BLOB source (compressed binary data)
@param clob CLOB target (hold plain text), it should be an empty CLOB recovered for
example with dbms_lob.createtemporary (l_clob, true);
* @throws exception for most of I/O exceptions if ever
*/
public static int ZipDecompress (String fname, String [] err, BLOB, CLOB clob blob object)
{
OutputStream out; ZipInputStream z; Ze ZipEntry. String zeName; Byte [] buffer; int cnt;
Boolean found = false;
try {}
out = clob.setAsciiStream(0L); Here, it fails
}
catch (Exception ex) {err [0] = ex.getMessage (); return-1 ;}}
return 0;
}
}
Running the example works well when 11 GR 1 material but 11 GR 2 returns an error: < b > not valid or the arguments in the call. < /b >
No idea why this is happening?
Any help will be appreciated.
Ms.
Hi MS:
Replace:
clob.setAsciiStream(0L); Here, it fails
by:
clob.setAsciiStream(1L);
the CLOB Api went from quick implementation of Oracle to the implementation of the standard.
HTH, Marcelo.
Tags: Database
Similar Questions
-
Over the four days, I've lost two e-mail accounts:
1 * e-mail address is removed from the privacy *
2nd * e-mail address is removed from the privacy *
I went to www.windowslivehelp.com
I filled in all the information and answered all the question. I provided
the email address where I can be reached: * address email is removed from the privacy *
But when I click on submit
"The display shows:" Server error
500 internal Server Error. There is a problem with the resource you
can are looking for, and it cannot be displayed' you explain or tell me
How can I return my email accounts. Thank you and best regards
B.Okediji sanogo
{deleted}
E-mail address is removed from the privacy *.
Hi Zacheus B.Okediji,
1. what web browser do you use?
2. when the problem started?
The website you are visiting had a server problem preventing the display of the Web page. It often occurs due to maintenance of the site, or due to a programming error on interactive websites that use scripts.
For more information, see the following article:
Get help with the Web site (HTTP error) error messages.
If you use Internet Explorer, you can read the following article and try steps 2, 3 and 4 to solve the problem.
Internet Explorer is slow? 5 things to try
Note: Resetting the Internet Explorer settings is not reversible. After a reset, all previous settings are lost and cannot be recovered.
You can also visit the following links to support Windows Live:
"Server too busy", "Internal Server Error" and we do little maintenance to improve the service.
Internal server error when trying to open hotmail
Hope this information is useful.
-
Satellite A350 microphone internal problem with Skype
Hello
I have a strange problem with the internal mic. If I use the registration option window, the microphone works. Although not large, static noise. But if I use Skype with the internal microphone, it is hardly. Only very soft background noise.
As much, I know that this is not the problem of the Skype software, I tested Skype on different systems. If I plug in an external microphone it all works.
I have windows vista installed and a microphone internal realtek.I have Toshiba send back for repair, but only replaced the microphone.
Any ideas?Have you checked the sound settings in Windows? The microphone volume is perhaps not at the highest level.
In addition, you can also change the volume of the microphone in Skype.
Check it! -
Original title: Blue Screen of Death (BSOD)
Hello im having a problem with my computer I try to reboot and I get BSOD saying internal error Planner video background
Here is my mini dump file:
https://onedrive.live.com/redir?RESID=60FEBF11B9A3D76! 4807 & authkey =! AGKWUp-ndI0XBgE & ithint = the file % 2cdmp
and here is my system info:
https://onedrive.live.com/redir?RESID=60FEBF11B9A3D76! 4810 & authkey =! AFloWJarqiE83QM & ithint = the file % 2cnfo
im hoping that this will let you know what is wrong or not
RW
This phenomenon was linked to your video driver (atikmpag.sys) /DirectX. I would completely remove the current driver and install the latest driver available.
-
How can I fix a problem with my Dell Inspiron 1750 internal speaker?
I started having problems with the internal speakers on my Dell 1750. Everyone knows about this problem? Is there a solution?
Hello
For hardware problems, you will need to contact the manufacturer of the computer. Here is a link for your convenience.
Dell Contact technical support: http://support.dell.com/support/topics/global.aspx/support/dellcare/contact_technical_support?c=us&cs=19&l=en&s=dhs& ~ ck = mn
Concerning
-
I got a phone call from someone who said yesterday that they were from Microsoft and I had a serious internal problem with my laptop. Would Microsoft ring blue like that or is this a scam call? Thank you
Microsoft do never not solicited for calls.
It is a common scam. Do not give them information, do not give them access to your PC and do not go to all the websites that they suggest. One moment. See:
http://www.microsoft.com/en-gb/security/online-privacy/msname.aspx .
-
"Windows services Centre" call by saying that I have a problem with my internal security system
Hello
I received a phone call from 'Windows Service Centre', James Henderson, employee of 406-235-1159, phone number #7098 (Yes, that's an indication 406 and 416 - which is one of the reasons why I'm suspicious), but gave a speech in Mississauga (Ontario), saying that I have a problem with my internal security system and even if www.ammyy.com I need to talk to the technician to solve this problem. I do not trust him and hang up, but called the number, responded to the same person (as he had an Indian accent with a lisp in addition to this) and he said that Joseph and not James!
Scam or what? Thank youIt is a scam! Who is becoming extremely common and was even on the news in some places. As long as you don't give them any personal information, you should be fine. Should they call once again, simply hang up.
See the recent thread below for more information; Shenan Stanley and the spirit of the messages contain very useful information:
The call tech support?
http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-system/tech-support-calling/3a07ee4a-cb7c-4F6E-bfa2-5f7067346859The links below contain excellent information regarding this and other scams:
Avoid scams to phone for tech support
http://www.Microsoft.com/security/online-privacy/avoid-phone-scams.aspxAvoid scams that use the Microsoft name fraudulently
http://www.Microsoft.com/security/online-privacy/msName.aspxThe site ammyy.com offer legitimate a service to help users to connect remotely to other computers; the crooks simply operate these services. This is the first time I have heard of this site, seems most of the fraudsters a different use.
Kind regards
-
I have problems with anchors named in my htm file. I clearly identify them as being in the document (ie., internal links within the file). When I preview the file in a browser, the links point to my hard drive, which is totally false. What should I do to change it? I use DreamWeaver 2004 on a PC.
You will need to correct the links that begin with "file".
Now that your site has been defined, you just delete the bad links and DW left write the good ones for you.
Click on the yellow folder on the property inspector, and then select the target page.
If your site is small, you can edit the links manually (remove the part in red)
content.htm file:///C:/desktop/localRootFolder/subfolder/subfolder/images/
It would be useful that post you your code on the page so that we can see if you use the old technique or new for these links.
-
Hello, I am a beginner, I have a problem with the CLOB type, please help me
I want to write the input file is filename and string base64, then output decoded base64 content in dicrectory location (for example C:\),my code was executed but if entry with base64 long string, it displays error)
And this is my codeORA-29285: file write error ORA-06512: at "SYS.UTL_FILE", line 136 ORA-06512: at "SYS.UTL_FILE", line 813 ORA-06512: at "SYSTEM.WRITED", line 9 ORA-06512: at line 1 29285. 00000 - "file write error" *Cause: Failed to write to, flush, or close a file. *Action: Verify that the file exists, that it is accessible, and that it is open in write or append mode.
Thank youcreate or replace directory dir_temp as 'C:\'; / create or replace procedure writed(filename varchar2,code clob) as f utl_file.file_type; v_lob BLOB; begin v_lob := UTL_ENCODE.BASE64_DECODE( UTL_RAW.CAST_TO_RAW(to_char(code)) ); f := utl_file.fopen('DIR_TEMP', filename, 'w'); utl_file.put_line(f,to_clob(utl_raw.cast_to_varchar2(v_lob))); utl_file.fclose(f); end;
DBMS_XSLPROCESSOR.clob2file( cl => l_clob , flocation => 'XML_LOG' , fname => myfile_name );
for example
SQL> ed Wrote file afiedt.buf 1 declare 2 type t_emps is table of emp%ROWTYPE; 3 v_emps t_emps; 4 -- 5 v_clob clob; 6 v_newline varchar2(2) := chr(13)||chr(10); 7 begin 8 -- get the rows into a PL/SQL collection of records 9 select * 10 bulk collect into v_emps 11 from emp; 12 -- build up the CLOB 13 v_clob := 'EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO'; 14 for i in 1..v_emps.count 15 loop 16 v_clob := v_clob||v_newline|| 17 to_char(v_emps(i).empno,'fm9999')||','|| 18 v_emps(i).ename||','|| 19 v_emps(i).job||','|| 20 to_char(v_emps(i).mgr,'fm9999')||','|| 21 to_char(v_emps(i).hiredate,'YYYYMMDD')||','|| 22 to_char(v_emps(i).sal,'fm99999')||','|| 23 to_char(v_emps(i).comm,'fm99999')||','|| 24 to_char(v_emps(i).deptno,'fm99'); 25 end loop; 26 -- write the CLOB to a file 27 DBMS_XSLPROCESSOR.clob2file(cl => v_clob, flocation => 'TEST_DIR', fname => 'myfile.csv'); 28* end; SQL> / PL/SQL procedure successfully completed.
-
Problem with CLOB in CF8 and Oracle 11.2.0.3
I just noticed a problem with recovery CLOB in my ColdFusion applications. Any query that should return a CLOB suddenly returns an empty string. I noticed short time after upgrading to Oracle 11.2.0.2 to 11.2.0.3. My best guess is that we use the version 3.6 driver. I noticed on the DataDirect web site, they list support for Oracle 11 g for version 3.7, but I don't see any reference to 3.7 on the Adobe Web site so I don't know if I can switch to it.
I don't really know if the point Oracle version upgrade was what caused it or not. Has anyone else encountered this problem?
Upgrade to CF9 seems to have solved the problem. I don't know what component caused the problem, however.
-
Problem with the CLOB data type.
Greetings,
I am facing a problem with the CLOB data type. I know that the CLOB data type is 4 GB (I use Oracle 9i). But in the Pl Sql procedure, I can only store 34305 size for a CLOB variable character data.
This is the test script that I am trying to run.
DECLARE
-Local variables here*.
I have INTEGER;
C_1 CLOB.
BEGIN
FOR Rec IN (SELECT
*
ACCORDING TO THE TABLE)
LOOP
C_1: = c_1 | Rec.Clo_1;
END LOOP;
EXCEPTION
WHILE OTHERS THEN
Dbms_Output.put_line (SQLERRM);
END;
Here variable C_1 range value 34305 good character regardless of type CLOB. Now the above script fails if query my buckle - huge number of return values. It is throwing the exception "error during transfer of files ORA-06502: PL/SQL: digital error or value."
He would be grateful if someone can help me on this.
Thank you.You are probably better off using DBMS_LOB.append, instead of the concatenation of varchar2 (|).
And... take off your when-other Manager exceptions, please...
-
Aspire 7750 G internal mouse has stopped working! Hardware problem or software?
Quite simply the query. The mousepad on my old Aspire 7750 G does not, and all the settings suggest that it works correctly. My external mouse (via USB port) works very well; It's only a problem with the pad on the computer itself. Could this be a hardware problem? The computer has 4 years, so no guarantee, unfortunately.
If it is not material, can someone help me with advice on how to fix?
Sorry the question stupid, but... have you tried pressing Fn + F7?
If you already done and are still dead, have you checked the Device Manager if it appears?
-
I have a dell latitude 2100 and when it is consumed first upward it goes to a screen of security and said that is wrong and it is said that the status of this file is 0xc000000f how I could fix this without an installation disk because it does not a cd-rom
Hi Rick,
Thanks for posting your query in Microsoft Community!
The description of your problem, you are facing problems with your Dell Latitude 2100 and receiving tell them an error message which is bad and he said that the status of this file is 0xc000000f. In order to quickly provide a solution, please answer these questions:
1. What is the exact error message with error code?
2 did you do changes on the computer before the show?
Follow the suggestions below for a possible solution:
Method 1: I suggest you check the drive for errors, and then check if it solves the problem.
Check your hard drive for errors
http://Windows.Microsoft.com/en-us/Windows-Vista/check-your-hard-disk-for-errors
Important: While running chkdsk on the drive, if bad sectors are found on the hard drive when chkdsk attempts to repair this sector, the data available in this area may be lost, and it is not recoverable.
Method 2: Try the SFC (System File Checker) scan on the computer.
How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
http://support.Microsoft.com/kb/929833
Note: It may prompt you to insert the Windows installation disc. However, you can use the external DVD player and check.
Hope this information helps. Answer please if you have any additional questions about the problem you are having and we will be happy to help you further.
-
Siri does not (problems with the connection)
Hello
I installed macOS Sierra yesterday. Everything seems to work fine, except Siri. With Siri I always get an error message "I am having some problems with the connection. Please try again in a moment. ». But this seems to appear every time. The network connection works fine, I can't access the Internet without problem.
No idea how solve the problem?
I use an iMac (27 inch, mid-2011). Internal microphone is connected, I also see the 'waves' change while I am speaking.
Concerning
Thomas
Hey, thochstrasser. Thank you for using communities of Apple Support.
It seems that Siri is reluctant to make his debut on your iMac after upgrade to Mac OS Sierra. I want to make sure that you get the benefit of this new feature on a Mac.
1 try safe mode if your Mac does not start -even if your iMac to market, safe mode makes sure it starts successfully.
2. How to test a question in an another user account on your Mac - since this is most likely a software problem, test to another user will indicate if it is right to your user account or throughout your system.
3. use Time Machine to back up or restore your Mac - if it seems to be systemic, the next step should not cause problems. But it is always better "to have" a backup to the "need".
4. on OS X Recovery - the issue as part of the operating system, reinstall should do.
Have a great weekend!
-
I am totally beside me how to fix my computer. Here's the story.
A year or so, my computer has stopped starting upwards. I blamed it on my husband for the recording of all its video games on my computer and I thought it kind of caught or something was wrong, but who knows.
in any case, what started to happen was, I pushed the power button and the computer began to start. It rang, and then I saw the status bar, which seem to take forever. Before that the computer could not start completely, it stops. I tried to do this several times, but I could not start completely. I was able to boot into recovery mode. When I ran disk utility, it showed me that the hard drive has been locked. I tried several times to fix it, but it would allow me to fix it. Finally, I have advanced and erased the hard drive, because I had already photographed it. After it, I restored it back to the top, and it seemed to work fine.
Two months later, he did exactly the same thing. I fought with him again and again, but it has gotten to the point where it would allow me to erase its content in more disk utility. I put the original installation disc into the computer and wipe it clean from the disc, there still, restore back up.
Now, there it is again. My computer has taken over. I'm so frustrated that I had planned just to not restore backup from this time and just transfer necessary photos and documents from my above outside. I was unable to clean or repair in once again disk utility, so finally I put in the installation disk and it started from there, but then he would allow me to erase the hard drive from there. Somehow, I could finally do wiping of disk utility (after several attempts and patience).
This time, after getting the hard drive erased, I went to reboot the computer and the computer booted to a full white screen. It wouldn't boot all the way and I couldn't even move my mouse. I forced the closing it down, started from the install disc and tried to install the software, but it would allow me to do. He told me that there is an error.
I started in disk utility, even once, connected to the internet and tried to install the software from the internet... Looks like it would work perfectly, only he showed me waiting for the scheduled time was 22 minutes... and its been there for the past 12 hours, but no progress on the small bar thing. Absolutely no.
I asked a couple of guys at work and they told me it looked like my hard drive has been corrupted. I was told I might need to buy a drive solid state internal entirely new and might solve my problem.
I just wanted to see if anyone had similar problems or if he could tell me how to fix it myself.
Thank you.
Run the AHT directly from the CD provided initially w / your comp.: Apple Hardware Test
Maybe you are looking for
-
I can send a fax from the glass, but when I try to fax multiple pages in auto document feeder it doesn't recognize, they are there and asks me if I want to fax the glass or ADF. I click on ADF and says original place in the ADF, and press start. I
-
OT: Telephone conversation recorder?
I need to find an app that records telephone conversations. Anyone know of any? It would be greatly appreciated. Thank you.
-
Why am I getting a message igxprd32 errror and display changes in safe mode
Dear community of Microsoft I had this problem on two three weeks now, I'm sure that I've ever had before, I was also getting the Blue Screen of Death, so called. Help, please
-
My volume icon and control is missing
My volume icon and control is missing and I also think that the program is now defunct. A spokesman for AOL of sees has accessed our computer to 'clean up' to make it work better and I think that he has removed my volume and its program. When I tri
-
ATTENTION: the SDK update prevents the creation of a new project