Procedure with THE parameters - creating a report
I have the following procedure which is used in our applications (non-APEX) internal:PROCEDURE SelIssueActivityPublic (
p_results OUT SYS_REFCURSOR,
p_IssueID IN ems.issue.issue_id%TYPE,
p_TransactionID OUT VARCHAR2
)
The body of the procedure made a lot of treatment and inserts data into an intermediate table. The cursor ON the parameter then returns a SELECT statement in the staging table. Since it is possible that this procedure be struck several times (several users), transaction ID is used to match the data in the staging table to demand appropriate. The procedure then deletes the data from the staging table. (I'll post if necessary, but it is quite long, and since it is used successfully in other applications, I don't think it relates to my question).Asked me to create a report of the APEX data generated by the procedure. I've never used a procedure with an OUT parameter to create a report. I was hoping to assign transaction ID to a variable hidden on the loading of the page and then use it to poplulate the report. I'm not interested in the OUT parameter slider, I wrote my own SELECT statement to retrieve the data from the staging table.
I tried to create a page that did that - agenda: H_P19_TRANSID, before the header calculation = EMS. EMS_READER. SelIssueActivityPublic (: H_P19_CURSOR, 454551,: H_P19_TRANSID) [454551 is a test question id], but I get the following error:
ORA-06550: line 1, column 43: PLS-00222: no function with name 'SELISSUEACTIVITYPUBLIC' exists in this scope ORA-06550: line 1, column 7: PL/SQL: Statement ignored flowComp=H_P19_TRANSID
Error ERR-1030 Error executing computation expression.
He seems to think that SelIssueActivityPublic is a function, and I don't know why.Basically, I need to know how to use this procedure to put up my report. Once I can enter the transaction ID in a page element, I'll be set.
How your procedure? You know that you can have the same procedure in the package with several definitions. Oracle allows you to use polymorphism, the ability to have multiple definitions of the same object with different signatures.
Correction... You can not have a procedure of p in the case, are a function, since the calculation is expected to a way to fill the hidden element... You need a function to return the type of variable you want in the hidden element...
Thank you
Tony Miller
Webster, TX
Published by: Tony Miller on March 16, 2010 12:34
Tags: Database
Similar Questions
-
create the table with the parameters of storage in a locally managed tablespace
Hello
Can we create object with the parameters of storage in a locally managed tablespace.
CREATE TABLE my_hash_table_6)
name VARCHAR2 (30),
value VARCHAR2 (4000))
STORAGE)
INITIAL 1 M
NEXT 512K
PCTINCREASE 0
MINEXTENTS 2
MAXEXTENTS UNLIMITED)
default tablespace users is successful locallly.
Then extended this table management will be managed according to the tablespace or storage settings which
has been specified when the table was created.Hello
This means that we don't have to define NEXT, PCTINCREASE, MAXEXTENTS at the object level.
Then, these settings are applicable to Dictionary managed tablespace or what?Yes that's right, understand you is correct
Can we define NEXT, PCTINCREASE, MAXEXTENTS at the level of the object in the dictionary managed tablespace;
Yes, you can, but go for DMT, is not very good, because you advantages compared to LMT, just think about it before going to the DMT, than I suggest.
-Pavan Kumar N
Oracle 9i / 10g - OCP
http://oracleinternals.blogspot.com/ -
Can someone help me create a procedure with the DML statements that insert values from 1 to 100 in a table "abc" and the procedure must connect the numbers into words in another table "xyz" without doing a commit explicitly. "."
Currently on trial...
SQL > create table abc (num number);
Table created.
SQL > create table xyz (num varchar2 (100));
Table created.
SQL > ed
A written file afiedt.buf1. insert all
2 values of 1 = 1 then in abc (num) (l)
3 when the values of 1 = 1 then in xyz (num) (to_char (to_date(l,'j'), 'jsp'))
4 * Select the level from dual connect by level<=>=>
SQL > /.200 rows created.
And the result...
SQL > select * from abc;
NUM
----------
1
2
3
4
5
6
7
8
9
10
11
12
..
..
..
98
99
100100 selected lines.
SQL > select * from xyz;
NUM
----------------------------------------------------------------------------------------------------
one
two
three
four
five
six
seven
eight
nine
ten
Eleven
twelve
..
..
..
98
Nineteen eighty
Cent100 selected lines.
-
How the parameter of the procedure with the default table type?
Hello!
How the parameter of the procedure with the default table type?
For example:type varchar2lType is table of varchar2(50) index by binary_integer;
Published by: bullbil on 16.01.2012 06:35create or replace procedure test1 ( s1 varchar2(50) sa2 Varchar2Type ) as begin dbms_output.put_line('yyxxyyy!'); end; /
If he should really be an associative array for some reason any (can't think why, but just for fun...) you could declare a dummy array in the packet header and specify as the default:
create or replace package wr_test as type varchar2ltype is table of varchar2(50) index by pls_integer; g_dflt_varchar2l_tab varchar2ltype; procedure testit ( p_testarray varchar2ltype default g_dflt_varchar2l_tab ); end wr_test; create or replace package body wr_test as procedure testit ( p_testarray varchar2ltype default g_dflt_varchar2l_tab ) is begin dbms_output.put_line('p_testarray contains ' || p_testarray.count || ' elements'); end testit; end wr_test;
It is a bit of a hack, because it relies on a global variable that is exposed. A more orderly approach would overload the procedure so that a version does not have the table and another argument:
create or replace package wr_test as type varchar2ltype is table of varchar2(50) index by pls_integer; procedure testit; procedure testit ( p_testarray varchar2ltype ); end wr_test; create or replace package body wr_test as procedure testit is v_default_array varchar2ltype; begin testit(v_default_array); end testit; procedure testit ( p_testarray varchar2ltype ) is begin dbms_output.put_line('p_testarray contains ' || p_testarray.count || ' elements'); end testit; end wr_test;
-
problem with writing a procedure with the name of the table as an input parameter
Hi all
I am writing a procedure with the table name as input parameter:
Here is the code
create or replace procedure CEP (in_tbl in varchar2)
as
Start
run immediately 'truncate table tlb;
Insert into tbl
Select a, b, c of in_tbl;
end;user579585 wrote:
Hi allI am writing a procedure with the table name as input parameter:
Here is the codecreate or replace procedure CEP (in_tbl in varchar2)
as
Startrun immediately 'truncate table tlb;
Insert into tbl
Select a, b, c of in_tbl;
end;
You will also need to use dynamic sql for insert statements:
execute immediate 'begin insert into tbl select a,b,c from '||in_tbl||'; end';
-
Call the PL/SQL procedure with different parameters?
I use PL/SQL for web development. I have a page of PL/SQL which collects information and returns the user off site with one return url (another PL/SQL procedure).
I have the return procedure with every documented return variable (default null) in order to always take the return. However, there are (reported... cannot reproduce because of the nature of the business) cases where a 404 error is returned because of the incompatibility of parameter.
Is it possible to proceed regardless of the parameters? Someone at - it suggestions?
Thank you!user2960509 wrote:
My problem is that they sometimes send back of settings that do not match what I expect.
Use the interface "+ flexible +" mod_plsql - see the Oracle® HTTP Server mod_plsql user's Guide for the documented details.
The signature of the procedure parameter is as follows (it is called by mod_plsql using tables of name value pairs):
create or replace procedure Scott.MyWebProc( name_array owa.vc_arr, value_array owa.vc_arr) is ...
In your code, you just browse the berries to get the name values passed query string. You can even filled an associative array in your code (a table indexed by string and no number, where the index string represents the name of param)-this approach can make it pretty easy for the code make reference to a parameter, with little effort on your part to provide an interface to query by name for code to get the value of a parameter name.
To enable the flexible (aka parameter 2) call interface, precede the call to web with an exclamation character. For example
http://my-webserbver.my-domain.com/pls/dad/!scott.mywebproc?name-1=val-1&name-2=val-2..,name-n=val=n
-
Run the statement in a stored procedure with Out parameters and
Hi all
I have a stored procedure that calls a select statement. Here it is...
CREATE OR REPLACE PROCEDURE BLABLA_VIEW_PROCEDURE
* (BLABLA_KEY IN NUMBER, *)
XML_OUTPUT ON VARCHAR)
AS
BEGIN
SELECT SYS. XMLTYPE.getStringVal (OBJECT_VALUE) in XML_OUTPUT FROM BLABLA_VIEW WHERE extractValue (OBJECT_VALUE, ' / BLABLA_TYPE/BLABLA_KEY ') = 2876;
END;
Is to have both IN and OUT parameters as described above. I am able to compile and run the procedure.
The problem I want to share with everyone is...
I want to run the stored procedure together with a single EXEC command.
I tried different ways using the EXEC command but of no use.
Could someone help me?
Thanks in advance.
Published by: user10763276 on June 3, 2010 15:47Please visit the following...
sudhakar@ORCL>CREATE OR REPLACE PROCEDURE BLABLA_VIEW_PROCEDURE 2 (BLABLA_KEY IN NUMBER, 3 XML_OUTPUT OUT VARCHAR) 4 AS 5 BEGIN 6 XML_OUTPUT := BLABLA_KEY || ' and whatever else...'; 7 END; 8 / Procedure created. sudhakar@ORCL> sudhakar@ORCL>var XML_OUTPPUT varchar2(100); sudhakar@ORCL>exec BLABLA_VIEW_PROCEDURE (9151, :XML_OUTPPUT); PL/SQL procedure successfully completed. sudhakar@ORCL>print XML_OUTPPUT; XML_OUTPPUT -------------------------------------------------------------------------------- 9151 and whatever else... sudhakar@ORCL>
Post tells you...
var OUTPUT VARCHAR exec BLABLA_VIEW_PROCEDURE (9151, :OUTPUT); print OUTPUT
VARCHAR is not a valid TYPe to declare. Use VARCHAR2 (nnn) where nnn is a number.
VR,
Sudhakar B. -
What is the syntax to call a procedure with named parameters?
I should know this, but I can't seem to remember how to do it and did not find reference.
If I have a procedure like this:
CREATE or REPLACE myProc (inParam1 IN VARCHAR2, inParam2 in NUMBERS)...
If I want to call this stored proc with a call control and the name of the parameters instead of having to go through position, how should I do that?
That is to say, I know that I can do: call the myProc('somevalue'1)
But I want to be able to do something like this: call myproc (inParam1: = "somevalue", inParam2: = 1)-which doesn't seem to work. Anyone know the syntax I'm looking for?
Thank you!I don't know if you are referring to the call to the procedure according to the parameters.
His
Call MyProc (inParam1-online "somevalue", inParam2-online 1)
call MyProc (inParam2-online 1, inParam1-online "somevalue")
Hopefully it's that you make reference to.
-
Create the stored procedure with the table from another throw diagram PLS-00201
Oracle 10g. I'm new on procedures, so maybe I'm missing something obvious.
The ABC schema owner has table T2001_WRITEOFF. The SYSDBAs given SIUD Some_Update_Role and granted this role to developer user IJK. IJK user then created a private synonym T2001_WRITEOFF for ABC. T2001_WRITEOFF. It worked with the usual SQL DML commands.
When I try to create a simple procedure, it throws PLS-00201 identifier "T2001_WRITEOFF" must be declared and the points of the 2nd line.
create or replace procedure woof1(
fooname in T2001_WRITEOFF.territory%TYPE, <=== error points here
bardesc IN T2001_WRITEOFF.ind_batch_submit%TYPE) IS
BEGIN
INSERT into T2001_WRITEOFF
VALUES ( fooname, bardesc);
END woof1;
/What I am doing wrong?
Thank you
JimR
Grant the necessary rights directly to the user (not through a role):
http://asktom.Oracle.com/pls/asktom/asktom.download_file?p_file=6551289900368934430
-
Failed to create the stored procedure with the object as a parameter
Hello
No idea how to create procedures to the current data stored in SQLFire, try to run the command prompt "sqlf" per call "create_proc.sql" as give below error below
C:\SQLFire10Beta>sqlf sqlf version 10.4 sqlf> connect client 'localhost:1527'; sqlf> run 'create_proc.sql'; sqlf> CREATE PROCEDURE INSURANCE.SEARCHCUSTOMER (IN CUST OBJECT) DYNAMIC RESULT SETS 1 LANGUAGE JAVA PARAMETER STYLE JAVA READS SQ L DATA EXTERNAL NAME com.xxx.xxx.sqlfire.dao.CustomerSearchProcedure.searchCustomer; ERROR 42X01: Syntax error: Encountered "" at line 1, column 47. Caused by: SqlException: Syntax error: Encountered "" at line 1, column 47. at com.vmware.sqlfire.internal.client.am.Statement.completeSqlca(Statement.java:1838) sqlf> sqlf>
and I created a class Java as described below:public class CustomerSearchProcedure { public static void searchCustomer (BaseDTO[] customers, ResultSet[] outResults, ProcedureExecutionContext context) throws SQLException { BaseDTO searchCriteria = customers[0]; StringBuilder sql = new StringBuilder(); sql.append("SELECT * FROM INSURANCE.CUSTOMERS WHERE CUST_NAME LIKE '"+searchCriteria.getCustName().trim() + "%'"); Connection cxn = context.getConnection(); Statement stmt = cxn.createStatement(); ResultSet rs = stmt.executeQuery(sql.toString()); outResults[0] = rs; } //END OF METHOD }
This procedure is called class using the class StoredProcedure Spring DAOYou can let me know why am not able to create the procedure?
FYI, pots can also can be dynamically installed in the system by using the SYS. Table client-side JARS to transport the jar bytes rather than by requiring that the pot be accessible side Server (http://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.sqlfire.1.0/deploy_guide/Topics/sysjars_install.html)
-
StartDrag: understand the parameters (create boundaries)
Hello
I have a problem with the settings 'StartDrag', I want to create some kind of limits, but I can't.
Here's what I want to do:
the main idea is made a simple slider puzzle like this:
[1] [2] [3]
[6] [5] [4]
[7] [8] [..]
So what I need now, is that only [4] and [8] can be draggable, but also they can only go to the empty spot and then if, for example, that we get with this
[1] [2] [3]
[6] [5] [..]
[7] [8] [4]
only [5] and [3] can be draggable.
so if anyone can help on the "bunch" I'll be very grateful, or maybe I can use something else.
Thank you
Left, up, right, down parameters indicate the range of values allowed for the movement of the object relative to the parent guide.
So if the order includes 0,0,5,0 which forces the object to move between _x = 0 and _x = 5 horizontally and FLF = 0 with no permitted vertical movement - everything in what concerns mixing coordinate system object resides. So if your object is not sitting to _x = 0 5 and the FLF = 0, then it will be moved here when you launch the startDrag.
For what do you want to have the starting points be where the object is currently, as in... (false, this ._x, this ._y, this ._x + 5, this ._y)
You will notice that I used fake in there instead of true. The lock tries to force the object to lock his record with the mouse. Something where you prevent eligible movement, you don't want to try to force itself to align with the cursor at the same time... the user is not likely to be clicking on this specific point. Making false will make for smoother control because she struggles not to align with the cursor.
-
BlackBerry WebWorks app via a URL with the parameters of launch?
I have an application of WebWorks I want to start with a URL to the browser and pass parameters to query URL to the application in this way. Is this possible? How? I would be happy to use HttpFilterRegistry or API call, but I don't see how to use these approaches to get my WebWorks App settings, even if I write a custom extension. Example of code would be very useful, especially to consume the parameters. Or at least an indication of which API (s) for this.
This should be supported by the framework. What I would like to recoemmend is simply invoke the application according to the normal and placing the parameters in the URL to the standard '&' "?" rating.
Then take advantage of the class UTIL. JS out of the parameters passed required...
https://bdsc.webapps.BlackBerry.com/HTML5/APIs/BlackBerry.utils.URL.html
(If you need help, citing the app, it is done as invoke any other java application on the device)
R
-
Problems with the tab 'create PDF '.
I have a client who is trying to create a PDF from Word using the tab "create a pdf file. The PDF is created, but only the colorful behind her text boxes appear. It run Win7, Word 2010 and Acrobat Pro XI (with the last update). The same thing using the option "print to PDF". The word 'Save as pdf' works very well.
Word Document (image below)
It seems to be a kind of problem of incorrect overlay. You can solve the problem by selecting the command Edit Text & Images in Acrobat XI and right click on the boxes and selecting the command reorganize.
I saw this problem occurs with older .doc files opened in newer versions of Word. One thing you might try is to save the file word to another format such as RTF (first backup) and then resave a .docx before creating the PDF file.
-
problem with the tutorial: creating a dynamic playlist for streaming flash video
Hi, someone tried the tutorial: creating a dynamic playlist for streaming flash video?
I followed the instructions exactly as stated in the tutorial and test the fla file, it worked perfectly, when I open the swf file using macromedia flash 8. All looks good. Nothing has changed except that the url is replaced by 'rtmp://localhost/videosource' in the xml file.
After I publish the file by using the parameter: network access only, I try to open the file swf and html file, the thumbnail does not appear and there is no way I can click on videos. What I see is that the list, and there is no answer the flash media server 2. All files in the same folder. Someone please help with this problem? Thank you.. .i debug movie step by step
and realized that the xml file is read by the code...Your initial problem said it worked but not playing outside of the
Flash authoring environment simply load the SWF from the hard drive.The Flash programming environment is an environment of confidence and so you really
need to test what a swf loading in the mode of deployment since the
hard drive is not a valid deployment, unless a Flash player installed is
available outside the web browser that you would like you have the
Authoring tool and your users will not.Use a browser with http://yourdomain.com/yourmovie.html to make final
debugging.In this regard, you will need to debug movie when running in real time
mode in a web browser with http:// A technical track, I suggested is of
create a temporary TextField might be named out_txt and send the trace message to
It's like out_txt.text += 'my Expression of Trace ".--
LON Hosford
www.lonhosford.com
Number of happy bits exempts your way!
"free23"wrote in message
News:e4a37a$AK5$1@forums. Macromedia.com...
Sorry but I don't understand what you mean... to debug the movie step by step
and realized that the xml file is read by the code...
It is a sample of my log files:
#Fields: date time x - pid registered x x - ctx x-comment
2006-05-15 20:08:58 3072 unloaded application instance (i) 2651170
VideoSource/_definst_-
2006-05-15 20:48:19 3848 (s) FCApplication 2641173 successfully loaded.
2006-05-15 20:48:19 3848 (s) 2641173 Communication Executive
successfully.
2006-05-15 20:48:19 3848 (s) SimpleConnect 2641173 successfully loaded. -
2006-05-15 20:48:19 3848 (s) successfully loaded 2641173 videoconference. -
2006-05-15 20:48:19 3848 (s) 2641173 Video Playback loaded successfully. -
2006-05-15 20:48:19 law enforcement components of Communication 3848 (s) 2641173
successfully.
2006-05-15 20:48:19 3848 (s) 2641173 sends this message: Hello! You are
logged in as: not defined.
2006-05-15 20:48:19 3848 (e) 2641190 error: msg sent to the client command
connection has been accepted. -
2006-05-15 20:48:20 3848 (s) 2641173 sends this message: Hello! You are
logged in as: not defined.
2006-05-15 20:48:20 3848 (e) 2641190 error: msg sent to the client command
connection has been accepted. -
2006-05-15 20:48:20 3848 (s) 2641173 sends this message: Hello! You are
logged in as: not defined.
2006-05-15 20:48:20 3848 (e) 2641190 error: msg sent to the client command
connection has been accepted. -
2006-05-15 20:48:20 3848 (s) 2641173 sends this message: Hello! You are
logged in as: not defined.
2006-05-15 20:48:20 3848 (e) 2641190 error: msg sent to the client command
connection has been accepted. -
2006-05-15 20:48:20 3848 (s) 2641173 sends this message: Hello! You are
logged in as: not defined.
2006-05-15 20:48:20 3848 (e) 2641190 error: msg sent to the client command
connection has been accepted. -
2006-05-15 20:49:42 3848 (s) 2641173 sends this message: Hello! You are
logged in as: false. -
Installer for the simultaneous program defined with the parameters - Script SQL
I wrote a very simple sql script and I want to save it as a simultaneous Oracle program. I have included a parameter field in the sql script to allow the entry of a value to determine the number of days prior to the script. The script runs correctly in SQL * Plus, but when I try to record it as a competitor Oracle program I get the following errors below:
Although when I save this as a simultaneous program and set the configuration setting and run the simultaneous program and enter the number in the parameter field, work ends with an ERROR with the following:This works in SQL* PLUS SELECT emp_id, amount FROM tblSalaries WHERE hire_date > SYSDATE-&Days; Enter value for Days: 7 old 3: hire_date > SYSDATE-&Days new 3: hire_date > SYSDATE-7 And it provides my results....
If I put single quotes around '& days', in line 3, I get a different error:Enter value for Days: EXEC FND_CONC_STAT.COLLECT; hire_date > SYSDATE-EXEC FND_CONC_STAT.COLLECT; and * ERROR at line 3: ORA-00933: SQL command not properly ended
Do you know what could be the problem?ERROR at line 3: ORA-01722: invalid number
Thanks for the review!You can try one of these approaches-
1. replace '& days' in your script with "& 1"- or-".
2. Add the following to your script at the beginning
Days := &1;
PL see the developer's Guide Application for your specific version http://www.oracle.com/technology/documentation/applications.html EBS
HTH
Srini
Maybe you are looking for
-
Upward does not finish then save himself off
My phone has not been saved for 90 days, it is said even if I started doing a few times last night, I put it (backup now) he saw half way did get then proceeded to bed this morning, has not himself (to the top (a) and not been supported for 90 days?
-
Can you help me change my firefox to the previous appearance
I have firefox 11 is installed and all was fine until this morning. This morning my firefox has changed and the new look is gone. Now, it's one like this one ( http://4.bp.blogspot.com/-V1nKs3DJXV8/TYjln3ECuGI/AAAAAAAAAG0/S1RWMnO2mgc/s1600/F2.png ) I
-
I get nothing but a black screen when I turn on my HP laptop. I think it's because of static electricity.
-
U2412M, is no longer recognized by Windows 10?
Hello I have a Dell XPS and two monitors Dell, a U2412M and a U2415. Yesterday, I had to do a Windows 10 reset due to a software problem. However, now 10 Windows recognizes only the U2415. The U2412M he sees as a generic PnP monitor and sets a horrib
-
The Motorola HS820 earpiece/Headset Bluetooth Audio works with the Blackberry Bold 9700? It's not clear to me, if only the bluetooth Blackberry devices work with the Bold 9700, or any bluetooth device. With the Bold 9700 recognize to ask the code fo