Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Enterprise Integration Forum

Enterprise Integration Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Adrian Io 17.Aug.12 07:03 AM a Web browser
LC LSX All Releases Windows


I want to use an lotus agent to call a Oracle stored procedure who insert a value in oracle table but is not working. From Lotus agent i have connection to oracle database.
What is wrong in the script ?

The stored procedure is like this :

create or replace procedure "ARHIVA_TEST"
(p_uid IN VARCHAR2)
is
begin
INSERT INTO AUX_LOG_ARHIVA ("ID")
VALUES (p_uid);
end;

Lotus agent is like this:

Uselsx "*LSXODBC"
Uselsx "*LSXLC"

Sub Initialize
Dim Con As New LCConnection ("odbc2")
Dim Parms As New LCFieldList
Dim Result As New LCFieldList
Dim Parm As LCField

' set properties to connect to both data sources
Con.Server = "LOTUS"
Con.Userid = "system"
Con.Password = "12345"

' set the connection property to the stored procedure name

Con.Procedure = "ARHIVA_TEST"

' now connect
Con.Connect

' append the new field to the fieldlist
Set Parm = Parms.Append ("p_uid", LCTYPE_TEXT)

' set the field to a value -- in this case it is

' the one parameter needed for the stored procedure

Parm.text = " '1' "

' using the fieldlist containing the field with the

' stored procedure parameter, call the stored procedure

count = Con.Call (Parms, 1, Result)

Exit Sub

End Sub



If i use the SQL command in PLSQL is working.

BEGIN
arhiva_test('1');
END;






Oracle stored procedure and LCLSX (... (Adrian Io 17.Aug.12)
. . RE: Oracle stored procedure and LCL... (Adrian Io 20.Aug.12)
. . RE: Oracle stored procedure and LCL... (Daniel W Heiche... 3.Sep.12)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite