Calling ORACLE remotily
hi
actually i want to call ORACLE Database Server from my VB Application
with out having oracle client installed on my PC.through ODBC or OLDB
plz help me
You should ask the company that your ODBC driver is from.
Similar Messages
-
Calling Oracle Discoverer Report from Apex
How to call Oracle Discoverer Report from apex application?
Thanks!The report is on a different data base ... need to create a process to get the data into the view behind the report and then materialized view in Apex etc .Then recreate the same report in Apex. But I am trying use the disc report url to invoke the report directly from apex.
Any suggestions or thoughts are greatly aprreciated. -
Call Oracle Reports from Forms ver 9i or 10g
Hi,
Can somebody guide me, how to call Oracle Reports from the Oracle form 9i,
Run_product is no more available into 9i & 10g, Run_report_object is not working with out put type "Screen" or "preview".
What is the best way to call the reports from the form ??? pls help...
Thanks in avdance.
Jitesh ([email protected])You can use RUN_REPORT_OBJECT with CACHE type, and WEB.SHOW_DOCUMENT to view the document on the screen.
In the Forms help you should find examples.
If you have access to Metalink, have a look at Note:207396.1. -
Error - while calling Oracle report
X Error
REP-771: 'afterpform': Fatal PL/SQL error occurred.
ORA-01403: no data found
Hi,
I have Oracle reports integrated into HTML DB. When I run this application, I get above error. I have tried purging user preferences. But, I still get the same error. This report works correct when I try running this on Oracle reports.
This application used to work until two days ago. Right now, it is giving this error for some reason. Could some one let me know if I am missing something. Thanks,
LakshmiHi SriLakshmi,
How are you calling the Oracle Report. Because the error you are seeing is from Oracle Reports and not from HTMLDB.
Please let me know how you are calling Oracle reports maybe I can help you .
Vivek Ananda
[email protected] -
Getting error while Calling Oracle Stored Procedure with output Parameter
HI All,
From long days i am working on this but i unable to solve it.
Even i have studied so many forums in SAP but i didn't find the solution.
I am calling Oracle Store procedure with 3 inputs and 1 output without cursor.
Store Procedure:-
CREATE OR REPLACE PROCEDURE PDS.send_rm
IS
proc_name VARCHAR2(64) := 'send_rm';
destination_system VARCHAR2(32) := 'RAWMAT';
xml_message VARCHAR2(4000);
status_code INTEGER;
status_message VARCHAR2(128);
debug_message VARCHAR2(128);
p_ret INTEGER;
BEGIN
DBMS_OUTPUT.PUT_LINE( proc_name || ' started' );
xml_message := '<RAW_MATERIAL>'||
'<BAR_CODE>10000764601</BAR_CODE>'||
'<MATERIAL>1101448</MATERIAL>'||
'<VENDOR_CODE/>'||
'<PRODUCTION_DATE>0000-00-00</PRODUCTION_DATE>'||
'<EXPIRE_DATE>0000-00-00</EXPIRE_DATE>'||
'<BATCH/>'||
'<PO_NUM/>'||
'<MATERIAL_DESCRIPTION>POWER SUPPLY</MATERIAL_DESCRIPTION>'||
'<SPEC_NAME/>'||
'<STOCK_CODE>BSW-JH</STOCK_CODE>'||
'<INSPECTION_LOT>00</INSPECTION_LOT>'||
'<USAGE_DECISION_CODE/>'||
'<MATERIAL_GROUP>031</MATERIAL_GROUP>'||
'</RAW_MATERIAL>';
dbms_output.put_line('XML '||xml_message);
-- vp_interface.load_rawmat@cnprpt1_pds(SYSDATE, destination_system,
-- xml_message, p_ret);
vp_interface.load_rawmat(SYSDATE, destination_system,
xml_message, p_ret);
dbms_output.put_line('Return Code '||p_ret);
COMMIT;
EXCEPTION
WHEN OTHERS THEN
status_code := SQLCODE;
status_message := SUBSTR(SQLERRM, 1, 64);
-- Extract_Error_Logger(proc_name, 'LOCAL', SYSDATE, -999,
-- status_message, 0, debug_message);
ROLLBACK;
END send_rm;
And while i am calling this Store procedure in MII, I am facing error.
I have tried different ways but didnt solved
In SQL Query, i kept mode as: FixedQueryOutput
Can anyone tell me or send code for calling above store procedure
And onemore thing, While creating store procedure in Oracle for MII. Do we need to Create output parameter as cursor or normal.
Thanks,
Kind Regards,
Praveen Reddy MHi Praveen
Our wrapper was created because we could not modify the procedure we call (it was not returning a cursor).
CREATE OR REPLACE PROCEDURE CHECK_PUT_IN_USE
(STRCMPNAME in varchar2,
STRSCANLABEL in varchar2,
RCT1 out SYS_REFCURSOR
AS
charDispo Char(1);
charStatus Char(1);
intCatNo Integer;
charCatDispo Char(1);
strCatQual VarChar2(2);
strCatDesc VarChar2(30);
strMsg VarChar2(128);
BEGIN
qa.check_put_in_use@AR(STRCMPNAME,
STRSCANLABEL,
charDispo,
charStatus,
intCatNo,
charCatDispo,
strCatQual,
strCatDesc,
strMsg);
OPEN RCT1
FOR Select charDispo,charStatus,charDispo,charStatus,intCatNo,charCatDispo,strCatQual,strCatDesc,strMsg from Dual;
END;
Hope this helps
Regards
Amrik
then with a FixedQueryWithOutput
call mixar.qasap.wrapper_update_put_in_use('[Param.1]','[Param.2]',[Param.3],?)
Hope this helps. -
Guys i am using Entity Framework 5 code first (I am not using edmx) with Oracle and all works good, Now i am trying to get data from stored procedure which is under package but stored procedure have out param which is user define type, Now my question is
how i will call stored procedure from entity framework
Thanks in advance.I agree with you, but issue is we have lots of existing store procedure, which we need to call where damn required. I am sure those will be few but still i need to find out.
If you think you are going to get existing MS Stored Procedures or Oracle Packages that had nothing to do with the ORM previously to work that are not geared to do simple CRUD operations with the ORM and the database tables, you have a rude awakening
coming that's for sure. You had better look into using ADO.NET and Oracle Command objects and call those Oracle Packages by those means and use a datareader.
You could use the EF backdoor, call Oracle Command object and use the Packages, if that's even possible, just like you can use MS SQL Server Stored Procedures or in-line T-SQL via the EF backdoor.
That's about your best shot.
http://blogs.msdn.com/b/alexj/archive/2009/11/07/tip-41-how-to-execute-t-sql-directly-against-the-database.aspx -
Problem calling Oracle's procedure in Chain
Hi
In chain I call Oracle's procedure using ABAP code:
======================================
REPORT ZETL_MAIN.
DATA: p_err_code TYPE i,
p_msg(1000) TYPE c.
EXEC SQL.
EXECUTE PROCEDURE ETL.MAIN (OUT :p_err_code, OUT :p_msg)
ENDEXEC.
IF p_err_code = 0.
MESSAGE p_msg TYPE 'I'.
ELSE.
MESSAGE p_msg TYPE 'E'.
ENDIF.
============================================
Every time after I change procedure, compile it
and run chain for the first time, I recieve error.
Doing nothing, I run chain the second time and it is
completed with success.
Does anybody know the reason of it ?
Regards
PWnukHi,
The addition %ERRCODE is exclusively designed for internal use. It is no longer available as of Release 6.10
please see the note 364707
May be you can change code this way
EXEC SQL.
EXECUTE PROCEDURE
sap_distr_utils_pkg.get_info_cli_prc(
in :w_kunnr,
out :nome1 )
ENDEXEC.
IF SY-SUBRC ne 0 OR nome1 ne 347.
WRITE: / 'Wrong result for EXECUTE PROCEDURE:', nome1.
ENDIF.
a® -
Calling oracle API having parameter as record type throughPL/SQL WebService
Hi All,
I dont know whether this is the right forum to put this query, but as i am using a pl/sql web service , putting the query on this forum.
My requirement is to call oracle API which in turh creates a single Invoice(using Ar_Invoice_Api_Pub.create_single_invoice )
But the issue is this API in turn has some of the input parameters as Record type and table type, my concern is how to pass this data(record type or table type) as parameter thorugh java code .. If i use Collection or Hashmap will it work , I dont think so , some intermediate conversion will require.
Subsequently the other requirement is fetch this record/table type data and return it to the java code
Please correct me if i am wrong and suggest a proper solution if anybody is aware off or tried such things before.
Thanks in advance.
Regards,
Anant.Hi,I'm new comer of this world,
I've a pl/sql like this:
package MY_WS_API is
type record_set is ref cursor;
PROCEDURE Get_User_Info(p_user_id VARCHAR2,
p_rep_id VARCHAR2,
p_flag out number,
p_msg out varchar2,
p_recordset out record_set);
end MY_WS_API;
when I using jdeveloper trying to publish it as a webservice, in the step 4 of the wizzard poping me choose the program unit to expose, the PROCEDURE Get_User_Info is not available and told me "Ref cursor Type is not supported due to a jdbc limitation and Ref Cursor Types are only supported for use of return type".
THE QUESTION is:
1.the cursor I used is of return type,I'm not very understanding the "why not" message upon.
2.in such case , need I trans the return cursor into Object[] if have to?
3.any other limitation for generating WS from PL/SQL using jdeveloper?
Thanks! -
Calling oracle stroed procedure in C#
hi friends
can anybody tell me how to call oracle stroed procedure in c# when SP return multiple of row or all row from selected table
thnx in advanceHi monikak,
This is oracle forms forum.
Please post your question in .NET Stored Procedures forum to get fast response.
Navnit -
Calling ORACLE Store Procedure with parameters in user define function
Hi everybody,
We have a scenario connecting Oracle DB thru JDBC adapter.
We have to call store procedure with input parameter and output parameter to retrieve data from DB. The implementation was made using JDBC adapter by building the correct XML message with EXECUTE action, and it works fine.
Now we need to use DB lookup within mapping. I wrote users define function with SELECT statement (using the JDBC adapter) and it works fine but I need to call store procedure in ORACLE instead of SELECT statement.
I found lot of examples concerning DB lookup but none of them explained how to write UDF calling store procedure in ORACLE with input and output parameters.
I am looking for an example.
Thanks in advance,
GigiI agree with you, but issue is we have lots of existing store procedure, which we need to call where damn required. I am sure those will be few but still i need to find out.
If you think you are going to get existing MS Stored Procedures or Oracle Packages that had nothing to do with the ORM previously to work that are not geared to do simple CRUD operations with the ORM and the database tables, you have a rude awakening
coming that's for sure. You had better look into using ADO.NET and Oracle Command objects and call those Oracle Packages by those means and use a datareader.
You could use the EF backdoor, call Oracle Command object and use the Packages, if that's even possible, just like you can use MS SQL Server Stored Procedures or in-line T-SQL via the EF backdoor.
That's about your best shot.
http://blogs.msdn.com/b/alexj/archive/2009/11/07/tip-41-how-to-execute-t-sql-directly-against-the-database.aspx -
PLS-00306:NET to call Oracle stored procedure,Use Array parameters
Development Environment:Windows 2003 SP2+Oracle 10g
. NET to call Oracle stored procedure, use an array of types of parameters
Step1:(In the Oracle database define an array of types)
CREATE OR REPLACE TYPE STRING_VARRAY AS VARRAY (1000) OF NVARCHAR2(255)
OR
CREATE OR REPLACE type string_array is table of nvarchar2(255)
Step2:
CREATE OR REPLACE PROCEDURE Test
(i_test in string_varray,o_result out int)
IS
BEGIN
o_result:=i_test.count;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
WHEN OTHERS
THEN
o_result:=0;
END arraytest;
Step3:
ODP.NET(Oracle 10g)
OracleConnection conn = new OracleConnection("User Id=test;Password=test;Data Source=test");
OracleCommand cmd = new OracleCommand("Test", conn);
cmd.CommandType = CommandType.StoredProcedure;
string[] str = new string[2] { "11", "222" };
cmd.ArrayBindCount=2;
OracleParameter p1 = new OracleParameter("i_test", OracleDbType.NVarChar);
p1.Direction = ParameterDirection.Input;
p1.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
p1.Value = str;
p1.ArrayBindSize=new int[2]{2,3};
p1.ArrayBindStatus = new OracleParameterStatus[2]{
OracleParameterStatus.Success,
OracleParameterStatus.Success
cmd.Parameters.Add(p1);
OracleParameter p2 = new OracleParameter("o_result", OracleDbType.Int32);
p2.Direction = ParameterDirection.Output;
P2.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
p2.Value=0;
cmd.Parameters.Add(p2);
int i = 0;
try
conn.Open();
cmd.ExecuteNonQuery();
i =(int) p2.Value;
catch (Exception ex)
finally
conn.Close();
Error:
Execution Failed:ORA-06550:Line 1,Column 7:
PLS-00306:Test parameters when calling the number or types of errors
ORA-06550:Line 1,Column 7:
PL/SQL:Statement ignoredHi,
See the answer in [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=909564&tstart=0]
Hope it helps,
Greg -
Calling Oracle Export and Import in java
Hi,
I am trying to call oracle export and import utilites in my java application,
can anyone help me that how can i do this, plz consider the case as this is a part of my project..
Regards
AshishYou should just be able to call the "imp" and "exp" executables ($ORACLE_HOME/bin) using the Runtime class. You can setup the various parameters for export / import in a parameter file.
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
http://www.orafaq.com/faqiexp.htm -
Calling oracle export and import utilities in java
Hi,
can someone help me, i have to call oracle export and import utilities through my java application, can anyone guide me, how i can do it..
Thansks
AshishHi,
can someone help me, i have to call oracle export and
import utilities through my java application, can
anyone guide me, how i can do it..You mean the command line ones? Use Runtime.exec(); -
Error saving Data Source Properties. - Base Exception. Call Oracle Support
Hi,
Oracle Application Server 10g Release 2 (10.1.2).
I tried to create new Datasource using OEM Console but it throws error as following :
Error saving Data Source Properties. - Base Exception: The Entity et="system";ei="0",et="application";ei="138",et="data-sources";ei="146":child:data-sourcechild key:location:jdbc/OracleCoreDS; class:com.evermind.sql.DriverManagerDataSource; already exists in the repository. Resolution: If possible, remove et="system";ei="0",et="application";ei="138",et="data-sources";ei="146":child:data-sourcechild key:location:jdbc/OracleCoreDS; class:com.evermind.sql.DriverManagerDataSource; . Call Oracle Support.
May I know how to resolve this please ?
Thank you.
J.Hi ,
Write following code in your UDF
String Query = " ";
Channel channel = null;
DataBaseAccessor accessor = null;
DataBaseResult resultSet = null;
Query = <your query>;
try{
channel =LookupService.getChannel(<comm channel name>,< business system>);
accessor = LookupService.getDataBaseAccessor(channel);
resultSet = accessor.execute(Query);
if(!(resultSet.equals(null)))
Iterator rows = resultSet.getRows();
if (rows.hasNext()) {
Map rowMap = (Map)rows.next();
<your variable>.add(rowMap.get(<db field name>)+ "");
catch(Exception ex)
result.addValue(ex.getMessage());
finally
try
if (accessor!=null) accessor.close();
catch(Exception e)
result.addValue(e.getMessage());
Thanks ,
Suvarna
Pls award pts if it helps . -
Call oracle reports from MENU in oracle ebs
is it possible in oracle ERP EBS R12
how to call oracle reports from menu [any screen] in oracle ebs erp r12??
please helpyou may do a few things from menus and by adding buttons, but this is not really standard.
You may add button on the form or web page that after a certain action or event. You'll have to do personalization / extension and everything is present in oracle for normal report submission.
Why this is not done thru normal submission ?
Maybe you are looking for
-
ERROR 1311: Source File Not Found. Data1.cab
Hi Trying to install upgrade Acrobat Pro XI on Server 2003. We already have Acrobat Pro 9 installed. Install starts and is halted midway by message "Error 1311: Source File not found. Data1.cab. Verify that the file exists and that you can access
-
I have a adobe acrobat 9 standard version I'd like to download on a newer computer
how do I download and install adobe acrobat 9 standard version?
-
Show length in iTunes music store
Hi I was wondering why the length of each of my shows in iTunes is not present in the music store. My RSS feed is: http://feeds.feedburner.com/RamdomThoughtsPodcast Scott
-
Needed to reinstall all software
Over the past month I have had repeated problems with my 18/12 old BB Curve. Lots of exception errors and "white screen of death". Reinstalling operating system worked for 1-2 weeks but then problem restarted. I had backed up all files and have just
-
Remote deploy a war file in weblogic using ant script
Hi, How do I remote deploy a war file in weblogic using ant script Thanks