No output from domsample procedure
Hello,
After running initjvm.sql successfully I am having the following
problem...
Have successfully installed plxmlparser on 8i and execute the
domsample procedure using the family.xml document.
I get the msg 'procedure completed successfully' but am not
getting any other output.
Does anyone have any idea why this would be occurring?
Any responses greatly appreciated.
Thanks,
Travis
null
Travis Mitchell (guest) wrote:
: Hello,
: After running initjvm.sql successfully I am having the
following
: problem...
: Have successfully installed plxmlparser on 8i and execute the
: domsample procedure using the family.xml document.
: I get the msg 'procedure completed successfully' but am not
: getting any other output.
: Does anyone have any idea why this would be occurring?
: Any responses greatly appreciated.
: Thanks,
: Travis
Travis,
Did you forget to set serveroutput on? Maybe you should try
that.
Thanks,
Travis
null
Similar Messages
-
Formatting Output from a procedure
Hi all,
I want to format the output of this procedure
declare
cursor c1 is select tname from tab where tabtype = 'TABLE' ;
tabname varchar2(1000) ;
i number := 1;
rc number ;
str varchar2(1000) ;
begin
open c1 ;
loop
fetch c1 into tabname ;
exit when c1%notfound ;
str := 'select count(*) from ' || tabname ;
execute immediate str into rc ;
dbms_output.put_line(i || ' - ' || tabname || ' -- ' ||rc) ;
i := i + 1 ;
end loop ;
close c1 ;
end ;
The OUTPUT is like this.......
1 - asdf -- 0
2 - asdfsdafasdf -- 16
3 - asdfsaf -- 327
4 - asdfasdfasfsdafsdfs -- 27
5 - asd -- 128562
Now, I want this output should be like this
1 - asdf -- 0
2 - asdfsdafasdf -- 16
3 - asdfsaf -- 327
4 - asdfasdfasfsdafsdfs -- 27
5 - asd -- 128562
Thanks in advance,
PalUse [ pre ] and [ /pre ] with no sapce.
http://www.oracle.com/technology/forums/faq.html#q14
But,for your question, using to_char or lpad, you can format.
dbms_output.put_line(i || ' - ' || tabname || ' -- ' ||lpad(rc,20)) ;
-- Oops, I correct as following.
dbms_output.put_line(rpad(i || ' - ' || tabname || ' -- ' ,60)||lpad(rc,20)) ;
Message was edited by:
ushitaki -
How do I read a report's XML Output from a procedure?
I am using E-Business suite 11.5.10.2 and XMLP 5.5. I have a report that will output XML. When this report is run, I can click the 'View Output' button and view the XML. This appears to be a temp file somewhere, because the temp id in the URL changes each time a new report is run. Here's my problem: After running this report, I want to execute a procedure that will loop through the XML output and transform it into HTML. I will then output this HTML to the screen. But I'm not sure how to pass this file as a parameter to my procedure.
Is there anyway to allow a procedure to consume the XML output?
The reason I'm trying to do this, is because we need to transform certain reports into Excel format. This is becoming a critical issue. After testing, I found that if I can extract data into an HTML table and display it on the screen, it dumps perfectly into Excel. I tested it using a cursor, but that won't work for production reports. There is a ton of logic built into these Oracle reports, so I need to go the XML route after running the report.
Looking at previous posts, the current Excel output process seems to be a bit buggy. And, we can not upgrade to Excel 2003 at this time.
Any ideas would be greatly appreciated!!!
Thanks.
Mark KHello Klaus. I appreciate your response. While I'm no expert with XMLP, I have created about 8 production reports using XMLP. I am using XMLP 5.5, and not 5.6.1 I am using Excel 2002 and not Excel 2003. From other posts (shown below), it is my understanding that the Excel output may have bugs unless you're using XMLP 5.6.1 and Excel 2003.
Please see the following posts for more information:
Re: EXCEL output not displaying properly
Excel output in 5.6 version
Also, when I tried to output to Excel using my desktop version, I received an error message. But, when I switch to PDF format, it opens just fine.
We are not prepared to upgrade Excel and/or install another patch for XMLP at this time. If I can do what I need to do programmatically, I will have much more leverage when it comes to troubleshooting. On the other hand, when I run into a bug with Oracle software, I usually have to wait for a patch.
Thanks again.
Mark K. -
Pass records from one procedure to another
hi,
I have created following procedure. It takes input parameter and selects some records in EMP table based on condition.
How to pass the output from this procedure to another procedure to manipulate the selected records further.
Do I need to pass REF CURSOR or RECORD ?
Thanks
===================================================
create or replace procedure empdetails(pid IN number)
is
type ref_cur is REF CURSOR;
rc ref_cur;
type myrec is RECORD(id number, name varchar2(15), sal number);
rec myrec;
begin
open rc for select id, name, sal from emp where deptid=pid;
loop
fetch rc into rec;
exit when rc%notfound;
dbms_output.put_line(rec.id||'--'||rec.name||'--'||rec.sal);
end loop;
close rc;
end empdetails;don123 wrote:
I have created following procedure. It takes input parameter and selects some records in EMP table based on condition.
How to pass the output from this procedure to another procedure to manipulate the selected records further.
Do I need to pass REF CURSOR or RECORD ?Record. The bulk collection approach is useful if you want to use the collection subsequently as a bind variable for bulk binding. But assuming you simply want to crunch data, the minimalistic approach would be:
SQL> declare
2 procedure ProcessEmp( e emp%RowType ) is
3 begin
4 dbms_output.put_line( 'processing employee..'||e.ename );
5 end;
6 begin
7 for e in(select * from emp order by 1) loop
8 ProcessEmp(e);
9 end loop;
10 end;
11 /
processing employee..SMITH
processing employee..ALLEN
processing employee..WARD
processing employee..JONES
processing employee..MARTIN
processing employee..BLAKE
processing employee..CLARK
processing employee..SCOTT
processing employee..KING
processing employee..TURNER
processing employee..ADAMS
processing employee..JAMES
processing employee..FORD
processing employee..MILLER
PL/SQL procedure successfully completed.
SQL> An implicit bulk collect is done by the FOR loop, courtesy of the PL/SQL optimiser. As the procedure ProcessEmp() does not perform SQL processing itself (e.g. using employee data to fire off UPDATE, DELETE or INSERT SQL statements), a collection is not really needed as it would not contribute to the procedure's performance.
If however nested SQL statements are fired from inside that cursor fetch loop, using a collection would enable these SQLs to make use of bulk binding.
However, this approach ALWAYS need to be question, examined and validated - as a single SQL can often be used, combining the outer read/fetch loop (SELECT), with the nested SQLs (UPDATE/INSERT) done - using the MERGE or INSERT..SELECT statements for example.
Explicit bulk processing should be an exception - as pushing data from the SQL engine to the PL/SQL engine, only to push that PL/SQL engine's data back to the SQL engine, is invariable a flawed, non performant, and non scalable approach. -
JDev generated webservices encodes XML output from PL/SQL procedure
I have a PL/SQL packaged procedure which takes some input parameters and produces one output parameter. The output parameter is of type CLOB and after the procedure has run, it contains a big piece of XML data.
Using JDeveloper 10.1.3.1, I've published this packaged procedure as a webservice. The generated webservice is fine and works, except for one tiny little issue: the XML that is taken from the output parameter is encoded.
Here is an example of the SOAP message that the webservice returns:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns0="http://gbv0300u/GBV0300U.wsdl/types/"><env:Body><ns0:gbv0300uResponse
Element><ns0:result><ns0:obvglijstOut> & gt;type>GBV0001& gt ;/type& lt;
& gt;diensten& lt;
& gt;dienst>some value& gt;/dienst& lt;
& gt;/diensten& lt;
</ns0:obvglijstOut></ns0:result></ns0:gbv0300uResponseElement></env:Body></env:Envelope>
(I've manually added an extra space between the & and lt; or gt; to make sure a browser will not translate it into a < or >!)
The contents of the <ns0:obvglijstOut> element are filled with the output parameter from the PL/SQL package.
How can I change the generated webservice, so the output from the PL/SQL package is used as is instead of being encoded?Update: I've tested a bit more by adding some output statements to the java code that JDeveloper generated. I'm now 100% sure the PL/SQL code gives the XML data correctly to the webservice.
At this moment my guess is that somewhere in the WSDL definition there is something that enables the encoding of the data. But I'm not sure.
Any help is greatly appreciated. -
Submitting xml publisher not producing output file when submiting from Oracle Procedure
When Running XML publisher program from Oracle Procedure, Program not generating output file, but same XML publisher program running from Concurrent program runs and produces the output file.
Here is the code
CREATE OR REPLACE PROCEDURE apps.wmmgd_sepa_formats (
p_return_msg OUT VARCHAR2,
p_return_code OUT NUMBER,
p_payment_batch IN VARCHAR2 ---,
--- p_bank_name in varchar2
IS
name: wmmgd_sepa_formats
purpose: this procedureis to create SEPA payment formats
revisions:
ver date author description
1.0 6/11/2013 V Gongireddy Created the Procedure
l_ret BOOLEAN;
l_req_id NUMBER;
v_org_id NUMBER;
v_cntr NUMBER;
v_file_name fnd_concurrent_requests.outfile_name%TYPE;
v_language VARCHAR2 (20);
BEGIN
SELECT fnd_profile.VALUE ('ORG_ID')
INTO v_org_id
FROM DUAL;
fnd_file.put_line (fnd_file.LOG, 'org id ' || v_org_id);
fnd_file.put_line (fnd_file.output, 'Start org id ' || v_org_id);
FOR i IN 1 .. 10000
LOOP
v_cntr := v_cntr + 1;
END LOOP;
l_ret :=
fnd_request.add_layout ('SQLAP',
' WMMGDSEPAFORMATXSL',
'en',
'US',
'XML'
IF l_ret = TRUE
THEN
BEGIN
fnd_file.put_line (fnd_file.output,
'Payment batch ' || p_payment_batch
l_req_id :=
fnd_request.submit_request ('SQLAP',
'WMMGDSEPAFORMAT',
FALSE,
p_payment_batch
v_cntr := 0;
FOR i IN 1 .. 10000
LOOP
v_cntr := v_cntr + 1;
END LOOP;
p_return_msg := 'Request submitted. ID = ' || l_req_id;
p_return_code := 0;
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
p_return_msg :=
'Payment Request set submission failed - unknown error: '
|| SQLERRM;
p_return_code := 2;
fnd_file.put_line (fnd_file.LOG,
'the_request_id ' || l_req_id || p_return_msg
END;
END IF;
END wmmgd_sepa_formats;
Thanks in advanceAnd metalink note 1100253.1 states that this issue (java.lang.StackOverflowError) might be caused by a too large set of data to be sorted in the layout file. Recommendation is to removed the sort from the layout file and instead sort the data already in the data definition.
regards,
David. -
Capturing print command output from procedures
Is it possible to capture the output from print statements in stored procedures such as the "print" command in Sybase stored procedures? This information doesn't seem to come through the result set.
Thanks,
KPThis will be database specific. Please consult your database documentation.
-
Get server output from pl/sql stored procedure
Hi Colleagues,
I would like to get and watch the server output of my PL/SQL stored procedure
when I run my java program and call it from. The Stored proc. uses "dbms_output.put_line".
If it is clearly and possible (or not), will you send me your answer!
Thanks a lot
UlveHi,
You can redirect the standard output to the console (i.e., the SQL output) using the
DBMS_JAVA.SET_OUTPUT() method.
SQL> SET SERVEROUTPUT ON
SQL> call dbms_java.set_output (5000);But, the output is only printed when the stored procedure exits, and this setting works only for one call (i.e., the SQL call that immediately follows the invocation of DBMS_JAVA.SET_OUTPUT()). The minumum and default value is 2,000 characters and the maximum is 1,000,000 (1 million) characters. Notice the “SET SERVEROUTPUT ON” which enables displaying the outputs of stored procedures (Java or PL/SQL blocks) in SQL*Plus.
Kuassi http://db360.blogspot.com -
Transactional file output from a Java Stored Procedure invoked by trigger.
I need to write information to a file from a Java Stored
Procedure which is called from an insert trigger. This works OK
except for the condition when a rollback is performed - the file
is updated anyway.
I need the Java Stored Procedure file output to be part of the
transaction - performed on commit and skipped on rollback. Is
there any way the Java Stored Procedure can be aware of the
state of the transaction?i am Still facing the following problem:
if i pass a parameter like :
rm -f /test/menu.ksh
then the required output is that the menu.ksh file gets deleted.
but when i pass this command:
./test/menu.ksh
It is supposed to execute the specified script but it does not.
I have tried multiple things like giving chmod 777 rights to the following file and changing the command to /test/menu.ksh but nothing happens
Can you kindly tell me what can the problem be. Is there any execution rights issue: i am executing these scripts from pl sql developer.
You can find both the procedure and java method which is being called below
==========================================================================================
create or replace procedure TEST_DISPLAY(filename in varchar2, result out varchar2, error out varchar2) is
command varchar2(100);
vRetChar varchar2(100);
begin
command := filename ;
prc_host(command, vRetChar);
result := vRetChar;
dbms_output.put_line(result);
Exception
when No_Data_Found Then
error := 'Command is not Found';
dbms_output.put_line('Failure');
return;
end TEST_DISPLAY;
======================================================================
create or replace and compile java source named host as
import java.io.*;
import java.lang.Runtime;
import java.lang.Process;
import java.io.IOException;
import java.lang.InterruptedException;
public class Host {
public static void executeCommand(String command,String[] outString) {
String RetVal;
try {
String[] finalCommand;
final Process pr = Runtime.getRuntime().exec(command);
// Capture output from STDERR...
} -
Design Question::Instantiating Object from Stored Procedure Output
Hi All,
I am confused with approaching this design issue. I called a Stored Procedure, and the output from the Stored Procedure is a REF CURSOR. The size of the REF CURSOR can be large.
My Question is, is it a good idea to pass the values from the REF CURSOR to a class constructor, there by instantiating an object of that type. lets say
//rset is of type ((OracleCallableStatement)callableStatement).getCursor(5);
//rset is not ResultType
while (rset.next()){
new ClassXYZ(var1, var2, var3);
/*var1, var2, var3 would be rset.getObject(1),rset.getObject(2),rset.getObject(3)
Class XYZ does some business logic
}Other things:
1) Will the JVM hold up assuming good enough JVM mem size, while creating objects for the range 100 thousands?
2) I do not know the cursor size. It can change randomly from business perspective. And, it would be in the range of 100 thousands
I was thinking, If I can "police" the call to the Class XYZ in case of large data. May be I am totally off the best solution. Any light on the best way to approach will be great.
Anyhow, this would be a standalone java application. Just in case if people are trying to suggest/recommend DAO etc.,
Thank you,
VJYou can use ConvertTo-Html:
http://ss64.com/ps/convertto-html.html
Here's an example:
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/5cb016d3-e2fb-43e7-9c01-10b6878056e4/formattable-lost-in-email
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
Hi All,
When I run the below procedure it does not return any data. But it returns stating Procedure created. When I just run the query it returns the result.
So what am I going wrong here.
set serveroutput on
CREATE OR REPLACE PROCEDURE PROD.STATUS_COUNTS
p_count IN OUT number,
p_status IN OUT varchar2,
p_mpp IN OUT number
AS
BEGIN
select COUNT(1),STATUS,MPP
INTO
p_count,
p_status,
p_mpp
FROM PROD.tx_tab where status IN ('failed','entityUnchanged','quarantined')
AND DATE_UPDATED BETWEEN trunc(sysdate-1) AND trunc(sysdate) + INTERVAL '1439'
minute GROUP BY STATUS,MPP;
dbms_output.put_line('p_count:' || p_count);
dbms_output.put_line('p_status:' || p_status);
dbms_output.put_line('p_mpp:' || p_mpp);
END ;
ThanksI posted that above (3rd post):
declare
-- Local variables with no values assigned to them.
v_count number;
v_status varchar2(50);
v_mpp number;
begin
-- Call the procedure and return the values from that procedure
prod.status_counts(v_count, v_status, v_mpp);
-- View the values from the procedure
dbms_output.put_line('v_count:' || v_count);
dbms_output.put_line('v_status:' || v_status);
dbms_output.put_line('v_mpp:' || v_mpp);
end;The v_ variables are local variables. You then call your procedure and the v_ variables return the values from that procedure.
Edited by: MLBrown on Dec 4, 2012 9:32 AM -
Output from pl/sql procedure
The output from my pl/sql block is not being captured in the spool file. This would help to debug.
Thanks in advance...You have to put "set serveroutput on" if you use package dbms_output or check you path for spool file
-
ORA-06502 when calling from a procedure
HI,
I have a procedure(p1) inside a package that queries a table and send out the result based on the input paramater value. OUT variable is of same type as the table column(using %type), column size is varchar2(4000). This procedure is called from another procedure(p2) and sends out the result to Java Page to display the results at front-end.
Problem is when application runs and p1 is called I get the following error message,
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Length/size of the character string queried from table is _1747_ that is within the limit of 4000 chars. If I limit the output to just 500 using substr, I don't get any error but adding a single character startes throwing error. OUT variable in both p1 and p2 are declared as table.column%type and error comes from p1 only as confirmed by the error log.
When I call p1 or p2 from a declare block, I don't get any error.
This has really confused me and I am not able to find any reason for this difference in behaviour.
Request to help me in understanding what could be the issue here.
Oracle version used is Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
-Thanks in Advance.CREATE or replace PROCEDURE p1
( l_id IN VARCHAR2
, l_str OUT VARCHAR2
) IS
l_temp VARCHAR2(4000);
BEGIN
SELECT Response_Message INTO l_temp FROM t1 WHERE Response_ID = l_id;
l_str := l_temp||'10 symbols';
END;
CREATE or replace PROCEDURE p2
( l_id IN VARCHAR2
, l_str OUT VARCHAR2
) IS
BEGIN
p1(l_id, l_str);
END;
/no errors in procedures, but
DECLARE
resultstr VARCHAR2(1000);
BEGIN
p2(58, resultstr);
DBMS_OUTPUT.PUT_LINE(resultstr);
END;
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "P1", line 8
ORA-06512: at "P2", line 6
ORA-06512: at line 4Procedure is called with small variable.
Try check all calls and all procedures for size and check if there are string concatenations. -
No digital video output from XVR-300 in Ultra-45
I am switching from solaris 10/x86 to sparc. I have a new Ultra-45 with XVR-300 graphics adapter. It's running Solaris 10u4. The system was ordered as a standard configuration from the catalog.
The XVR-300 graphics adapter currently produces no digital output. My Sun A1240P0 24" monitor reports no signal on the DVI input. That is, there is no digital output at power on (boot ROM), during Solaris boot (terminal), nor after Solaris finishes booting (X).
The graphics adaptor uses a connector with two video outputs, and comes with a splitter cable with two DVI output connectors. I get no video output on either. The DVI cable I am using is the one that works when connected to the graphics adaptor on the old system.
I added a VGA adapter plug to connector 1 of the splitter cable, and was able to get an analog signal to drive the display via the VGA input connector.
The manuals for the Ultra-45 and for the XVR-300 make no mention of analog vs digital output. They both just say to connect the adapter to the monitor.
Since I can get analog output from the SVR-300, the card is basically working. The DVI cable and the monitor's DVI input work with another system. The only variables are the digital output from the XVR-300 and the splitter cable. (The splitter cable's analog signals work.)
How can I activate digital output and make it the default?try this page........
http://docs.sun.com/source/819-6651-13/chap2.install.html#50589705_pgfId-1001195
To Set the Sun XVR-300 Graphics Accelerator as the Default Monitor Console Display
1. At the ok prompt, type:
ok show-displays
The following shows how to set the console device:
a) /pci@1f,700000/SUNW,XVR-300@0
b) /pci@1e,600000/pci@0/pci@8/SUNW,XVR-300@0
q) NO SELECTION
Enter Selection, q to quit:
2. Select the graphics accelerator you want to be the default console display.
In this example, you would select b for the Sun XVR-300 graphics accelerator.
Enter Selection, q to quit: b
/pci@1e,600000/pci@0/pci@8/SUNW,XVR-300@0 has been selected.
Type ^Y ( Control-Y ) to insert it in the command line.
e.g. ok nvalias mydev ^Y
for creating devalias mydev for
/pci@1e,600000/SUNW,XVR-300@5
3. Create an alias name for the Sun XVR-300 graphics accelerator device.
This example shows mydev as the alias device name.
ok nvalias mydev
Press Control-Y, then Return.
4. Set the device you selected to be the console device.
ok setenv output-device mydev
5. Store the alias name that you have created.
ok setenv use-nvramrc? true
6. Reset the output-device environment:
ok reset-all
7. Connect your monitor cable to the Sun XVR-300 graphics accelerator on your system back panel.
Man Pages
The Sun XVR-300 graphics accelerator man pages describe how you can query and set frame buffer attributes such as screen resolutions and visual configurations.
Use the fbconfig(1M) man page for configuring all Sun graphics accelerators.
SUNWnfb_config(1M) contains Sun XVR-300 device-specific configuration information. To get a list of all graphics devices on your system, type:
host% fbconfig -list
This example shows a list of graphics devices displayed:
Device-Filename Specific Config Program
/dev/fbs/nfb0 SUNWnfb_config
procedure icon To Display Man Pages
single-step bulletUse the fbconfig -help option to display the attributes and parameters information of the man page.
host% fbconfig -dev nfb0 -help
single-step bulletTo access the fbconfig man page, type:
host% man fbconfig
single-step bulletTo access the Sun XVR-300 graphics accelerator man page, type:
host% man SUNWnfb_config
haroldkarl -
No sound output from dock connector or headphones but speaker is fine
I've got a 3GS which I've had since October.
Recently, there has been no sound output from the headphone socket - or rather, what does come out is very strange, sounding almost electronically distorted.
I thought that maybe the headphone jack was broken, but now I've found out that the same thing can be heard through a dock when the iPod is connected this way.
I'm fairly sure the dock connector is still fine as the phone charges and can be controlled by the dock etc
Most of the discussions I've found relate to sound not coming from the speaker on the phone, but this is absolutely fine.
Any ideas?Hi, and welcome to Apple Discussions.
Have you tried resetting the PMU?
I'm not optimistic that this will help any more than the procedures you've already tried, but it won't hurt to try.
Do you still have your OS 9 installation? If so, try booting into OS 9 and see if the problems with the audio are happening there, too. If so, you can bet it's a hardware problem.
How big is your hard drive and how much space remains available on it? If you don't have your OS 9 installation in order to check out whether it's a hardware problem and you have enough available hard drive space, you may want to try an Archive and Install of the OS in order to make sure it isn't an OS X system-wide problem. If that doesn't do it, you could back up your hard drive and restore your software.
All of this may just be spinning your wheels, but it's all stuff you can try before shelling out a lot of money for repairs.
Maybe you are looking for
-
Can i install SL on a solid state hard drive??
Hi I have a MBP with an upgraded 500gb HDD which i fitted myself once the warantee had expired. ( original intel MBP with dodgy case !! ) I would like to fit a Solid State HDD to reduce battery drain, heat etc ( You can cook eggs on my MBP ) Question
-
I have an external hard drive that I have used as Time Machine backup, but not for a while. Now when I plug it in, computer says this disc is not readable. I want to keep the backups on it and not erase and start over. Thank you in advance. Gregor
-
Dynamic structure names in cfloop
I have designed a web application that allows users to enter a number of records on one form – for example computer skills. The user can add up to 20 different computer skills. On another form, the user's recorded computer skills are shown as a numbe
-
How can I divide a sheet to pages in numbers 3.0.1
How can I divide a sheet into pages. I have numbers 3.0.1
-
JavaScript error Component Monitoring Components with Status: AllRedRed & Yellow Display Thus rwb can't work any more. Error: ur_Button_click is not defined Source File: http://sp001:50000/rwb/FrontComponent/FC_Secure.jsp Line: 1 any ideas. It