EJBs in Oracle 8i

Is it possible to connect to an EJB running in the Jserver VM from a Java stored procedure?

This is the JSP code which will call a EJB method in the JServer.
This is being tested with 8.1.6.
Step1 :
======
1. Deploy the helloworld EJB example
D:\orant\javavm\demo\examples\ejb\basic\helloworld
Run the makeit.bat.
2. Test the helloworld EJB Demo by running
runit.bat from the above directory.
3. Compile this Class5.java and load into the database using loadjava.
package jsp;
import hello.Hello;
import hello.HelloHome;
import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Hashtable;
import oracle.aurora.jndi.sess_iiop.ServiceCtx;
public class Class5 extends Object {
public Class5() {
public static String callEJB ()
String serviceURL = "sess_iiop://bldel56.in.oracle.com:2481:V816";
String objectName = "/test/myHello";
String user = "scott";
String password = "tiger";
String s1 = null;
try {
Hashtable env = new Hashtable ();
env.put (Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
env.put (Context.SECURITY_PRINCIPAL, user);
env.put (Context.SECURITY_CREDENTIALS, password);
env.put (Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
Context ic = new InitialContext (env);
HelloHome hello_home = (HelloHome)ic.lookup (serviceURL + objectName);
Hello hello = hello_home.create ();
s1 = hello.helloWorld ();
catch (Exception e) {e.printStackTrace();}
return s1;
4. Create the PL/SQL Function for calling the EJB Method.
create or replace FUNCTION CALLEJB RETURN VARCHAR2
AS LANGUAGE JAVA
NAME 'jsp.Class5.callEJB() return java.lang.String';
5. open the sql*plus and connect as scott/tiger.
select callejb from dual;
It should Display
CALLEJB
Hello client, your javavm version is 8.1.6.

Similar Messages

  • BLOB field in Entity CMP EJB (DB = Oracle)

    I use Borland App Server 4.5.1 .
    I have table, which has BLOB column.
    My first question is:
    What datatype should corresponding field in Entity CMP EJB have?
    I set it to byte [].
    When I deal with BLOB data of small size, everything is OK.
    But when the size of BLOB data is few larger,
    when I insert new record
    an Oracle error happens: a sort of
    "TNS adapter error: end of communication chanel"
    I use thin jdbc-driver.
    So does anybody have an experience in working with BLOB field in Entity CMP EJB (DB = Oracle) ?
    may be, the solution is to write BMP fields in Entity EJB,
    i.e. to write own methods
    set[BLOB_COLUMN](...),
    get[BLOB_COLUMN]() ?
    Thank you for answers.

    I have tried with db2 7.1/ IAS 4.0 and it works fine
    I use Borland App Server 4.5.1 .
    I have table, which has BLOB column.
    My first question is:
    What datatype should corresponding field in Entity CMP
    EJB have?
    I set it to byte [].this is perfect
    When I deal with BLOB data of small size, everything
    is OK.
    But when the size of BLOB data is few larger,
    when I insert new record
    an Oracle error happens: a sort of
    "TNS adapter error: end of communication chanel"In db2 there is a max size limit on the blob column. please check if such limit for oracle database.
    >
    I use thin jdbc-driver.
    So does anybody have an experience in working with
    BLOB field in Entity CMP EJB (DB = Oracle) ?
    may be, the solution is to write BMP fields in Entity
    EJB,
    i.e. to write own methods
    set[BLOB_COLUMN](...),
    get[BLOB_COLUMN]() ?this is a good approach
    >
    Thank you for answers.Regards,
    -- Ashish

  • Problem deploying EJB to Oracle 8.1.7

    Hi,
    I'm facing a problem while deploying EJB on to Oracle 8i.
    I'm using oracle 8.1.7 under Linux (RedHat 7.0).
    Also I'm using JDeveloper 3.2.2 (working under Windows NT)
    JDeveloper came with JDK version 1.2.2, but I'm using
    JDK 1.3(to use connection pooling).
    Classes compiled and says it is error free.
    But when I try to deploy this it gives me an error message saying
    Compilation errors in oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:ORA-29535: source requires recompilation
    oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:50: Exception java.lang.Exception must be caught, or it must be declared in the throws clause of this method.
    Info: 1 errors
    *** Errors occurred while deploying the EJB to 8i JVM ***
    ie. When I start deploying
    after it generates descriptors it displays message as below
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Generating Comm Stubs...................................................done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...done
    Generating EJBHome and EJBObject on the server...
    Compilation errors in oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:ORA-29535: source requires recompilation
    oracle/aurora/ejb/gen/dbAccess_dbEJB/EjbHome_DataAccessEJBHome:50: Exception java.lang.Exception must be caught, or it must be declared in the throws clause of this method.
    Info: 1 errors
    *** Errors occurred while deploying the EJB to 8i JVM ***
    *** Deployment completed ***
    Later I copied aurora_client.zip from Linux on to JDeveloper version.
    Still I get the same error.
    Any idea?
    Expecting your valuable suggestions.
    Thanks,
    Rajeev Mancheril.
    null

    I am wondering about the classes in the database. This is from metalink.
    SELECT count(*)
    FROM dba_objects
    WHERE object_type LIKE '%JAVA%';
    If the above query returns a number < 4000, the installation was not
    successful.
    The query below checks for any invalid Java classes using a Java stored procedure:
    SELECT dbms_java.longname(name)
    FROM sys.obj$
    WHERE type# = 29 and status != 1;
    If the above query fails or returns any rows, then something is wrong with the JVM installation.
    You can also test the Jserver by using the examples in
    $OH/javavm/demo/examples/corba/basic/helloworld
    or
    $OH/javavm/demo/examples/ejb/basic/helloworld
    To compile classes in the database
    Alter Java Class " Name of the java class" compile;
    Linda
    null

  • Poor perfomance CORBA and EJB in Oracle 8i

    Here are the perfomance results of methods invocations
    (1000 invocations of empty method in an loop)
    Oracle 8i CORBA ~100ms per method
    Oracle 8i EJB ~100ms per method
    Jonas EJB server ~5ms per method
    Java RMI ~3ms per method
    Why Oracle 8i is so slow, even compared with noncommercial
    EJB server Jonas? Is there any way to speed this up? Source codes of perfomance testing programs available upon request.

    Oracle Jserver is quite fast and scalable. Nevertheless, there exists an important overhead in calling a CORBA or EJB method, so you should desing "heavy" functions in your EJB/CORBA objects. Instead of calling 10 times little methods, call one time a hevay one, and you'll find that JServer perforns very fast and reliably.
    Best regards

  • Call EJB From Oracle Stored proc or Database loaded Java?

    Are there any examples of calling an EJB, residing in the OC4J on a machine separate from the DB server,
    from an Oracle PL/SQL stored proc.
    The Stored proc can call java loaded into the DB. That java makes the intial bean context. Or another way if suggested.
    The reason is that I need to use some drivers that I have so far been unable to load directly into the DB using
    loadjava util. I plan on using the driver in the EJB, located on a different machine. But I'd like so know if its possible to
    make the IntialContext call to the EJB container from PL/SQL. Are the OC4J drivers loadable to be
    able to be called from a database loaded java class? ( I might be a little off on my terminology)
    Bob
    [email protected]

    Hi Bob,
    Your question has been previously asked on this forum many times already.
    You can probably find the relevant postings by doing a search of the
    forum archives.
    To summarize those posts, as I understand it, the latest version of OC4J
    (version 9.0.3) contains a "oc4jclient.jar" file (I think that's the name
    of the file), that can be loaded into the Oracle database (using the
    "loadjava" utility), and which allows a java stored procedure to invoke
    methods on an EJB residing in OC4J.
    Please note that I have not tried any of the above -- I am only summarizing
    for you what has already been posted. And like I said before, a search
    of the forum archives will probably give you more details.
    Good Luck,
    Avi.

  • Error during lookup of remote ejb CaseService - Oracle ACM 12C Standalone

    StandAlone Setup:
    CD %ORACLE_HOME%\soa\common\bin
    set QS_TEMPLATES=%ORACLE_HOME%\soa\common\templates\wls\oracle.soa_template_12.1.3.jar, %ORACLE_HOME%\osb\common\templates\wls\oracle.osb_template_12.1.3.jar
    qs_config.cmd
    Then ran config.cmd from WLS and extended BPM domain, then was able to see composer app in deployment.
    AdminServer Args:
    set USER_MEM_ARGS=-Xms512m -Xmx3096m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=1024m
    Error
    ====
    Error during ejb lookup from bpm services client.
    Error during lookup of remote ejb CaseService .
    Contact Oracle support if exception can not be fixed.
            at oracle.bpm.client.impl.casemgmt.CaseManagementServiceRemoteClient.get
    CaseService(CaseManagementServiceRemoteClient.java:86)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.getCaseService(NotificationCallbackUtil.java:158)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.isActivityRegistered(NotificationCallbackUtil.java:167)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.registerEmailActivity(NotificationCallbackUtil.java:83)
            at oracle.bpm.casemgmt.fabric.CaseManagementServiceEngine.stateChanged(C
    aseManagementServiceEngine.java:1340)
            at oracle.integration.platform.blocks.mesh.FabricLifecycle.notifyListene
    rs(FabricLifecycle.java:54)
            at oracle.integration.platform.blocks.mesh.FabricLifecycle.setState(Fabr
    icLifecycle.java:41)
            at oracle.integration.platform.blocks.mesh.MeshImpl.postDeployInit(MeshI
    mpl.java:204)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
    on(AopUtils.java:318)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
    inpoint(ReflectiveMethodInvocation.java:183)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:150)
            at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEven
    tAspect.java:71)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:172)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
    cAopProxy.java:202)
            at com.sun.proxy.$Proxy324.postDeployInit(Unknown Source)
            at oracle.integration.platform.kernel.FabricKernelInitializerServlet$1.r
    un(FabricKernelInitializerServlet.java:1008)
            at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run
    (WorkManagerExecutor.java:184)
            at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManag
    er.java:184)
            at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Caused By: javax.naming.NameNotFoundException: While trying to lookup 'ejb.bpm.c
    ase.CaseService' didn't find subcontext 'bpm'. Resolved 'ejb'; remaining name 'b
    pm/case/CaseService'
            at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basic
    NamingNode.java:1180)
            at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.jav
    a:265)
            at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.j
    ava:187)
            at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:21
    0)
            at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:22
    4)
            at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.j
    ava:253)
            at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:426)
            at javax.naming.InitialContext.lookup(InitialContext.java:411)
            at oracle.bpm.client.impl.casemgmt.CaseManagementServiceRemoteClient.get
    CaseService(CaseManagementServiceRemoteClient.java:80)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.getCaseService(NotificationCallbackUtil.java:158)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.isActivityRegistered(NotificationCallbackUtil.java:167)
            at oracle.bpm.casemgmt.customactivity.notification.NotificationCallbackU
    til.registerEmailActivity(NotificationCallbackUtil.java:83)
            at oracle.bpm.casemgmt.fabric.CaseManagementServiceEngine.stateChanged(C
    aseManagementServiceEngine.java:1340)
            at oracle.integration.platform.blocks.mesh.FabricLifecycle.notifyListene
    rs(FabricLifecycle.java:54)
            at oracle.integration.platform.blocks.mesh.FabricLifecycle.setState(Fabr
    icLifecycle.java:41)
            at oracle.integration.platform.blocks.mesh.MeshImpl.postDeployInit(MeshI
    mpl.java:204)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
    on(AopUtils.java:318)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
    inpoint(ReflectiveMethodInvocation.java:183)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:150)
            at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEven
    tAspect.java:71)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    ReflectiveMethodInvocation.java:172)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
    cAopProxy.java:202)
            at com.sun.proxy.$Proxy324.postDeployInit(Unknown Source)
            at oracle.integration.platform.kernel.FabricKernelInitializerServlet$1.r
    un(FabricKernelInitializerServlet.java:1008)
            at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run
    (WorkManagerExecutor.java:184)
            at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManag
    er.java:184)
            at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    >
    Please help. The problem does not occur with Integrated WLS. I think the config scripts are correctly running from JDev.

    Hi,
    It's not easy to tell what's wrong with your example.
    Maybe you could send me a zip and I'll check when I have some time.
    By the way, you're asking a question about the lookup of an EJB3, I wrote an article that covers that topic.
    It should give you some interesting input.
    http://m-button.blogspot.com/2008/07/reminder-on-how-to-use-ejb3-with.html
    Regards.

  • Calling EJB from Oracle via IIOP

    I've spent the last two days trying to figure out how I can call an
    EJB from an Oracle Stored Procedure. I first looked into WLS JNDI
    (Using WLInitialContextFactory ), but my collegue recommended I look
    into IIOP because it is "less proprietary". I was able to get a WL
    example working that does a lookup on an EJB and "narrows" the IIOP
    object...so it looked promissing, but then I tried to load the JAR
    into Oracle and it said:
    "referenced name javax/rmi/PortableRemoteObject could not be found"
    So I did a quick check and it looks like this didn't come into
    existance until JDK 1.3. By all accounts, Oracle 8.1.6 supports JDK 2
    (1.2). So now I'm stuck. I've got a few examples about connecting to
    the Oracle ORB using session-iiop, but I don't know if Weblogic will
    be able to work with this. I don't know how I'd even call it because
    the URL requires an Oracle SID...so now what? I see three options.
    Please let me know which would be best (or another option that I'm
    missing)
    1. Try connecting with Weblogic "T3"
    2. Try to get the right combination of classes loaded so 1.2 can work
    like 1.3
    3. Use the Oracle IIOP (I have no examples for connecting to other
    ORBs so I have no idea how to lookup objects).
    Chris

    [email protected] (Chris Snyder) writes:
    Andy Piper <[email protected]> wrote in message news:<[email protected]>...
    [email protected] (Chris Snyder) writes:
    1. Try connecting with Weblogic "T3"It depends on what version of WLS you are using. If you are using 6.1
    then you are out-of-luck because this only support JDK 1.3.1.We are using WLS 6.1 and Oracle 8.1.6. There's got to be a way to
    connect what is essentially a 1.2 JVM to a 1.3.1 JVM. On my way home
    yesterday I was wondering if just straight RMI would work...although
    we need to encrypt the connection. I've seen several people talk
    about calling EJB's from stored procedures so it seems like there is a
    way. Any other ideas?The really gross way is HTTP. In a previous life I had a customer use
    oracle's HTTP plug-in to do this. You could probably invert the
    problem also. I.e. write CORBA objects that sit inside an Orb hosted
    in WLS and invoke on those using oracle's CORBA support. But HTTP is
    probably the way most likely to work. You probably couldn't use RMI
    over HTTP either - you would have to write a servlet that delegated to
    your beans.
    andy

  • OutOfMemoryError when connecting to BC4J deployed as EJB in Oracle 8i

    I have deployed a simple Application Module as an EJB in the Oracle 8i. I tried to connect to it with the following code:
    Hashtable env = new Hashtable(2);
    env.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
    env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_EJB);
    env.put(JboContext.CONNECTION_PORT, "2481");
    env.put(Context.SECURITY_CREDENTIALS, "jd");
    env.put(Context.SECURITY_PRINCIPAL, "jd");
    env.put(JboContext.ORACLE_SID, "ORA8I");
    env.put(JboContext.HOST_NAME, "dev51");
    env.put(JboContext.APPLICATION_PATH,"test/jd/ejb");
    ApplicationModule appMod1 = null;
    try
    System.out.println("Setting up Initial Context...");
    javax.naming.Context ic = new InitialContext(env);
    System.out.println("Doing LookUp...");
    ApplicationModuleHome home1 = (ApplicationModuleHome)ic.lookup(amName1);
    System.out.println("Calling create..." + home1.getClass());
    appMod1 = home1.create();
    While running the above code, I get an exception at home1.create() :
    Setting up Initial Context...
    Doing LookUp...
    Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    [0] Diagnostic Properties: (from /oracle/jbo/common/Diagnostic.properties)
    [1] Timing:false Functions:false Linecount:true Threshold:6
    [2] Connected to Service:sess_iiop://dev51:2481:ORA8I
    [3] Logging in...
    [4] Login takes 1142 ms
    Calling create...class com.oracle.jbo.client.remote.ejb.EJBApplicationModuleHomeImpl
    java.lang.OutOfMemoryError
    at com.visigenic.vbroker.orb.GiopInputStreamImpl.read_wstring(GiopInputStreamImpl.java:330)
    at oracle.jbo.common.remote.ObjectHandleHelper.read(ObjectHandleHelper.java:33)
    at com.oracle.jbo.common.remote.ejb._st_RemoteApplicationModule.riGetApplicationModuleInfo(_st_RemoteApplicationModule.java:8
    at com.oracle.jbo.client.remote.ejb.EJBApplicationModuleImpl.riGetApplicationModuleInfo(EJBApplicationModuleImpl.java:254)
    at oracle.jbo.client.remote.ApplicationModuleImpl.init(ApplicationModuleImpl.java:272)
    at oracle.jbo.client.remote.ApplicationModuleImpl.init(ApplicationModuleImpl.java:257)
    at com.oracle.jbo.client.remote.ejb.EJBApplicationModuleImpl.init(EJBApplicationModuleImpl.java:47)
    at com.oracle.jbo.client.remote.ejb.EJBApplicationModuleHomeImpl.create(EJBApplicationModuleHomeImpl.java:71)
    at app.AppModEjbClient.main(AppModEjbClient.java:35)
    Trying to connect the same through an infobus data form results in a similar exception :
    Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    [0] Diagnostic Properties: (from /oracle/jbo/common/Diagnostic.properties)
    [1] Timing:false Functions:false Linecount:true Threshold:6
    [2] Connected to Service:sess_iiop://dev51:2481:ORA8I
    [3] Logging in...
    [4] Login takes 1152 ms
    java.lang.OutOfMemoryError
    at com.visigenic.vbroker.orb.GiopInputStreamImpl.read_wstring(GiopInputStreamImpl.java:330)
    at oracle.jbo.common.remote.ObjectHandleHelper.read(ObjectHandleHelper.java:33)
    at com.oracle.jbo.common.remote.ejb._st_RemoteApplicationModule.riGetApplicationModuleInfo(_st_RemoteApplicationModule.java:8
    at com.oracle.jbo.client.remote.ejb.EJBApplicationModuleImpl.riGetApplicationModuleInfo(EJBApplicationModuleImpl.java:254)
    at oracle.jbo.client.remote.ApplicationModuleImpl.init(ApplicationModuleImpl.java:272)
    at oracle.jbo.client.remote.ApplicationModuleImpl.init(ApplicationModuleImpl.java:257)
    at com.oracle.jbo.client.remote.ejb.EJBApplicationModuleImpl.init(EJBApplicationModuleImpl.java:47)
    at com.oracle.jbo.client.remote.ejb.EJBApplicationModuleHomeImpl.create(EJBApplicationModuleHomeImpl.java:71)
    at oracle.dacf.dataset.SessionInfo._createAppModule(SessionInfo.java:1783)
    at oracle.dacf.dataset.SessionInfo.connect(SessionInfo.java:1370)
    at oracle.dacf.dataset.SessionInfo.open(SessionInfo.java:1425)
    at oracle.dacf.dataset.SessionInfo.publishSession(SessionInfo.java:952)
    at app.Frame1.<init>(Frame1.java:218)
    at app.InfobusClient.main(InfobusClient.java:14)
    Any help would be appreciat ed.
    null

    Hi:
    I went into the same problem as well.
    Does anyone know what might causes this?
    Thanks,
    Kevin.

  • Database connectivity in struts ( EJB) with Oracle 9

    hi,
    We are developing a Banking application using Struts & EJB, & I need to use Oracle 9 as a database. Could anyone please let me know, the professional way of connecting this application to the oracle database using Struts and EJB. A good example will help me a lot, so please give me example code also.
    Thanks a lot in advance.
    Raghav

    Hello,
    For keeping the standby database on same HOST....it does seems to be great...i must be on separate box....may be on different network...i believe you would be using it for some failiover purpose...Isn't it.
    For Unix it is quite easy..you may implement like this...The Issue which you are referring may be because of wrong Oracle Home or SID....(i'm not very much sure..) You may try following steps:
    1. Create a separate Unix A/c and set ORACLE_HOME and ORACLE_SID relevant to your StandBy Database. I believe the Home would be same whereas SID would be your standby databse.
    2. Take a Cold Backup of All your database files from Production.
    3. Copy these files on separate mount points for standby Db. Put them all to relevant directory and be sure to set the Group of all these files as "SYSDBA" This is Must.
    4. And then modify your INIT.ORA file i.e. InitSID.ora file accordingly and put the file in ORACLE_HOME
    5. Login to Newly created Unix A/c. Check whether ORACLE_SID is set ot not to your standby database instance.
    6. Login to sys as sysdba and start up the database. It will by default would try to check & do for your relevant Oracle SID for this profile...
    HTH
    Regards,
    Kamesh Rastogi

  • (Urgent !!!) deployment error of EJB in Oracle 8.1.5

    Hi all
    I am using Oracle 8.1.5 (Jserv) at the backend as database server and EJB server
    and JDeveloper 2.0 for development of EJBs
    I am creating a Mailer EJB which uses javax.mail package APIs for sending mails
    I have included corresponding jar file for this package. my ejbs package name is Email
    and session bean class name is smtp
    when I deploy this bean deployer generate jar files in which it includes every dependent classes. but when it deploys it
    an error comes
    "error while deploying class Email.smtp not found while deserializing descripto"
    Can anybody please suggest me what is going wrong?
    any help is appreciated
    thanx in advance
    regards
    Mukesh garg
    null

    This might be best asked in the Oracel Text forum...
    But, it appears that you have extproc configured correctly, the problem is that extproc cannot find the shared object in question. It cannot dynamically load the shared object becaus it cannot find it.
    In my experience, this is due to a LD_LIBRARY_PATH unix environmental variable that does not include the directory where the shared object is. You should set this variable in the login script for the oracle user.
    From the installation guide.... I am not sure if this library is in ORACLE_HOME/lib, if not add the directory to LD_LIBRARY_PATH
    LD_LIBRARY_PATH
    Required when using Oracle products that use shared libraries. Set LD_LIBRARY_
    PATH to include $ORACLE_HOME/lib.

  • Deploying EJB in Oracle 9 iAS

    Hi
    I have installed oracle 9ias(standard edition-1.0.2) and have a DB running in another m/c(oracle 8.1.6).both machines are running in Win 2K .when i tried to deploy the sample EJB (customer)-(by using makeit command), the process terminates saying the following error .
    Descriptor oracle_customer.xml server.jar
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Processing container managed persistence bean...don
    Generating Comm Stubs..............................
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...
    Cannot locate the LoadJava server: Unknown reasons
    Please note the error at the last line .Can any one suggest a solution for this .
    thanks in advance
    Prem
    null

    1. I read somewhere that since in oracle 9i AS , ejb are deployed into the DB ,site will be much faster and now oracle itself is recommending to use OC4J which is almost same as orion server
    OC4J is a superb implementation of the J2EE specification. Oracle ships and fully supports OC4J as the preferred J2EE (JSP, servlet, EJB) execution engine for Oracle9iAS.
    2. Will OC4J will work without oracle 9iAS
    Let me clarify one point - OC4J is a component of Oracle9iAS. It is licensed as part of Oracle9iAS.
    However, the OC4J component can be downloaded as a separate, small package and installed on it's own. For this scenario, it is 10MB to download and 15MB when installed.
    Additionally, the OC4J component is also shipped as part of the complete Oracle9iAS distribution.
    It runs equally as well in both scenarios.
    3. Which databse can(version - 8.1.6 or 8.1.7) can be used with 9iAS
    Oracle9iAS 1022 is certified with Oracle 8.0.6 and 8.1.7.
    -steve-
    null

  • Why can't I deploy an EJB to Oracle 8i

    When I tried to deploy my first EJB to an Oracle 8i database,
    I got following error message:
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...
    The declared method does not exist in either the Home or Remote
    interface:
    public java.lang.String hello()
    *** Errors occurred while deploying the EJB to JServer ***
    *** Deployment completed ***
    Actually, I defined the function in the Remote interface:
    public interface MyEJB extends EJBObject {
    public String hello() throws java.rmi.RemoteException;
    My developing tool is Oracle JDeveloper 3.0
    What's wrong?
    null

    Just do a Remove All.
    I would first find two consecutive EOL characters and replace with an extra line feed or a visible marker like an ampersand. Then Remove All EOL characters. Then replace all the all the ampersands with a CR/LF. It's pretty quick. A lot quicker than trying to remove 500 EOL characters one at a time.
    Or, ask the sender to create the document in a word processor, zip it, then send it to you.

  • Calling OC4J deployed EJB from Oracle 8.1.7 DB

    Hi
    I have deployed a Stateless Session Bean to OC4J (9.0.2). The client works fine. The Servlet and JSP works fine.
    What I need to do now is call this EJB from PL/SQL , ie call from Database PL/SQL package to wrapper to OC4j EJB.
    Trying to get this loaded into Oracle DB we get a class compilation error with the
    com.evermind....rmi... class. I do believe this is the OC4J implementation of RMI lookup. Is there a comparable class to load in the DB?
    Any ideas how to ??
    Tks
    Andre
    Here is a client sample of calls to the EJB
    package SampleWizUpdates;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import WizUpdates.WizAllocTotals;
    import WizUpdates.WizAllocTotalsHome;
    import resTotals;
    import resSuccess;
    import javax.rmi.*;
    public class WizAllocTotalsClient2
    public static void main(String [] args)
    WizAllocTotalsClient2 wizAllocTotalsClient2 = new WizAllocTotalsClient2();
    try
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "manager");
    env.put(Context.PROVIDER_URL, "ormi://sdt10645:23791/WizAllocTotals");
    Context ctx = new InitialContext(env);
    WizAllocTotals totalsBean;
    Object homeObject = ctx.lookup("WizAllocTotals");
    WizAllocTotalsHome home =
    (WizAllocTotalsHome)PortableRemoteObject.narrow(homeObject,
    WizAllocTotalsHome.class);
    totalsBean = (WizAllocTotals)PortableRemoteObject.narrow(home.create(),
    WizAllocTotals.class);
    // create new EJB instance
    totalsBean = home.create( );
    // Call any of the Remote methods below to access the EJB
    int operatorId = 1238;
    resTotals newRes = new resTotals();
    resSuccess newResSucc = new resSuccess();
    String newDataBase = "dwz3";
    int eventRefNo = 17445291;
    int actionNumber = 3;
    int allocValue = 125;
    totalsBean.setDataBase( newDataBase );
    newRes = totalsBean.getOperatorTotals( operatorId, eventRefNo );
    System.out.println("Result total 1 is "+newRes.totTransactLimitValue);
    System.out.println("Result total 2 is "+newRes.totDailyLimitValue);
    System.out.println("Result total 3 is "+newRes.totWeeklyLimitValue);
    System.out.println("Result total 4 is "+newRes.totMonthlyLimitValue);
    System.out.println("Result total 5 is "+newRes.remDailyLimitValue);
    System.out.println("Result total 6 is "+newRes.remWeeklyLimitValue);
    System.out.println("Result total 7 is "+newRes.remMonthlyLimitValue);
    System.out.println("Result success code is "+newRes.resCode);
    System.out.println("Result success message is "+newRes.resMessage);
    newRes = totalsBean.setOperatorTotals(operatorId,
    eventRefNo,
    actionNumber,
    allocValue,
    "C",
    "Testing Reason");
    System.out.println("Insert result success code is "+newRes.resCode);
    System.out.println("Insert result success message is "+newRes.resMessage);
    catch(Throwable ex)
    ex.printStackTrace();
    }

    Hi Andre,
    I am using stand-alone OC4J version 9.0.2.0.0 under (SUN) Solaris 7
    with JDK 1.3.1 and Oracle DBMS version 8.1.7.4.
    I have not yet been able to create a java stored procedure in the
    database that directly looks up an EJB deployed to OC4J.
    The only two ways I have found to "talk to" an EJB from a java stored
    procedure is
    1) go through a servlet
    2) go through a "remote" object (using RMI)
    For the first option, deploy an application to OC4J that contains
    your EJBs and a servlet (which acts as the client for the EJBs).
    Then, from your java stored procedure, contact the servlet using
    the classes in the "java.net" package -- including "URL" and "URLConnection".
    For the second option, use the "rmiregistry" to register a remote
    object. This remote object acts as the EJB client. The remote object
    does not need to be part of an application deployed to OC4J. Then
    contact the remote object from your java stored procedure.
    Hope this helps.
    Good Luck,
    Avi.

  • EJB on Oracle Java Cloud Service

    Hi, I am new to the world of Java, EJB, Weblogic Server.
    Steps that I have carried out -
    1. I have implemented a HelloBean, HelloHome, HelloObject - objective is just to print "Hello" through one of the bean's biz method.
    2. I created class files for the above 3 java programs.
    3. I have created a JAR file of 3 javas programs, its' class, along with the required META-INF/ejb-jar.xml.
    4. Now, when I tried to deploy this JAR file in Oracle Java Cloud service, I got errors stating that RemoteException is not allowed, EJBObject is not allowed. So, I changed everything to local removing RemoteException reference, changing EJBObject to EJBLocalObject.
    Now, the questions -
    a] Reference to point (4), why should I have it as LOCAL? Is it because the client is excepted to be in the same heap of the Cloud?
    b] I deployed the JAR file in cloud, but when I checked the logs, it was looking for WAR file. I understand that WAR will have access points that will inturn use the JAR that I created.
    c] Reference to point (5), how do I invoke the biz method now?
    Thanks,
    J

    I get this below message when I try to follow the Application URL when I opt for "Test Application" of the above in Oracle Java Cloud Service.
    Error 403--Forbidden
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.4 403 Forbidden
    The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
    This is in reference to the last question raised above.

  • EJBs in Oracle 8.1.5 with SDK 1.2.2

    I am trying to get our Java Application - formerly a 1.1.7 - which accesses EJBs in the database (8i - 8.1.5) running with the new JDeveloper 3.0 with SDK 1.2.2.
    After some Exceptions that remind me of missing classes I get to the point where I do the .lookup() of the bean:
    MyFirstHome home = (MyFirstHome) ic.lookup( beanURL + beanName );
    This results in a NotContextException under 1.2.2.
    Everything works just fine under 1.1.8 with JDev 3.0 and I can lookup the bean and access all the beans methods without any problems.
    Are there still classes missing or do I need to reconfigure the database to work with 1.2.2?
    I'd appreciate any help.
    Thanks,
    Thomas Janausch

    The 8.1.5 EJB client libraries (the aurora ORB client libraries) will not work with a JDK 1.2.x client. No workaround at present. Since the 8i R2 (8.1.6) RDBMS will include JDK 1.2 support, help shouldn't be too far off.

Maybe you are looking for

  • Take a look at what Aperture can do!

    I`d like to have the ability to view pictures like the way it`s possible in Aperture: - Realtime loop even with RAWs - compare images side by side (Aperture puts as many images as you want side by side and btw. in a much more elegant and faster way t

  • Problem in choosing Long Description Attribute in AWM

    While creating a dimension,both Short Description Attribute and Long Description Attribute can not be checked in simultaneously.Even though I tried to check both the options while creating but during data mapping it is showing only short description

  • Contacts keep crashing in mountain lion (late 2012)

    So, I got 2 Mac Minis (late 2012 with ML) last week. Updated to 10.8.2, set up iCloud, fixed disk permissions and the contacts app keeps crashing when I try to delete a contact in a different way (instead of pressing the delete key). Let me try to de

  • Half way thru my sync receive message unable to sync due to unknown error 13019

    After recent itunes update receive error message half way thru sync process ipod cannot be synced due to unknown error 13019

  • A major pain

    First of all I really do have a love hate relaitionship with this phone it has some really cool features but some stuff really ******* me off: 1. My phone has 24 gb of free space and when I try syncing just 4.8gb I keep telling me it not able to sync