How to pass multiple parameters while calling a pl/sql procedure based serv
Hi,
I have a pl/sql procedure based service that needs to be invoked from the bpel console for testing purpose. This procedure accepts multiple input values which are of varchar2,boolean and datetime data types. How can I get the bpel console to throw a UI where I can enter these values --in other words where(which file and where) can I specify that these are the input parameters that need to be entered along with their types.
Thanks for yr help!
Change the payload of the request 'Process WSDL' message type. Change the element of the payload for the RequestMessage to be 'InputParameters' from the XSD generated by the DB Adapter wizard.
Edit the payload (Element) - Choose 'Project Schema Files'. Select 'InputParameters' from the XSD.
You can also change the ResponseMessage by doing the same thing, except that you select 'OutputParameters' from the XSD.
Similar Messages
-
How to Pass Multiple Parameters To ReportReuest Method in Oracle BI 11g
Hi,
Am integrate Oracle BI Publisher 11g via Web Services in Oracle Forms,For that am developing code in PublicReportServiceClient Class. This worked properly with out passing parameter to the report. so how to pass parameters to the report . If Report is requried some Parameters to generate report.
If any one knows about How to Passing Multiple Parameters to ReportRequest Methos in Oracle 11g. Pls help me.
Am trying with the below code for PassParameters to ReportReuest Method in Oracle BI 11g. But by using this code am able to pass only one parameter to the Report, not for multiple Parameter Passing.
ArrayOfParamNameValue PnameValue=new ArrayOfParamNameValue();
ParamNameValue Namevalue=new ParamNameValue();
Namevalue.setName("P_SNO"):
ArrayOfString aos=new ArrayOfString();
aos.getItem().add("2");
Namevalue.setValues(aos);
PnameValue.getItem().add(Namevalue);
ReportRequest RepReq = new ReportRequest();
RepReq.setParmeterNameValues(PnameValue);
Following method callRunReport() with an array of parameters used in Oracle Bi 10g,To pass multiple report parameters to ReportRequest method.
public void callRunReport (String reportPath, String[] paramName, String[] paramValue, Stringusername, String password, String format, String template, String outFile)
try {
bip_webservice.proxy.PublicReportServiceClient myPort =new bip_webservice.proxy.PublicReportServiceClient();
// Calling runReport
ReportRequest repRequest = new ReportRequest();
repRequest.setReportAbsolutePath(reportPath);
repRequest.setAttributeTemplate(template);
repRequest.setAttributeFormat(format);
repRequest.setAttributeLocale(“en-US”);
repRequest.setSizeOfDataChunkDownload(-1);
if (paramName != null)
ParamNameValue[] paramNameValue = new ParamNameValue[paramName.length];
String[] values = null;
for (int i=0; i<paramName.length; i++)
paramNameValue[i] = new ParamNameValue();
paramNameValue.setName(paramName[i]);
values = new String[1];
values[0] = paramValue[i];
paramNameValue[i].setValues(values);
repRequest.setParameterNameValues(paramNameValue);Ramani_vadakadu wrote:
window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
the above code we are using apex JS to BI publisher calling for report as PDF
i don't know exactly where your parameters , did you customize my link to multiple parameters
'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF¶mform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); -
How To Pass Multiple Parameters In URL with Report Builder
Hi,
I use apex 4.2 with database xe 11g and i use report builder to build my report i use this link to call report
function runrep(){
var vurl = 'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF¶mform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO');
popupURL(vurl);
now i want to pass Multiple Parameters like P138_ITEM_CODE , P138_UOM_CODE
how can i add this Parameters in URL ?
Regards
AhmedRamani_vadakadu wrote:
window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
the above code we are using apex JS to BI publisher calling for report as PDF
i don't know exactly where your parameters , did you customize my link to multiple parameters
'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF¶mform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); -
How to pass multiple parameters by URL?
hi i am having trouble passing multiple parameters by URL.
i tried the following codes but still not successful in using request.getParameter
<a href="remove.jsp?imageid=<%=imageId%>&userid=<%=user%>">remove</a>
<a href="remove.jsp?imageid=<%=imageId%>&userid=<%=user%>">remove</a>Looks good to me.
What parameters are you getting at the other end?
imageid and userid? (case is important)
What does the address url in the browser show?
What code are you using to retrieve the parameters? -
How to pass multiple parameters to DB adapter through BPEL process?
Hi All
I have created a BPEL process in which I am using invoke activity to call DB package.procedure having multiple parameters.Once the package gets executed it shows me custom exception message as input parameters are showing null values inside the package.
When I see the audit flow in BPEL instance , it shows correct values against each parameter in BPEL process.
Anybody know about this problem? why DB package is not able to read input parameters send through BPEL process?
Regards
YogiHi Chintan
Thanks for your reply.
Here is my procedure call. For these input and output parameters I have created variables @ BPEL process. Those variables are accepting values correctly.
PROCEDURE custom_po_proc(
p_return_status OUT VARCHAR2,
p_error_code OUT VARCHAR2,
p_error_desc OUT VARCHAR2,
p_debug IN VARCHAR2 DEFAULT 'N',
p_lgcy_trxn_num IN VARCHAR2,
p_trxn_type IN VARCHAR2,
p_operation IN VARCHAR2 DEFAULT NULL,
p_po_number IN VARCHAR2,
p_line_num IN VARCHAR2,
p_org_code IN VARCHAR2,
p_quantity IN NUMBER,
p_user_name IN VARCHAR2);
I just have one DB adapter based on above procedure.
How do I increase the logging level, have not done that before.
Regards
Yogi -
How to set multiple parameters in one EXECUTE IMMEDIATE sql
I want to set both nls_language and nls_date_language, and set them as different languages. fnd_global.set_nls_context() doesn't work. So I think maybe I can use the EXECUTE IMMEDIATE, and add them together into one statement. But I don't know how to make that happen. Can anybody help me? Thanks very much.
PS: It has to be done in one call.928091 wrote:
Hey, thanks for your answer, I forgot to mention that it has to be in begin-end block, do you know how?EXEC is a SQL Plus API that can be used to run PL/SQL code. What it does is put the PL/SQL code in a BEGIN .. END block and run it.
So you can also manually put the code in a BEGIN..END block and run like this.
SQL> begin
2 execute immediate q'[begin execute immediate 'alter session set nls_date_language = ''AMERICAN'''; execute immediate 'alter session set nls_language = ''AMERICAN'''; end;]';
3 end;
4 /
PL/SQL procedure successfully completed.
SQL> And i dont understand what possible benefit does it makes to do a single execution into a BEGIN..END over multiple execution.
Why this code is not of your interest, something like this
begin
execute immediate 'alter session set nls_date_language = ''AMERICAN''';
execute immediate 'alter session set nls_language = ''AMERICAN''';
end;
/ -
How to pass values to select clause in PL/SQL procedure
Am relatively new to PL/SQL programming and ran into the following issue...
Table
EMP_MASTER
ID VARCHAR2(10);
FIRSTNAME VARCHAR2(20);
DATA FOR EMP_MASTER
'1','SCOTT'
'2','TIGER'
I ran the following SQL Query
SELECT COUNT(*) FROM EMP_MASTER WHERE FIRSTNAME IN ('SCOTT','TIGER');
This select Query is working fine and we get the count = 2 as
expected. Now I want a procedure for the same fn()
CREATE OR REPLACE PROCEDURE TEST_EMP_MASTER(NAMELIST IN VARCHAR2)
IS
CNT NUMBER := 0;
BEGIN
SELECT COUNT(*) INTO CNT FROM EMP_MASTER WHERE FIRSTNAME IN (NAMELIST);
DBMS_OUTPUT.PUT_LINE('Output-->NAMELIST:'||NAMELIST||':cnt:'||cnt);
END;
Now when I test the procedure by passing just one value its working
fine. But when I want to pass multiple values, it doesnt work!
set serveroutput on;
i.e exec TEST_EMP_MASTER('SCOTT'); Works and the output is
Output--->NAMELIST:SCOTT:cnt:1
but don't get the expected output for exec TEST_EMP_MASTER('SCOTT,TIGER');
I understand that the IN modifier in the WHERE clause expects the
values as 'Value1','value2'....I tried different combination by the
passing the values with quotes '''value1'',''value2'''.....but no
successSelect e.*
From EMP_MASTER e;
ID FIRSTNAME
1 1 SCOTT
2 2 TIGER
3 3 CAT
4 4 MOUSE
SQL> create or replace procedure count_emp_master (p_namelist VARCHAR2)
2 AS
3 v_namelist VARCHAR2 (1000) := p_namelist;
4 v_name Varchar2(100);
5 v_count Number := 0;
6 p_count_emp Number := 0;
7 BEGIN
8 v_namelist := ',' || v_namelist || ',';
9
10 FOR cur IN 1 .. LENGTH (v_namelist) - LENGTH (REPLACE (v_namelist, ',', '')) - 1
11 LOOP
12 v_name := (SUBSTR (v_namelist,
13 INSTR (v_namelist, ',', 1, cur) + 1,
14 INSTR (v_namelist, ',', 1, cur + 1)
15 - INSTR (v_namelist, ',', 1, cur) - 1
16 ));
17 Select Count(1)
18 Into v_count
19 From emp_master
20 Where FIRSTNAME = v_name;
21
22 p_count_emp := p_count_emp + v_count;;
23
24 END LOOP;
25
26 dbms_output.put_line ('namelist --> '||p_namelist ||'p_count_emp -->'||p_count_emp);
27 END count_emp_master;
28 /
Procedure created
SQL> exec count_EMP_MASTER('SCOTT');
namelist --> SCOTTp_count_emp -->1
PL/SQL procedure successfully completed
SQL> exec count_EMP_MASTER('SCOTT,TIGER');
namelist --> SCOTT,TIGERp_count_emp -->2
PL/SQL procedure successfully completed
SQL> exec count_EMP_MASTER('SCOTT,TIGER,CAT');
namelist --> SCOTT,TIGER,CATp_count_emp -->3
PL/SQL procedure successfully completed
SQL> exec count_EMP_MASTER('SCOTT,TIGER,CAT,MOUSE');
namelist --> SCOTT,TIGER,CAT,MOUSEp_count_emp -->4
PL/SQL procedure successfully completed
SQL> Message was edited by:
Nicloei W -
IN operator is not working correctly while calling,although pl/sql procedur
CREATE or REPLACE PROCEDURE TEST(
idListCommaSeparated IN VARCHAR2
AS
CURSOR c_emp IS SELECT first_name,last_name,start_date From Employee where id IN(idListCommaSeparated);
r_emp c_emp%ROWTYPE;
begin
insert into temp1 values('B',sysdate,sysdate,'A');
open c_emp;
loop
fetch c_emp into r_emp;
exit when c_emp%NOTFOUND;
insert into temp1 values(r_emp.first_name,sysdate,sysdate,'A');
--business Logic
end loop;
close c_emp;
end;
/idListCommaSeparated contains values like (2,3,4). while executing this procedure on sqlplus it is succefully created.
When i run the query separately on sqlplus
SELECT first_name,last_name,start_date From Employee where id IN(2,3,4)I got some rows in result.
why i am not getting via procedure correct result.
and one more thing the number of elements in 'idListCommaSeparated' values are not fixed,sometimes it may be(2,3,4) or sometimes variable value may (2,3,5,6).
I am not able to understand,where i am going wrong?see whether you find nested table parameter implantation option useful. Also supported by .net/java in case that's your calling appln.
Below is plsql block having a procedure with input paramater of empid's. It returns a cursor( empno and ename) as out parameter.
The empid's are hardcoded in the calling block.
SQL> create type t_id is table of number
2 /
Type created.
SQL> set serveroutput on
SQL> declare
2
3 v_tid t_id;
4 v_results sys_refcursor;
5
6 v_employee_id number;
7 v_name varchar2(100);
8
9 procedure TEST (p_tid in t_id, p_empcursor out sys_refcursor) as
10 begin
11 open p_empcursor for
12 select empno, ename from scott.emp
13 where empno in (select column_value from table (p_tid));
14
15 end;
16
17
18 begin
19 v_tid := t_id(7902,7934);
20
21 TEST(v_tid,v_results);
22
23 IF v_results IS NOT NULL
24 THEN
25 LOOP
26 FETCH v_results
27 INTO v_employee_id, v_name;
28
29 EXIT WHEN (v_results%NOTFOUND);
30 dbms_output.put_line(v_name);
31 END LOOP;
32
33 IF v_results%ISOPEN
34 THEN
35 CLOSE v_results;
36 END IF;
37 END IF;
38
39 end;
40 /
*FORD*
*MILLER*
PL/SQL procedure successfully completed.
SQL> -
How to pass multiple values while invoking bpel process from ADF?
Hi,
I want to call a bpel process from my ADF application. The bpel process is having one input parameter. I have created webservice data control by using WSDL url.
Lets say, I have an Emp multi select table. I drag and drop the data control into Emp table selection facet to create an "Invoke" button.
I am able to pass single value (lets say Empid) to the bpel process after clicking the "Invoke" button.
But, my requirement is to pass all the selected values ( as its a multi select table) to the bpel process after clicking the "Invoke" button once.
How can I achieve this?
--AbhijitHi,
if the BPEL method that you access allows you to pass arrays or lists, then you can get a list of selectedRowKeys from the table, which then you use to get the value from the underlying binding or the table. This however requires some Java coding instead of directly invoking the executable on the binding layer
- you create the BPEL method in the binding layer
- from a Java managed bean you call ADFBindingContext --> get current instance and access Binding container
- OperationBinding oper = (OperationBinding ) bindings.get("method to invoke");
oper.gerParamsMap().put("the BPel argument name", value);
oper.execute();
- To access the table selected rows
RowKeySet rks = _table.getSelectedRowKeys();
//iterate over the set of selected row keys and delete
//each of the found rows
Iterator selectedRowIterator = rks.iterator();
while (selectedRowIterator.hasNext()){
//get the first key
Object key = selectedRowIterator.next();
//make the row current
_table.setRowKey(key);
//the row is an instance of the ADF node binding class
JUCtrlHierNodeBinding rowWrapper = null;
rowWrapper = (JUCtrlHierNodeBinding) _table.getRowData();
//get the actual oracle.jbo.Row object
Row row = rowWrapper.getRow();
... get attribute values by calling row.getAttribute("name"); assuming you used ADF BC to build the tableFrank -
How To Pass Multiple Parameters In URL
Hi All,
I have a requirement to pass two paramaters to the URL which is expected to open a report with filtered data.
The context is, I have two reports 1. mainreport 2. subreport.
The mainreport provides a link ( which is TestcaseId ) which on clicking opens the subreport.
In my case the TestcaseId can have duplicates.So i wanted to pass the TestPlan name which helps me filter the data specific to the testcase which is clicked.
Expectation: I want the TestcaseId link to pick up the TestPlan name too when clicked and present the filtered data in sub report.
Note: The TestcaseId and TestPlan name are dynamic and should be picked from the main report.
I already have the report configured to pick the TestcaseId and now would like to know how do i pass TestPlan name as well to the URL.
Please help me with this.
Thanks,
ShekarHi Bipuser,
Thank you for your points.
I have URL with both the parameters defined in it.
Let me explain my requirement in detail.
My main report displays the contents in a table like the example below
Test Case Id Test Plan
TC_1.1 ACR758TripReport
TC_1.2 ACR758TripReport
TC_1.3 ACR758TripReport
TC_1.1 ACR539
The test case ids are displayed as links and on clicking will open the subreport with detailed steps.
Considering the example above. When i click TC_1.1 which is appearing twice in the table, The subreport should fetch only steps specific to the test plan in the same row and not all.
So,To filter the data, I wanted to pass the test plan name to the URL.
Can you list out the steps in detail to achieve this.
Note: User clicks only on Testcase id link but the URL should pick testcaseid and testplan name to fetch the data.
Regards,
Shekar
Edited by: user12210094 on Apr 26, 2012 2:24 AM -
How to pass multiple parameters to Query using START WITH, CONNECT BY OBIEE
Hi
I have following oracle query which need to be used as a Data Source in OBIEE Physical Layer. I guess I have to create stored proc. How do I implement this in OBIEE RPD and how do I implement the respective Dashboard prompts for the parameters.
SELECT
CIRC.PATH_NAME, CIRC.BANDWIDTH , CIRC.CATEGORY, CIRC.CUSTOMER_ID,
CIRC.STATUS, CIRC.CUSTOMER_NAME,
QUER.LEV
FROM
CIRCUIT_PATH circ, VAL_CUSTOMER cust,
( SELECT
DISTINCT CIRC_PATH_INST_ID, LEVEL LEV
FROM
CIRC_PATH_ELEMENT
START WITH
CIRC_PATH_ELEMENT.CIRC_PATH_INST_ID IN ( SELECT
DISTINCT CIRC_PATH_INST_ID
FROM
PORTS a
WHERE SITE_NAME = @variable('Enter a Site Name')
AND CARD_SLOT = @variable('Enter a Card Slot')
CONNECT BY
PRIOR CIRC_PATH_ELEMENT.CIRC_PATH_INST_ID =
CIRC_PATH_ELEMENT.PATH_INST_ID
AND ELEMENT_TYPE != 'K' ) QUER
WHERE
circ.circ_path_inst_id = QUER.CIRC_PATH_INST_ID
and circ.cust_inst_id = cust.cust_inst_id (+)
ORDER BY
LEV DESC , CIRC.PATH_NAME ASC, CIRC.BANDWIDTH ASC
Thanks
DGHi John
Thanks. I looked at your URL. I do have package. Just using procedure. So my initialization string (For stored proc in Physical Layer of RPD) is
exec demo.add_employee(VALUEOF(NQ_SESSION.empid1));
But when I run request in Answer I get the error
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 900, message: ORA-00900: invalid SQL statement at OCI call OCIStmtExecute: exec demo.add_employee(105); . [nQSError: 17011] SQL statement execution failed. (HY000)
What should I put in initialization string in RPD?
Thanks
DG -
How to pass multiple parameters from jsp to servlet using iframe
function updGrade(grd,actDetID,sID)
updateFrame.location="/clucas/updateServ?s_id="+sID.value+" &act_ID="+actDetID.value+" &grade="+grd.value+";
hi, i have this javascript on my jsp and try to send those three params to updateServ servlet inorder to update a grade value to database, but for some reasons it does not work. It is only work when I pass one parameter only.
Can anybody help me with this please?
thanksYou have spaces before the & signs. They can't be there:
function updGrade(grd,actDetID,sID)
updateFrame.location="/clucas/updateServ?s_id="+sID.value+
"&act_ID="+actDetID.value+
"&grade="+grd.value;
} -
How to pass multiple parameters to vo
Hi,
I wrote Serializable method In co
String orgcode1 = pageContext.getTransactionTransientValue("asset12").toString();
String assetid = pageContext.getTransactionTransientValue("asset1").toString();
Serializable[] np1={orgcode1,assetid};
am.invokeMethod("xxEx1",np1);
I wrote in AMImpl
public void xxEx1(String na2,String na3)
internalcpVOImpl vo =getinternalcpVO1();
String wc1="organization_code='"+na2+"'";
String wc="SEGMENT1='"+na3+"'";
vo.setWhereClause(null);
vo.setWhereClause(wc1);
vo.setWhereClause(wc);
vo.executeQuery();
I need add that where classes in this vo
SELECT distinct meav.c_attribute1, msi.segment1 ,mp.organization_code
FROM csi_item_instances cii,
mtl_system_items_b msi,
mtl_eam_asset_attr_values meav,
mtl_parameters mp
WHERE meav.SERIAL_NUMBER = cii.SERIAL_NUMBER
And meav.MAINTENANCE_OBJECT_ID = cii.INSTANCE_ID
And meav.ORGANIZATION_ID = cii.LAST_VLD_ORGANIZATION_ID
And meav.attribute_category = 'Asset Common Details'
And msi.inventory_item_id = cii.inventory_item_id
And meav.organization_id = mp.organization_id
------------------------------- 1 ( nedd add vo.setWhereClause(wc1);)
------------------------------------2 ( vo.setWhereClause(wc);)
It is only adding first parameter where class it's not adding second parameter where class please give me any solution
Regards,
MahaThank You Shobhit basis on you are code it's working future reference purpose i posted code .
I wrote Serializable method In co
String orgcode1 = pageContext.getTransactionTransientValue("asset12").toString();
String assetid = pageContext.getTransactionTransientValue("asset1").toString();
Serializable[] np1={orgcode1,assetid};
am.invokeMethod("xxEx1",np1);
In am i am using below code
public void xxEx1(String na2,String na3)
internalcpVOImpl vo =getinternalcpVO1();
String whereClause="organization_code='"+na2+"' AND SEGMENT1='"+na3+"'";
vo.setWhereClause(null);
vo.setWhereClause(whereClause);
vo.executeQuery();
In vo i wrote this code
SELECT distinct meav.c_attribute1, msi.segment1 ,mp.organization_code
FROM csi_item_instances cii,
mtl_system_items_b msi,
mtl_eam_asset_attr_values meav,
mtl_parameters mp
WHERE meav.SERIAL_NUMBER = cii.SERIAL_NUMBER
And meav.MAINTENANCE_OBJECT_ID = cii.INSTANCE_ID
And meav.ORGANIZATION_ID = cii.LAST_VLD_ORGANIZATION_ID
And meav.attribute_category = 'Asset Common Details'
And msi.inventory_item_id = cii.inventory_item_id
And meav.organization_id = mp.organization_id
Regards,
Maha -
Passing multiple parameters between two report portlets on the same page
Hi,
I want to pass multiple parameters between two report portlets on the same page.
I have been succussful passing a single parameter between two portlets. The
following are the steps :
(1) Created first report based on the query
SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
(2) Created 2nd report
select * from EMP where DEPTNO = :dept_code
(3) Added pl/sql code before display page on the 2nd report
portal30.wwv_name_value.replace_value(
l_arg_names, l_arg_values,
p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
et_value('dept_code'),10)));
(4) Created a page and added these reports as portlets.
Sofar it works fine for one parameter (deptno) . Now I want to add one more
parameter say empno to my first report query and would like to pass both the
parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
Thanks
AsimHi,
You will have to do the same thing
The select will be like this
SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
FROM EMP
In the additional plsql code do the same for empno like this
mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
Thanks,
Sharmila -
Passing multiple parameters in sql query
Hi All,
This may not be the correct place to post this.
How to pass multiple paramters to a variable in sql developer.
Ex: Select * from Country where state= :statename (Country is table name, state is column name)
If I execute the above query in SQL Developer I can pass only one parameter at a time for :statename ie either KERALA,KARNATAKA,PUNJAB etc.
How can I pass multiple values (all KERALA,KARNATAKA,PUNJAB) or ALL column values at a time in SQL Developer.
Thanksuser1668671 wrote:
How to pass multiple paramters to a variable in sql developer.A scalar variable by definition cannot store more than one value at a time.
Array type variables can, as this example using the built in type odcivarchar2list shows
SQL> select
2 object_name,
3 object_type
4 from
5 all_objects o
6 where
7 o.object_name in
8 (select column_value from
9 table(sys.odcivarchar2list('DUAL','ALL_OBJECTS')));
OBJECT_NAME OBJECT_TYPE
DUAL TABLE
DUAL SYNONYM
ALL_OBJECTS VIEW
ALL_OBJECTS SYNONYM
ALL_OBJECTS VIEWHere is a full discussion with multiple solutions for various versions including a string parsing
http://tkyte.blogspot.com/2006/06/varying-in-lists.html
Does SQL Developer support array type variable? I don't know they may know here {forum:id=260}
Otherwise the link above shows how to parse a single character variable into multiple values that will be needed.
Maybe you are looking for
-
Adding a 2nd Residential Phone Line
Last night I ordered a 2nd phone line from Verizon for my kids. I nevered received a confirmation email but checked my order and it says it was processed already. So now that a bought a new telephone number to use, what's next? How do I go about gett
-
Oracle Upgrade to 9i for BO 5i
I'm preparing for an Oracle upgrade from 8.1.6 to 9.2 and a unix server migration via Oracle Export / Import. Potentially going on to 10g at a later point. Will importing the BO user and re-pointing users to the new database be sufficient to upgrade
-
I had already forgot my answer ! Now I can't purchase any app, help ! Thanks!
Hi,I want to buy some apps today. While I was ready to purchase , the store ask me to answer my security questions. But I had already forgot my answer ! Now I can't purchase any app, help ! Thanks!
-
Hi ! As I get more baseline configured, I want to view report of compliance. I try to run the report : Summary compliance by configuration baseline I get this error message: An error has occurred during report processing. (rsProcessingAborted) Query
-
HT1766 Transfer photos from Samsung Eternity to I Phone5?
Purchasing iPhone. Want to transfer pics from Samsung Eternity cellphone.