Competitive access Manager - calling a procedure on the external database
HelloI have a job that must be planned, but also has an option to be run on demand. This work calls a procedure that resides on a package on a database server that is different from the server of E Business Suite database. (This procedure fills the Oracle Interface tables)
As I understand it, I need to create a DBLink of EBS to my database and a DBLink to my database at EBS. Is it possible to call a routine that is located on an external database?
Thank you
Stephen
This can be achieved by the following-
1 create a link of db of the database of the EBS at the remote database using a schema that has the necessary privileges to run the package code.
2. create a synonym in the basis of EBS pointing to the code in the package to the remote database.
3. enroll in a program of concurrent running the synonym.
4. run simultaneous program on planned or adhoc basis.
HTH
Srini
Tags: Oracle Applications
Similar Questions
-
calling a procedure in the loop
I just want to know one thing:
I call a procedure with the following parameters
DECLARE
PROFIT_CENTER NUMBER ;
START
PROFIT_CENTER : = 1109--(de même, je fais tourner le proc pour 5 profit_centers plus 1123,1132,1122,3211,1111 un par un en passant les valeurs manuellement, il prend près d'une minute pour chaque centre de profit)
Prc_test_calc () PROFIT_CENTER);
COMMIT;
END;
For each proc profit_center takes 1 minute (approx.) time.
But when I'm putting loop to call the procedure for each profit_center, I don't know why it takes too long for each profit_center
Please let me know is there something wrong with the loop below
DECLARE
PROFIT_CENTER NUMBER ;
cursor c_profit is
Select separate PROFIT_CENTER de plng_pc où profit_center in ()1109 1123,1132,1122,3211,1111)-Plng_pc is a table where profit_center information is obtain from
START
For pc_rec in c_profit
loop
Prc_test_calc ( pc_rec . PROFIT_CENTER );
COMMIT;
End loop;
END;
Could you please sugget me if something goes wrong?
Hello
as suggested, have you checked the query for the cursor loop and have you tried the process with no cursor loop.
Concerning
André
-
Can we call a procedure in the select statement?
Can we call a procedure in the select statement?Hello
Raghu_appsdba wrote:
Can we call a procedure in the select statement?# You can call functions, but not procedures.
If the procedure does not change the State of the database (for example, it isn't updated all tables), then you can wrap it in a function, or re - write function.
Here is an example of wrapping.
CREATE OR REPLACE FUNCTION fun_x (in_txt IN VARCHAR2) RETURN VARCHAR2 IS BEGIN proc_y (in_txt); RETURN in_txt END fun_x;
-
Call stored procedures in the object module and application of entity
Hello
I've implemented a helper methods that contains the EntiyImpl base class to call stored procedures.
Now, I need to call procedures stored from the module of the application.
Apart from the creation of a module base class asks and the programme of assistance of duplication of code in the method is possible
to share methods of assistance for calling stored procedures between the entity impl and application module impl?
Concerning
PaulSupport code depends on characteristics of an object instance given entity beyond its database transaction?
If so, I'm not sure I see how it could be used with a class of application module.
Otherwise, here's what you do:
Step 1:
Set up the database transaction - you can even choose to. So instead of
{myHelperMethod (Object someParam) protected
DBTransaction trans = getDBTransaction();
...
}This is for change
protected myHelperMethod (DBTransaction trans, someParam Object) {}
...
}Step 2: make the method public and static - once you set DBTransaction, you should be able to do.
public static myHelperMethod (DBTransaction trans, someParam Object) {}
...
}Step 3: Remove your EntityImpl base class method in a utility class:
Public MustInherit class PlSqlUtils {}
private PlSqlUtils() {}public static myHelperMethod (DBTransaction trans, someParam Object) {}
...
}
}When you call the method of application module, object entity or class of same view object, call
PlSqlUtils.myHelperMethod (getDBTransaction (), paramValue);
Unlike Transaction.executeCommand (), allows you to provide features like the setting procedure of parameter values, recovery of the values of the parameters, etc.
Hope this helps,
Avrom -
Apex - with the external database audit trail
I'm currently installing a primitive audit trail that allows me to record data, create users, update, update user. I currently have 3/4 but I can not get the user name in the database like V ('APP_USER') is at the top and the database in Oracle 10 G elsewhere.
Suggestions or alternative ideas?
f1f7a787-7f56-4451-8300-5a9a0215226b
If v() and apex_application.g_user are not available in the trigger on the external database code.
But the external database package variables and procedures are available on the database running APEX.
What I would do, is to create a package with a package variable that will contain the user of the apex. (in the external database)
Then, in the application definition > session database > initialization code PL/SQL defined this package to the apex user variable.
Clear the package again variable in the cleanup code.
Using a package variable means that the value is aviable at the session of entire database but not outside the East.
Apex every page load or submit and load next page is a database session.
Now the package variable will be set when a user of the apex and the null value when there is a database user.
Using an nvl around the package with user variable as an alternative, will give you the user apex when the action was made by a user of the apex and the database user is not.
Nicolette
PS change your handle or at the signing of all least your post will result in a more friendly welcome message.
-
Announcement for the external database - Secure ACS 5.2 or LDAP
I'm working on the project with Secure ACS 5.2. I'm trying to determine the external database appropriate to use. LDAP or directly to the AD?
In addition, the field in which I connect to a several subdomains. All users are currently in the subdomains, but will move to the root domain later. How do I set up the connection, I have to connect to each subdomain or can I connect just to the root?
Thank you
Hello
If you are using PEAP (mschapv2) [password based authentication] your best bet is to tie ACS to AD, because PEAP-mschapv2 is a hash mechanism that is only supported when you bind to AD, it will not work if you use the ldap integration.
Your best option is to connect ACS for the root domain, so he can use the transitive trust relationships to find the information in its subdomains.
Thank you
Tarik Admani
* Please note the useful messages *. -
Call a procedure in the application. Frank please check this box
Hello
I hv download screen connection on the following site. Now, I'm trying to connect even with my database. I have this hv the field password of the application as previously only username is available in the user interface.
[http://blogs.oracle.com/shay/simpleJSFDBlogin.zip]
The problem is that my password of database field is protected by encryption of integrated oracle. There is a procedure I hv in the database for the encryption of the password. How can I call the procedure in the application? In the application I hv submitted business components and I hv attached procedure in demand as' database offline"I hv to fix each source database like this? is this right way that I followed to call the procedure?
Please guide me
Thanks in advance
Dounya.Hello
Take a look at the guide to the developer of the call of stored procedures and functions. Rather than base the query for the form of connection on a VO, you use a stored procedure function in a client method exposed on the VO or AM
http://download.Oracle.com/docs/CD/E12839_01/Web.1111/b31974/bcadvgen.htm#sm0297
Frank
-
Error when calling a procedure using an external table with c#.
Hello
I'm developing an application scheduler with Visual Studio 2010 (c#) to start my PL/SQL procedures.
Everything works fine with each procedure, but one who reads the contents of an external table.
Strange thing is when I start the same procedure with Toad, I have no problem, but when I run with my c# code:
OracleCommand cmdMET = new OracleCommand();
cmdMET.CommandText = 'STG_AE. M_MET_S_EXT_DEFECT ';
cmdMET.CommandType = CommandType.StoredProcedure;
con = cmdMET.Connection;
OracleParameter retvalMET = new OracleParameter ("value", OracleDbType.Varchar2, 50);
retvalMET.Direction = ParameterDirection.ReturnValue;
cmdMET.Parameters.Add (retvalMET);
cmdMET.ExecuteNonQuery ();
I got this error:
ORA-29913: error in executing ODCIEXTTABLEFETCH legend
ORA-01722: invalid number
ORA-06512: at "STG_AE. M_MET_S_EXT_DEFECT', line 8
ORA-06512: at "STG_AE. MET_SRC', line 10
ORA-06512: at "STG_AE. PUTS", line 14
ORA-06512: at line 1
I can't understand why it works when I run it with Toad and why I get this error when launching of it with c#... Any advice would be great!
Thank you!
I can't understand why it works when I run it with Toad and why I get this error when launching of it with c#... Any advice would be great!
The error led to think that a string to number conversion fails all by accessing the external table.
What is the format of numeric fields in the external file?
I'm guessing that your session NLS_NUMERIC_CHARACTERS setting is defined differently whether you're in your application c# or toad.
Could check you on both?
-
How to make a link to the external database
A good way to keep track of the photos in Lightroom that I submit for sales, etc. contest, I can't understand. I could make comments in the field of metadata of legend, but that would ruin my field of legend and is not so flexible. I could color code, but it is very limited. It seems that the ideal way would be to create an external database with something like Microsoft Access. By using the file name as the primary field, I would like a link it to additional fields, date introduced, if they are sent to, type (contest, sale of stock, gifts, etc.), price obtained, published date, etc.. Then I could see the history of a given image, run queries for all images shown at a particular location where the amount is > $0, etc..
As it is a hobby and the numbers are small, I could just enter all the data by hand, but if I still love a lot of commercial success, it would be nice if the database built into Lightroom. Ideally executed queries not only show the name of the file, but also show pictures, perhaps in the form of Collection in Lightroom. It seems that there must be professionals who follow this information. There may be a third-party program that does this. I would like suggestions.
Dan
How are you confident with programming or scripting? You'll maybe take a look at the software development kit that allows you to create custom fields. These are accessible through the filter of the library and smart collections. I have to say that both of us have written plugins for custom field definable by the user, but there are some technical limitations which made us hesitate to release them. But if you can write your own and then he support yourself, then you will be OK.
But the alternative of access is also viable. Database LR is SQLLite3 and there is a free ODBC driver for it. For example, you can link to tables of R. You must be OK with queries and happy digging around the tables (they are not publicly documented and notes logically-presentation of databases as much as I have met.
John
-
Oracle query of relay and access function call does not return the list
Thanks to aid in a previous post, I received, I created an oracle 10 g feature that returns the list after you run the sql code it contains. It works in oracle, using sql developer.
I need to have the list that he returned to see the place in MS Access via a relay request. It does not work so far. The string for connection etc is ok, I'm able to use passthrough queries to run sql strings correctly. But when I try to call the function through the request of relay and access initially nothing seems to happen (IE no list) and if I try to run again, there is an "ongoing call odbc error. Current operation cancelled "." There are only three records in the table. I'm missing something, someone can he spot?
The application of relay and looks like this
Select * from fn_testvalues of the double
Once that is running in oracle.
To create the test table and 2 functions below.
CREATE TABLE t_values (MyValue varchar2 (10));
Table created
INSERT INTO t_values)
SELECT 'Merced' c1 FROM dual UNION ALL
SELECT "Pixie" dual UNION ALL
SELECT "452" DOUBLE);
3 lines inserted
FUNCTION to CREATE or REPLACE RETURN NUMBER IS fn_isnum(p_val VARCHAR2)
n_val NUMBER;
BEGIN
n_val: = to_number (p_val);
RETURN 1;
EXCEPTION
WHILE OTHERS THEN
RETURN 0;
END;
/
Feature created
table test:
SELECT val, isnum fn_isnum (MyValue)
OF t_values;
VAL ISNUM
---------- ----------
Merced 0
Pixie 0
1 452
Now the function that is called in the application of relay:
create or replace function fn_testvalues
sys_refcursor is back
RC sys_refcursor;
Start
Open rc for
Select t_values.*, fn_isnum (MyValue) t_values IsNum;
Return (RC);
end fn_testvalues;Why not?
satyaki> satyaki>select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>create or replace view bb 2 as 3 select * 4 from emp; View created. Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>select * from bb; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 7521 WARD SALESMAN 7698 22-FEB-81 226.88 500 30 SALESMAN 7654 MARTIN SALESMAN 7698 28-SEP-81 1815 1400 30 SALESMAN 7788 SCOTT ANALYST 7566 19-APR-87 598.95 20 ANALYST 7839 KING PRESIDENT 17-NOV-81 7260 10 PRESIDENT 7844 TURNER SALESMAN 7698 08-SEP-81 2178 0 30 SALESMAN 7876 ADAMS CLERK 7788 23-MAY-87 159.72 20 CLERK 7900 JAMES CLERK 7698 03-DEC-81 1379.4 30 CLERK 7902 FORD ANALYST 7566 03-DEC-81 5270.76 20 ANALYST 7934 MILLER CLERK 7782 23-JAN-82 1887.6 10 CLERK 7566 Smith Manager 7839 23-JAN-82 1848 0 10 Manager 23-JAN-89 7698 Glen Manager 7839 23-JAN-82 1848 0 10 Manager 23-JAN-89 EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 1 boock 12 rows selected. Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>select * 2 from bb 3 where empno = &eno; Enter value for eno: 7521 old 3: where empno = &eno new 3: where empno = 7521 EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 7521 WARD SALESMAN 7698 22-FEB-81 226.88 500 30 SALESMAN Elapsed: 00:00:00.00 satyaki> satyaki>
Kind regards.
LOULOU.
-
How 2 call a procedure with the data type for the parameter Ftree.NODE
Hello
in this link
http://Andreas.Weiden.ORCL.over-blog.de/article-29307730.html
Down in the page after you run the package, I created the procedure and it compiled successfully but when call PR_WTNS in trigger WHEN-TREE-NŒUD-SELECTED
PROCEDURE PR_WTNE (i_ndNode IN Ftree.NODE);
as
PR_WTNE (i_ndNode Ftree.NODE);
I got the error message; A wrong number or types of argument in the call
pls I'm stuck can help any one?
Kind regards
Abdetu...
Published by: Abdetu on October 24, 2010 02:36
Published by: Abdetu on October 24, 2010 02:36YKou have to give a variable of type Ftree.NODE when calling this function. If called fromm a WHEN-TREE-NODE-SELECTED-trigger, use: SYSTEM. TRIGGER_NODE
-
Call stored procedure in the URL
Hi all
How to call a stored procedure 4 Apex in the URL. The error is less.
The requested URL/apex/EXAMPLE. TESTPROCEDURE was not found on this server.
Thank you.802263 wrote:
Hi allHow to call a stored procedure 4 Apex in the URL. The error is less.
The requested URL/apex/EXAMPLE. TESTPROCEDURE was not found on this server.
Thank you.
Should work on the assumption that:
1. the scheme of analysis can 'see' the object such as defined by synonyms, etc.
2. the schema of analysis has execute privs on the object. -
How to call stored procedures in the OPS
Hi all
I n PageUser enter the date and the code, I need to pass those 2 values to my back-end procedure
name of procedure xxx_opp_rnv (id varchar2, varchar2 valid);
I am writing this callable statement in am
' public void xxcrm_qtn_revison (String opid, String qtnvalidate) {}
System.out.println ("values" + opid + "" + qtnvalidate);
String x = "to_date ('" + qtnvalidate + "',' HH24:MI:SS MON-DD-YYYY')"; "
System.out.println ("The value of x is..." + x);
try {}
System.out.println ("' with in the callable statement" ");
CallableStatement cs is this.getOADBTransaction ().
getJdbcConnection () .prepareCall ("{call xxcrm_revison_qtn(?,?)}");
cs.setString(1,opid);
cs.setString(2,x);
DSI Execute();
DSI Close();
}
catch (SQLException e) {}
System.out.println ("exception is" + e);
}
}
the procedure is not executed
in my creation valid page is that the datatype element is of type dateTime
I need to pass the id as a string, and valid as Datetime data types to my callable statement
How is - this posible
Concerning
AnthonyHello
Use this code... pass the qtnvalidate as it is...
donot use String x = "to_date ('" qtnvalidate "", "DD-MON-YYYY HH24:MI:SS'" ")"; "
' public void xxcrm_qtn_revison (String opid, String qtnvalidate)
{
try {}System.out.println ("' with in the callable statement" ");
CallableStatement cs is this.getOADBTransaction ().
getJdbcConnection () .prepareCall ("{call xxcrm_revison_qtn(?,?)}");
cs.setString(1,opid);
cs.setString(2,qtnvalidate);
DSI Execute();
DSI Close();
}
catch (SQLException e) {}
System.out.println ("exception is" + e);
}}
Now, in the procedure, you can convert the string to a date time
name of procedure xxx_opp_rnv (id varchar2, varchar2 valid);
validdate: = to_date (valid, "HH24:MI:SS MON-DD-YYYY)";
OPID: = to_number (id);Try first to print in jdeveloper, what is the format of date time and therefore change the format
Thank you
GerardPublished by: Gauravv on September 10, 2009 04:16
-
Access Manager TrueSuite blocking most of the applications - Satellite U405
TrueSuite access crashes recently most of the applications.
He also blocked msn and so when I entered my email asking my fingerprint.
So I can connect, but I can t connect because of this
Is it possible to block this from happening?Try to remove your fingerprints and TrueSuite uninstall, then reboot and install the last TrueSuite since the Toshiba site.
-
can we call a procedure in the service?
Is that what we call a function procedure?
If so, please explain with example.
Thank you
AmanWhy don't you try it?
SQL> set serveroutput on SQL> declare 2 procedure p1 ( 3 i1 in out number 4 ) 5 as 6 begin 7 i1 := 200; 8 end p1; 9 function f1 10 return number 11 is 12 l1 number; 13 begin 14 p1(l1); 15 return l1; 16 end f1; 17 begin 18 dbms_output.put_line(f1); 19 end; 20 / 200 PL/SQL procedure successfully completed. SQL> set serveroutput off
Maybe you are looking for
-
My current Firefox is version 9.0.1 update"when I click on the"back"button after filling web form or make payment online etc, I can't go back to my homepage, if I press the BACK BUTTON (arrow) a message said."Firefox must send information that will r
-
Pavilion HP14-F1027C: Touchscreen begins to tap the lower left corner on the screen
Touch screen starts tapping lower left on the screen and would not stop. It starts after 5 minutes. Had to hold the power button to stop it. A ran the microsoft malicious programs. Nothing found.
-
The message could not be sent. The authentication setting are may not be wrong for your e-mail [SMTP] Server outgoing. To resolve this issue, go to help, search for "Troubleshoot Windows Live Mail" and read the section "I have problems sending e-mail
-
ICM 7.0 loggerb configlogger service termination
SGIA recorder ends with the database of messages obsolete. any solution for this error? I have icm 7.0 sr3.
-
Hello Anyone know how to change my email in the account settings? Have looked everywhere trying to see an edit function. Thank you