Migrate HFM (9.3) from Sqlserver to Oracle

Hello.
We are using Sqlserver for HFM for historical reason, but now we would like to change
our database to Oracle for improve performance and for licenses reason.
We want to organize migration and some tests.
I checked OTN and Metalink and I didn't find anything related to HFM.
I have found a lot of documentation about migration from Sqlserver to Oracle,
but I would like to find and read something specific related to HFM repository.
Maybe Oracle suggests to do some premigration task
or some postmigration task.
How can I find this kind of documentation?
There is anyone that have already done this kind of job?
Some suggestion?
Thanks in advance.
D.
Edited by: Spugna on May 20, 2011 8:33 AM
Edited by: Spugna on May 20, 2011 8:34 AM

You can use the HFMCopyApp utility, which ships with HFM, under the \Server folder on each HFM app server. There are other threads in this forum on how to use this utility. It will allow you to copy from one RDBMS to another.
Each product however, is different in terms of migrating between RDBMS. FDM, for example, requires a rebuild. So you will have to check into each component. As for performance being better under Oracle vs. SQL Server, that's a matter of tuning and opinion. I would make sure performance will in fact be better before I undertook this project. License costs should be much more clear, of course.
--Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Need to fatch the data from sqlserver to Oracle DATABASE ;not migration

    Hello,
    What is the easiest method to insert/refresh data into Oracle Tables from SQLSERVER 2005 table.Do I need ODBC connection and how it works in the PL/SQL to create the connection and fetch the data from sqlserver.
    Thanks,
    Sarabmann

    I need to fetch from ORACLE back-end ,for example I want to install the mechanism at the back-end server where if I write stored procedure and call this link which enable me to fetch the data from sqlserver.
    Environment:- Linux as OS
    Oracle 10G as a Database

  • Migration from SqlServer to Oracle

    I am using Sqldeveloper 1.2.1
    I am trying to migrate sql server 2000 data to Oracle..
    For that i had created two connections for oracle & SqlServer.
    SqlServer and Oracle connections were made sucessfully, i am able to view the database and table.
    Now i am doing migration process..
    In Oracle conn i had selected Create Repository then
    in SqlServer conn i selected "Capture Microsoft SqlServer".
    Now Capturing Database is running long time.
    No messsage is displayed..
    Is my way is correct?
    Pls provide solution.

    Hi Shivasha,
    If you are using 11g, the the solution is here (the 3rd post):
    Re: SQL Developer in Oracle 11g
    Andrei

  • Moving NVARCHAR data from SQLSERVER to Oracle

    We are moving data from NVARCHAR field in SQLSERVER to Oracle. The data is getting changed
    (Opl›st) --> (Opl¿st)
    Any suggestion what may be wrong?
    - PB Singh

    Yes the databases are setup for proper character set.
    LKM SQL to Oracle is used.
    One question is any thing needed in jdbc driver to enable multibyte access.
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    Thanks,
    PB Singh
    Message was edited by:
    pbsingh

  • Migrating partially from SQLServer to Oracle

    Hi.
    Where I work, we have one server, running SQLServer7.0, that is the publication/distribution server to 3 others servers, that also have SQLServer7.0. The replication occurs only in one way: from the publication/distribution server to the 3 subscribers.
    Is there some way to migrate just one of the servers, leaving the others running SQLServer7 ? (Just for information, we can4t afford to stop ours services for long periods of time. )
    I was told that i can make a DbLink in the SQLServer7, acessing Oracle databases, but i not sure this could help us with the replication of data.

    Hi Klaus,
    Oracle provides transparent gateways for communicating with SQL Server databases. Also SQL Server provides ways of setting up DB links to Oracle (not sure how good they are though).
    However, these approaches are not a replication solution. You could emulate replication by setting up a trigger on a table or a stored procedure that would transfer data via the database link (whether it is Oracle transparent services or SQL Server).
    Regards
    John

  • Migrating from sqlServer to Oracle

    Sir,
    My name is ramandeep singh and I hail from india and I work as a computer programmer
    cum incharge computer software.Presently we are using SQL Server and we intend to update
    our existing database to Oracle/Dev 2000.Please provide me the details.
    I am a OTN memeber.
    please get back to me as soon as possible.
    My mail id is [email protected],
    [email protected]

    You Can Convert Yours Database from SQL Server to oracle Write A VB Program that open two connections one to SQL Server And Another To Oracle then By Yours Program Read The Specified Records from Sql Server And insert it in the ORACLE.
    About the Tables And Views Genrate A script from SQL Server Option The Take The Commands Of creating tables and modify the datatype to oracle datatype the run the script in the SQL Plus .
    About the Programs you must rebuild it on developer2000
    Anjad H.S.
    DB Programmer

  • Bad performing update query - converting from sqlserver to oracle

    SQLSERVER UPDATE
    =================
    UPDATE
    netVIEWplus.dbo.DIM_OUC_Latest
    SET
    OUC = LatestDIM.OUC,
    OUC_Desc = LatestDIM.OUC_Desc,
    OUC_Level = LatestDIM.OUC_Level,
    Parent_OUC = LatestDIM.Parent_OUC,
    CC_Type = LatestDIM.CC_Type,
    GFR = LatestDIM.GFR,
    CORP = LatestDIM.CORP,
    SOB = LatestDIM.SOB,
    Div_Unit = LatestDIM.Div_Unit,
    Div_Desc = LatestDIM.Div_Desc,
    L1_OUC = LatestDIM.L1_OUC, L1_DEPT_DESC = LatestDIM.L1_DEPT_DESC,
    L2_OUC = LatestDIM.L2_OUC, L2_DEPT_DESC = LatestDIM.L2_DEPT_DESC,
    L3_OUC = LatestDIM.L3_OUC, L3_DEPT_DESC = LatestDIM.L3_DEPT_DESC,
    L4_OUC = LatestDIM.L4_OUC, L4_DEPT_DESC = LatestDIM.L4_DEPT_DESC,
    L5_OUC = LatestDIM.L5_OUC, L5_DEPT_DESC = LatestDIM.L5_DEPT_DESC,
    L6_OUC = LatestDIM.L6_OUC, L6_DEPT_DESC = LatestDIM.L6_DEPT_DESC,
    L7_OUC = LatestDIM.L7_OUC, L7_DEPT_DESC = LatestDIM.L7_DEPT_DESC,
    L8_OUC = LatestDIM.L8_OUC, L8_DEPT_DESC = LatestDIM.L8_DEPT_DESC,
    Current_Flag = LatestDIM.Current_Flag,
    INF_Div_Unit_Only = LatestDIM.INF_Div_Unit_Only,
    INF_DIM_OUC_Id_Used = LatestDIM.DIM_OUC_Id
    FROM
    netVIEWplus.dbo.DIM_OUC_Latest
    INNER JOIN
    netVIEWplus.dbo.DIM_OUC HistoryDIM
    ON
    HistoryDIM.DIM_OUC_Id = netVIEWplus.dbo.DIM_OUC_Latest.DIM_OUC_Id
    INNER JOIN
    netVIEWplus.dbo.DIM_OUC LatestDIM
    ON
    LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id
    Oracle Version
    ===========
    UPDATE
    netVIEWplus.DIM_OUC_Latest T1
    SET (OUC,OUC_Desc,OUC_Level,Parent_OUC,CC_Type,GFR,CORP,SOB,Div_Unit,Div_Desc,L1_OUC,L1_DEPT_DESC,L2_OUC,
    L2_DEPT_DESC,L3_OUC,L3_DEPT_DESC,L4_OUC,L4_DEPT_DESC,L5_OUC,L5_DEPT_DESC,L6_OUC,L6_DEPT_DESC,L7_OUC,L7_DEPT_DESC,
    L8_OUC,L8_DEPT_DESC,Current_Flag,INF_Div_Unit_Only,INF_DIM_OUC_Id_Used) =
    ( SELECT LatestDIM.OUC OUC,LatestDIM.OUC_Desc OUC_Desc,
    LatestDIM.OUC_Level OUC_Level,LatestDIM.Parent_OUC Parent_OUC,LatestDIM.CC_Type CC_Type,LatestDIM.GFR GFR,
    LatestDIM.CORP CORP,LatestDIM.SOB SOB,LatestDIM.Div_Unit Div_Unit,LatestDIM.Div_Desc Div_Desc,
    LatestDIM.L1_OUC L1_OUC,LatestDIM.L1_DEPT_DESC L1_DEPT_DESC,LatestDIM.L2_OUC L2_OUC,
    LatestDIM.L2_DEPT_DESC L2_DEPT_DESC,LatestDIM.L3_OUC L3_OUC,LatestDIM.L3_DEPT_DESC L3_DEPT_DESC,
    LatestDIM.L4_OUC L4_OUC,LatestDIM.L4_DEPT_DESC L4_DEPT_DESC,LatestDIM.L5_OUC L5_OUC,
    LatestDIM.L5_DEPT_DESC L5_DEPT_DESC,LatestDIM.L6_OUC L6_OUC,LatestDIM.L6_DEPT_DESC L6_DEPT_DESC,
    LatestDIM.L7_OUC L7_OUC,LatestDIM.L7_DEPT_DESC L7_DEPT_DESC,LatestDIM.L8_OUC L8_OUC,
    LatestDIM.L8_DEPT_DESC L8_DEPT_DESC,LatestDIM.Current_Flag Current_Flag,
    LatestDIM.INF_Div_Unit_Only INF_Div_Unit_Only,LatestDIM.DIM_OUC_Id INF_DIM_OUC_Id_Used
    FROM
    netVIEWplus.DIM_OUC HistoryDIM,netVIEWplus.DIM_OUC LatestDIM
    where
    HistoryDIM.DIM_OUC_Id = T1.DIM_OUC_Id
    and
    LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id and rownum=1)
    where exists ( SELECT 1
    FROM
    netVIEWplus.DIM_OUC HistoryDIM,netVIEWplus.DIM_OUC LatestDIM
    where
    HistoryDIM.DIM_OUC_Id = T1.DIM_OUC_Id
    and
    LatestDIM.DIM_OUC_ID = HistoryDIM.Latest_Id )
    Problem is oracle update is taking long time than sqlserver update. Can it be written in some orhet way.
    Regards,
    Koushik

    Hi,
    Have you gathered stats as well ? Did the query use index(es) as well ?
    Without any more info like explain plan, indexes, etc., further help will be unable.
    Nicolas.

  • Converting Stuff function from SQLServer to Oracle

    Anyone out there found an Oracle counterpart for the SQL Server "stuff" function.
    It is being used following an ascii(substr(variable)) locating all nonprintable characters and replacing with null.

    anjali5 wrote:
    I am very new to oracle. I am trying to convert this function to oracle, but keep getting errors
    USE [REF]
    GO
    /****** Object: UserDefinedFunction [dbo].[fnc_get_home] Script Date: 10/21/2011 17:50:10 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:          <Author,,Name>
    -- Create date: <Create Date, ,>
    -- Description:     <Description, ,>
    -- =============================================
    ALTER FUNCTION [dbo].[fnc_get_home]
         @p_ui nvarchar(50), @p_dt datetime
    RETURNS NVARCHAR(50)
    AS
    BEGIN
         declare @v_home NVARCHAR(50);
         select top 1 @v_home = HOME_CODE from dbo.activity_home_b
              where UI = @p_ui
              order by HOME_END_DT desc;
         RETURN @v_home;
    ENDI am very new to Volkwagen cars, but here is a picture of my old Toyota
    My new car won't go
    Tell me how to make my car go.
    You refer to Oracle, but I wonder if this has anything to do with ACCESS.
    post complete CREATE TABLE statement of Oracle Table
    post INSERT for sample test date & expected/desired results

  • Jdo from sqlserver to Oracle

    Hi,All
    I generate my jdo based on SQLServer2000,and here is my configure:
    pmf.jndi=java:/kodo
    com.solarmetric.kodo.ee.ManagedRuntimeProperties=TransactionManagerName=java
    :/TransactionManager
    javax.jdo.PersistenceManagerFactoryClass=com.solarmetric.kodo.impl.jdbc.JDBC
    PersistenceManagerFactory
    com.solarmetric.kodo.impl.jdbc.SequenceFactoryClass=com.solarmetric.kodo.imp
    l.jdbc.schema.DBSequenceFactory
    com.solarmetric.kodo.impl.jdbc.SequenceFactoryProperties=\
    TableName=JDO_SEQUENCE \
    Increment=10
    javax.jdo.option.ConnectionDriverName=com.microsoft.jdbc.sqlserver.SQLServer
    Driver
    #javax.jdo.option.ConnectionDriverName=oracle.jdbc.driver.OracleDriver
    javax.jdo.option.ConnectionUserName=icms
    javax.jdo.option.ConnectionPassword=icms
    javax.jdo.option.ConnectionURL=jdbc:microsoft:sqlserver://sljia:1433;Databas
    eName=test;SelectMethod=cursor
    #javax.jdo.option.ConnectionURL=jdbc:oracle:thin:@sharnddc:1521:rndorcl
    javax.jdo.option.Optimistic=true
    javax.jdo.option.RetainValues=true
    javax.jdo.option.NontransactionalRead=true
    javax.jdo.option.MinPool=0
    javax.jdo.option.MaxPool=0
    then I use those JDO with Oracle8i without re-generate and re-enhance those
    classes,I encounter the following error:
    0 ERROR [main] kodo.Runtime -
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    java.lang.NullPointerException
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    java.lang.NullPointerException
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:216)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClassIn
    ternal(JDBCPersistenceManagerFactory.java:451)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClass(J
    DBCPersistenceManagerFactory.java:334)
    at
    com.solarmetric.kodo.impl.jdbc.RegisterListener.registerClass(RegisterListen
    er.java:53)
    at javax.jdo.spi.JDOImplHelper.registerClass(Unknown Source)
    at com.ipacs.als.jdo.invoice.Ivhdr.<clinit>(Ivhdr.java)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.ipacs.als.test.Test.class$(Test.java:113)
    at com.ipacs.als.test.Test.main(Test.java:113)
    NestedThrowablesStackTrace:
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    java.lang.NullPointerException
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:79)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClassIn
    ternal(JDBCPersistenceManagerFactory.java:451)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClass(J
    DBCPersistenceManagerFactory.java:334)
    at
    com.solarmetric.kodo.impl.jdbc.RegisterListener.registerClass(RegisterListen
    er.java:53)
    at javax.jdo.spi.JDOImplHelper.registerClass(Unknown Source)
    at com.ipacs.als.jdo.invoice.Ivhdr.<clinit>(Ivhdr.java)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.ipacs.als.test.Test.class$(Test.java:113)
    at com.ipacs.als.test.Test.main(Test.java:113)
    NestedThrowablesStackTrace:
    java.lang.NullPointerException
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.createConnection(Data
    SourceImpl.java:975)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSou
    rceImpl.java:548)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    321)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    314)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:63)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClassIn
    ternal(JDBCPersistenceManagerFactory.java:451)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClass(J
    DBCPersistenceManagerFactory.java:334)
    at
    com.solarmetric.kodo.impl.jdbc.RegisterListener.registerClass(RegisterListen
    er.java:53)
    at javax.jdo.spi.JDOImplHelper.registerClass(Unknown Source)
    at com.ipacs.als.jdo.invoice.Ivhdr.<clinit>(Ivhdr.java)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.ipacs.als.test.Test.class$(Test.java:113)
    at com.ipacs.als.test.Test.main(Test.java:113)
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    java.lang.NullPointerException
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:216)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    ..java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:114)
    NestedThrowablesStackTrace:
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    java.lang.NullPointerException
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:79)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    ..java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:114)
    NestedThrowablesStackTrace:
    java.lang.NullPointerException
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.createConnection(Data
    SourceImpl.java:975)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSou
    rceImpl.java:548)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    321)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    314)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:63)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    ..java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:114)
    com.solarmetric.kodo.runtime.UserException: This operation cannot be
    performed while a Transaction is active.
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.close(PersistenceManager
    Impl.java:1058)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.close(PersistenceManager
    Impl.java:1042)
    at com.ipacs.als.test.Test.main(Test.java:218)
    Exception in thread "main" Process terminated with exit code 1
    anybody can help me?
    Reagrds,
    geduo

    Geduo-
    So are you saying that this exception occurs when you are running with
    the Oracle properties in place? If so, are you sure that you have
    uncommented the correct lines (i.e., the oracle-specific ConnectionURL
    and ConnectionDriverName)? It sounds like this exception might be caused
    when there is no known driver.
    If this does not help, and you enable trace-level JDBC and SQL logging
    and post the results?
    In article <[email protected]>, geduo wrote:
    Hi,All
    I generate my jdo based on SQLServer2000,and here is my configure:
    pmf.jndi=java:/kodo
    com.solarmetric.kodo.ee.ManagedRuntimeProperties=TransactionManagerName=java
    :/TransactionManager
    javax.jdo.PersistenceManagerFactoryClass=com.solarmetric.kodo.impl.jdbc.JDBC
    PersistenceManagerFactory
    com.solarmetric.kodo.impl.jdbc.SequenceFactoryClass=com.solarmetric.kodo.imp
    l.jdbc.schema.DBSequenceFactory
    com.solarmetric.kodo.impl.jdbc.SequenceFactoryProperties=\
    TableName=JDO_SEQUENCE \
    Increment=10
    javax.jdo.option.ConnectionDriverName=com.microsoft.jdbc.sqlserver.SQLServer
    Driver
    #javax.jdo.option.ConnectionDriverName=oracle.jdbc.driver.OracleDriver
    javax.jdo.option.ConnectionUserName=icms
    javax.jdo.option.ConnectionPassword=icms
    javax.jdo.option.ConnectionURL=jdbc:microsoft:sqlserver://sljia:1433;Databas
    eName=test;SelectMethod=cursor
    #javax.jdo.option.ConnectionURL=jdbc:oracle:thin:@sharnddc:1521:rndorcl
    javax.jdo.option.Optimistic=true
    javax.jdo.option.RetainValues=true
    javax.jdo.option.NontransactionalRead=true
    javax.jdo.option.MinPool=0
    javax.jdo.option.MaxPool=0
    then I use those JDO with Oracle8i without re-generate and re-enhance those
    classes,I encounter the following error:
    0 ERROR [main] kodo.Runtime -
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    java.lang.NullPointerException
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    java.lang.NullPointerException
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:216)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClassIn
    ternal(JDBCPersistenceManagerFactory.java:451)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClass(J
    DBCPersistenceManagerFactory.java:334)
    at
    com.solarmetric.kodo.impl.jdbc.RegisterListener.registerClass(RegisterListen
    er.java:53)
    at javax.jdo.spi.JDOImplHelper.registerClass(Unknown Source)
    at com.ipacs.als.jdo.invoice.Ivhdr.<clinit>(Ivhdr.java)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.ipacs.als.test.Test.class$(Test.java:113)
    at com.ipacs.als.test.Test.main(Test.java:113)
    NestedThrowablesStackTrace:
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    java.lang.NullPointerException
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:79)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClassIn
    ternal(JDBCPersistenceManagerFactory.java:451)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClass(J
    DBCPersistenceManagerFactory.java:334)
    at
    com.solarmetric.kodo.impl.jdbc.RegisterListener.registerClass(RegisterListen
    er.java:53)
    at javax.jdo.spi.JDOImplHelper.registerClass(Unknown Source)
    at com.ipacs.als.jdo.invoice.Ivhdr.<clinit>(Ivhdr.java)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.ipacs.als.test.Test.class$(Test.java:113)
    at com.ipacs.als.test.Test.main(Test.java:113)
    NestedThrowablesStackTrace:
    java.lang.NullPointerException
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.createConnection(Data
    SourceImpl.java:975)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSou
    rceImpl.java:548)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    321)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    314)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:63)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClassIn
    ternal(JDBCPersistenceManagerFactory.java:451)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory.registerClass(J
    DBCPersistenceManagerFactory.java:334)
    at
    com.solarmetric.kodo.impl.jdbc.RegisterListener.registerClass(RegisterListen
    er.java:53)
    at javax.jdo.spi.JDOImplHelper.registerClass(Unknown Source)
    at com.ipacs.als.jdo.invoice.Ivhdr.<clinit>(Ivhdr.java)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.ipacs.als.test.Test.class$(Test.java:113)
    at com.ipacs.als.test.Test.main(Test.java:113)
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    java.lang.NullPointerException
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:216)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    .java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:114)
    NestedThrowablesStackTrace:
    com.solarmetric.kodo.runtime.FatalDataStoreException
    NestedThrowables:
    java.lang.NullPointerException
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:79)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    .java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:114)
    NestedThrowablesStackTrace:
    java.lang.NullPointerException
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.createConnection(Data
    SourceImpl.java:975)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSou
    rceImpl.java:548)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    321)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:
    314)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(Dat
    aSourceConnector.java:63)
    at
    com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDi
    ctionaryFactory.java:179)
    at
    com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSim
    pleConfiguration.java:377)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCSt
    oreManager.java:710)
    at
    com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuer
    y.java:112)
    at
    com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl
    .java:1516)
    at
    com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(
    QueryImpl.java:1351)
    at com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
    at
    com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:116
    1)
    at
    com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
    at com.ipacs.als.test.Test.main(Test.java:114)
    com.solarmetric.kodo.runtime.UserException: This operation cannot be
    performed while a Transaction is active.
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.close(PersistenceManager
    Impl.java:1058)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.close(PersistenceManager
    Impl.java:1042)
    at com.ipacs.als.test.Test.main(Test.java:218)
    Exception in thread "main" Process terminated with exit code 1
    anybody can help me?
    Reagrds,
    geduo
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Out of memory error in migrating from mysql to oracle

    Hi,
    I'm trying migrate from mysql to oracle9i. The hardware and software requirements are matching or even much higher than mentioned in the documentation. I have installed OMWB is properly(hope so). When I try to migrate the desired database from mysql to oracle, the repository, the Oracle model are created successfully. But while migrating data, say for around 35000 rows insertion everything works pretty fine. But after sometime, the migration stops and no error or anything appears in the screen.And in the Errorlog I get "OutOfMemoryError".
    I tried to migrate single table also. But I still get this problem after sometime. The tables may contain from 10 - 130000 rows...
    I even tried to change the %JRE..% memory value to 64M or 128M in the omwb.bat file and the O/s is Microsoft Windows XP, RAM 256MB.
    Any help is much appreciated.
    Thanks in advance.

    Hi Viji,
    did the message in the error.log provide any extra information? For example, was the OutOfMemory error prefixed with a string
    like "cannot create new native thread" ? My suggestion to workaround the problem would have been to increase the JVM heap size to 128
    but this appears to have been unsuccessful for you. Can you send a mail to the Migration Workbench support services
    ([email protected]) explaining the problem, and attach the full error.log file please ? (please also copy me on the mail).
    In the meantime, you can workaround this by migrating the schema only (there is a switch on step 3 of the migration wizard asking:
    "Do you want to migrate the table data to Oracle?" - just select the "No" option). When the schema has migrated, you can then use the
    offline data loading facility to migrate the data. This uses data extraction scripts and SDQL*Loader to migrate the data to the target
    Oracle database.You can learn more about the offline data loading facility from the plugins referenceguide (from the Help menu in
    the Migration Workbench).
    I hope this helps,
    Tom.

  • 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!!!!!!

  • How to handle DATE type problems in migrating from mysql to oracle.?

    Hi,
    I'm migrating only the data from mysql to oracle with the help of sql loader.But with this type i cannot able to insert the date values from mysql to oracle.In mysql i have defined date as "DATETIME" type and in oracle it is in TimeStamp.Whenever i'm inserting the values thru CTL file ,i'm getting an error invalid date format entered.How to solve this problem?
    Thanks in Advance
    JAI

    you need to supply a mask to the timestamp entry. see http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_field_list.htm#i1006714 for details on datatypes within the ctl file
    B

  • Migrating BO CMS Repository form MYSQL to ORACLE 9i

    Post Author: help_eachother
    CA Forum: Administration
    Hi,
    How can i migrate BO CMS repository from MYSQL to ORACLE 9i.
    Thanks

    Post Author: amr_foci
    CA Forum: Administration
    first verfiy the connection between your business objects server and you oracle server
    then go to the Centeral Configuration Manager and stop the CMS (Centeral Managment Server) and righ click - properties - configuration - go to the CMS data Source and click Specify - you will select your new data souce,, and once more you will copy the data source from ur previous one
    i didnt try it before,, but i think it can help
    good luck

  • Migration from SQLServer

    I have to migrate a database from SQLServer 7.0 to Oracle 8i.
    I make it from the SQLServer console,and there's no problem.But there are some tables with several "Long" type fields,and there's an error showing me that Oracle only supports one "Long" field per table...
    What can I do?
    I don't have Oracle Migration Worbench...I tried to get the demo form otn.oracle.com,but it doesn't work,because that's for Oracle 9i,and I have 8i.
    Thanks in advance

    Additionally Lara, Oracle do not recommend using the LONG datatype anymore - you should migrate any LONG data to Oracle LOBs.

  • Ora-02298 in migrating MS-SQLServer to Oracle 8i

    Greetings,
    I am in the process of migrating a MS-SQLServer db to Oracle 8i.
    I have encountered an error (ora-02298). The following was inserted into the mwb error log:
    REM
    REM Message : Failed to create foreign key: FK_M_REQUEST_M_WORK_ORDER: ORA-02298: cannot validate (BCBIZ.FK_M_REQUEST_M_WORK_ORDER) - parent keys not found
    REM User : bcbiz
    ALTER TABLE bcbiz.M_REQUEST ADD ( CONSTRAINT FK_M_REQUEST_M_WORK_ORDER FOREIGN KEY ( work_id ) REFERENCES bcbiz.M_WORK_ORDER ( work_id ) ON DELETE CASCADE );
    I have read the FAQ section of the mwb site and from my understanding this error indicates that work_id should be primary key or unique key for the table m_work_order. I have checked the table m_work_order and have verified that the work_id field is the primary key for the m_work_order table.
    I have tried dropping and creating the table from scratch and have received the same error.
    Does anyone have any suggestions that I might try?
    Thank you in advance,
    -Ken
    null

    hello,
    am interested in migrating from mssql server 7 to oracle 8i.
    how excatly do i do that should i download some gateway software or should i download migration workbench software if i download how do i move files from MSSQL to oracle.
    Some one please help me out.
    thankyou
    Ramesh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kenneth Eisner ([email protected]):
    Greetings,
    I am in the process of migrating a MS-SQLServer db to Oracle 8i.
    I have encountered an error (ora-02298). The following was inserted into the mwb error log:
    REM
    REM Message : Failed to create foreign key: FK_M_REQUEST_M_WORK_ORDER: ORA-02298: cannot validate (BCBIZ.FK_M_REQUEST_M_WORK_ORDER) - parent keys not found
    REM User : bcbiz
    ALTER TABLE bcbiz.M_REQUEST ADD ( CONSTRAINT FK_M_REQUEST_M_WORK_ORDER FOREIGN KEY ( work_id ) REFERENCES bcbiz.M_WORK_ORDER ( work_id ) ON DELETE CASCADE );
    I have read the FAQ section of the mwb site and from my understanding this error indicates that work_id should be primary key or unique key for the table m_work_order. I have checked the table m_work_order and have verified that the work_id field is the primary key for the m_work_order table.
    I have tried dropping and creating the table from scratch and have received the same error.
    Does anyone have any suggestions that I might try?
    Thank you in advance,
    -Ken
    <HR></BLOCKQUOTE>
    null

Maybe you are looking for