Java App connection to an Oracle Database through Oracle Stored Procedure
My team's access to its Databases (Oracle only) is restricted to access through Oracle Stored Procedures that are part of the Oracle Database. So, in my Java App I need to call the Stored Procedure that will give me the access to the table that I need, declare the right parameters and execute the command. The Stored Procedure will then hand me the data I need.
I am finding support on the web for creating Stored Procedures in Java, but that is not what I need.
Can anyone post here a class that addresses this, or point me to a link that will shed some light on it?
Thanks
user606303
user606303 wrote:
Sorry this code is unformatted - I can't see how to format it.Use \ tags
I am looking for Java code that will do what this .NET code below does (connects to a database and writes data to the table through an Oracle stored procedure that is part of the Oracle Database.)
So learn Java, learn JDBC and translate the requirements; don't attempt to translate the code as the platforms are too different.
From a quick glance it looks like a JDBC CallableStatement can do the job.
Similar Messages
-
View pdf file stored in oracle database through oracle forms
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
I have created external directory and am able to load pdf files in oracle database table called test_blob.
CREATE TABLE test_blob (
id NUMBER(15)
, file_name VARCHAR2(1000)
, image BLOB
, timestamp DATE
I have 2 pdf files in the table. I want to view this pdf from forms when the user clicks on the button. On when-button-pressed trigger I want to show pdf on the screen. Any help is appreciated. Not on the designer. I want to run form application.
SELECT id, file_name,
DBMS_LOB.GETLENGTH(image) Length,
timestamp
FROM test_blob
ID|FILE_NAME|LENGTH|TIMESTAMP
1001|2011 HeartlandEmployeeReferralCard.pdf|353718|1/28/2013 11:44:41 AM
1002|2011 HeartlandEmployeeReferralCard.pdf|353718|1/28/2013 11:51:07 AM
Edited by: user_anumoses on Jan 28, 2013 11:45 AMWe were able to do the same thing with Oracle Application Server and Oracle WebLogic Server. I cannot remember how different the processes were, but it seems like they were very similar. I am going to give you the instructions on how we implemented a "Read PDF" procedure on the WebLogic Server. If you are still on the Application Server you may have to do some Google searches, but it all boils down to the mod_plsql DAD Configuration file.
Our PDF was located in a table with the following structure:
CASE_DOCUMENTS
(id_document NUMBER NOT NULL,
doc_blob BLOB,
note VARCHAR2(240),
created_by VARCHAR2(20) NOT NULL,
created_dt DATE NOT NULL,
case_id NUMBER NOT NULL,
filename VARCHAR2(100) NOT NULL)Based on that table structure we created a procedure named READ_PDF which you will reference below in the dads.conf file below:
CREATE or REPLACE procedure read_pdf (p_id_document IN number)
is
view_file blob;
BEGIN
select doc_blob
into view_file
from case_documents
where id_document = p_id_document;
OWA_UTIL.MIME_HEADER ('APPLICATION/PDF', FALSE);
HTP.P ('CONTENT-LENGTH: ' || DBMS_LOB.GETLENGTH (view_file));
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (view_file);
END;
GRANT EXECUTE ON read_pdf TO financial_user_role -- Name of role to execute
/Basically, you are passing in one parameter and that is the primary key for your table. You are selecting the pdf stored in a BLOB for that primary key. The commands below that allow the pdf to open up so you can view it – we got this off some search we did a few years ago.
Now, you need to add logic to your Oracle Form that will call the procedure above, but the URL is based on the dads.conf file that we will set up below… Anyway, we created a button on the form module with a label of "View". In the WHEN-BUTTON-PRESSED trigger the logic looks like this:
-- The View logic uses the DAD (Database Access Descriptors) method to view a .pdf file from the form.
-- The DAD was created on WebLogic Server with the name findadgen. This allows an http request be made
-- to the database.
declare
v_file varchar2(400);
v_success boolean;
ret_val number;
v_http_link varchar2(400);
begin
-- The format of the link is as follows: hostname:port/pls/DAD_name/procedure_name
v_http_link := 'http://finas03:8888/pls/findadgen/read_pdf?p_id_document=' || :case_documents.id_document;
web.show_document(v_http_link, '_BLANK');
end;The name of our WebLogic Server is "finas03" so that is what is listed in the URL. The "findadgen" is the name of the <Location> in the dads.conf file below, the "read_pdf" is the name of the procedure we created above, the "p_id_document=" is the IN parameter listed in the READ_PDF procedure created above, and the ":case_documents.id_document" is the reference to the primary key in our Oracle Form.
For WebLogic, you can either go through Enterprise Manager (directions below) or update the dads.conf file on the filesystem directly (if you update the dads.conf file directly then skip to step 4 and ignore step 5):
1. Enterprise Manager -> Web Tier -> ohs1
2. Oracle HTTP Server (pull-down) – Administration – Advance Configuration
3. Select File – dads.conf
4. Add something similar:
# ============================================================================
# mod_plsql DAD Configuration File
# ============================================================================
# 1. Please refer to dads.README for a description of this file
# ============================================================================
# Note: This file should typically be included in your plsql.conf file with
# the "include" directive.
# Hint: You can look at some sample DADs in the dads.README file
# ============================================================================
<Location /pls/findadgen>
SetHandler pls_handler
Order allow,deny
Allow from All
AllowOverride None
PlsqlDatabaseUsername financial
PlsqlDatabasePassword sdo_3#d1
PlsqlDatabaseConnectString ffindbTNSFormat
PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
PlsqlAuthenticationMode Basic
PlsqlDefaultPage read_pdf
</Location>You are adding the <Location> section to your dads.conf file. The "finddadgen" is the name that you will reference in a change you fill make to your Oracle Form. The "financial" is the Schema, the "sdo_3#d1" is the password for that Schema, the "ffindb" is the database that the stored procedure is located on, and the "read_pdf" is a stored procedure you will have to create in order to read the pdf.
5. Press the "Apply" Button
6. Obfuscate the DAD password by running the dadTool.pl script located in $ORACLE_HOME/bin (This was done on Unix on our server with the following commands):
$> LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH
$> cd $ORACLE_HOME/bin
$> perl dadTool.pl -f /u01/app/oracle/middleware/asinst_1/config/OHS/ohs1/mod_plsql/dads.conf
7. Restart the Oracle HTTP Server using Fusion Middleware Control:
Enterprise Manager -> Web Tier -> ohs1
Oracle HTTP Server – Control – Shutdown
Oracle HTTP Server – Control – Start Up
If you followed the instructions above, you should have created a stored procedure, added logic to your Oracle form to reference that stored procedure, and created an entry in the dads.conf file. Once you move the form onto the server and you restart the HTTP Service, you should be able to view a pdf that is stored in a table directly from your Oracle Form. -
How to connect Oracle database through Microsoft ODBC?
My ODBC Configuration:
DSN name is :db
Username : india
Server :db.world
Now, i am trying to connect with oracle database through SQL*plus or TOAD.
But, it is giving the following error.
ORA-03121: no interface driver connected - function not performed
Database version : 9.2.0.1.0
Operating System : Microsoft Windows XP
ODBC Version : 2.575.1117.00
I am trying to connect with the database like this:
Username : india
Password : india
Database : ODBC:db
Can i connect like this otherwise whether i need install any other supporting driver?Now, i am trying to connect with oracle database
through SQL*plus or TOAD.
But, it is giving the following error.
ORA-03121: no interface driver connected -
function not performed
I am trying to connect with the database like this:
Username : india
Password : india
Database : ODBC:db
As already stated, you can not use the DSN in SQL*Plus (nor TOAD, afaik)!
I can reproduce the error message with the following:
C:\>sqlplus a/b@ODBC:c
SQL*Plus: Release 11.1.0.6.0 - Production on Mon Aug 4 21:34:58 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
ERROR:
ORA-03121: no interface driver connected - function not performedLooking up the message, it says:
Cause: A SQL*Net version 1 prefix was erroneously used in the connect string
Looks like this has nothing to do with your DSN - it is more a matter of not using a proper connection string.
If 'Test Connection' works then you should probably proceed to work with Crystal Reports, using the DSN in question.
However, you should note that the old MS ODBC driver for Oracle was designed for OCI 7 (and for databases 7.x-8.x) and is now considered obsolete by both MS and Oracle.
Deprecated MDAC components and MS KB Article 244661.
Use the Oracle ODBC driver included with a supported Client version instead.
Edit:
Clarifying and adding references.
Message was edited by:
orafad -
How to create an Oracle DATABASE through Java Programming Language.. ?
How to create an Oracle DATABASE through Java Programming Language.. ?
Oracle database administrators tend to be control freaks, especially in financial institutions where security is paramount.
In general, they will supply you with a database, but require you to supply all the DDL scripts to create tables, indexes, views etc.
So a certain amount of manual installation will always be required.
Typically you would supply the SQL scripts, and a detailled installation document too.
regards,
Owen -
Connecting Oracle DataBase through WebDynpro
Hi,
I created a Dynamic table, now I should display the data from Oracle Database. I tried in many various ways to connect to database, but the data is not retrieving.
Can u explain the reasons and give necessary coding to retrieve the data.
Its very very urgent.Hi
I think you can do using the APIs provided by SAP.
Check this link
JDBC Reference
or
Try connectinc using lookup.
try{
InitialContext ctx=new InitialContext();
javax.sql.DataSource ds=(javax.sql.DataSource)ctx.lookup("jdbc/SAPJ2EDB");
java.sql.Connection con=ds.getConnection();
java.sql.Statement stmt=con.createStatement();
con.close();
catch(Exception e)
wdComponentAPI.getMessageManager().reportException("Exception "+e,true);
Check this thread moreuseful.
WebDynpro and Oracle Connection
Please Check these threads
Re: I need a j2ee code for getting data from oracle database
Re: oracle connection
Re: problem with displaying records from the database in a table ui element
See this sample application and help
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715
I hope these links will help u resolve your problem.
All The Best
Priyanka
Do Reward Points -
How do I connect to a DB2 database from Oracle 10G on linux?
Hi
I have tryed to connect to a DB2 database from oracle 10 G on linux.
I have installed unixODBC and a db2 odbc driver. I can connect to the db2 using isql, but oracle comes with this error:
select * from testtable@acc_spc_gr2
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077]
Could not find symbol 'SQLAllocConnect' in dynamic library
DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library
'/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'
ORA-02063: preceding 3 lines from ACC_SPC_GR2
What am I doing wrong? Any one have a guide to do this?
- Jesperthis is my complete configuration
Database_
-bash-3.2$ export ORACLE_SID=XE
-bash-3.2$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mié Jul 7 10:04:43 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Conectado a:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Platform_
Linux srvpdf 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:47:32 EDT 2009 i686 i686 i386 GNU/Linux
*/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/initDB2DATABASE.init*
#This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
# HS init parameters
#HS_FDS_CONNECT_INFO = ODBC_DSN
HS_FDS_CONNECT_INFO = prueba
HS_FDS_TRACE_FILE_NAME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/hs/admin/DB2DATABASE.log
HS_FDS_CONNECT_INFO = DB2DATABASE
#HS_FDS_TRACE_LEVEL = debug
HS_FDS_TRACE_LEVEL = 0
HS_FDS_SHAREABLE_NAME = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
# Environment variables required for the non-Oracle system
set DB2INSTANCE=is400
listener.ora_
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = DB2DATABASE)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM =hsodbc)
(ENVS = LD_LIBRARY_PATH = /opt/ibm/iSeriesAccess/lib:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.32)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.18.3.31)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
tnsnames.ora_
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = srvpdf)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
DB2DATABASE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =localhost )(PORT=1521))
(CONNECT_DATA =
(SERVICE_NAME = DB2DATABASE)
(HS=OK)
odbc.ini_
[prueba]
Description = iSeries Access ODBC Driver
Driver = iSeries Access ODBC Driver
System = xxx.xx.3.2
UserID = xxxxxx
Password = xxxxxx
Naming = 0
DefaultLibraries = QGPL
Database = CHERRYWEB
ConnectionType = 0
CommitMode = 2
ExtendedDynamic = 0
DefaultPkgLibrary = QGPL
DefaultPackage = A/DEFAULT(IBM),2,0,1,0,512
AllowDataCompression = 0
MaxFieldLength = 32
BlockFetch = 1
BlockSizeKB = 128
ExtendedColInfo = 0
LibraryView = 0
AllowUnsupportedChar = 0
ForceTranslation = 0
Trace = 0
odbcinst.ini_
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
[iSeries Access ODBC Driver]
Description = iSeries Access for Linux ODBC Driver
Driver = /opt/ibm/iSeriesAccess/lib/libcwbodbc.so
Driver64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbc.so
Setup = /opt/ibm/iSeriesAccess/lib/libcwbodbcs.so
Setup64 = /opt/ibm/iSeriesAccess/lib64/libcwbodbcs.so
UsageCount = 1
CPTimeout =
CPReuse =
System = 172.18.3.2
User = inf5mito
Password = lonco3pue
NOTE1 = If using unixODBC 2.2.11 or later and you want the 32 and 64-bit ODBC drivers to share DSN's,
NOTE2 = the following Driver64/Setup64 keywords will provide that support.
Threading = 2
DontDLClose = 1
ODBC Driver_
-bash-3.2$ cd /opt/ibm/iSeriesAccess/lib
-bash-3.2$ ls -ltr
total 2260
-r-xr-xr-x 1 root root 443939 Apr 5 2008 libcwbxda.so
-r-xr-xr-x 1 root root 94504 Apr 5 2008 libcwbrc.so
-r-xr-xr-x 1 root root 16636 Apr 5 2008 libcwbodbcs.so
-r-xr-xr-x 1 root root 729572 Apr 5 2008 libcwbodbc.so
-r-xr-xr-x 1 root root 998060 Apr 5 2008 libcwbcore.so
and this is my error.
SQL> /
select from display@db2database*
ERROR en línea 1:
ORA-28500: la conexión de ORACLE a un sistema no Oracle ha devuelto este
mensaje:
*[Generic Connectivity Using ODBC][C077] Could not find symbol 'SQLAllocConnect'*
in dynamic library
*[C079] Failed to load dynamic library*
*'/opt/ibm/iSeriesAccess/lib/libcwbodbc.so'*
ORA-02063: 3 lines precediendo a DB2DATABASE
Edited by: user6669081 on 07-jul-2010 6:31 -
Connect to a mysql database with Oracle 9i
Hello,
how can I connect to a non_oracle-database in "Oracle 9i".
I created a ODBC data source. In Oracle8 I needed OCA. But in 9i I believe the OCA is replaced by another thing.
I wanted to connect in SQL*PLUS with:
username/password@odbc:mysql
But I get the error: ora-03121 "no interface driver connected - function not performed".
How can I connect to another database?I've solved the DW problem by changing the site folders from
'db' to 'wwwroot' e.g. 'C:\CFusionMX\db\' is now
'C:\CFusionMX\wwwroot\
However I'm now back to my original problem. I've lost my
mqysql connection in CF Adminstrator. Before I made these changes I
could connect to my mysql databases using the following settings:
JDBC URL: jdbc:mysql://localhost:3306/test
Driver Name: MySQL Connector J
using the following Java path and file:
C:\CFusionMX\wwwroot\WEB-INF\lib\mysql-connector-java-3.0.17-ga-bin.jar
Now these settings give me the following error:
"Connection verification failed for data source: javaserver
[]java.sql.SQLException: SQLException occurred in JDBCPool
while attempting to connect, please check your username, password,
URL, and other connectivity info.
The root cause was that: java.sql.SQLException: SQLException
occurred in JDBCPool while attempting to connect, please check your
username, password, URL, and other connectivity info"
Any suggestions on this would also be welcome.
Thanks again to everyone for their help.
Sincerely,
Graham A. Kerby -
How can you connect to MS SQL Server through Oracle 9i?
i.e. we want to connect through a stored procedure and NOT a form. Our live DB is still in 9i.
CKPT wrote:
user12240205 wrote:
i.e. we want to connect through a stored procedure and NOT a form. Our live DB is still in 9i.we want to connect through a stored procedure -- connect through stored procedire? i never heard. can you please post your views this information is not enough.CREATE PROCEDURE proc1 (p_sqlsever_credentials varchar2, p_status OUT boolean) IS
BEGIN
-- Connect to SQL Server using p_sqlsever_credentials
-- Execute Stored Procedure (SP) in the SQL Server DB passing paras to it.
-- If SP in SQL Server is successful then SP will COMMIT in SQL Server
-- If failure it will be rolled back there.
-- SP will return status
-- Pass the status to the calling program
END;
/ -
Hi,
I developed one web application using oracle database. I want to implement same web application in android. My problem is how to integrate android application with existing oracle database using oracle database mobile server. Can u please guide me how to install oracle database mobile server and how to integrate android app with existing oracle database..
Thank you.In the Database Mobile Doc set there is an entire book that covers the Installation of Oracle Database Mobile Server. Chap 4 of that book contains screen shots and all kinds of information that will help guide you through the installation. We also have a doc on the different mobile clients. Chap 2 of that guide covers installs and integration of an android app.
thanks
mike -
Oracle Database Client -- Oracle Database in SSL mode.
Experts,
I am trying to connect to a remote oracle database which in SSL mode. I installed "Oracle database client" on other server and trying to connect to remote database in SSL mode.
Can you please provide brief steps ?
Do I need configure any wallets on client side too ?. If yes, copying wallets from database server to client is enough ?
Please help me.
ThanksPl do not post duplicates - Oracle Database Client --> Oracle Database in SSL mode.
-
Upload the excel file in oracle db through oracle forms
Hi all,
I want to upload the excel file in oracle db through oracle forms...I am new to oracle forms .
I have searched a lot but not getting exact solution
Is there anyone who will help me out with this .....
Any help will be appriciatedI'm trying to move data from excel into an Oracle forms field. This involves coping 2 columns of data cells in excel and pasting it into an Oracle forms field. I can get the date pasted into the Oracle forms field but there is a invisible character that separates the 2 columns of data coming from Excel. I do not know what this character is but it is causing the error 'Line 1 is invalid. Check forms'.
Any ideas how to get pass this?
Thank you -
Oracle Database on Oracle VM I/O performance.
Hi Experts,
I am planing to run Oracle Database on Oracle VM 3.2.x, but I am confusing about one thing that I hope find answer.
For a database on physical machine it is clear that Oracle Recommend to configure the storage contains the database as RAID 1+0 to have best I/O performance.
Now for a database on Virtual machine ...How we can apply this recommendation regarding the RAID level ..since there is a layer between the database and the physical disk winch is the OCFS 2 file system ..and what about the I/O performance ???
Thanks
AljaroWell, as always… it depends on what you expect from your DB. OCFS2 is probably not the best suited storage for a high-load Oracle DB. You're probably best off running your storage on either dedicated FC LUNs from a SAN, that you configure into your guests as physical volumes or you take the iSCSI route and provide storage to your Oracle DBs that way.
In the end it all comes to down to you knowing your (expected) workload on the DB. -
Large Oracle database breaks Oracle Connector?
Our Problem: Oracle connector is unable to retrieve the schema for column selection (uninstrumented/instrumented columns) in the connector setup due to timeout on a database with a large amount of schema.
Has anyone else had a similar experience? We tested using a smaller database and the connector was able to pull back the schema just fine.. but with a large database, even after telling Metadirectory to wait for the schema retrieval, it eventually returns with a message saying no schema could be retrieved. Tried changing the timeout settings in the connector, but this did not help. Is there another possible solution?
Any feedback is appreciated on this!
-WayneI had this problem as well, the problem is this, if you trace the query in the database that the connector is issuing you will see it is trying to bring back the entire information about objects for the entire database not just for objects your connector user has rights to. So on databases with thousands and thousands of objects like an oracle database running oracle finanacials or manufacturing their query will run for forever and a day. To get around this I spoofed the connector view creation process by creating the following tables in the schema of the user for the connector: ALL_CONS_COLUMNS, ALL_TABLES, ALL_TAB_COLUMNS and ALL_TAB_PRIVS into these I put only the info I needed to get the connector to create, however, I found that I need to keep them there even after the creation. If you have a dba handy he can help get this done.
PS: the query that the connector view runs actually uses more than these 4 system views, but by creating these 4 in the schema of the connector user the query finishes in a reasonable time so I didn't bother to include any others. Hopefuly I've been clear enough..... -
Insert Multiple records using Database adapter with Stored procedure func
Hi All,
I want to insert multiple records on a database using a stored procedure. I wanted to insert those records using a Database Adapter and the Database adapter should be invoked by a Mediator.
Can somebody suggest me with ideas whether it can be acheived with OOB capabtilities in SOA suite or not?
Thanks for your help in advance.
Thanks,
ShivThe use case you want to achieve is feature supported by the DBAdapter and it is possible to invoke the same from mediator.
Please have a look at the oracle documentation and you should be able to get the necessary information.
The below links should help you as well:
http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10231/adptr_db.htm
http://blogs.oracle.com/ajaysharma/2011/03/using_file_adapter_database_adapter_and_mediator_component_in_soa_11g.html
There are some video tutorials as well :)
http://www.youtube.com/watch?v=dFldS-fDx70 This should also help
Thanks,
Patrick -
Need to Connect oracle database through EP
Hi,
my requirement is trying to connect oracle database and getting values from oracle database and displaying in portal (through EP)
i created driver name called - sapdirect and import the jars like pOracle.jar in the driver and then i'll try to create datasource with the following configurations
Name : sapdsn
Aliases : sapalias
Driver name: selected whatever i created before (ex: sapdirect)
class : com.sap.portals.jdbc.oracle.OracleDriver
url : jdbc:sap:oracle://10.145.4.171:1521;RAMS
user name :scott
password :tiger
But the datasource can't create , the follwing error shown,
Please gimme Solution for this.
Even, all the services running oracle m/c.
im wating for solution,
Thanks in advance
Bye for now
Vasu
Error:
java.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide execption: server ID 3739150:Exception while preparing start of application sap.com/JDBCConnector_sapdsn.xml.
at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:679) at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:661) at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.startApplication(DataSourceManagerImpl.java:562) at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.deploy(DataSourceManagerImpl.java:261) at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.createDataSource(DataSourceManagerImpl.java:317) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58) at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289) at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944) at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288) at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:400) at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340) at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330) at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287) at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:157) at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:220) at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:803) at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102) at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61) at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide execption: server ID 3739150:Exception while preparing start of application sap.com/JDBCConnector_sapdsn.xml.
at com.sap.engine.services.deploy.server.application.ParallelAdapter.sleepClientThread(ParallelAdapter.java:232) at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:113) at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:214) at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4601) at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationAndWait(DeployCommunicatorImpl.java:677) ... 31 moreGo to System Administration
-> System Configuration
-> System Landscape
-> select a Folder where you want to store your system object
-> right click -> New System
-> in the wizard, select JDBC System
-> enter values
-> edit
Then fill in the correct values as stated here:
http://help.sap.com/saphelp_nw04/helpdata/en/84/d5df3df2ad685ae10000000a11405a/frameset.htm
Then assign an Alias and enter some usermapping data for the system.
You then can use the ConnectorService to get a native sql connection and fire statements. I'm sure you can find some examples here.
Regards, Karsten
Maybe you are looking for
-
Can i run and work with OSX 10.3.9 on an external hard drive???
Hi There all, I'm getting a 250gb External firewire HDD, i want to do this: I want to install Tiger on my PowerBook's HDD, But everything i've got on it now with Panther is perfect, but some of the software is'nt compatible with Tiger, so i was hopin
-
I have an iMac 2.66 GHz Intel Core 2 Dueo running 10.6.8 This is now happening constantly!!! Please help:( Here's an example of the error report when I restart: Interval Since Last Panic Report: 270695 sec Panics Since Last Report: 1 Anony
-
How do i convert an image object to a byte array ?
Hi how do i convert an image object into a byte array early reply apperciated
-
What is the best option for storing my iphoto library on the cloud?
I was curious as to what people are doing (other than backing up to external HD) for backing up the iphoto library? Anyone using any cloud solution out there for storage? What are some of the best options? I have around 30,000 photos in my iphoto
-
I have a 40gb ipod and it worked fine with the software from the original cd. However, ever since i've updated iTunes and the ipod software, my ipod skips songs and sometimes won't play them. I tried resetting it, and the picture of the folder and th