How to pass the arguments dynamically to a Oracle procedure.
Hi all..
How to pass the arguments dynamically to a procedure.
Thanks in Advance.
I have a concurremt program which has 5 parameters right now. The user can add more parameters from front end as per their requirement.
So that time.. the 6th parameter has to add to my procedure dynamically.
Thanks.
Similar Messages
-
How to pass the value dynamically in exp/imp utilities of oracle
I want to pass the value of org_grp_i dynamically,instead of passing the value
19.Can you please tell how to write the script to this
exp fas/xxxxxx@fasbd001 file=audit_grn_28aug.dmp tables=audit_grn query=\"where org_grp_i=19 \"
where xxxxxx is the password
ThanksYou need to make use of command line arguments. You can go through this link for example.
http://www.freeos.com/guides/lsst/ch02sec14.html
In your shell script(say test.sh) you can have
exp fas/xxxxxx@fasbd001 file=audit_grn_28aug.dmp tables=audit_grn query=\"where org_grp_i=$1 \"$1 indicates it accepts the first argument from command line. if you want to pass 19, add that next to the script you're executing.
From command line you can call this shell script say test.sh 19 -
How to pass the "path" dynamically to KM navigation iView ?
HI Experts.
This is my issue:
I have a WD Java iView, with a data table.
In the same page, I have a KM navigation iview too.
Conceptually, each row in this table, have some documents in a CM Repository asociated.
This repository has subfolders for each master data in the table.
(example: imagine a table with material master data, and a repository with a subfolder for each material,
and inside of it, several unstructure documents about this material.
Then, I need to call a KM Navigation iview when click a table row, passing parameters, in special the "path".
I am using this code in my action (triggered from webdynpro iview)
WDPortalNavigation.navigateAbsolute("ROLES://portal_content/com.stk.demos.folders.zz_demos/com.stk.demo.ch.TEST_CH/com.stk.demo.ch.Listar_Docs",
WDPortalNavigationMode.SHOW_EXTERNAL, (String)null, (String)null,
WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS, "test",
(String)null, (String)null );
Partially it works, the window open and show the navigation iview, but...
in the root directory (or directory indicated in iView harcoded properties);
But I need pass the path !
How can I call that iView, dinamically using a parameter, the path (property ID: path)
to the KM navigation iView, in order to open initially in a indicated path?)
I have read this link
http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
but, I still can't understand how to use this parameters.
Thanks in Advance.
Leandro.Hi Leandro,
You can create your own proxy IView and then redirect it to KM Navigation IView.
This way you can dynamically change the path.
Check this to know about proxy IView:
KM Document Iview Source Code
/thread/190600 [original link is broken]
Regards,
Praveen Gudapati -
How to pass the Queues Dynamically in AQ
Hi,
I have created an AQ adapter using Enqueue operation to publish messages to Queue . This Aq Adapter Publish the messages to Queue which was given at design time . but my requirement is to publish the messages to different queues dynamically at Runtime .
Please suggest me some one.
Thanks.Follow the steps below.
1. Create an if condition based on the whatever the condition you want to change the JNDI.
2. Create assign activiey for true and false condition.
3. On left side you need to select XML Fragment in the expression window as per the value mentioned below.
+<EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2005/04/addressing">+
+<Address>eis/DB/XXX_SQLDB</Address>+
+</EndpointReference>+
4. On the right side you can have some other JNDI.
+<EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2005/04/addressing">+
+<Address>eis/DB/XXX_ORACLEDB</Address>+
+</EndpointReference>+
5. On the assign right hand side you have to point it to partnerlink of the service.
Thanks,
Vijay -
How to pass the values dynamically in record group?
oracle forms 6i
Hi to all,
i am developed a master detail form.in the master level one column is EMP_GRADE.these values like(A1,B1,C1,D1).
In the detail form one more column is DETAIL.in this DETAIL coloumn i am adding LOV.In the LOV my query Like this
SELECT DESCRIPTION FROM FND_LOOKUP_VALUES WHERE LOOKUP_TYPE=EMP_GRADE.
Here IF emp_grade =A1 then LOV shows 10 values
next IF emp_grade =B1 then LOV shows 10 values,but MY requirmrnt is IF EMP_GRADE is B1 then LOV show the B1 values and A1 Values.total 20 values.
it is possible or not?
any one help me..please.
Reagrds,
Stevie.
Edited by: 994418 on 30 May, 2013 4:34 AMIn 10G and above you could use the CASE-statement.
In Forms 6i you could use a UNION ALL, maybe like this.
SELECT DESCRIPTION FROM FND_LOKUP WHERE LOOKUP_TYPE='A1' and :EMPGRADE='A1'
UNION ALL
SELECT DESCRIPTION FROM FND_LOKUP WHERE LOOKUP_TYPE IN ('A1' , 'B1') AND :EMPGRADE='B1' -
How to pass a multidimensional array to an Oracle procedure?
How can I pass a multidimensional array to oracle array?
Thanx in anticipation,Look in to passing user defined type back and forth to Oracle. Any type that oracle supports, you can constract on the java side and send it across. Look into the SQLData class.
-
How to pass a array of object to oracle procedure using callable
Hi,
I am calling a oracle stored procedure using callable statement which has IN and OUT parameter of same type.
IN and OUT are array of objects. (ie) IN parameter as Array of Objects and OUT parameter as Array of Objects
here are the steps i have done as advised from oracle forum. correct me if i am in wrong direction
ORACLE types and Stored Procedure
CREATE OR REPLACE
TYPE APPS.DEPARTMENT_TYPE AS OBJECT (
DNO NUMBER (10),
NAME VARCHAR2 (50),
LOCATION VARCHAR2 (50)
CREATE OR REPLACE
TYPE APPS.DEPT_ARRAY AS TABLE OF department_type;
CREATE OR REPLACE package body APPS.insert_object
IS
PROCEDURE insert_object_prc (d IN dept_array, d2 OUT dept_array)
IS
BEGIN
d2 := dept_array ();
FOR j IN 1 .. d.COUNT
LOOP
d2.EXTEND;
d2 (j) := department_type (d (j).dno, d (j).name, d(j).location);
END LOOP;
END insert_object_prc;
END insert_object;
JAVA CODE
Value Object
package com.custom.vo;
public class Dep {
public int empNo;
public String depName;
public String location;
public int getEmpNo() {
return empNo;
public void setEmpNo(int empNo) {
this.empNo = empNo;
public String getDepName() {
return depName;
public void setDepName(String depName) {
this.depName = depName;
public String getLocation() {
return location;
public void setLocation(String location) {
this.location = location;
to call stored procedure
package com.custom.callable;
import com.custom.vo.Dep;
import oracle.jdbc.OracleCallableStatement;
import oracle.jdbc.OracleConnection;
import oracle.jdbc.OracleTypes;
import oracle.jdbc.pool.OracleDataSource;
import oracle.sql.ARRAY;
import oracle.sql.ArrayDescriptor;
import oracle.sql.Datum;
import oracle.sql.STRUCT;
import oracle.sql.StructDescriptor;
public class CallableArrayTryOut {
private static OracleDataSource odcDataSource = null;
public static void main(String[] args) {
OracleCallableStatement callStatement = null;
OracleConnection connection = null;
try {
odcDataSource = new OracleDataSource();
odcDataSource
.setURL("......");
odcDataSource.setUser("....");
odcDataSource.setPassword("....");
connection = (OracleConnection) odcDataSource.getConnection();
} catch (Exception e) {
System.out.println("DB connection Exception");
e.printStackTrace();
Dep[] dep = new Dep[2];
dep[0] = new Dep();
dep[0].setEmpNo(100);
dep[0].setDepName("aaa");
dep[0].setLocation("xxx");
dep[1] = new Dep();
dep[1].setEmpNo(200);
dep[1].setDepName("bbb");
dep[1].setLocation("yyy");
try {
StructDescriptor structDescriptor = new StructDescriptor(
"APPS.DEPARTMENT_TYPE", connection);
STRUCT priceStruct = new STRUCT(structDescriptor, connection, dep);
STRUCT[] priceArray = { priceStruct };
ArrayDescriptor arrayDescriptor = ArrayDescriptor.createDescriptor(
"APPS.DEPT_ARRAY", connection);
ARRAY array = new ARRAY(arrayDescriptor, connection, priceArray);
callStatement = (OracleCallableStatement) connection
.prepareCall("{call insert_object.insert_object_prc(?,?)}");
((OracleCallableStatement) callStatement).setArray(1, array);
callStatement.registerOutParameter(2, OracleTypes.ARRAY,
"APPS.DEPT_ARRAY");
callStatement.execute();
ARRAY outArray = callStatement.getARRAY(2);
Datum[] datum = outArray.getOracleArray();
for (int i = 0; i < datum.length; i++) {
oracle.sql.STRUCT os = (oracle.sql.STRUCT) datum[0];
Object[] a = os.getAttributes();
for (int j = 0; j < a.length; j++) {
System.out.print("Java Data Type :"
+ a[j].getClass().getName() + "Value :" + a[j]
+ "\n");
connection.commit();
callStatement.close();
} catch (Exception e) {
System.out.println("Mapping Error");
e.printStackTrace();
THE ERROR
Mapping Errorjava.sql.SQLException: Inconsistent java and sql object types
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130)
at oracle.sql.StructDescriptor.toOracleArray(StructDescriptor.java:823)
at oracle.sql.StructDescriptor.toArray(StructDescriptor.java:1735)
at oracle.sql.STRUCT.<init>(STRUCT.java:136)
at com.custom.callable.CallableArrayTryOut.main(CallableArrayTryOut.java:48)You posted this question in the wrong forum section. There is one dedicated to Java that was more appropriate.
Anyway here is a link that describes what you should do.
http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/oraarr.htm#i1049179
Bye Alessandro -
How to pass an argument to a standalone java class in JDeveloper
To the experienced:
In JDeveloper when you write a java class with a main() method that takes no argument, you just right click the java file and select Run to run the program. But suppose the main() method takes arguments, how do you pass your arguments to the program? This is especially a problem as I use the studio version of JDeveloper (Versions 10.1.3.4 and 11.1.1.3) that each uses the version of JDK bundled with it, rather than the JDK (which is yet another different version) installed at the OS level of the PC.
Many thanks for your help!
NewmanHi, Puthanampatti,
Suppose a java class has a main() method:
<pre>
public class FormatTerm {
public static void main(String[] args) {
String year = args[0];
String semester = args[1];
</pre>
What I want to know is how to pass the arguments when invoking FormatTerm within JDeveloper (i.e., without going out of JDeveloper to invoke FormatTerm on a command line in DOS). I would appreciate it very much if you know how to do that in JDeveloper 11g (I use Version 11.1.1.3) and could help me out.
Thank you very much for your help!
Newman -
Please help how to pass the dynamic value to VO -- Urgent.
Hi,
I have an Oracle Standard VO( SQL Query). As per my requriemnt i extended standard VO with one new feild.Now i want to query the new VO dynamically.
How to pass the dynamic values to new query?
for refence i am giving my old query.
select
secondary_inventory_name as SubInventoryName,
description as Description,
from mtl_secondary_inventories
my new Query is like this:
select
secondary_inventory_name,
description,
Item
from mtl_secondary_inventories
where item='123456'
I want to pass this "where item="123456" as dynamically. please help where i will do the change's.
Thanks,
Sekhar.Hi,
thanks pratap for quick response...but i am extending VO from Standard VO.
I have a Standard VO which contains a bind variable suppose :1.
I have extended this above standard VO and i want to add another bind variable say :2 to the custom VO.
Please tell me how will i pass bind parameter value to the bind variable in runtime ?
what are files i want to change?
Thanks,
Sekhar. -
How to pass the dynamic URL of web services in JAVASCRIPT in ADOBE
Hi,
In the below scenario how do i pass the URL dynamically from context's importing parameters instead of hard coding.
var cURL = "http://................" ;
var service = SOAP.connect(cURL);
xfa.connectionSet.connectionname.execute(0);
B'coz the URL is going to be different in Dev, Test, Prod system. In this case i can't hardcode the URL as explained in previous treads. Or please provide the possible alternatives.
Any help is highly appreciated.
Regards,
SathishHi,
Got the solution for
var cURL = "http://................" ;
var service = SOAP.connect(cURL);
xfa.connectionSet.connectionname.execute(0);
I tried with
var cURL = xfa.form.data.PAGE2.SubFormPage.IM_URL.rawValue ;
var service = SOAP.connect(cURL);
xfa.connectionSet.connectionname.execute(0);
xfa - Root Node
form - Model
data - Form Design Root Node
PAGE2 - Page Name
SubFormPage - Sub Form inside the page
IM_URL.rawValue - Importing field to Adobe{ which i dragged from Data view into sub form(SubFormPage) & set the field as invisible so that it won't be available to user}
Working as expected.
Thanks,
Sathish -
How to pass Stages Guid dynamically in declarative workflow
hello,
How to pass Stages Guid dynamically in declarative workflow.
Example For List we used to pass guid like this
System.Guid.Parse("{$ListId:Lists/Testlist;}")
help me out to pass stage guid...
any help would be appreciated!!!!
Thanks regards, Vignesh.You need to make use of command line arguments. You can go through this link for example.
http://www.freeos.com/guides/lsst/ch02sec14.html
In your shell script(say test.sh) you can have
exp fas/xxxxxx@fasbd001 file=audit_grn_28aug.dmp tables=audit_grn query=\"where org_grp_i=$1 \"$1 indicates it accepts the first argument from command line. if you want to pass 19, add that next to the script you're executing.
From command line you can call this shell script say test.sh 19 -
How to pass the out put of ListFiles as input to SynchronousRead FileAdaptor in Oracle SOA
Hi All,
I have list of XML Files in one folder, i want to read all the files one by one ,
i can use the ListFiles to get all the files, i want pass each files at a time as input to SynchronousRead.
i know how to pass the file names dynamically to SynchronousRead File Adaptor, but i dont know how to handle the file list, and passing one at a time from the list
Any help please,Thanks for your reply PuneetRekhade,
i could not see ant for each activity in the Bepel activities,but in transformation i could make use of for-each do display the all the filenames,
i have used while , with following condition number(bpws:getVariableData('Invoke1_FileListing_OutputVariable','filelist','/ns1:filelist/@size'))>=number(bpws:getVariableData('count_Files')),
and in side the while loop , created assign activity which gives assign one file name at a time by acessing the list index.
bpws:getVariableData('Invoke1_FileListing_OutputVariable','filelist',"/ns1:filelist/ns1:file[bpws:getVariableData('count_Files')]/ns1:filename")
i have incremented count variable at the end of the loop. -
How to change the image dynamically depend upon the input parameter
Hi All
I have one report running depend upon the Organization specific, I have 15 operating unit and 15 different logo for each operating unit.
How to change the Logo dynamically depend upon the input passed by the user.
If I have three or four logo i can add in my layout using if else statement and its works fine but i have more that 10 logos so its no possible to keep these in My RTF Template.
Is it possible to change the logo according to the input without keeping this in Template.
I have seen this link but its not working fine
http://erpschools.com/articles/display-and-change-images-dynamically-in-xml-publisher
Regards
Srikkanth.MHi,
I have not completed fully,so sorry i cant able to share the files, could you please give me some tips and steps to do.
Without having the logo in RTF if it possible to bring the logo depends on the user input (Ie Operating unit).
Regards
Srikkanth -
How to pass the value to "Assignment" when submit the program RFITEMGL?
Hello friends,
I want to submit program RFITEMGL (t-code FBL3N) with some screen fields, some fields are OK to fill such as u201COpen at key dateu201D, u201CG/L accountu201D and u201CCompany codeu201D。 But for the field "Assignment" (It will appear after cilck Dynamic Selection), I don't know how to pass value to it.
Could you help me about how to pass the value to "Assignment" when submit the program RFITEMGL (t-code FBL3N) ?
Thanks a lot!Hi,
Well you can create a small BDC.
Regards,
Harsh Bansal -
How do I pass the exact datetime parameter in a procedure.
How do I pass the exact datetime parameter in a procedure.
Hi All,
I have a datetime problem which is driving me crazy.
I need pass a datetime field as a parameter in an oracle procedure exactly as below with timestamp.
Example: '6/01/2005 5:25:24 AM'
SQL > exec myprod(‘value1’,’value2’,’value3’, to_date('6/01/2005 5:25:24 AM','dd-mm-yyyy hh24:mi:ss'));
I get an error “INVALID MONTH”
Next Changed to_date to to_char
SQL > exec myprod(‘value1’,’value2’,’value3’, to_char('6/01/2005 5:25:24 AM','dd-mm-yyyy hh24:mi:ss'));
I get a different error, “INVALID NUMBER”
Next pass the datetime as it is.
SQL > exec myprod(‘value1’,’value2’,’value3’, '6/01/2005 5:25:24 AM');
I get an error “INVALID MONTH”
Here is the my procedure.
CREATE OR REPLACE PROCEDURE myprod (
p_value1 varchar2,
p_value2 varchar2,
p_value3 varchar2 ,
p_value4 date )
IS
filehandler UTL_FILE.FILE_TYPE;
va_currentdate DATE;
BEGIN
SELECT sysdate
INTO va_currentdate
FROM dual;
END;
Do you know any solutions for this problem.
ThanksWhat is your NLS_DATE_FORMAT value?
There seem to be some implicit data conversions in your arguments.
SQL> select parameter,value from nls_session_parameters where parameter like '%DATE%';
PARAMETER VALUE
NLS_DATE_FORMAT YYYY-MM-DD HH24:MI:SS
NLS_DATE_LANGUAGE AMERICAN
SQL> select to_date('6/01/2005 5:25:24 AM','dd-mm-yyyy hh24:mi:ss') from dual;
select to_date('6/01/2005 5:25:24 AM','dd-mm-yyyy hh24:mi:ss') from dual
ERROR at line 1:
ORA-01830: date format picture ends before converting entire input string
SQL> select to_date('6/01/2005 5:25:24 AM','dd-mm-yyyy hh:mi:ss am') from dual;
TO_DATE('6/01/20055
2005-01-06 05:25:24
Maybe you are looking for
-
Iphoto turns on when I plug in my iPad
When I plug my iPad or iPod Touch into my Mac iPhoto opens up. I really don't want this but haven't found a way to stop it. Is there a way?
-
Almost there!! need some help!
oke, I got my 875p-neo mobo, my instability problems were gone. I flashed the bios to 1.6 and am now running my pc in turbo mode :D ....But I am not there yet. when I set my bios in ultra turbo it wont boot. even with mem voltage on 1.7. I have 2 cor
-
IChat always makes me enter an AOL password. I DON"T USE AOL. Please help
When ever I try to make my iChat status to available a box pops up with the heading AOL Instant Messenger password and under it it says iChat can't log in to (my account) because your login ID or password is incorrect. My iChat password is only 7 cha
-
Windows phone application deploment(8.1) error in opened
when i open windows phone application deploment(8.1) to deploy appx file show this message : ========== could not load file or assembly "Microsoft.SmartDevice.MultiTargeting.Connectivity, V ersion=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f
-
SGEN Software component clarification
Hi, I ran SGEN by selecting the sap_appl software component but even after the process finished the FI module t.codes are not fully compiled yet. For example when i went to fb50 t.code the program was not pre-compiled yet and the system compiled it o