• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PLS-00201: identifier 'SEC_LBIC.LDAP_VIEW_APP_LIST' must be declared

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
java.sql.SQLException: ORA-06550: line 1, column 13:
PLS-00201: identifier 'SEC_LBIC.LDAP_VIEW_APP_LIST' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

I am getting this error when calling the following PL/SQL stored procedure from Java.


String wwid = "20300474";



try
{

Context initcxt = new InitialContext();
writer.println("Initial Context");
Context envCtx = (Context) initcxt.lookup("java:comp/env");
writer.println("looking up Context");
DataSource ds = (DataSource)envCtx.lookup("jdbc/jnj/security");
writer.println("Got initial Context!");


Connection conn = ds.getConnection();





CallableStatement cstmt = conn.prepareCall("{? = call SEC_LBIC.ldap_view_app_list(?)}");
cstmt.registerOutParameter(1,OracleTypes.CURSOR);
cstmt.setString(2,wwid);

cstmt.executeUpdate();




writer.println("SUCCESSFUL - update of Stored Procedure..");
}

catch(Exception e)
{
writer.println(e.getStackTrace());
e.printStackTrace();

}
 
Well THAT's new! Comfort me, reliable tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic