How to use create-default-dbms-tables in SQL Server 2000

Hi everyone,
I'm new in EJB development. I'm trying to deploy a CMP to Weblogic 8.1 SP1 using
JBuilderX. I configured a ConnectionPool and DataSource to allow the CMP to access
the SQL Server 2000. However, I cannot deploy the CMP if I didn't create the table
in SQL Server manually. Does anyone know how to use the create-default-dbms-tables?

Refer to
http://e-docs.bea.com/wls/docs81/ejb/DDreference-cmp-jar.html#1162249
"Keith" <[email protected]> wrote:
>
Hi everyone,
I'm new in EJB development. I'm trying to deploy a CMP to Weblogic 8.1
SP1 using
JBuilderX. I configured a ConnectionPool and DataSource to allow the
CMP to access
the SQL Server 2000. However, I cannot deploy the CMP if I didn't create
the table
in SQL Server manually. Does anyone know how to use the create-default-dbms-tables?

Similar Messages

  • How to Create a Temporary Table with SQL Server

    I know you can create a temporary table in SQL Server 2000, but not quite sure how to do it in CFMX 7, i.e., does the SQL go inside a <CFQUERY dbtype="query"> tag?
    I'm pulling the main set of records from an Oracle server (1st data source), but it does not contain employee names, only employee IDs.  Since I need to show the employee name along with the Emp ID, I'm then pulling a list of "current" employee names from a SQL Server (2nd data source), which is the main database on our CF server.
    I've got a QofQ that works fine, except it only matches EmpIDs that exist in both result sets.  Employees who are no longer employed, don't match, and don't display.  Since I can't do a LEFT OUTER JOIN with a QofQ, what I need to do is get the records from the Oracle server into the SQL Server.  Preferably in a temporary table.
    I was hoping if I could get those Oracle records written to a temp table on the main SQL Server, in same database as the Employee Name table, I could then write a normal <CFQUERY> that uses a LEFT OUTER JOIN.
    I think I could probably write a Stored Procedure that would execute the SQL to create the temporary table, but am trying to avoid having to write the SP, and do it the simplest way.
    This query will be a program that can be run hundreds of times per day, with a form that allows users to select date ranges, locations, and other options.  That starts the queries, which creates the report.  So I just need the temp table to exist only until all the SQL has run, and the <CFOUTPUT> has generated a report.
    If the premise is right, I just need some help with the syntax for creating a SQL Server temp table, when you want to write records to it from an external data source.  I'm trying the following, but getting an error:
    <CFQUERY name="ITE_Temp" datasource="SkynetSQL">
    CREATE TABLE #MyTemp
    (   INSERT INTO #MyTemp
    ITE2.TrueFile char (7) NOT NULL,
    ITE2.CountOfEmployee int NULL,
    ITE2.DTL_SUBTOT decimal NULL,
    ITE2.EMPTYPE char (3) NULL,
    ITE2.ARPT_CD char (3) NULL
    </CFQUERY>
    So I actually created a permanent table on the SQL Server, and wrote the below SQL, which does work, and does write the records to table.  I can then write another CFQUERY with a LEFT OUTER JOIN, and get all the records, including those that don't have matching employee name:
    <CFQUERY datasource="SkynetSQL">
    <CFLOOP index="i" from="1" to = "#ITE2.RecordCount#">
    INSERT INTO ITE_Temp
       (FullFile,
       EmployeeCount,
       DTL_Amount,
       EmployeeType,
       station)
    VALUES  ('#ITE2.TrueFile[i]#',
       #ITE2.CountOfEmployee[i]#,
       #ITE2.DTL_SUBTOT[i]#,
       '#ITE2.EMPTYPE[i]#',
       '#ITE2.ARPT_CD[i]#')
    </CFLOOP>
    </CFQUERY>
    But, I hate to have to create a table and physically write to it.  For one, it seems slower, and doing it in temp would be in memory, and probably much faster, correct?  Is there some way to code the above, so that it does something similar, but in a TEMPORARY TABLE?   If I can figure out how to do this, I can pull data from multiple data sources and servers, and using SQL Server temp tables, work with the data as if it was all on the same SQL Server, and do some cool reports.
    Everything I've done for the past few years, has all been from data from a single source, whether SQL Server, or another server.  Now I need to start writing reports where data can come from 3 or 4 different servers, and be able to do joins (inner and outer).  Thanks for any advice/help.  Much appreciated.
    Gary

    While waiting to hear back, I was able to write the query results from an outside Oracle server, to a table on the local SQL Server, and do the LEFT OUTER JOIN required for the final query and report to work.  That was with this syntax:
    <CFQUERY name="AddTableRecords" datasource="MyTable">
    TRUNCATE TABLE ITE_Temp
    <CFOUTPUT query="ITE2">
    INSERT INTO ITE_Temp
    (FullFile,EmployeeCount,DTL_Amount,EmployeeType,station)
    VALUES
    ('#TrueFile#', #CountOfEmployee#, #DTL_SUBTOT#, '#EMPTYPE#', '#ARPT_CD#')
    </CFOUTPUT>
    </CFQUERY>
    However, I was not able to write to a temporary table AND read the results. I got the syntax to run to write the above results to a temporary table.  But when I tried to read and output the results from the temp table, I got an error.  Also, it wouldn't take the single "#" (local) only the global "##" table var, using this syntax.  Note that if I didn't have the DROP TABLE in the beginning, the 2nd time you run this query, you get an error telling you the table already exists.
    <CFQUERY name="ITE_Temp2" datasource="MyTable">
    DROP TABLE ##MyTemp2
    CREATE TABLE ##MyTemp2
    FullFile char (7) NOT NULL,
    EmployeeCount int NULL,
    DTL_Amount decimal NULL,
    EmployeeType char (3) NULL,
    station char (3) NULL
    <CFOUTPUT query="ITE2">
    INSERT INTO ##MyTemp2 VALUES
    '#ITE2.TrueFile#',
    #ITE2.CountOfEmployee#,
    #ITE2.DTL_SUBTOT#,
    '#ITE2.EMPTYPE#',
    '#ITE2.ARPT_CD#'
    </CFOUTPUT>
    </CFQUERY>
    So even though the above works, I could use some help in reading/writing the output.  I've tried several things similar to below, but they don't work.  It't telling me ITE_Temp2 does not exist.  It's not easy to find good examples of creating temporary tables in SQL Server.
    <CFQUERY name="QueryTest2" datasource="SkynetSQL">
    SELECT *
    FROM ITE_Temp2
    </CFQUERY>
    <CFOUTPUT query="ITE_Temp2">
    Output from Temp Table<br>
    <p>FullFile: #FullFile#, EmployeeCount: #EmployeeCount#</p>
    </CFOUTPUT>
    Thanks for any help/advice.
    Gary.

  • How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?

    How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?
    I tried using DROP Tables, Truncate Database, Delete and many more but it is not working.  I want to delete all tables using Query Analyzer, i.e. through SQL Query.
    Please help me out in this concern.
    Nishith Shah

    Informative thread indeed. Wish I saw it early enough. Managed to come up with the code below before I saw this thread.
    declare @TTName Table
    (TableSchemaTableName
    varchar
    (500),
    [status] int
    default 0);
    with AvailableTables
    (TableSchemaTableName)
    as
    (select
    QUOTENAME(TABLE_SCHEMA)
    +
    +
    QUOTENAME(TABLE_NAME)
    from
    INFORMATION_SCHEMA.TABLES)
    insert into @TTName
    (TableSchemaTableName)
    select *
    from AvailableTables
    declare @TableSchemaTableName varchar
    (500)
    declare @sqlstatement nvarchar
    (1000)
    while 1=1
    begin
    set @sqlstatement
    =
    'DROP TABLE '
    + @TableSchemaTableName
    exec
    sp_executeSQL
    @sqlstatement
    print
    'Dropped Table : '
    + @TableSchemaTableName
    update @TTName
    set [status]
    = 1
    where TableSchemaTableName
    = @TableSchemaTableName
    if
    (select
    count([Status])
    from @TTName
    where [Status]
    = 0)
    = 0
    break
    end

  • How to transfer database tables from sql server 2000 to oracle 10g

    Hi,
    I have a database and tables in sql server 2000. I have to transfer those data to Oracle 10g. I have installed Oracle warehouse Builder ETL Tool. Using this how can i transfer data. Any help is vary helpful for me.
    Thanks in advance.

    you have to do it using ODBC HS.
    1. Configure ODBC connection through gateway.
    2. Create a initxxx.ora file with HS config.
    restart gateway listener services
    3. on target o/s add entries to your tnsnames.ora
    4. On your target o/s create a db link
    restart listener on target
    cheeck this out.Non-Oracle connection through HS issue
    Edited by: Darthvader-647181 on Jan 29, 2009 2:02 AM

  • How to provide joins between oracle tables and sql server tables

    Hi,
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server.
    how to provide joins between oracle tables and sql server tables ? Any help on this
    Regards,
    Malli

    user10675696 wrote:
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server. Bad idea most times. Heterogeneous joins do not exactly scale and performance can be severely degraded by network speed and b/w availability. And there is nothing you can do in the application and database layers to address performance issue at the network level in this case - your code's performance is simply at the mercy of network performance. With a single glaring fact - network performance is continually degrading. All the time. Always. Until it is upgraded. When the performance degradation starts all over again.
    If the tables are not small (few 1000 rows each) and row volumes static, I would not consider doing a heterogeneous join. Instead I would rather go for a materialised view on the Oracle side, use a proper table and index structure, and do a local database join.

  • Cannot get weblogic to create default dbms tables

     

    I've encountered the same error while deploying my parent-child test
    ejb with mySQL v3.23.38 as the data source:
    [RDBMSPersistenceManager] : createDefaultDBMSTable: processing Bean
    Table: JCWParent
    [RDBMSPersistenceManager] : full DEFAULT TABLE CREATE QUERY: 'CREATE
    TABLE JCWParent (parentId INTEGER, parentName VARCHAR(150), PRIMARY
    KEY (parentId) )'
    [RDBMSPersistenceManager] : RDBMSPersistenceManager.getConnection
    [RDBMSPersistenceManager] : Table 'JCWParent' was not present in
    Database attempt to CREATE TABLE failed. SQL: 'CREATE TABLE JCWParent
    (parentId INTEGER, parent Name VARCHAR(150), PRIMARY KEY (parentId) )'
    got SQLException java.sql.SQLException: General error: All parts of a
    PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE
    instead
    The weblogic server version I'm running is v6.1 (sp1). Any fix?
    --- Jeffrey
    "Thomas Christensen" <[email protected]> wrote in message news:<[email protected]>...
    Hi
    Anyone else seen this?
    If WLS 6.1 doesn't support auto table creation on db2, does it only support CloudScape???
    I do not expect Oracle, Sybase or MySQL to allow nulls in the primary keys either...
    Cheers
    Thomas
    "Thomas Christensen" <[email protected]> wrote:
    Hi
    I have discovered that WLS 6.1 tries to create tables it allows primary
    keys to
    be null, which our DB2 installation does not allow. I you turn on the
    trace mentioned
    below by Matthew, then the message appears.
    If I deploy the ejb20_basic_containerManaged.jar from the samples directory
    then
    I get the following error:
    [RDBMSPersistenceManager] : full DEFAULT TABLE CREATE QUERY: 'CREATE
    TABLE ejbA
    ccounts (id VARCHAR(150), bal DOUBLE PRECISION, type VARCHAR(150), PRIMARY
    KEY
    id) )'
    [RDBMSPersistenceManager] : RDBMSPersistenceManager.getConnection
    [RDBMSPersistenceManager] : Table 'ejbAccounts' was not present in Database
    attempt
    to CREATE TABLE failed. SQL: 'CREATE TABLE ejbAccounts (id VARCHAR(150),
    bal
    DOUBLE PRECISION, type VARCHAR(150), PRIMARY KEY (id) )' got SQLException
    COM.i
    bm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0542N "ID" cannot
    be a
    part of a primary key or unique key since it can contain NULL-values.
    SQLSTATE=42831
    Any fixes for this?
    Cheers
    Thomas
    Matthew Shinn <[email protected]> wrote:
    Hi Gary,
    What database are you using? Also, if you could start your server with
    the
    following arguments -Dweblogic.ejb20.cmp.rdbms.debug=true
    -Dweblogic.ejb20.cmp.rdbms.verbose=true and post the server output for
    the
    deployment in question, that would be great. This will give us some
    valuable
    debugging information and help us track down the problem. Note that
    these flags
    are going to cause a lot of extra information to be printed out.
    - Matt
    Gary Albelli wrote:
    I am using ejb 2.0 but still cannot get the server to create the tables.
    Any
    ideas?
    "Matthew Shinn" <[email protected]> wrote in message
    news:[email protected]...
    Hi Gary,
    There is a bug in 6.1 that can cause the database tables to fail
    to be
    created
    for 1.1 compliant EJBs. For tracking purposes, the bug ID is CR056543.If you
    require a patch, I suggest contacting support. As a possible workaround,try
    changing the ejb-name of your EJB to something more unique. Again,this
    only
    affects 1.1 EJBs. If you are having this problem with a 2.0 EJB,something else
    is wrong.
    - Matt
    Gary Albelli wrote:
    I am deploying entity beans into WebLogic server 6.1. The EJBs
    deploy
    but I
    cannot get the server to create the default tables. The
    weblogic.cmp.rdbms.jar.xml has the element create-default-dbms-tablesset to
    True. I receive the error message "The Entity EJB requires thetable:
    ContentVersion to be accessible. Please ensure that this tableexists
    and is
    accessible". Any Ideas???

  • Exceptions thrown while importing tables from SQL Server 2000

    Hi all,
    <MyProblem:
    I cannot import the tables defined in my local SQL Server. An exception is thrown --oracle.jdeveloper.cm.ds.db.ValidationException: Columns of type varchar cannot have a size specified.
    />
    <What I have done:
    In Oracle JDev 10g, Created a new DB connection called "SQLServerConnection" to connect to the SQL Server and it works fine. I am able to see all tables by expanding the connection.
    During the creation of a new partner link named "DBAdapter", I use the adapter wizard to select DB Adapter and then select the "SQLServerConnection" DB connection I have created. I select Perform an Operation on a Table and then check Select. After I pressed OK button on the[i] Import Tables  dialog, a Error messege box emmerged indicating the Exception: Columns of type varchar cannot have a size specified.
    I try to change the data type of the columns of the tables to char, there is still similar exception (Columns of type char cannot have a size specified).
    />
    I got the stack trace from the prompt by using jdev.exe.
    <StackTrace:
    oracle.jdeveloper.cm.ds.db.ValidationException: Columns of type varchar cannot h
    ave a size specified.
    at oracle.jdeveloper.offlinedb.OfflineDBTableValidator.validateObject(Of
    flineDBTableValidator.java:116)
    at oracle.jdeveloper.cm.ds.db.AbstractDBObjectProvider.validateObject(Ab
    stractDBObjectProvider.java:601)
    at oracle.jdeveloper.offlinedb.OfflineDBObjectProvider.updateObject(Offl
    ineDBObjectProvider.java:952)
    at oracle.tip.tools.ide.pm.wizard.adapter.db.DBAdapterDescriptorGenerato
    r.generate(DBAdapterDescriptorGenerator.java:274)
    at oracle.tip.tools.ide.pm.wizard.adapter.db.DBAdapterSelectTablePage.ac
    tionPerformed(DBAdapterSelectTablePage.java:451)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    86)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:151)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:141)
    at java.awt.Dialog$1.run(Dialog.java:540)
    at java.awt.Dialog.show(Dialog.java:561)
    at java.awt.Component.show(Component.java:1133)
    at java.awt.Component.setVisible(Component.java:1088)
    at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)
    at oracle.tip.tools.ide.pm.wizard.adapter.techAdapterWizard.display(tech
    AdapterWizard.java:151)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.PartnerLinkEditPage.handleA
    dapterWizard(PartnerLinkEditPage.java:311)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.PartnerLinkEditPage.actionP
    erformed(PartnerLinkEditPage.java:893)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    86)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:245)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
    31)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:151)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:141)
    at java.awt.Dialog$1.run(Dialog.java:540)
    at java.awt.Dialog.show(Dialog.java:561)
    at oracle.tip.tools.ide.pm.bpelgraph.editors.PartnerLinkDialog.create(Pa
    rtnerLinkDialog.java:90)
    at oracle.tip.tools.ide.pm.bpelgraph.collaxalaf.BPELGraphPane.createPart
    nerLink(BPELGraphPane.java:324)
    at oracle.tip.tools.ide.pm.bpelgraph.collaxalaf.BPELDNDDropHandler.handl
    eDrop(BPELDNDDropHandler.java:77)
    at oracle.tip.tools.ide.common.graph.DefaultGraphPaneDropTargetListener.
    routeToDropHandler(DefaultGraphPaneDropTargetListener.java:212)
    at oracle.tip.tools.ide.common.graph.DefaultGraphPaneDropTargetListener.
    handleDrop(DefaultGraphPaneDropTargetListener.java:200)
    at oracle.tip.tools.ide.pm.bpelgraph.collaxalaf.BPELGraphPaneDropTargetL
    istener.handleDrop(BPELGraphPaneDropTargetListener.java:75)
    at oracle.tip.tools.ide.common.graph.DefaultGraphPaneDropTargetListener.
    drop(DefaultGraphPaneDropTargetListener.java:260)
    at java.awt.dnd.DropTarget.drop(DropTarget.java:398)
    at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTarget
    ContextPeer.java:542)
    at sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextP
    eer.java:52)
    at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEven
    t(SunDropTargetContextPeer.java:805)
    at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Su
    nDropTargetContextPeer.java:743)
    at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
    at java.awt.Component.dispatchEventImpl(Component.java:3494)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
    at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:
    3269)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3123)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    />
    <Oracle:
    Oracle JDeveloper 10.1.2.0.0 (Build 1811)
    Oracle IDE     10.1.2.17.84
    Business Components Version     10.1.2.17.96
    UML Modelers Version     10.1.2.16.71
    Versioning Support     10.1.2.16.71
    WebDAV Support Version     10.1.2.16.71
    Struts Modeler Version     10.1.2.6.15
    BPEL Designer     10.1.2.0.0 (Build 050504)
    Designer Generators Framework     10.1.2.7.56
    ADF UIX     2.2.16
    java.version     1.4.2_06
    java.home     E:\OraBPELPM\jdk\jre
    java.vm.name     Java HotSpot(TM) Client VM
    java.vm.vendor     Sun Microsystems Inc.
    java.vm.version     1.4.2_06-b03
    user.language     zh
    user.region     <no value assigned>
    user.name     Administrator
    user.home     C:\Documents and Settings\Administrator
    user.dir     E:\OraBPELPM\integration\jdev\jdev\bin
    os.name     Windows 2003
    os.version     5.2
    os.arch     x86
    http.proxyHost     jproxy.nju.edu.cn
    http.proxyPort     8080
    />
    <SQL Server:
    Microsoft SQL Server 2000 with the Microsoft SQL Server 2000 Driver for JDBC Service Pack 3 installed
    />
    By the way, I have read the thread Thread: DB Adapter not importing SQL Svr tables and take some of their advises but the problem still exist.
    Any help would be greatly appreciated.
    Thanks!
    And Merry Christmas to all!

    Hi, ronen!
    Thank you.
    I followed the steps and the there were no exceptions then.
    However, new runtime error emerged.
    The BPEL PM Server cannot build Toplink Session. But I do not know why.
    The messeges from the "Start BPEL PM Server" console about this project (named "TryDB") is as following (DoSelect is the service name of the DB Adapter):
    <::Outbound><oracle.tip.adapter.db.ox.TopLinkXMLProjectInitializer initialize> I
    nitializing an existing toplink project for use by the database adapter.
    <::Outbound><oracle.tip.adapter.db.ox.TopLinkXMLProjectInitializer initialize> I
    nitializing an existing toplink project for use by the database adapter.
    <2006-01-10 16:03:02,656> <INFO> <default.collaxa.cube.compiler> &#27491;&#22312;&#39564;&#35777; "E:\Or
    aBPELPM\integration\orabpel\domains\default\tmp\.bpel_TryDB_1.0.jar\TryDB.bpel"
    <2006-01-10 16:03:05,156> <INFO> <default.collaxa.cube.engine.deployment> <CubeP
    rocessFactory::generateProcessClass>
    &#27969;&#31243; "TryDB" (&#20462;&#35746; "1.0") &#32534;&#35793;&#25104;&#21151;&#12290;
    <2006-01-10 16:03:05,765> <INFO> <default.collaxa.cube.engine.deployment> &#27969;&#31243; "
    TryDB" (&#20462;&#35746;&#26631;&#35760; "1.0") &#24050;&#25104;&#21151;&#21152;&#36733;&#12290;
    06/01/10 16:03:34 Tutalii: E:\OraBPELPM\integration\orabpel\lib\orabpel.jar arch
    ive
    <2006-01-10 16:03:34,500> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Ou
    tbound> file:/E:/OraBPELPM/integration/orabpel/domains/default/tmp/.bpel_TryDB_1
    .0.jar/DoSelect.wsdl [ DoSelect_ptt::DoSelectSelect(DoSelectSelect_inparameters,
    AirlineTableCollection) ] - Using JCA Connection Pool - max size = <unbounded>
    <2006-01-10 16:03:35,093> <ERROR> <default.collaxa.cube.ws> <Database Adapter::O
    utbound> <oracle.tip.adapter.db.DBManagedConnectionFactory acquireClientSession>
    unable to build the TopLink Session
    <2006-01-10 16:03:35,125> <ERROR> <default.collaxa.cube.ws> <Database Adapter::O
    utbound> <oracle.tip.adapter.db.DBInteraction executeOutboundRead> unable to exe
    cute the NamedQuery: TryDB.AirlineTable.DoSelectSelect
    <2006-01-10 16:03:35,125> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::O
    utbound> file:/E:/OraBPELPM/integration/orabpel/domains/default/tmp/.bpel_TryDB_
    1.0.jar/DoSelect.wsdl [ DoSelect_ptt::DoSelectSelect(DoSelectSelect_inparameters
    ,AirlineTableCollection) ] - Could not invoke operation 'DoSelectSelect' against
    the 'Database Adapter' due to:
    ORABPEL-11622
    &#26080;&#27861;&#21019;&#24314;/&#35775;&#38382; TopLink &#20250;&#35805;.
    &#27492;&#20250;&#35805;&#29992;&#20110;&#36830;&#25509;&#21040;&#25968;&#25454;&#23384;&#20648;&#12290;.
    &#26377;&#20851;&#29305;&#23450;&#24322;&#24120;&#38169;&#35823;, &#35831;&#21442;&#38405;&#26681;&#24322;&#24120;&#38169;&#35823;&#12290;&#24744;&#21487;&#33021;&#38656;&#35201;&#22312; j2ee/home/application-deploymen
    ts/default/DbAdapter/oc4j-ra.xml &#20013;&#37197;&#32622;&#36830;&#25509;&#35774;&#32622;&#24182;&#37325;&#26032;&#21551;&#21160;&#26381;&#21153;&#22120;&#12290;&#30001; $J2EE_HOME/a
    pplication-deployments/default/DbAdapter/oc4j-ra.xml &#23548;&#33268;&#12290;
    <2006-01-10 16:03:35,125> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Ou
    tbound> Change logging level for Logger 'default.collaxa.cube.ws' to DEBUG to se
    e full error stack
    <2006-01-10 16:03:35,125> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::O
    utbound> file:/E:/OraBPELPM/integration/orabpel/domains/default/tmp/.bpel_TryDB_
    1.0.jar/DoSelect.wsdl [ DoSelect_ptt::DoSelectSelect(DoSelectSelect_inparameters
    ,AirlineTableCollection) ] - Rolling back JCA LocalTransaction
    And in the Audit part of the BPEL Console, I got the following "details"
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="code">
    <code>4003</code>
    </part>
    <part name="summary">
    <summary>file:/E:/OraBPELPM/integration/orabpel/domains/default/tmp/.bpel_TryDB_1.0.jar/DoSelect.wsdl [
    DoSelect_ptt::DoSelectSelect(DoSelectSelect_inparameters,AirlineTableCollection) ] - WSIF JCA Execute of operation
    'DoSelectSelect' failed due to: ????/?? TopLink ??. ?????????????. ; nested exception is: ORABPEL-11622 ????/??
    TopLink ??. ?????????????. ????????, ??????????????? j2ee/home/application-deployments/default/DbAdapter/oc4j-ra.xml
    ????????????????? $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml ???</summary>
    </part>
    <part name="detail">
    <detail>??????: ????????? [com.microsoft.jdbc.sqlserver.SQLServerDriver]?</detail>
    </part>
    </remoteFault>
    My oc4j-ra.xml has the following content (SQLServerConnection is the name of the connection of SQL Server database):
    <connector-factory location="eis/DB/SQLServerConnection" connector-name="Database Adapter">
         <config-property name="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
         <config-property name="connectionString" value="jdbc:microsoft:sqlserver://localhost:1433;SelectMethod=cursor;databasename=lxbpel"/>
         <config-property name="userName" value="bpel"/>
         <config-property name="password" value="bpel"/>
         <config-property name="minConnections" value="5"/>
         <config-property name="maxConnections" value="5"/>
         <config-property name="minReadConnections" value="1"/>
         <config-property name="maxReadConnections" value="1"/>
         <config-property name="usesExternalConnectionPooling" value="false"/>
         <config-property name="dataSourceName" value=""/>
         <config-property name="usesExternalTransactionController" value="false"/>
         <config-property name="platformClassName" value="oracle.toplink.internal.databaseaccess.SQLServerPlatform"/>
         <config-property name="usesNativeSequencing" value="true"/>
         <config-property name="sequencePreallocationSize" value="50"/>
         <config-property name="tableQualifier" value=""/>
    </connector-factory>
    I think this configuration in this oc4j-ra.xml is fine
    So please help me again. I owe you so much.
    Thank you!

  • Cant create connection Pool for MS SQL Server 2000 with Microsoft Driver

    i am using bea weblogic server 6.1, i cant create connection pool while using MS
    SQL Server 2000. i have installed JDBC Driver SAP1 from microsoft website. when
    i give the following class name for JDBC driver and the connection url and click
    apply while selecting the available server, a number of exception appears in default
    server (that is the connection pool cannot be created..... cannot load the driver
    class).
    URL= jdbc:Microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDB
    Driver= com.microsoft.jdbc.sqlserver.SQLServerDriver
    when i use the above setting in a JDBC simple application in Jbuilder
    7.0 the application runs successfully and fetches the data deom MS SQL database
    but in at Bea connection Pool is not created with these settings. i do give appropriate
    username and password in properties field in connection pool. Thankx for any help!

    khabbab wrote:
    That was the original code part from "startweblogic" :
    :runWebLogic
    echo on
    set PATH=.\bin;%PATH%
    set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;
    echo off
    and i changed it to :
    :runWebLogic
    echo on
    set PATH=.\bin;%PATH%
    set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;D:\Program Files\Microsoft
    SQL Server 2000 Driver for JDBC\lib\msbase.jar;D:\Program Files\Microsoft SQL
    Server 2000 Driver for JDBC\lib\msutil.jar;D:\Program Files\Microsoft SQL Server
    2000 Driver for JDBC\lib\mssqlserver.jar;I suggest moving or copying the three ms driver jars to a directory that has no blanks
    in it so the classpath doesn't have blanks in it. Ie:
    go to the "D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib"
    directory and do this:
    mkdir D:\microsoft_jdbc_driver
    cp *.jar D:\microsoft_jdbc_driver
    Then make the classpath include D:\microsoft_jdbc_driver\msbase.jar etc.
    Joe
    >
    >
    echo off
    when i save and run the bat file, server appears then disappears.
    Joseph Weinstein <[email protected]_this> wrote:
    khabbab wrote:
    The class path which is echoed at server startup does not include thepaths to
    driver jar files. when i edited the "startweblogic.bat" file and includedthe
    driver class paths to jar files, now the server doesnot even run. tellme what
    to do now???Show me what change you made to the startweblogic file.
    Joe
    Joseph Weinstein <[email protected]_this> wrote:
    khabbab wrote:
    kindly tell me how can i check that the class paths for driver jarfiles are included
    in that string? thanks. also tell me can not i use the jdriver forsql server
    2000?.The startup script will echo what it's doing, including printing out
    the classpath
    it will use. Yes you can use the jDriver for MS SQL2000. It is sufficient
    for
    basic JDBC, but the MS drivfer is preferable in some ways.
    Joe
    Joseph Weinstein <[email protected]_this> wrote:
    khabbab wrote:
    i am using bea weblogic server 6.1, i cant create connection
    pool
    while
    using MS
    SQL Server 2000. i have installed JDBC Driver SAP1 from microsoft
    website.
    when
    i give the following class name for JDBC driver and the connectionurl and click
    apply while selecting the available server, a number of exception
    appears
    in default
    server (that is the connection pool cannot be created..... cannot
    load
    the driver
    class).The server startup script creates a string that will become the
    classpath
    for the server.
    This string is part of the java call to start the server with a-classpath
    argument. You need to
    make sure the MS driver jars are part of that classpath string.
    Joe
    URL= jdbc:Microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDB
    Driver= com.microsoft.jdbc.sqlserver.SQLServerDriver
    when i use the above setting in a JDBC simple applicationin Jbuilder
    7.0 the application runs successfully and fetches the data deom
    MS
    SQL database
    but in at Bea connection Pool is not created with these settings.
    i
    do give appropriate
    username and password in properties field in connection pool.
    Thankx
    for any help!
    khabbab wrote:
    The class path which is echoed at server startup does not include thepaths to
    driver jar files. when i edited the "startweblogic.bat" file and includedthe
    driver class paths to jar files, now the server doesnot even run. tellme what
    to do now???
    Joseph Weinstein <[email protected]_this> wrote:
    khabbab wrote:
    kindly tell me how can i check that the class paths for driver jarfiles are included
    in that string? thanks. also tell me can not i use the jdriver forsql server
    2000?.The startup script will echo what it's doing, including printing out
    the classpath
    it will use. Yes you can use the jDriver for MS SQL2000. It is sufficient
    for
    basic JDBC, but the MS drivfer is preferable in some ways.
    Joe
    Joseph Weinstein <[email protected]_this> wrote:
    khabbab wrote:
    i am using bea weblogic server 6.1, i cant create connection
    pool
    while
    using MS
    SQL Server 2000. i have installed JDBC Driver SAP1 from microsoft
    website.
    when
    i give the following class name for JDBC driver and the connectionurl and click
    apply while selecting the available server, a number of exception
    appears
    in default
    server (that is the connection pool cannot be created..... cannot
    load
    the driver
    class).The server startup script creates a string that will become the
    classpath
    for the server.
    This string is part of the java call to start the server with a-classpath
    argument. You need to
    make sure the MS driver jars are part of that classpath string.
    Joe
    URL= jdbc:Microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDB
    Driver= com.microsoft.jdbc.sqlserver.SQLServerDriver
    when i use the above setting in a JDBC simple applicationin Jbuilder
    7.0 the application runs successfully and fetches the data deom
    MS
    SQL database
    but in at Bea connection Pool is not created with these settings.
    i
    do give appropriate
    username and password in properties field in connection pool.
    Thankx
    for any help!

  • Query Locks Table in SQL Server 2000!!

    Hi all!
    I am facing a strange problem. I am using MS SQL Server 2000.
    I have a JDBC program.It executes a query on a table (STUDENT) and fetches some record from it.
    The query gets executed fine for the first time but when the SELECT query is executed on the same table (i.e. STUDENT) from some other block of code within the same program the program hangs at the location where resultset is pointed to the first record i.e. RS.next();
    When I try to execute the SELECT query on the same table (i.e. STUDENT) from a query tool when the program is running it also gets hanged!!!
    It seems that after running the query for the first time on the STUDENT table from the next time its getting hanged....i believe the Table gets locked for some reason!!
    Is that normal with SQL Server 2000.....The same code works fine with other database!
    Please suggest...wht has to b done to gt it fixed!
    Thankz a loadz bforehand!
    Arun

    By default (transaction isolation level TRANSACTION_READ_COMMITTED ), SQL Server applies a shared read lock when you do a SELECT. This is should not prevent other selects on the same row / page but it will prevent updates / deletes.
    I found a link that explains SQL Server locking: http://databasejournal.com/features/mssql/article.php/3289661

  • Problem Using JSQL level 4 driver for SQL Server 2000

    I am having problem , connecting to my Sql Server 2000 ( deployed on Windows 2000 Professional) using Microsoft JSQL level 4 Deriver .
    I am doing it with following code,
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
         Connection conn = DriverManager.getConnection
    ("jdbc:microsoft:sqlserver://192.168.0.232:1433;databaseName=DBNew;user=nakhter;Password=java;");
    It gives me following Exception ,
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user 'nakhter'. Reason: Not associated with a trusted SQL Server connection.
         at com.microsoft.jdbc.base.BaseExceptions.createException Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:517)
         at java.sql.DriverManager.getConnection(DriverManager.java:177)
    I am usign my windows authentication usrname and password .
    I has tried it with user "sa" but still same exception .
    Could someone help me in this regard ?

    You need to switch SQL server to just use SQL Server authentication or both. The problem is that it is looking for a Windows NT account for nakhter with the password java. We get this all the time on new SQL Server installs if you just take the defaults.

  • Creating a connection to MS SQL Server 2000...

    Hi ,
    Using the :
    1)Oracle SQL Developer 1.1.3 and 1.2.1 ,
    2)MS SQL Server 2000 - both db and agent are running ,
    I cannot create a connection to MS SQL Server (error: "Failure - Network Error IO Exception : Connection refused : connect").
    Both software - and Oracle DB , as well- have been installed on the same server(Win XP) and i have deactivated the firewall , without the desired result....
    Also the server is standalone and does have a static IP Address....
    What can I do ...????
    Thanks....
    Sim

    I have also downloaded and installed the SQL Developer 1.5.0.53.
    When i declare the same settings to SQL SERVER DB - as in the other SQL Developer versions(1.1.3 and 1.2.1)- I get a different error message..:
    "Failure - Cannot connect to SQL Server on localhost" - whereas in the other versions i get[i] "Failure - Network Error IO Exception : Connection refused : connect".
    When i declare another host name (one that does not exist , for example "localhost1") then the error message is :"Failure : Unknown host name localhost1".
    So ,the above tests may show that the error seems to be in the port setting....however , i cannot verify it since the port setting is 1433 - the one i declare in the connection.
    Do you have an idea....????
    I would be grateful if somebody could provide some 'light'.....!!!!
    Sim

  • How to crete the source system for the SQL Server 2000 to BI 7.1

    Dear All,
    We want to extract data from  SQL server 2000 data base to BI 7.1
    Please provide us the step-by-step procedure to be followed in BI as well as SQL server 2000 BD
    Thanks & Regards,
    sarasu

    Hi,
    You have two options, you can use DB Connect but you need SAP DBSL for SQL Server 2000 and the DB Client and this could be have a additional cost, or you can use UD Connect, that make the connection with Java, using JCo's and the Driver Java for SQL Server 2000, please review this link: [http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58f4db47-0501-0010-a2bf-ff01b150fdff|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58f4db47-0501-0010-a2bf-ff01b150fdff]
    I recomend if you dont have the SAP DBSL and DB Client for SQL Server 2000 that use UD Connect is really useful.
    Regards

  • How to use non-default Alias Table in Analyzer report

    Hi,I defined many alias tables in Essbase. I would like to use a different alias table other than the "default" in Analyzer 6.5 report. In the on-line help, it said I can modify in "database connection properties" when first defining a new report to use a specific alias table. It tells me to do the following: Click the "New" toolbar button. Select a Display Type or Layout, and click OK. Right-click a database connection name in the "Select Database Connections" dialog box, and select Modify from the right-click menu.So I did this, but as I did the last-right click, there is no "Modify" option available. Only has "Add New..", "Database Connection Properties.." However, if I defined a new personal database connection using the login user, I can select to use other alias table. But this will go to personal database connection properties.Is it possible to specifically tell Analyzer to use other alias the global level in database connection? What I use to do is to have certain reports to use the default alias, and another to use another alias table. These reports should be able to share across all users.Sam

    In deed it is fix in the GA.Another way to set the alias table is to do it in the Admin client. If you add a connexion to a user there is a new 6.5 button "set alias" that allow you to set the default alias table for this specific user. But, it does not exit on a user group level.

  • How do I create a connection string to sql server?

    Hi All,
       I am currently connecting to a SQL Server via ODBC DSN connection. I am wondering how do I create a connection string directly to a sql server without a DSN connection?
    Thank you in advance.

    If you have SQL Server or client installed in your machine you can directly connect to SQL server using native connection. When you create new report you can see the option create new connection, here you can see SQL Server. Expand it and enter the connection details where you will be directly connected to SQL Server without ODBC connection.
    Regards,
    Raghavendra

  • Creating user defined function in sql server 2000

    I have created a udf an i want to call it in another udf. will u please help me out how to create.
    thank you

    And you ask that in an ORACLE forum? Brilliant idea... ;)

