Task Oracle database using stored procedure adapter connection
HelloI found the bottom of things in console design guide:
For Installations of Oracle Identity Manager using the Oracle database, copy it
file ojdbc14.jar is of the OIM_HOME/xellerate/ext/directory of the
OIM_DC_HOME/xlclient/ext directory.
This must be done before to create a task of adapter of stored procedure with the target system being the oracle database. So this means that no connector is necessary and the ojdbc14.jar is itself establishes the link taking the resource data... Please answer my question. If I'm wrong guide me in the same.
This is urgent.
Help, please
Thank you
SK
Hello
ojdbc14.jar is contains the necessary drivers to talk to the database and retrieve information from the DB schema.
It reads information from the resource connectivity and will fetch from the database stored procs.
As Olga said, you don't need to write a connector for this.
http://download.Oracle.com/docs/CD/E10391_01/doc.910/e10366/creadp.htm#BHAHJAAB
Let me know if you have any questions
Thank you
Suren
Published by: Suren.Singh on August 26, 2010 02:08
Tags: Fusion Middleware
Similar Questions
-
using stored procedures - I can't seem to get the right settings
I am wanting to use stored procedures to create variables of substitution use UC4 (Appworx). (the databases I use are 10g) To do this, I first need to run command line in PL/SQL procedures. I don't seem to be able to create the correct command. This is the part of the package that I want to call
CREATE OR REPLACE
PACKAGE BODY 'APPLICATION_PACKAGE' AS
PROCEDURE GET_APP_PARAM (V_APP_PARAM_ID IN CCOK. CC_APP_PARAM_DETAIL. APP_PARAM_ID % TYPE,
V_APP_PARAM_NAME IN CCOK. CC_APP_PARAM_DETAIL. APP_PARAM_NAME % TYPE,
OUT NOCOPY CCOK V_APP_PARAM_VALUE. CC_APP_PARAM_DETAIL. APP_PARAM_VALUE % TYPE)
AS
BEGIN
SELECT APP_PARAM_VALUE
IN V_APP_PARAM_VALUE
TO CCOK. CC_APP_PARAM_DETAIL
WHERE APP_PARAM_ID = V_APP_PARAM_ID
AND APP_PARAM_NAME = V_APP_PARAM_NAME;
END;
It's the exact command I use command line
run application_package.get_app_param(1000,'RUN_TYPE')
When I do this I get invalid statements expected but still tweaking doesn't fix it and does not give me a clear idea of what I need to do to fix it.
I get this sort of thing
SQL & gt; run ccok.application_package.get_app_param(1000,'run_type')
BEGIN ccok.application_package.get_app_param(1000,'run_type'); END;
*
ERROR on line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in the call to 'GET_APP_PARAM '.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL & gt; run ccok.application_package.get_app_param(1000,'run_type',:result)
SP2-0552: Bind variable 'RESULT' undeclared.
SQL & gt; run ccok.application_package.get_app_param('1000','run_type')
BEGIN ccok.application_package.get_app_param('1000','run_type'); END;
*
ERROR on line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in the call to 'GET_APP_PARAM '.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Any help will be appreciated with more recognition.
It's interesting.
Package specification has "GET_APP_PARAM" with 2 parameters.
The package body has "GET_APP_PARAM" with 3 settings.I tested this out case in my db. Oracle balk when the package body is compiled, but shows no errors.
test@ORA10G> -- test@ORA10G> DROP PACKAGE "APPLICATION_PACKAGE"; Package dropped. test@ORA10G> test@ORA10G> drop table cc_app_param_detail; Table dropped. test@ORA10G> create table cc_app_param_detail ( 2 app_param_id number(4), 3 app_param_name varchar2(20), 4 app_param_value varchar2(20)); Table created. test@ORA10G> test@ORA10G> insert into cc_app_param_detail 2 select 1, 'name_1', 'value_1' from dual union all 3 select 2, 'name_2', 'value_2' from dual union all 4 select 3, 'name_3', 'value_3' from dual; 3 rows created. test@ORA10G> commit; Commit complete. test@ORA10G> test@ORA10G> select * from cc_app_param_detail; APP_PARAM_ID APP_PARAM_NAME APP_PARAM_VALUE ------------ -------------------- -------------------- 1 name_1 value_1 2 name_2 value_2 3 name_3 value_3 test@ORA10G> test@ORA10G> -- test@ORA10G> CREATE OR REPLACE PACKAGE "APPLICATION_PACKAGE" AS 2 PROCEDURE GET_APP_PARAM ( 3 V_APP_PARAM_ID IN TEST.CC_APP_PARAM_DETAIL.APP_PARAM_ID%TYPE, 4 V_APP_PARAM_NAME IN TEST.CC_APP_PARAM_DETAIL.APP_PARAM_NAME%TYPE); 5 -- V_APP_PARAM_VALUE OUT NOCOPY TEST.CC_APP_PARAM_DETAIL.APP_PARAM_VALUE%TYPE); 6 END; 7 / Package created. test@ORA10G> show err No errors. test@ORA10G> test@ORA10G> DESC APPLICATION_PACKAGE PROCEDURE GET_APP_PARAM Argument Name Type In/Out Default? ------------------------------ ----------------------- ------ -------- V_APP_PARAM_ID NUMBER(4) IN V_APP_PARAM_NAME VARCHAR2(20) IN test@ORA10G> test@ORA10G> test@ORA10G> CREATE OR REPLACE PACKAGE BODY "APPLICATION_PACKAGE" AS 2 PROCEDURE GET_APP_PARAM ( 3 V_APP_PARAM_ID IN TEST.CC_APP_PARAM_DETAIL.APP_PARAM_ID%TYPE, 4 V_APP_PARAM_NAME IN TEST.CC_APP_PARAM_DETAIL.APP_PARAM_NAME%TYPE, 5 V_APP_PARAM_VALUE OUT NOCOPY TEST.CC_APP_PARAM_DETAIL.APP_PARAM_VALUE%TYPE) 6 AS 7 BEGIN 8 SELECT APP_PARAM_VALUE 9 INTO V_APP_PARAM_VALUE 10 FROM TEST.CC_APP_PARAM_DETAIL 11 WHERE APP_PARAM_ID = V_APP_PARAM_ID 12 AND APP_PARAM_NAME = V_APP_PARAM_NAME; 13 END; 14 END; 15 / Warning: Package Body created with compilation errors. test@ORA10G> show err No errors. test@ORA10G> test@ORA10G> test@ORA10G> -- test@ORA10G> var x varchar2(10) test@ORA10G> exec test.application_package.get_app_param(1,'name_1',:x); BEGIN test.application_package.get_app_param(1,'name_1',:x); END; * ERROR at line 1: ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'GET_APP_PARAM' ORA-06550: line 1, column 7: PL/SQL: Statement ignored test@ORA10G> print x X -------------------------------- test@ORA10G> test@ORA10G> test@ORA10G> select object_type, object_name, status from user_objects where object_name='APPLICATION_PACKAGE'; OBJECT_TYPE OBJECT_NAME STATUS ------------------- ------------------------------ ------- PACKAGE APPLICATION_PACKAGE VALID PACKAGE BODY APPLICATION_PACKAGE INVALID test@ORA10G> test@ORA10G>
What do you see as the State of the art and the body when he is interviewed command-line SQL * more?
The solution would be to add the third parameter to the package specification and recompile.
HTH,
isotope -
Report of ColdFusion using stored procedures
I have isntalled report 10 ColdFusion and connected to the RDS Server.
I just saw tables and views, but not stored procedures.
I would like to know it is possible to use stored procedures for the report data source.
Your information and help is much appreciated,
Kind regards
Iccsi,
Thank you fo rhelping and informaiton.
I found that it supports the stored procedures,
Kind regards
iccsi
-
Problem with the Entity Framework by using stored procedures
I am developing a project with Oracle DB and Entity Framework.
Due to performance issues, for some querys I uses procedures stored instead of LINQ queryies,
When I try to add my model EF procedure, the procedure is added but the Model Designer
It does not acknowledge the columns returned by the procedure.
so I can't create something complex to the user the results of the procedure
in a domain serviceHere's the relevant readme which has some tips: http://www.oracle.com/technetwork/topics/dotnet/tech-info/default-338300.html#mozTocId610465
If you do a forum search there is further discussion of the issues, and the readme file provided with version beta has also some information.
But I agree with the general theme: using stored procedures in the EF is a PITA. :( I really hope they do something to make it easier in the future because this is probably the single most important weakness in the implementation of Oracle EF and establishment of a complex type is your time and picky it's ridiculous. (I found it less problematic if your procedure returns a complete picture that your model has already an entity for, because you can get away with only add the entry to one of the configurations for the cursor rather than one for each column.)
Even an external tool where direct you to the procedure and it creates the configuration entries to be able to copy and paste would be a huge improvement.
-
Hello
How can I force DAC to run always full load for one of the task that executes the stored procedure? And remaining tasks load incremental in the second and sub sequent executions.
Thank you
Jay.
Hi if your task is running an informatica mapping you can set your DAC task to run the full mapping for incremental and full loads, so tab task just point to the mapping.
Hope that helps.
Thank you
-
Insert multiple records in a database using the DB adapter and stored procedure
Hi all
I want to insert multiple records in a database using a stored procedure. I wanted to insert these records using a data adapter and data adapter must be called by a mediator.
Can anyone suggest me some ideas if it's possible with capabtilities OOB in SOA suite or not?
Thank you for your help in advance.
Thank you
ShivThe trick is in the stored procedure. You must use a data type that will handle multiple records I use varray. An example can be found in this post.
Re: Mutiple calls to AppsAdapter (pl/sql) when the payload has multiple records
When you read the procedure stored in the db adapter wizard looks and xsd / xml if you have maps accordingly.
see you soon
James -
How to use stored procedures of database instead of triggers in database?
Hi gurus
Here in SQL / PLSQL community discussion, I read some discussions that the stored procedures of database are better and 9should be used instead of database triggers.
But despite reading 10s of discussions, I am unable to understand how a stored procedure may be an alternative to a DB-trigger while having many differences.
And even if I'm using a DB instead of DB-trigger procedure, then at what level I should call? of my application, oracle forms IE?
And should I write 3 different procedures, each of them for the Insert, update and delete while I can manage all of these events from a single trigger?
Will you please advice me for this because I am using widely especially triggers to maintain the Stock / inventory, update several tables of a trigger n etc.
PS... I'm working on the database 10g Rel.2.
I use extensively since Oracle 7 database triggers (database Oracle 6 had no triggers).
I use it mainly for complex integrity checks and sometimes for the calculation of derived data.
So, I do not accept that "database triggers are evil".
It is often said that, instead of triggers in database, we use the API (API function, better than the table API).
However, the API may not always replace triggers.
Excellent explanation is given by Toon Koppelaars in 'triggers considered harmful, considered harmful' http://harmfultriggers.blogspot.com/
Regarding your question, it is possible to make the procedures of database to work with Forms - Yes, it is possible.
You can make the database to INSERT, UPDATE, and DELETE procedures and call them before or / and after INSERT / UPDATE / DELETE triggers of forms.
Another option is to use on INSERT / UPDATE / DELETE triggers of forms.
Please note that I do not use these forms to work with the Oracle database triggers. In my view, database triggers are much better.
The third variant will create a data block in a procedure that uses a "table of records.
Kind regards
Zlatko
-
can I export and import my database to oracle via the stored procedure?
Hi all
I need to export my database using the stored procedure, the stored procedure is called by the java application and it works well
Now I still get the "ULTIMATE QUESTION", could export and import the database using the stored procedure?
Really thanks for the reply.
Kind regards
KahlilHello
I think you can use DBMS_DATAPUMP (10.1 +), see [DBMS_DATAPUMP | http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_datpmp.htm#i1007277], for examples, see [http://www.psoug.org/reference/dbms_datapump.html]
Kind regards
-
To connect to an Oracle database using oracle.jdbc.OracleDriver: error
Hello
I am trying to connect to an Oracle database so that we can extract information on tables, views, and packages.
Using the Data Modeler (transformation script) API, we will add these notes to the corresponding objects in the Data Modeler.
I'll start with this:
importPackage (java.lang);
importPackage (java.awt);
importPackage (java.sql);
java.lang.Class.forName ("oracle.jdbc.OracleDriver");
An error occurs when I run this code:
It must be something of Java...
Someone at - it a suggestion?
Problem solved! A colleague of mine referred to in this post: import def properties from Oracle Designer
More in detail: it's this couple of lines:
Copy the file ojdbc6.jar for... Directory of \datamodeler-home\jlib
Add this line to datamodeler.conf
AddJavaLibFile... /... /jlib/ojdbc6.jar
I changed my file datamodeler.conf, DM rebooted and now is no longer an error when I try to use the Oracle JDBC drive.
-
How to connect to an Oracle database using acrobat form field java script actions
I have a PDF template with buttons and form fields. One requirement is that when a key is pressed, I want to connect to an Oracle database to change the data of the table inside the DB.
I wrote "Mouse Up" event and set a Java script to run on this event. Java script I am trying to connect to the DB and Transact on the DB.
Any ideas how to achieve this.
Thank you.
Assuming you are using Acrobat (or reader) XI or newer, it is no longer possible.
There used to be a way to connect to a PDF file using a script and ADBC, a DB defined locally, but Adobe removed in favour of this option progressively and now it is completely obsolete.
The only type of PDF files that can still do are those created using LiveCycle Designer.
-
roles authenticated using stored procedures does not...
Mr President.
See the steps I went through that
create user100 user identified by 123;
create user101 user identified by 123;
Grant create session, create role, create the procedure to user100;
Grant connect to user101;
change the quota of the user user100 10 M on users;
grant create table to user100 with admin option;
Conn user100/123
create or replace procedure settingrole as
Start
dbms_Session.set_role ('dummy');
end;
/
create the dummy role identified using user100.settingrole;
grant create table to dummy;
Grant execute on settingrole to user101;
Conn user101/123
execute user100.settingrole;
now the error I get is ora-06565 cannot run set role in stored procedures
ORA-065512 to the sys.dbms_session line
can u help me please how to do this jobYou must create the procedure with the right of the applicant (article AUTHID CURRENT_USER). See more on the secure application role http://download.oracle.com/docs/cd/B28359_01/server.111/b28337/tdpsg_privileges.htm#CIHHGDAE tutorial
-
dbms_job. Submit insertion values in a table using stored procedure
values are inserted into a table by using the stored procedure by using the sequence and creating a job to trigger after every 10 seconds...
create table test (collar number);
table created.
create sequences seq_test
start with 1
Increment 1;
order of creation.
create or replace procedure sp_test is
Start
loop
Insert into test values (seq_test.nextval);
end loop;
commit;
end;
created stored procedure
Report the number of jobno;
BEGIN
DBMS_JOB. SUBMIT)
jobs = >: jobno.
This = > 'sp_test;',
next_date = > TRUNC (SYSDATE + 1/1440).
interval = > 'SYSDATE + 10/86400',.
no_parse = > TRUE
);
COMMIT;
END;
stored procedure created successfully
every thing is done, but why the feature is always wrong...
Please help meHello
Lucien wrote:
...
create or replace procedure sp_test is
Start
loop
Insert into test values (seq_test.nextval);
end loop;
commit;
end; ...Have you tested this procedure first? It has an infinite loop. If this is the case, it's inserting row after row in the table, but never to commit, because he never leaves the loop.
It seems that what you posted is a much simplified version of what you really do. Simplify things for posting on this forum is a good idea, but this one is so simple that I don't see the point of it, so I can't offer a better way to do. Maybe you shouldn't have a loop in the process. Whatever you do, test it before you submit it as a job.
-
Load the oracle database using the external table
LKM:LKM file for oracle (external tables)
Added command IKM:IKM sql
Mapping: automatic mapping
Error in step: insert new lines
java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLEOPEN legend
ORA-29400: data cartridge error
opening the file in error... /Demo/file/test.txt_000.log
Description:
insert into TARGET_Schema.TARGET_Table
(
ColumnA,
ColumnB,
ColumnC
)
Select
C1_ColumnA,
C2_ColumnB,
C3_ColumnC
of ODI. C$ _0TARGET_Table
where
(1 = 1)
answer please, how to solve this error.Hello
GOTO topology and make sure that the database server has full path as D:\oracle\oracledi\oracledi\demo\file name
and do not... file/demo /.
After testing this issue, it should work fine.
Thank you
Fati -
transaction isolation stored procedure-level testing
Hello
I want to study the concurrency in the Oracle database using stored procedures in pl/sql with different transaction isolation levels.
The idea is to send to the database of a number "n" of simultaneous transactions where n can be {100, 200, 400, 1000} and for each isolation level (READ COMMITTED, SERIALIZABLE) to determine the number of transactions committed, how much data, run time incorrect.
The question is how can I generate n transactions that run simultaneously on the data base and how to get these results. I understand that this task can be done as well by using pl/sql stored procedure in the database or inside a JSP Java web application. Advantages/disadvantages?
I should mention that I'm a begginner in Oracle...
Thank you in advance.
You want to run a large number of asynchronous (parallel) transactions.
Although this can be done by running the Oracle's work, I think it is easier to work with the client side, using a Java program (for example).
It doesn't have to be a web application (for example. JSP), can be a client Java that uses Java threads, and each thread is using a single database connection (and the corresponding database session).
Kind regards
Zlatko
-
Connect to the Oracle database fails when you use Microsoft ODBC or OLE DB Driver
There was a problem when you apply the KB3126587 hotfix where connections to an Oracle database using the Microsoft ODBC driver fails if run from automated processes. Running the same process manually would succeed. The update issued KB3147071 solved the problem successfully.
Yesterday, several patched have been applied and the problem came back. The patches are: KB2862152, KB2868626, KB3163244, KB3168965, KB3170455, KB3163251.
I saw yet no acknowledgement or difficulty of Microsoft. I prefer not to uninstall security patches, but it is a problem of production.
Any ideas what specific patch maybe breaking it again?
Thank you
Josh
Server: Windows 2008 R2
Hello
Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.
http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer
See you soon.
Maybe you are looking for
-
How to change the name of the account user win 8 for laptop
-
Hi all This problem occurred only today when I booted up my PC, I noticed that my internet was not on and not picking up wireless signals. I had a look in the Device Manager and 802.11n Wireless Card that is only 6 months old has a yellow! Beside tha
-
BlackBerry apps of Q10 lose and e-mail account to every reboot
So, basically, every time that I reboot, I set up my camera like new again. I lose my email, contacts and calendar, apps. I did 2 factory resets and 2 wipes of security. Progress only that I did, is that now my login ID Blackberry (bbm, app store) is
-
Turn off all notifications by e-mail OOTB - IOM and SOA
HelloWe have disabled notifications related to the recon by making the property system "should send notifications in recon or not" false.Removed the following comes from the EventHandlers.xml file:1)< postprocess-ManagerClass = "Oracle.IAM.selfservic
-
Hi guys.I have following scenario-i have a backup game compressed a database in NOARCHIVELOG mode.-i want a database that has been duplicated on a server different butwithout losing the data on the auxiliary database.-the two server contains the same