Migrating applciation from weblogic to oracle 9i application server(OC4J)??????

Hi,
I am migrating my ejb application from weblogic to oracle 9i application server.What changes are needed to be made in code and what configuration changes are required.
In my application i use a couple of session beans wherin a session bean calls the method of the other session bean which acceses the database.I am using a jdbc thin driver for the database connection. is it possible for a session bean to call a method of another session bean which access the database??This concept works well in weblogic where the current application is running.
The problem is that while migrating the application to the orion server, it gives an OrionCMTException ...
memory leak..etc.
Could any one clarify.
Thanks in advance!!!

Hi Avi and Harrison,
Cease Fire avi!!!!.First of all let me clear the issue of posting the same problem twice.Well, when i mentioned the problem the first time , i found the title session bean deployment was not right and few people would look into it as it was a common problem so i thought it would be appropriate if i mentioned the title correctly , so i posted the query again with the change in title.
Now coming to the answer for ur questions.
The platform used is MS Windows NT.
The (OC4J) version is 1.0.2.2.1.
I am not using JDeveloper.
The database is oracle 8i and i am using the thin driver.
The beans to be deployed are stateless session beans.
The client involved is a web client i.e a jsp application.
The first session bean is as follows.
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.sql.Timestamp;
import java.rmi.RemoteException;
import java.util.Date;
import javax.ejb.*;
import javax.naming.*;
import initcontext;
import PrintMessage;
import JB_B2B_ERROR_PARSER;
* @stereotype SessionBean
* @homeInterface DB_UTILITYHome
* @remoteInterface DB_UTILITYRemote
public class DB_UTILITY implements SessionBean
     private SessionContext context;
private ResultSet rs = null;
private Statement stmt = null;
private Connection con = null;
private PrintMessage print = null;
public DB_UTILITY()
rs = null;
stmt = null;
con = null;
print = new PrintMessage();
     public Connection getConnection()throws RemoteException
          InitialContext initctx = null;
          Connection con = null;
          try
               initctx = initcontext.getContext();
               javax.sql.DataSource ds =
(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
               con = ds.getConnection();
//(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
catch(NamingException namingexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", namingexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("AppError",
"Epool-10001", "DB_UTILITY.getConnection"));
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception),
"DB_UTILITY.getConnection"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("EpoolError",
"Epool10005", "DB_UTILITY.getConnection"));
          return con;
     public String getDate()throws RemoteException
          String Date=null;
          try
               con=getConnection();
               stmt=con.createStatement();
               rs=stmt.executeQuery("SELECT
TO_CHAR(SYSDATE,'YYYY-MM-DD HH:MI:SS') FROM DUAL");
               while(rs.next())
                    Date=rs.getString(1);
               stmt.close();
               con.close();
catch(SQLException sqlexception)
     print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception), "DB_UTILITY.getDate"));
catch(Exception exception)
     print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("epoolError",
"Epool10005", "DB_UTILITY.getDate"));
finally
try
if(con != null && !con.isClosed())
con.close();
catch(Exception exception2)
stmt = null;
con = null;
          return Date;
     public void setSessionContext(SessionContext context)
          this.context = context;
     public void ejbActivate()
     public void ejbPassivate()
     public void ejbCreate()
     public void ejbRemove()
Also the xml files are as follows.
web.xml
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!-- A friendly name for this web application, this name can be used in visual development environments, for instance -->
<display-name>AddressBook Web Application</display-name>
<!-- A human-readable description of this web application -->
<description>Web module that contains an HTML welcome page, and 4 JSP's.</description>
<!-- The file(s) to show when no file is specified, i.e. only the directory is specified. -->
<welcome-file-list>
<welcome-file>B2B_COUNTRY_CODE.jsp</welcome-file>
</welcome-file-list>
<ejb-ref>
<ejb-ref-name>SB_B2B_COUNTRY_CODEHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>SB_B2B_COUNTRY_CODEHome</home
<remote>SB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref></web-app>
Application.xml
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name>Country Code</display-name>
<module>
<ejb>epool_CountryCode-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>epool_CountryCode-web.war</web-uri>
<context-root>/epool_CountryCode-web</context-root>
</web>
</module>
</application>
ejb-jar.xml:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<description>epool_CountryCode</description>
<enterprise-beans>
<session>
<display-name>CountryCode Session
Bean</display-name>
<ejb-name>SB_B2B_COUNTRY_CODERemote</ejb-name>
<home>SB_B2B_COUNTRY_CODEHome</home>
<remote>SB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>SB_B2B_COUNTRY_CODE</ejb-class>
<session-type>Stateless</session-type>
<ejb-ref>
<description>EJB Epool DButility</description>
     <ejb-ref-name>DB_UTILITYRemote</ejb-ref-name>
               <ejb-ref-type>Session</ejb-ref-type>
               <home>DB_UTILITYHome</home>
               <remote>DB_UTILITYRemote</remote>
          </ejb-ref>
          <ejb-ref>
          <description>EJB Entity Bean</description>
<ejb-ref-name>EB_B2B_COUNTRY_CODERemote</ejb-ref-name>
               <ejb-ref-type>Entity</ejb-ref-type>
               <home>EB_B2B_COUNTRY_CODEHome</home>
          <remote>EB_B2B_COUNTRY_CODERemote</remote>
          </ejb-ref>
</session>
<session>
<display-name>DbUtility Session Bean</display-name>
<ejb-name>DB_UTILITYRemote</ejb-name>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
<ejb-class>DB_UTILITY</ejb-class>
<session-type>Stateless</session-type>
</session>
<entity>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
     <home>EB_B2B_COUNTRY_CODEHome</home>
     <remote>EB_B2B_COUNTRY_CODERemote</remote>
     <ejb-class>EB_B2B_COUNTRY_CODE</ejb-class>
     <persistence-type>Container</persistence-type>
     <prim-key-class>EB_B2B_COUNTRY_CODEPK</prim-key-class>
     <reentrant>False</reentrant>
     <cmp-field>
     <field-name>country_code_desc</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>phone_format_flag</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>country_code</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>active_date</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>date_created</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>active_flag</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>country_phone_code</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>country_tax_percent</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>sort_order</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>date_modified</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>user_created</field-name>
     </cmp-field>
     <cmp-field>
     <field-name>user_modified</field-name>
     </cmp-field>
     <resource-ref>
     <description></description>
     <res-ref-name>jdbc/ePool</res-ref-name>
     <res-type>javax.sql.DataSource</res-type>
     <res-auth>Container</res-auth>
     </resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
     <container-transaction>
          <method>
               <ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
               <method-name>*</method-name>
          </method>
          <trans-attribute>Required</trans-attribute>
</container-transaction>
<security-role>
<description>Users</description>
<role-name>users</role-name>
</security-role>
</assembly-descriptor>
</ejb-jar>
The session bean which uses the above session bean is as follows.
import javax.ejb.SessionContext;
import javax.ejb.SessionBean;
import java.sql.*;
import javax.naming.Context;
import java.sql.Timestamp;
import java.util.Vector;
import initcontext;
import DB_UTILITYHome;
import DB_UTILITYRemote;
import EB_B2B_COUNTRY_CODEHome;
import EB_B2B_COUNTRY_CODERemote;
import EB_B2B_COUNTRY_CODEPK;
* @stereotype SessionBean
* @homeInterface SB_B2B_COUNTRY_CODEHome
* @remoteInterface SB_B2B_COUNTRY_CODERemote
public class SB_B2B_COUNTRY_CODE implements SessionBean
     private SessionContext context;
     * Sets the context of the bean
     * @param context The Bean's Context
     public Vector selectCountryCode(String query,String
countquery, String pagenos) throws Exception
          Context ctx = initcontext.getContext();
          Connection con=null;
          Vector records=new Vector();
          int pageno=Integer.parseInt(pagenos);
          int min=(pageno-1)*10;
          int max=pageno*10;
          int counter=0;
          boolean recordsfound=false;     
          try
               DB_UTILITYHome home =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
               DB_UTILITYRemote remote =
(DB_UTILITYRemote)home.create();
               con=remote.getConnection();
               Statement stmt = con.createStatement();
               ResultSet rscount =
