Calling PL/SQL routine
Inside a Visual Basic program, I'm wanting to call a PL/SQL stored procedure. The parameters I'm passing in will be part of a record that will be inserted into a DB table. One of those parameters will go into a field that is a null-able field, a field of type DATE. Is there a way to keep this DATE field as null when calling this stored procedure? I know that with the actual SQL statement, one can set a field to null by having an indicator set to -1, but by calling this routine, I'm more on the outside looking in.
Try perfroming a search on
http://search.microsoft.com/advancedsearch.aspx?s1=on&mkt=en-US
You can find the example that matches your version of VB, the type of connection you are making to the database, etc.
Did you bother to search the these OTN forums, there are dozens of threads on this topic. http://forums.oracle.com/forums/search!default.jspa
Similar Messages
-
Call report from pl-sql routine
I just got started on the report-tool, so, this might be a very basic question, but, would appreciate your
response.
I have a pl-sql routine registered as a concurrent program. How do I make call to report-builder from this routine.
Thxs,Hello Chirag,
If you want to invoke and run a report from your PL/SQL code in the database, you can do so by installing and using the SRW package supplied with Reports. This package allows you to run parametrized report jobs on a specified Reports Server from your PL/SQL program and track the job status. Please take a look at the documentation for this package in the Publishing Reports manual on OTN at: http://download-west.oracle.com/docs/html/A92102_01/toc.htm.
On the other hand, if you just need to invoke the Reports Builder program from your PL/SQL routine, you would need to use the default builtin for calling external applications from PL/SQL.
Thanks,
The Oracle Reports Team. -
How to call external Perl routines from Pl/SQL - Urgent
Available software in the Test Environment:
1. Sun Unix 2.8
2. Oracle 8.1.7 ( 8i)
3. Perl 5
Iam trying to call/execute perl scripts from PL/SQL using the DEMO_RDBMS.mk. I am able to call C scripts from PL/SQL, but actually want to call Perl scripts.
The steps followed for for C are -
1. Create and compile a simple C program to execute a unix command (eg., touch a file).
2. Make a shared library of the above compiled program (object), i.e., load the compiled object module into a dynamic load library.
3. Declare the above library in Oracle using SQL*Plus.
4. Define a PL/SQL function or procedure to call the external routine.
5. Test the external routine.
The above steps run good for a C program, but step 2 fails when run for a Perl script.
When I tried to use the following command for step 2 -
make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk extproc_callback \
SHARED_LIBNAME=cmd_lib.so \
OBJS=tst_cmd.pl
got the following error -
ld: fatal: file tst_cmd.pl: unknown file type.
ld: fatal: File processing errors. No output written t cmd_lib.so
*** Error code 1
This gives me an indication that demo_rdbms.mk does not understand/interpret Perl scripts. Going through the demo_rdbms.mk suggests the same.
My questions is - How do we call external Perl scripts/routines from PL/SQL ??
Do I have to get a different version of "demo_rdbms.mk" ?
PS: The perl scripts used above (tst_cmd.pl) is error free and works as intended in the unix environment.Iam trying to call/execute perl scripts from PL/SQL using the DEMO_RDBMS.mk. I am able to call C scripts from PL/SQL, but actually want to call Perl scripts. Well, C is a "compiler" language and Perl is interpreted. In a sense, C is not "scripts".
When I tried to use the following command for step 2 -
make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk extproc_callback \
SHARED_LIBNAME=cmd_lib.so \
OBJS=tst_cmd.pl
got the following error -
ld: fatal: file tst_cmd.pl: unknown file type.
ld: fatal: File processing errors. No output written t cmd_lib.soI guess this compiles an extproc "stub" with your object file, generating an external procedure. So the object file really needs to be an object file :-)
My questions is - How do we call external Perl scripts/routines from PL/SQL ??I'd guess you need an embedded Perl interpreter in the external procedure.
Not much help though I'm afraid :-/
Cheers
Fredrik -
SQLJ calling PL/SQL with records and tables as parameters
Has anyone used sqlj to to call procedures with records and
tables as IN, OUT, or INOUT as parameters? If so how do you
assign values to the IN parameter in the record/tables, and get
values out of the record/table when it is passed back? Might
anyone have any syntax?
nullOne thing I forgot to mention: If you're an 8i client, then in
8.1.6 you'll be able to use JPublisher to solve this problem,
since it'll generate these wrappers for you.
Pierre
Oracle Product Development Team wrote:
: Hi,
: The key issue is that no part of Oracle code except PL/SQL is
: aware of the PL/SQL Record types and PL/SQL "index-by" table
: types.
: So the only way to call a PL/SQL procedure with args of a
RECORD
: or "index-by" table types is from another PL/SQL routine.
: In most cases, it's possible to work-around this by wrappering
: your PL/SQL method with another which doesn't have this issue.
: For example, if you're trying to call procedure proc01 in:
: package pack01 is
: type rec01 is record(n1 number, d1 date);
: procedure proc01 (r rec01);
: end;
: you can create a wrapper method:
: package pack01_wrapper is
: procedure proc01_wrapper (n1 number, d1 date);
: end;
: package body pack01_wrapper is
: procedure proc01_wrapper (n1 number, d1 date) is
: r pack01.rec01;
: begin
: r.n1 := n1;
: r.d1 := d1;
: pack01.proc01;
: end;
: end;
: If you're a 7.3 client, that's about all you can do. The Fix
was
: introduced in 8.0, where new structured types (ADT's) and new
: table types (VARRAY's and Nested tables) were introduced. So
if
: you're an 8.0 client, your 'wrapper' package could use an ADT
: which has the same attributes as the record, rather than
: 'exploding' the record into its individual components as I
showed
: above.
: Hope this helps!
: Pierre
: Thomas Richardson (guest) wrote:
: : Has anyone used sqlj to to call procedures with records and
: : tables as IN, OUT, or INOUT as parameters? If so how do you
: : assign values to the IN parameter in the record/tables, and
get
: : values out of the record/table when it is passed back? Might
: : anyone have any syntax?
: Oracle Technology Network
: http://technet.oracle.com
Oracle Technology Network
http://technet.oracle.com
null -
After call commit sql , data can not flush to disk
I use berkey db which support sql . It's version is db-5.1.19.
1, Open a database.
2. Create a table.
3. exec "begin;" sql
4. exec sql which is insert record into table
5. exec "commit;" sql
6. copy database file (SourceDB_912_1.db and SourceDB_912_1.db-journal) to Local Disk of D, then use a tool of dbsql to open the database.
7. use select sql to check data, there is no record in table.
1
sqlite3 * m_pDB;
int nRet = sqlite3_open_v2(strDBName.c_str(), & m_pDB,SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,NULL);
2
string strSQL="CREATE TABLE [TBLClientAccount] ( [ClientId] CHAR (36), [AccountId] CHAR (36) );";
char * errors;
nRet = sqlite3_exec(m_pDB, strSQL.c_str(), NULL, NULL, &errors);
3
nRet = sqlite3_exec(m_pDB, "begin;", NULL, NULL, &errors);
4
nRet = sqlite3_exec(m_pDB, "INSERT INTO TBLClientAccount (ClientId,AccountId) VALUES('dd','ddd'); ", NULL, NULL, &errors);
5
nRet = sqlite3_exec(m_pDB, "commit;", NULL, NULL, &errors);
Edited by: 887973 on Sep 27, 2011 11:15 PMHi,
Here is a simple test case program I used based on your description:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sqlite3.h"
int error_handler(sqlite3*);
int main()
sqlite3 *m_pDB;
const char *strDBName = "C:/SRs/OTN Core 2290838 - after call commit sql , data can not flush to disk/SourceDB_912_1.db";
char * errors;
sqlite3_open_v2(strDBName, &m_pDB, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL);
error_handler(m_pDB);
sqlite3_exec(m_pDB, "CREATE TABLE [TBLClientAccount] ( [ClientId] CHAR (36), [AccountId] CHAR (36) );", NULL, NULL, &errors);
error_handler(m_pDB);
sqlite3_exec(m_pDB, "begin;", NULL, NULL, &errors);
error_handler(m_pDB);
sqlite3_exec(m_pDB, "INSERT INTO TBLClientAccount (ClientId,AccountId) VALUES('dd','ddd'); ", NULL, NULL, &errors);
error_handler(m_pDB);
sqlite3_exec(m_pDB, "commit;", NULL, NULL, &errors);
error_handler(m_pDB);
//sqlite3_close(m_pDB);
//error_handler(m_pDB);
int error_handler(sqlite3 *db)
int err_code = sqlite3_errcode(db);
switch(err_code) {
case SQLITE_OK:
case SQLITE_DONE:
case SQLITE_ROW:
break;
default:
fprintf(stderr, "ERROR: %s. ERRCODE: %d.\n", sqlite3_errmsg(db), err_code);
exit(err_code);
return err_code;
}Than I copied the SourceDB_912_1.db database and the SourceDB_912_1.db-journal directory containing the environment files (region files, log files) to D:\, opened the database using the "dbsql" command line tool, and queried the table; the data is there:
D:\bdbsql-dir>ls -al
-rw-rw-rw- 1 acostach 0 32768 2011-10-12 12:51 SourceDB_912_1.db
drw-rw-rw- 2 acostach 0 0 2011-10-12 12:51 SourceDB_912_1.db-journal
D:\bdbsql-dir>C:\BerkeleyDB\db-5.1.19\build_windows\Win32\Debug\dbsql SourceDB_912_1.db
Berkeley DB 11g Release 2, library version 11.2.5.1.19: (August 27, 2010)
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
dbsql> .tables
TBLClientAccount
dbsql> .schema TBLClientAccount
CREATE TABLE [TBLClientAccount] ( [ClientId] CHAR (36), [AccountId] CHAR (36) );
dbsql> select * from TBLClientAccount;
dd|dddI do not see where the issue is. The data can be successfully retrieved, it is present in the database.
Could you try putting in the sqlite3_close() call and see if you still get the error?
Did you remove the __db.* files from the SourceDB_912_1.db-journal directory?
Did you use PRAGMA synchronous, and if so, what is the value you set?
If this is still an issue for you, please describe in more detail the exact steps needed to get this reproduced and provide a simple stand-alone test case program that reproduces it.
Regards,
Andrei -
Call an sql insert statement in xml publisher
Hi to all,
i've a question as regard xml publisher.
Sorry but i don't have a lot of time to look around.
This features is quite important and probably would determine if we will use this
product or not.
Is possible to call an sql statement when the output is generated?
example: a user call a report with some par to filter the output (some select list / text, ecc..)
Or generally can i call use a pl/sql block instead of pl/sql query to populate and at
the same time to write other data to keep track of the printing / generation of the
documents X user?
Otherwise, is xml publisher writing this info in some system table of xml publ?
Note: i use most of all pl/sql and htmldb and i don't want to use other programming languages until this app is finished.
Thank you very very much.Hi Marcello
I seem to remember from other threads that you are assessing the enterprise edition of XMLP right?
If you use the data templates to define how the data should be extracted then you can call a plsql pkg after the fetch to update/insert to your hearts content.
Otherwise you could use the APIs instead of the UI to do the same or even build an extension to the RTF templates to make the sql call ... we do not document this at the moment but its possible.
Regards
Tim -
How to call a SQL function from an XSL expression
Hi
In R12, in Payroll Deposit adivce/Check writer, We need to sort the earnings tag <AC_Earnings> in to two different categories as regular and other earnings. In the DB and form level of element defintiion we have a DFF which differentiates between the two kinds of earnings. But the seeded XML that is gerneated by the check writer does not have this field.
The seeded template displays all the earnings in one column. How can we achieve this in the template without modifying the seeded XML.
The one approach i have is to write a function and based on the return value sort the data. For this I need to know :
1) How to call a SQL function from an XSL expression that is allowed in BI template.
If anyone ahs faced similar requirements please share your approach.
Thanks
SrimathiThank u..
but i'd seen that link wen i searched in google..
Is it possible without using any 3rd party JARs and all?
and more importantly plz tell me what should be preferred way to call a javascript function?
Do it using addLoadEvent() or Windows.Load etc
OR
Call it thru Xsl? (I donno how to do dis)
Thanks in Advance..
Edited by: ranjjose on Jun 3, 2008 8:21 AM -
How to call PL/SQL procedure from Jdeveloper
hai
i am using JDeveloper 10g version 10.1.3. i am working on Web Application[JSF,ADF BC]. i had commit button in one form. when i click that button a PL/SQL procedure can be invoked.( the procedure is to check for primary key)
how to do this
thanks in advance
C.RThere are already some threads about calling PL/SQL from Java. E.g.: adf bc jsf application and database stored procedure
Ronald -
PS General SQL Routines: Missing or invalid version of SQL library libpsora
Hi Everyone,
Need your assistance. Perhaps someone of you encountered this already. I have completed setting up everything until the application server part. If I try to boot the application server I get the error below. I have tried several solution published in Oracle Support and these did not resolve the issue.
Appserv log
PSADMIN.15894 (0) [10/01/10 16:17:21](0) Begin boot attempt on domain hc91dmo
PSAPPSRV.15941 (0) [10/01/10 16:17:50](0) PeopleTools Release 8.50 (Linux) starting. Tuxedo server is APPSRV(99)/1
PSAPPSRV.15941 (0) [10/01/10 16:17:51](0) Cache Directory being used: /applications/psoft/hc91/appserv/hc91dmo/CACHE/PSAPPSRV_1/
PSAPPSRV.15941 (0) [10/01/10 16:17:51](1) GenMessageBox(200, 0, M): PS General SQL Routines: Missing or invalid version of SQL library libpsora (200,0)
PSAPPSRV.15941 (0) [10/01/10 16:17:51](1) GenMessageBox(0, 0, M): Database Signon: Could not sign on to database HC91DMO with user PS.
PSAPPSRV.15941 (0) [10/01/10 16:17:51](0) Server failed to start
PSADMIN.15894 (0) [10/01/10 16:17:58](0) End boot attempt on domain hc91dmo
Tuxedo log
161730.TESTLAB-03!BBL.15902.2248875168.0: 10-01-2010: client high water (0), total client (0)5900.2137364080.-2: TMADMIN_CAT:1330: INFO: Command: boot -A
161728.TESTLAB-03!tmboot.15901.2219435552.-2: 10-01-2010: Tuxedo Version 10.3.0.0, 64-bit
161728.TESTLAB-03!tmboot.15901.2219435552.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 120 seconds
161728.TESTLAB-03!tmboot.15901.2219435552.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
161730.TESTLAB-03!BBL.15902.2248875168.0: 10-01-2010: Tuxedo Version 10.3.0.0, 64-bit, Patch Level (none)
161730.TESTLAB-03!BBL.15902.2248875168.0: LIBTUX_CAT:262: INFO: Standard main starting
161733.TESTLAB-03!tmboot.15905.1855951168.-2: 10-01-2010: Tuxedo Version 10.3.0.0, 64-bit
161733.TESTLAB-03!tmboot.15905.1855951168.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 120 seconds
161733.TESTLAB-03!tmboot.15905.1855951168.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
161735.TESTLAB-03!PSWATCHSRV.15906.1160363616.-2: 10-01-2010: Tuxedo Version 10.3.0.0, 64-bit
161735.TESTLAB-03!PSWATCHSRV.15906.1160363616.-2: LIBTUX_CAT:262: INFO: Standard main starting
161750.TESTLAB-03!PSAPPSRV.15941.4117513168.0: 10-01-2010: Tuxedo Version 10.3.0.0, 64-bit
161750.TESTLAB-03!PSAPPSRV.15941.4117513168.0: LIBTUX_CAT:262: INFO: Standard main starting
161751.TESTLAB-03!PSAPPSRV.15941.4117513168.0: LIBTUX_CAT:250: ERROR: tpsvrinit() failed
161751.TESTLAB-03!tmboot.15905.1855951168.-2: tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error handler
161755.TESTLAB-03!BBL.15902.2248875168.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
161758.TESTLAB-03!PSADMIN.15894: End boot attempt on domain hc91dmo
stderr.log
dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
Here is my environment configuration.
CentOS 5.4 64 bit
PeopleTools 8.50
HCM 9.1 MultiLanguage
WebLogic 11g R1
Tuxedo 11g R3
VmWare Server 2
Oracle 11g
Thanks ....It's Oracle 11.2.0.1.0. Yes, I can login to database via SQL PLus.
[oracle@TESTLAB-03 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Fri Oct 1 17:56:13 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> conn people/peop1e
Connected.
Here what in my .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export ORACLE_HOME=/applications/oracle/product/11.2.0
export TUXDIR=/applications/mdlware/tuxedo10gR3
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$TUXDIR/lib
export PATH=$PATH:$ORACLE_HOME/bin:$TUXDIR/bin:$ORACLE_HOME/lib
export PS_HOME=/applications/psoft/hc91
export PS_CFG_HOME=$PS_HOME
. $PS_HOME/psconfig.sh
cd $PS_HOME -
PS General SQL Routines: Missing or invalid version of SQL library libpsor
Hi,
I am facing the above error while booting up the Appserver. Could someone help me on these please.
below are the softwares used:
Oracle Linux5.4 64bit
peopletools:8.51
Application HCM:9.1
weblogic wls_1034
Tuxedo 10g3
Stderr shows:
dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
Appserv_log
GenMessageBox(200, 0, M): PS General SQL Routines: Missing or invalid version of SQL library libpsora (200,0)
PSAPPSRV.9875 (0) [12/11/12 15:37:28](1) GenMessageBox(0, 0, M): Database Signon: Could not sign on to database HCMDMO with user PS.
Thanks in advanceIt's Oracle 11.2.0.1.0. Yes, I can login to database via SQL PLus.
[oracle@TESTLAB-03 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Fri Oct 1 17:56:13 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> conn people/peop1e
Connected.
Here what in my .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export ORACLE_HOME=/applications/oracle/product/11.2.0
export TUXDIR=/applications/mdlware/tuxedo10gR3
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$TUXDIR/lib
export PATH=$PATH:$ORACLE_HOME/bin:$TUXDIR/bin:$ORACLE_HOME/lib
export PS_HOME=/applications/psoft/hc91
export PS_CFG_HOME=$PS_HOME
. $PS_HOME/psconfig.sh
cd $PS_HOME -
PS General SQL Routine -- Missing or invalid version of SQL library PSORA (
I installed PeopleTool8.5 in Windows7 ultimate(64bit version) . while i am tring to login first time in to datamover to populate the data to peopsoft. I am getting the following error message.
Installed: Oracle 11g (64 bit), PeopleTools 8.5
PS General SQL Routine -- Missing or invalid version of SQL library PSORA (200,0).
Any idea to solve this issue.
Thanks
Ayyanar
Edited by: P.P Ayyanar on Mar 13, 2010 12:56 PMP.P Ayyanar wrote:
Please , we need to delete the existing row in dbowner table or any other solution.It seems you ran more than once this script. As I already said to you above, you MUST use a 32bit Oracle client against your 64bit Oracle database from a Windows workstation, are you ?
Furthermore, Oracle db and Peoplesoft are not certified on Windows 7...
Lastly, or you remove that line from the script, or you delete that row (all rows) from that table, or you re-create database from scratch (I mean drop and recreate) because running this script more than once is never good, especially regarding the DMS import.
Nicolas. -
Issue in Calling PL/SQL packages using callable statement
Hi ,
I have the requirement of calling two pl/sql packages , After call of first package is successful , i need to pass the output of that first package as input to second package.
Since i have called both the packages in same method of AM, first package gets executed successfully but second package doesnt get the input values required from first package and results in error.
Looks like since commit is happening in the single session second package is passed with NULL values.
Need suggestion for proper way of calling pl/sql packages when second package is dependant on first one:
Code used inside AM Method:
if("PENDING_XXX".equals(regVORow.getRegStatus()))
regVORow.setRegStatus("VENDOR_CREATED");
getOADBTransaction().commit();
OracleCallableStatement cStmt = null;
OADBTransaction dbTxn = getOADBTransaction();
NUMBER vendor_id = new NUMBER(-1);
NUMBER vendor_site_id = new NUMBER(-1);
int vendor_id_value = -2000;
String vendor_number = null;
try
cStmt = (OracleCallableStatement)dbTxn.createCallableStatement("begin *XXB_POS_PVT.create_vendo*r( p_vendor_name => :1, p_supplier_reg_id => :2, p_vendor_id=>:3); end;", 1);
cStmt.setString(1, regVORow.getSupplierName());
cStmt.setNUMBER(2, new Number(Integer.parseInt(supplierId)));
cStmt.registerOutParameter(3, 4);
cStmt.execute();
vendor_id = cStmt.getNUMBER(3);
vendor_id_value = vendor_id.intValue();
catch(SQLException e)
throw new OAException(e.getMessage());
Number vendorId = new Number(vendor_id_value);
regVORow.setVendorId(vendorId);
if(vendorId != null)
vendor_number = getSupplierVendorNumber(vendorId);
getOADBTransaction().commit();
AsiPosSupplierOpCosVOImpl regOpCosVO = (AsiPosSupplierOpCosVOImpl)this.getAsiPosSupplierOpCosVO1();
AsiPosSupplierOpCosVORowImpl row = null;
int fetchedRowCount = regOpCosVO.getFetchedRowCount();
RowSetIterator createIter1 = regOpCosVO.createRowSetIterator("createIter1");
if(fetchedRowCount > 0)
createIter1.setRangeStart(0);
createIter1.setRangeSize(fetchedRowCount);
for(int i = 0; i < fetchedRowCount; i++)
row = (AsiPosSupplierOpCosVORowImpl)createIter1.getRowAtRangeIndex(i);
if(row.getApprovalStatus().equalsIgnoreCase("HEAD_APPROVED"))
try
oadbtransactionimpl.writeDiagnostics(this,"Creating Site - " + vendor_id_value+" "+row.getSupplierOpcoCode()+" "+supplierId,1);
cStmt = (OracleCallableStatement)dbTxn.createCallableStatement("begin *XXB_POS_PVT.create_vendor_sites*(p_supplier_reg_id => :1, p_vendor_id=>:2, p_opco_code=>:3, p_vendor_site_id=>:4); end;", 1);
cStmt.setNUMBER(1, new Number(Integer.parseInt(supplierId)));
cStmt.setNUMBER(2, new Number(vendor_id_value));
cStmt.setString(3,row.getSupplierOpcoCode());
cStmt.registerOutParameter(4, 4);
cStmt.execute();
vendor_site_id = cStmt.getNUMBER(4);
getOADBTransaction().commit();
catch(SQLException e)
throw new OAException(e.getMessage());
createIter1.closeRowSetIterator();Hi ,
There are some validation that can be performed from Entity level ( EO ) , you can go through them in Jdev guide .
It depends on the business requirement , not all validation can be performed from Entity level .
Let us know your business requirement , will try to clear your doubt .
--Keerthi -
How to call pl/sql stored procedure in JDBC query dialogbox
Hi,
how to call pl/sql stored procedure in JDBC query dialogbox(reports 9i) .
Cheers,
Raghuplease refer : Re: problem If you have more doubts, please ask in that question.
-
Call pl/sql API from jsp portlets
HI ALL!
I need to ask from java developers for portal application,How can i call pl/sql API from my jsp portlets,What enhancements in code should i have to follow in addition to use JDBC,I read in FAQ abt portal some thing abt pl/sql wrapper but that was for complex scenarios ,what if my requirement is to call only API functions for contentareas,items,previleges etc.I really need help.
thx
AlizehHi
thanks for ur reply but where were u a month ago,i really started to think that my question was enough stupid not to be answered.At present i have done with jdbc and pl/sql calls ,current concern is for sessions as i see that session id remains same when one user logs out and another logs in(if browser is not closed), same sessionid persists in my java portlet for both users.Is this an expected behaviour?? but yes new session id appears if browser is closed.
.session clear for both application and sso after logout is checked
.broser is set to check for new version each visit for the page
portal version is 3.0.9.8.0 ,we r planning patch to 3.0.9.8.3 soon
once again thx
Alizeh -
How to call PL/SQL stored procedure using ODBC?
Could anyone tell me how can I call PL/SQL stored procedure using
ODBC? Are there any sample codes?
Thanx!
nullYou are correct on all counts, they all should work.
Oracle Product Development Team wrote:
: Hi,
: I don't know the exact syntax in ODBC, but reasoning by analogy
: with other API's, I'd bet one of the following works
: (for a call to: procedure my_proc(n1 number, n2 number);):
: "{ my_proc(1,2); }"
: "{ call my_proc(1,2); }"
: "{ begin my_proc(1,2); end }"
: "begin my_proc(1,2); end;"
: "begin my_proc(1,2); end"
: Hope this helps. - Pierre
: jiangbuf (guest) wrote:
: : Could anyone tell me how can I call PL/SQL stored procedure
: using
: : ODBC? Are there any sample codes?
: : Thanx!
: Oracle Technology Network
: http://technet.oracle.com
null
Maybe you are looking for
-
Optical drive makes weird noise when CD/DVD is inserted, won't play
OK so...When I put a CD or a DVD into the optical drive, it makes this weird consistant sound that, while i feel like an idiot typing it out, sounds something like: eee ooh ooh eee ooh ohh eee ooh ooh. It does this for a couple minutes until it respo
-
Printing file names of specified folder
I feel like this is an incredibly simple question, so I'm a little embarassed to ask, but I've never used automator before. How do I set it up to print just the file names inside a specified folder?
-
Hi there, The following code is a simple media player applet. Now I try to change it to an application. import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.lang.String; import java.net.URL; import java.net.MalformedURLE
-
Srw.run_report dropping job id?
Hi, Looking at the source of the SRW package it looks like it drops any error messages and job id:s etc when the submitting fails (e.g. a report trigger fails). How have you dealt with displaying the original error message from the report?
-
How do I delete apps in the new IOS 7?