Maybe you are looking for

  • Adobe Photoshop Elements 12 and Adobe Premiere Elements 12 Activation

    After successfully uninstalling and re-installing my newly purchased adobe photoshop elements 12 and adobe premiere elements as an advise because of the problems that I encountered during my first installation a few weeks ago, now although both progr

  • How do you pass a column link value into modal dialog

    Hi everyone, I've got quite a tricky problem...To spell it out: 1. I have a calendar with column links. 2. I have a (popup) report on a separate page that shows detailed information about the record selected in 1. 3. To eliminate the extra page, I've

  • More than One Primary Key

    Hi, How to create more than one primary key in TT CREATE TABLE LOOKUP (KEY NUMBER NOT NULL PRIMARY KEY, VALUE CHAR (64)) In Oracle we can create Composite Primary key CREATE TABLE LOOKUP (KEY NUMBER NOT NULL , VALUE CHAR (64) , CONSTRAINT constraint_

  • Planning for Macbook (pro?) Questions about recording audio + multitasking

    Hi Everyone I am seriously contemplating switching to a Mac book (Pro?) in the next few months, and I want to clarify issues about recording audio. I record music and other stuff at our local church using a mixer and feed stereo straight into a pc wh

  • Need Help for getting today's records from sysdate with current time.

    Here is the procedure which gives me the below mentioned output. Create or Replace Procedure pt(rdate date default sysdate) is sdate date; edate date; begin sdate:=trunc(NVL(rdate,sysdate)); edate:=NVL(trunc(rdate)+23/24/+59/24/60+59/24/60/60,sysdate