stmt.executeQuery(countquery);
               while(rscount.next())
                    int temp=rscount.getInt(1);
                    int pagecount=temp;
                    pagecount=pagecount/10;
                    if((temp%10)>0)
                    pagecount=pagecount+1;               
                    records.addElement(""+pagecount);
               ResultSet rs = stmt.executeQuery(query);
               while(rs.next())
                    counter++;
                    if(counter>min && counter<=max)
                         String row[]=new String[8];     
                         recordsfound=true;
                         row[0]=rs.getString(1);
                         row[1]=rs.getString(2);
                         row[2]=rs.getString(3);
                         row[3]=rs.getString(4);
                         row[4]=rs.getString(5);
                         row[5]=rs.getString(6);
                         row[6]=rs.getString(7);
                         row[7]=rs.getString(8);          
                         records.addElement(row);
          con.close();               
          catch(Exception e)
               System.out.println("Error in selecting Country
Code "+e);
               throw new Exception("Error in selecting Country
Code "+e);
          return(records);     
     public void insertCountryCode(String country_code, String
country_code_desc, String country_phone_code, String
phone_format_flag,String active_flag, String sort_order,String
country_tax_percent)throws Exception
          Context ctx = initcontext.getContext();
          Double Sort_Order=null;
          Double cntry_tax_prct=null;
          if(sort_order!=null && sort_order.length()>0)          
          Sort_Order=new Double(sort_order);          
          if(country_tax_percent!=null &&
country_tax_percent.length()>0)          
          cntry_tax_prct=new Double(country_tax_percent);
          String user_created=null;
          Timestamp date_created=null;
          Timestamp active_date=null;
          String user_modified=null;
          Timestamp date_modified=null;          
          try
               DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
               DB_UTILITYRemote dbremote =
(DB_UTILITYRemote)dbhome.create();
               user_created=dbremote.getUser();
date_created=Timestamp.valueOf(dbremote.getDate());
               active_date=date_created;
               EB_B2B_COUNTRY_CODEHome home =
(EB_B2B_COUNTRY_CODEHome)ctx.lookup("java:comp/env/EB_B2B_COUNTRY_CODER
emote");
               EB_B2B_COUNTRY_CODERemote remote =
(EB_B2B_COUNTRY_CODERemote)home.create(country_code, country_code_desc,
country_phone_code,active_flag, phone_format_flag,user_created,
date_created, active_date, Sort_Order, user_modified,
date_modified,cntry_tax_prct);                              
          catch(Exception e)
               System.out.println("Error in Creating COUNTRY
Code "+e);
               throw new Exception("Error in Creating COUNTRY
Code "+e);
     public void setSessionContext(SessionContext context)
          this.context = context;
     public void ejbActivate()
     public void ejbPassivate()
     public void ejbCreate()
     public void ejbRemove()
The jsp client which acces the beans is as follows.
<BODY >
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="initcontext" %>
<%@ page import = "java.util.*" %>
<%@ page import="DB_UTILITYHome"%>
<%@ page import="DB_UTILITYRemote"%>
<%@ page import="javax.naming.*"%>
<%Connection con=null; %>
<script src="search_getvalues.js">
</script>
<form name=frm1>
<%! int intCount,intI,intRowCount,intJ;
String strtname=new String();
String strhidden=new String("txthdn");
     Statement st;
     ResultSet rs;
     ResultSetMetaData rmeta;
....%>
<%
try
     Context ctx = initcontext.getContext();
     DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
     DB_UTILITYRemote dbremote = (DB_UTILITYRemote)dbhome.create();
     con=dbremote.getConnection();
     st=con.createStatement();
     rs=st.executeQuery(strsqlquery);
     rmeta=rs.getMetaData();
intCount=rmeta.getColumnCount();
....... %>
</form>
</BODY>
</HTML>
The resulting exception generated is as follows:
D:\oc4j\j2ee\home>java -jar orion.jar
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... done.
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e\epool_CountryCode-web.war... done.
Auto-deploying epool_CountryCode (New server version detected)...
Auto-deploying epool_CountryCode-ejb.jar (No previous deployment
found)... done.
Error deploying
file:/D:/oc4j/j2ee/home/demo/messagelogger/messagelogger-ejb.jar homes:
No javax.jms.Destination found a
t the specified destination-location (jms/theTopic) for
MessageDrivenBean com.evermind.logger.MessageLogger
Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
Auto-deploying epool countryCode example (New server version
detected)...
************************1
************************2
COUNT QUERY :SELECT COUNT(COUNTRY_CODE) FROM BAP_COUNTRY_CODE
QUERY :SELECT
COUNTRY_CODE,COUNTRY_CODE_DESC,COUNTRY_PHONE_CODE,PHONE_FORMAT_FLAG,COU
NTRY_TAX_PERCENT ,SORT_ORDER,ACTIVE
FLAG,ACTIVEDATE FROM BAP_COUNTRY_CODE order by COUNTRY_CODE
Error in selecting Country Code java.rmi.RemoteException: Error
(de-)serializing object: com.evermind.sql.OrionCMTConnec
tion; nested exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
JB:Error in selecting country cd java.lang.Exception: Error in
selecting Country Code java.rmi.RemoteException: Error (d
e-)serializing object: com.evermind.sql.OrionCMTConnection; nested
exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
Error in Selecting Records
OrionCMTConnection not closed, check your code!
LogicalDriverManagerXAConnection not closed, check your code!
(Use -Djdbc.connection.debug=true to find out where the leaked
connection was created)
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... Error unpacking: IO Error:
The system cannot find the path specified
Error updating application epool_CountryCode: Unable to find/read
assembly info for D:\oc4j\j2ee\home\applications\epool_C
ountryCode\build\epool_CountryCode (META-INF/application.xml)
But if the DBUTILITY session bean is changed to a simple bean and accessed the code works fine and i am able to retrieve the data.Is the problem there because u one session bean cannot access a database connection method from another one or could it be because of the driver???
I hope i am clear.Please revert back in case any more references are needed.
Thanks in advance!!!!!!

Similar Messages

  • Migration Error from Access to Oracle through SQL Developer.

    Hi,
    Actually I am trying to migrate data from MS Access 2002 to Oracle 9i database through the SQL Developer. But Whenever I go to Capture Database from Access it will show me an error.... Invalid procedure Call and then it shows an error message... >>>>>>
    ShowSplashScreen("_OracleSplashScreen",3)
    after that i wont be able to do this task anymore..... So please help me get out of it... How Cam I Maigrate data from Access to Oracle 9i...
    Is any other tool i use or you can help me for this tool to migrate date...
    Please tell me..
    If yu can send me a mail then mail me on [email protected]
    regards,
    Vishal

    Hi Vishal,
    I have responded to your related thread on the Migration Workbench forum - Migration Error from Access to Oracle through SQL Developer.
    Regards,
    Hilary

  • How to call a Oracle Form from within the oracle APEX application

    Hi,
    I am new for Oracle APEX. I have a requirment where need to call a Oracle form (.fmx file) from within the Oracle APEX application.
    Can someone help me out ?
    it would be a great help.
    Thanks

    This might help you...
    http://roelhartman.blogspot.com/2008/11/integrate-oracle-forms-with-apex.html

  • Migrating database from PostgreSql to Oracle 10g

    Hi
    can anybody help me by providing steps to migrating database from PostgreSql to Oracle 10g. its very urgent requirement. so please let me know if anyone know about this setps.
    thanks in advance.
    jayesh
    cignex technology pvt ltd

    NPD wrote:
    Hi Guys,
    Can one migrate database from sql2005 to Oracle.
    Thanx.You can use [Oracle Migration Tool |http://www.oracle.com/technology/tech/migration/workbench/index.html]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Send and recieve sms from oracle(database+application server)

    HI all
    I Wanted to send and recieve SMS not mails from oracle(database/application server).any possible solutions and what are the things that i required for that.i-e any service provider or any machine or somethings else.

    Handle: taimur
    Status Level: Newbie
    Registered: Aug 3, 2009
    Total Posts: 42
    Total Questions: 16 (16 unresolved)
    so many questions without ANY answers.
    http://forums.oracle.com/forums/ann.jspa?annID=718
    http://www.lmgtfy.com/?q=oracle+send+sms
    Edited by: sb92075 on Nov 20, 2010 7:23 PM

  • Send sms from oracle database/application server

    HI all
    I Wanted to send and recieve SMS not mails from oracle(database/application server).any possible solutions and what are the things that i required for that.i-e any service provider or any machine or somethings else.and secound thing can i use wirless server and what are the requirments for that

    Handle:      taimur
    Status Level:      Newbie
    Registered:      Aug 3, 2009
    Total Posts:      42
    Total Questions:      16 (16 unresolved)
    so many questions without ANY answers.
    http://forums.oracle.com/forums/ann.jspa?annID=718
    http://www.lmgtfy.com/?q=oracle+send+sms

  • Migrating database from sql2005 to Oracle 9i

    Hi Guys,
    Can one migrate database from sql2005 to Oracle.
    Thanx.

    NPD wrote:
    Hi Guys,
    Can one migrate database from sql2005 to Oracle.
    Thanx.You can use [Oracle Migration Tool |http://www.oracle.com/technology/tech/migration/workbench/index.html]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Deployment of class file in oracle 10g Application Server

    Hi,
    I have a class file
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorld extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    res.setContentType ("text/html");
    PrintWriter out = res.getWriter();
    out.println("<HTML>");
    out.println("<HEAD><TITLE>Hello World</TITLE></HEAD>");
    out.println("<BODY>");
    out.println("<BIG>Hello World</BIG>");
    out.println("</BODY></HTML>");
    now I like to deploy(in oracle 10g Application Server) and run this file.
    please help me.

    Hi
    You have to deploy Servlet as a WAR File. I hope you already have web.xml file which u can get automatically in eclsipse during creation of servelet. I am not sure what ide u r using here. If u have created servlet in eclipse then I would suggest create a project dynamic webproject if u have not where IDE create all required files autmatiicaly and even you can deploy application from there itself.
    If you wanted to deploy manually then follow below steps (if u have war file)
    I am assuming you already created a Weblogic Domain and have admin username/password. Start your domain. Login into weblogic console like http://host:port/console and use admin username/password. Then from Deployments section, deploy the above WAR file. In Weblogic you can deploy JAR (EJBs, java files), WAR (web jsp, html, webservices, servlets) or EAR (JAR + WAR). In your case its just a WAR file.
    Thanks
    Sujit Singh

  • Queries related to Oracle 9i Application server

    I have some queries related to JDBC and oracle 9i Applcation
    server.
    1. Does JDBC Driver supporting VAX/VMS comes with the Oracle 9i
    App
    Server?
    2. What JDBC Driver is supported for Oracle 9i Application
    Server?
    3. Is the JDBC Driver Platform Independent?
    4. Can we separate OC4J Servlet engine(Web Container) from
    Oracle 9i Application
    server and put it on a different machine?
    5. What other Servlet engine is compatible with Oracle 9i
    Application server?
    and finally ...
    we are developing application with Oracle database in Sun
    Solaris 2.8 OS
    and after development we have planned to change the oracle
    database to
    VAX/VMS OS , Will there be any deployment issue because of OS
    inconsistency.
    Please reply me asap.It will be greatful to you.We are looking
    for answers for a very long time.
    Thanks
    Anand

    Dillip,
    You can find some documentation (EJB/Servlet Developers Guide) at http://otn.oracle.com/tech/java/oc4j/content.html. We will be posting Oc4J users guide and services guide very soon.
    regards
    Debu Panda
    Oracle

  • Auditing in oracle 10g database and oracle 10g application server

    Dear friends,
    We have oracle 10g application server and oracle 10g database server in place.My criteria is to audit users connected using oracle application user credentials to the database.
    Can you please tell me how can i do it.
    Thanks & regards,

    Its the database connection you want to track. The session audit will show where it came from.
    Auditing is turned using this command:
    alter system set audit_trail = DB scope=spfile;
    Note: The use of spfile will require a DB bounce before audit starts
    To audit Sessions:
    audit create session;
    Query by Audit Type:
    SELECT A.USERNAME,
    OS_USERNAME,
    A.TIMESTAMP,
    A.RETURNCODE,
    TERMINAL,
    USERHOST
    FROM DBA_AUDIT_SESSION A
    WHERE USERHOST = <replace with iAS servername> ;
    By User
    SELECT USERNAME,OBJ_NAME,ACTION_NAME , TIMESTAMP
    FROM DBA_AUDIT_TRAIL WHERE USERNAME = 'SCOTT';
    Check for users sharing database accounts
    select count(distinct(terminal)),username
    from dba_audit_session
    having count(distinct(terminal))>1
    group by username;
    Attempts to access the database at unusual hours
    SELECT username, terminal, action_name, returncode,
    TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS'),
    TO_CHAR (logoff_time, 'DD-MON-YYYY HH24:MI:SS')
    FROM dba_audit_session
    WHERE TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') <
    TO_DATE ('08:00:00', 'HH24:MI:SS')
    OR TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') >
    TO_DATE ('19:30:00', 'HH24:MI:SS');
    Attempts to access the database with non-existent users
    SELECT username, terminal, TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS')
    FROM dba_audit_session
    WHERE returncode <> 0
    AND NOT EXISTS (SELECT 'x'
    FROM dba_users
    WHERE dba_users.username = dba_audit_session.username);
    Other audits you might consider:
    audit grant any object privilege;
    audit alter user;
    audit create user;
    audit drop user;
    audit drop tablespace;
    audit grant any role;
    audit grant any privilege;
    audit alter system;
    audit alter session;
    audit delete on AUD$ by access;
    audit insert on AUD$ by access;
    audit update on AUD$ by access;
    audit delete table;
    audit create tablespace;
    audit alter database;
    audit create role;
    audit create table;
    audit alter any procedure;
    audit create view;
    audit drop any procedure;
    audit drop profile;
    audit alter profile;
    audit alter any table;
    audit create public database link;
    Best Regards
    mseberg

  • Deploying Forms with Forms6i/Oracle Internet Application Server 8i - need help!

    Hi Gurus!
    I am trying to setup the Oracle Internet Application Server 8i (Release 1.0)and deploy the forms to the web. The server is on Solaris. I have installed and configured the application server. I used the 'runform.htm'and 'test.fmx' to test the installation of the application server on the Server machine. In that case it works fine and shows the message 'Application Server is up and running'. Where as if I tried to access the same 'runform.htm'and 'test.fmx' from another client machines through a web browser it is not executing the 'test.fmx' and throws the following error:
    " FRM-92060:Failed to connect to the Server. Bad machine specification:'hostname':9001"
    Details...
    oracle.forms.engine.RunformException:FRM-92060: Failed to connect to the Server.
    I am using the default port#9001 to run the Forms server (i tried using another port and i got the same error). The web server is listnening on the port 7777.
    I am not sure what needs to be fixed. Can someone please through some light on this?
    Thanks!
    null

    The Oracle 8i jvm component (formerly known as JSERVER) was designed to support server side java.
    This component was initially developed and included in the Oracle 8i rdbms 8.1.5.
    Enhancements continued to be implemented with the 8.1.6 and 8.1.7 releases
    IAS uses the same oracle 8i JVM from the rdbms to support java code on the middle tier.
    Here's how the IAS version and the RDBMS version match up on the Oracle 8i jvm's features.
    RDBMS 8.1.6 with IAS 1.0.0 (unix) / 1.0.1(NT)
    RDBMS 8.1.7 with IAS 1.0.2 (new name IAS 9i)
    8.1.6 / IAS 1.0.0 / IAS 1.0.1 supports :
    session EJB's(1.0 spec), corba objects and java stored procedures
    8.1.7 / IAS 1.0.2 (aka IAS 9i) supports :
    The 8.1.7 implementation will support the 8.1.6 features listed above plus the ejb 1.1 spec (entity ejb's -- see below), servlets and java server pages.
    note : in another thread Mr. Devin clarified the current status of the EJB 1.1 spec (entity beans)in the 8.1.7 solaris release and the future win nt release.
    If I remember correctly, Mr. Devin reported a last minute issue has delayed the support for the entity bean feature but ejb spec 1.0 / 1.1 session beans are in place.
    When the entity bean issue is resolved, a software patch needed to support the entity bean feature will be provided in a rdbms patch.
    for additional technical info, please review :
    http://otn.oracle.com/products/oracle8i/pdf/8iR3_nfs.pdf
    http://otn.oracle.com/products/ias/listing.htm#tech
    i hope this helps ...

  • Oracle 9i Application Server installtion problem

    hi,
    I am instsalling Oracle 9i Application server 9.0.2 on Red Hat Linux 8.0 During installation , While
    creating clone database i am getting an error
    Create Controlfile failed.
    After this when i open the file cloneDBcreation.log
    in /home/admin/iasdb/create directory there i
    can see the following error
    Create control file failed
    Error opening password file "/home/oracle/dbs/orapw"
    Unable to obtained file status
    Linux error 2 : no such file or directory.
    moreover when i open the file customScripts.log in same directory i can see the message
    Unable to open file "/home/oracle/assistants/dbca/admin/autoExtend.sql"
    and there is no such file autoExtend.sql
    after this i ignore all the errors of clone database creation and continued the installation.
    Now while starting up the database i received an error
    ora 7212 : sltln : Environment variable can not be
    evaluated.
    slcpu : times error,unable to get CPU time.
    Pl help me. How should i proceed.
    Thanks.
    Raj

    If you are installing into Windows 2000, one workaround recommendation by Oracle for this problem is:
    Install the latest Windows* 2000 Service Pack patch: http://www.microsoft.com/windows2000/downloads/
    Create a temporary directory on your Intel Pentium® 4 processor server (e.g. \TEMP).
    Copy the contents of the Oracle* Server CD to the temporary directory created in step 2.
    Search the directory structure created in step 2 for the existence of the filename SYMCJIT.DLL.
    Rename each copy of the SYMCJIT.DLL to SYMCJIT.OLD.
    Run the SETUP.EXE from the \TEMP\install\win32 directory and install Oracle 8.1.x.
    If you have any other questions on this work around, please contact Oracle.

  • How to run the simple jsp on oracle 9ias application server?

    hi,
    how to run the simple jsp application jst disply the date on oracle 9ias application server?
    can any expline the steps how to do it?
    thanks
    pullareddy

    No, you need the Reports Server (as part of the Application Server or Weblogic, depending on your version).
    I try to save the report, it's saved as .jspThat depends. You can save it as a .rdf file too (so called Paper Layout). I think this option is used more often.

  • Oracle 10g Application Server 10.1.3.0 Installation for 64 bit

    Hi,
    Can anyone let me know if there is an Oracle 10g Application Server 10.1.3.0 download available for 64 bit windows 2003 Enterprise Edition installed on Intel X64 Xeon Processor (EMT64T).
    Rgds
    Satya

    Thanks jm.
    But when i tried to check from otn downloads there is a 64 bit deployment version available for itanium processors which we are not able to install on xeon processors. Anyways i installed the 32 bit version of 10G 10.1.3 on 64 bit and its working fine. Can you find out if there is any memory consuption for the 32 bit server when installed on 64 bit windows server
    thanks once again for your promt reply

  • Is it possible to upgrade only apache in oracle 10g application server.

    Hi All,
    I have to upgrade only apache in oracle 10g application server with out upgrading oracle 10g as.
    Is it possibel to upgrade only apache version in oracle 10g application server. if yes.could you suggest the steps that i need to follow.
    This is very urgent.
    Thanks in advance.
    Regards,
    Sathya

    If your trying to upgrade just apache in that oracle home, then no. If your trying to upgrade to a real apache version, from apache.org, mod_oc4j won't work. You need to use Oracle's version of Apache or HTTP Server.
    Is there a reason you only want to upgrade Apache and not the whole oracle home?
    There are ways to do it, but it wouldn't be supported by Oracle and I wouldn't recommend that either.
    Edited by: user11993398 on Apr 13, 2011 3:04 PM

Maybe you are looking for

  • Lag spikes(Assumingly disk spikes) with MSI GT70 2PC

    Hello, I bought a msi gaming laptop a couple of months ago and noticed some weird spikes where my laptop because inactive for 2 seconds. My screen freezes and I am unable to move my mouse. I am trying to find the solution myself but I think my lack o

  • SOAP to File in PI 7.1

    Hi I am looking for the SOAP to file scenario, Can anyone send the scenario with the exaples in PI 7.1 version, Thanks RP

  • RFC Sender adapter - Sender agreement not found Error

    Hi , I am getting this error when i send an RFC request to XI from SAP. Exception thrown [Fri Aug 05 10:10:35,624]:Exception thrown by application running in JCo Server com.sap.aii.af.rfc.afcommunication.RfcAFWException: senderAgreement not found: lo

  • Query to get the po amount from the pr

    Hi how to get the POnumber and PO amount from the Pr number. there are hundred's of PO's raise against the PR's and want to know the amount from their PO's to know the avaible fund left with the department. Regards Arifuddin

  • XML containing Japanese data

    Hello, We have an application, which should work for both English and Japanese languages. We are using MVC pattern, where the data coming from the browser is stored in a bean and is saved into the database using a separate persistence manager (PM) cl