Can JDBC specify dynamic Database

Now we have two DB2 database, with different IP address.
One of those is running in normal situation, if it is down, the other will automatically start.
Why this happened, how can the XI get information from the other DB? Is it possible to specify dynamic database destination in JDBC Adapter?
Thanks in advance.

Hi YiNing,
look at my answers in
Re: JDBC Problem in a Productive Sys!!!
There is also a further link to a similar problem.
Regards Mario

Similar Messages

  • JDBC Adapter - Dynamic database address

    Hi,
    For a JDBC recevier adapter, is it possible to specify the address of the database dynamically.
    Thanks
    Martin

    Hi,
    I dont think this is possible.
    Regards,
    Bhavesh

  • Specifying Dynamic database table

    Hi,
        I have a requirement where
    your are having a selection screen say tables .Based on the user input,i must display the structure of the table.
    If the user gives ekko in the selection screen.my output should have all the fields of the sturcture ekko.It dynamically varies.Suppose all if he gives mseg,it must display the mseg sturcture.Can anyone help me plz.The coding i had done is
    REPORT  YCOMPLEXREQ                             .
    type-pools : SLIS.
    tables : DD02L.
    parameter : p_table type DD02L-tabname.
    data : ws_table like dd02l-tabname.
    field-symbols : <f1> type any table.
    data : itab  like table of ws_table with header line.
    select single tabname
                  from dd02l
                  into ws_table
                  where tabname = p_table.
    assign ws_table to <f1>.
    select single * from (ws_table)
              into   <f1>
    but it goes to dump saying the output field can not hold the entire data ..
    <b></b>good answers will be rewarded with points

    check this code....
    u need to alter some part of the code....
    *& Report  ZLOAD_DYNAMIC_UPLOAD                                        *
    REPORT  zload_dynamic_upload MESSAGE-ID zf_cd .
    TYPES t_itab1 TYPE zfalsmex_tabline.
    DATA: it_itab1 TYPE STANDARD TABLE OF t_itab1 WITH HEADER LINE,
          it_itab_h TYPE STANDARD TABLE OF t_itab1 WITH HEADER LINE,
          v_count TYPE i,
          v_flag.
                         SELECTION-SCREEN                                *
    SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-001.
    PARAMETERS: p_file TYPE rlgrap-filename OBLIGATORY,
                p_tabnam LIKE dd02l-tabname OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b.
    AT SELECTION SCREEN ON VALUE-REQUEST
    *----Gettting the local file with f4 button
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM get_local_file_name USING p_file.
    AT SELECTION-SCREEN ON P_TABNAM
    AT SELECTION-SCREEN ON p_tabnam.
      PERFORM at_selectionscreen_on_p_tabnam.
                         START-OF-SELECTION                              *
    START-OF-SELECTION.
      PERFORM excel_to_it.
      PERFORM dynamic_it_table.
                         END-OF-SELECTION                                *
    END-OF-SELECTION.
      IF v_flag IS INITIAL.
        WRITE: / v_count,text-002,p_tabnam.
      ELSEIF v_flag = 'N'.
        WRITE: / text-003.
      ENDIF.  "if v_flag is initial.
    *&      Form  GET_LOCAL_FILE_NAME
          text
         -->P_P_FILE  text
    FORM get_local_file_name  USING    p_p_file.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          file_name = p_file.
    ENDFORM.                    " GET_LOCAL_FILE_NAME
    *&      Form  AT_SELECTIONSCREEN_ON_P_TABNAM
          text
    -->  p1        text
    <--  p2        text
    FORM at_selectionscreen_on_p_tabnam .
      DATA: v_tabname LIKE dd02l-tabname.
      SELECT SINGLE tabname INTO v_tabname FROM dd02l WHERE
                tabname = p_tabnam.
      IF sy-subrc <> 0.
        MESSAGE e004 WITH text-004.
      ENDIF.
    ENDFORM.                    " AT_SELECTIONSCREEN_ON_P_TABNAM
    *&      Form  excel_to_it
          text
    -->  p1        text
    <--  p2        text
    FORM excel_to_it .
      DATA: BEGIN OF it_field OCCURS 0,
              fieldname LIKE dd03l-fieldname,
            END OF it_field.
      DATA: BEGIN OF it_dd03l OCCURS 0,
              tabname LIKE dd03l-tabname,
              fieldname LIKE dd03l-fieldname,
            END OF it_dd03l.
      DATA: BEGIN OF it_field_count OCCURS 0,
              fieldname LIKE dd03l-fieldname,
              count TYPE i,
            END OF it_field_count.
      DATA: l_disp(256).
      CALL FUNCTION 'ZF_ALSM_EXCEL_TO_INTERNAL_TAB'
        EXPORTING
          filename                = p_file
          i_begin_col             = 1
          i_begin_row             = 1
          i_end_col               = 256
          i_end_row               = 1
        TABLES
          intern                  = it_itab_h
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
    Checking of EXCEL Fieldnames with Tablename Field Names
      LOOP AT it_itab_h.
        TRANSLATE it_itab_h-value TO UPPER CASE.
        MODIFY it_itab_h.
        it_field-fieldname = it_itab_h-value.
        APPEND it_field.
        CLEAR it_field.
      ENDLOOP.
      SELECT tabname
             fieldname
             INTO TABLE it_dd03l
             FROM dd03l
             WHERE tabname = p_tabnam.
      SORT it_dd03l BY fieldname.
      LOOP AT it_field.
        READ TABLE it_dd03l WITH KEY fieldname = it_field-fieldname
                                                 BINARY SEARCH.
        IF sy-subrc <> 0 .
          v_flag = 'N'.
          WRITE: / text-005.
          STOP.
        ENDIF.
        CLEAR: it_dd03l.
      ENDLOOP.
    Controlling the Repeating Field Names in EXCEL Header
      LOOP AT it_field.
        READ TABLE it_field_count WITH KEY fieldname = it_field-fieldname.
        IF sy-subrc NE 0.
          it_field_count-fieldname = it_field-fieldname.
          it_field_count-count = it_field_count-count + 1.
          APPEND it_field_count.
        ELSE.
          it_field_count-count = it_field_count-count + 1.
          MODIFY it_field_count INDEX sy-tabix.
          CONCATENATE it_field_count-fieldname
                      'is Repeating in EXCEL Header.'
                      INTO l_disp SEPARATED BY space.           "#EC
          WRITE: / l_disp.
          WRITE: / 'So, Please Correct the EXCEL Header and Restart Again.'.
          v_flag = 'N'.
          STOP.
        ENDIF.
        CLEAR: it_field_count.
      ENDLOOP.
      CALL FUNCTION 'ZF_ALSM_EXCEL_TO_INTERNAL_TAB'
        EXPORTING
          filename                = p_file
          i_begin_col             = 1
          i_begin_row             = 2
          i_end_col               = 256
          i_end_row               = 65536
        TABLES
          intern                  = it_itab1
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
    ENDFORM.                    " excel_to_it
    *&      Form  dynamic_it_table
          text
    -->  p1        text
    <--  p2        text
    FORM dynamic_it_table .
      TYPE-POOLS: slis.
      DATA: it_fcat TYPE lvc_t_fcat, "slis_t_fieldcat_alv,
            is_fcat LIKE LINE OF it_fcat,
            ls_layout TYPE slis_layout_alv,
            it_fieldcat TYPE lvc_t_fcat,
            is_fieldcat LIKE LINE OF it_fieldcat,
            new_table TYPE REF TO data,
            new_line TYPE REF TO data,
            ob_cont_alv TYPE REF TO cl_gui_custom_container,
            ob_alv TYPE REF TO cl_gui_alv_grid,
            vg_campos(255) TYPE c,
            i_campos LIKE TABLE OF vg_campos,
            vg_campo(30) TYPE c,
            vg_tables(60) TYPE c.
      FIELD-SYMBOLS: <l_table> TYPE table,
                     <l_line>  TYPE ANY,
                     <l_field> TYPE ANY.
      LOOP AT it_itab_h.
        is_fcat-fieldname = it_itab_h-value.
        is_fcat-ref_field = it_itab_h-value.
        is_fcat-ref_table = p_tabnam.
        APPEND is_fcat TO it_fcat.
      ENDLOOP.
    *... Creating the dynamic internal table According to Excel Header
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fcat
        IMPORTING
          ep_table        = new_table.
    *... Create a new line
      ASSIGN new_table->* TO <l_table>.
      CREATE DATA new_line LIKE LINE OF <l_table>.
      ASSIGN new_line->* TO <l_line>.
      FIELD-SYMBOLS : <fs_dyn_table> TYPE ANY.
      DATA : w_index TYPE i.
      IF it_itab1[] IS INITIAL.
        v_flag = 'N'.
        WRITE: / text-006.
        STOP.
      ELSE.
        SORT it_itab1 BY zrow zcol.
        LOOP AT it_itab1.
          MOVE : it_itab1-zcol TO w_index.
          ASSIGN COMPONENT w_index OF STRUCTURE <l_line> TO <fs_dyn_table>.
          MOVE it_itab1-value TO <fs_dyn_table>.
          AT END OF zrow.
            APPEND <l_line> TO <l_table>.
          ENDAT.
        ENDLOOP.
      ENDIF.
    Start of Creating Table work area
      DATA: BEGIN OF it_fieldname OCCURS 0,
              tabname LIKE dd03l-tabname,
              fieldname LIKE dd03l-fieldname,
              position LIKE dd03l-position,
            END OF it_fieldname.
      SELECT tabname
             fieldname
             position
             INTO TABLE it_fieldname
             FROM dd03l
             WHERE tabname = p_tabnam.
    delete it_fieldname[] where fieldname = '.INCLUDE'.
      DELETE it_fieldname[] WHERE fieldname+0(1) = '.'.
      SORT it_fieldname BY position.
      DATA: it_fcat_tw TYPE lvc_t_fcat, "slis_t_fieldcat_alv,
            is_fcat_tw LIKE LINE OF it_fcat,
            ls_layout_tw TYPE slis_layout_alv,
            it_fieldcat_tw TYPE lvc_t_fcat,
            is_fieldcat_tw LIKE LINE OF it_fieldcat,
            new_table_tw TYPE REF TO data,
            new_line_tw TYPE REF TO data,
            ob_cont_alv_tw TYPE REF TO cl_gui_custom_container,
            ob_alv_tw TYPE REF TO cl_gui_alv_grid,
            vg_campos_tw(255) TYPE c,
            i_campos_tw LIKE TABLE OF vg_campos,
            vg_campo_tw(30) TYPE c,
            vg_tables_tw(60) TYPE c.
      FIELD-SYMBOLS: <l_table_tw> TYPE table,
                     <l_line_tw>  TYPE ANY,
                     <l_field_tw> TYPE ANY.
      LOOP AT it_fieldname.
        is_fcat_tw-fieldname = it_fieldname-fieldname.
        is_fcat_tw-ref_field = it_fieldname-fieldname.
        is_fcat_tw-ref_table = p_tabnam.
        APPEND is_fcat_tw TO it_fcat_tw.
      ENDLOOP.
    *... Create the dynamic internal table
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fcat_tw
        IMPORTING
          ep_table        = new_table_tw.
    *... Create a new line
      ASSIGN new_table_tw->* TO <l_table_tw>.
      CREATE DATA new_line_tw LIKE LINE OF <l_table_tw>.
      ASSIGN new_line_tw->* TO <l_line_tw>.
    End of Creating Table work area
      CLEAR: v_count.
      LOOP AT <l_table> INTO <l_line>.
        MOVE-CORRESPONDING <l_line> TO <l_line_tw>.
        MODIFY (p_tabnam) FROM <l_line_tw>.
        IF sy-subrc = 0.
          v_count = v_count + 1.
        ENDIF.
        CLEAR: <l_line>,<l_line_tw>.
      ENDLOOP.
      COMMIT WORK.
    ENDFORM.                    " it_dynamic_it_table

  • I want to connect to remote databases which can be specified by URL

    Hi,
    i'm tinu
    I want to connect to remote databases which can be specified by URL
    the database is ORACLE 9i
    pls help me, how to connect to it
    i have the ip address,port address,sid,username and password of the database
    is there any difference in the actual code of database connection
    plss help

    Hi,
    There is a particular example with MS SQL 2000 in thread http://forum.java.sun.com/thread.jspa?threadID=608314
    In the given example you just need to change the database URL and the JDBC driver. Just examine the code a little bit.
    Also you may wish to visit the SUN's JDBC tutorial on http://java.sun.com/docs/books/tutorial/jdbc/
    Ferad Zyulkyarov

  • Can i access my database without jdbc

    Can i access my database without jdbc
    i don't want use a driver are there other methods for accessing database or is jdbc the only way for connecting a database

    I would sure like to know any one of the ways that you mention below
    Where would be a good place to start
    This is not a good place for that kind of research.
    If you have a problem that needs solving, come here.
    I could probably think up a couple of ways to access
    s a database from Java without using JDBC, but no
    sensible programmer would ever dream of trying to use
    them. So they would just make your research look
    stupid.

  • Managed Server can not connect to Database

    I have a WebLogic cluster with three managed Server on 3 different machines.
    ManagedServer_1, ManagedServer_2, ManagedServer_3 (on Machine 3)
    Firstly, everything is ok. But when we changed some configuration on Firewall and make the WebLogic cluster could not connect to database. 3 servers change status from Running to Warning. Then, we undo all the changes to the Firewall configuration. 3 Servers could connect to Database again but still in warning state.
    It is strange that when I tried to restart ManagedServer_3. That server could not be up normally. It went to Admin state and all the datasources and connection pool could not be created. I tried to restart the machine 3 and start the server but it still failed to make server running normally.
    ( I made the test connecting to Database from Machine 3, everything is okie, I can got data from database, port 1521 opened )
    Has anyone got the same problem and how to fix it? Is that the problem with the admin server?

    JDBC DataSources/Connection pools are all at Domain Level. All we do is just target the datasources to AdminServer and Entire cluster (this will take care of all managed servers in the cluster). From Weblogic Console, TEST the data sources for any firewall issues. If this works from console, check from where you are accessing the Console like within the Firewall, that can access the database server. Even though the actual application is deployed only on cluster, still I would recommend targetting the datasources to both AdminServer and Cluster.
    Ravi Jegga

  • Error: The specified mailbox database [Mailbox Database Name] does not exist, when you try to export mailbox in Exchange 2007

    [Symptom]
    ======================
    In Exchange 2007, when you want to export mailbox to a .pst file, you should run the
    Export-Mailbox cmdlet from a 32-bit computer that has the following installed:
    The 32-bit version of the Exchange management tools
    Microsoft Office Outlook 2003 SP2 or later versions
    If not, you may encounter the following error message:
    You check that you have these required installed, but you get the error below when you run Export-Mailbox in EMS.
    “The specified mailbox database [Mailbox Database Name] does not exist.”
    [Cause Analysis]
    =======================================
    This is because that the account you use to run Export-Mailbox cmdlet don’t have the Exchange Server Administrator role assigned.
    You can check if this account has been delegated the Exchange Server Administrator role through the following path.
    EMC -> Organization Configuration-> Check permissions in the result pane.
    To delegate this Exchange Server Administrator role, right click on the
    Organization Configuration node and choose Add Exchange Administrator,
    you will see the Add Exchange Administrator window.
    [More Information]
    ==============================
    Export-Mailbox
    http://technet.microsoft.com/en-gb/library/aa998579(v=exchg.80).aspx
    How to Export and Import mailboxes to PST files in Exchange 2007 SP1
    http://blogs.technet.com/b/exchange/archive/2007/04/13/3401913.aspx
    Exchange 2007 cannot export pst files via its powershell
    http://social.technet.microsoft.com/Forums/forefront/en-US/b3bc0dce-35f3-4a69-9a33-4f2a855b9f94/exchange-2007-cannot-export-pst-files-via-its-powershell?forum=exchangesvrgenerallegacy
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hi,
    Based on my test, if you make the user the owner of the database (rather than a user with the db_owner role), when you create a query, it creates it under the dbo schema rather than DOMAIN\username.
    Steps to do so (in Management Studio):
    Right click database, select Properties 
    Click File 
    Change Owner in the textbox 
    OK to confirm 
    Downside - other users under db_owner role will still have their username appended. So schemas have to be created for these users.
    Jaynet Zhang
    TechNet Community Support

  • How can i recover my database after losing system data file.

    hi everyone,
    how can i recover my database in the following scenario.
    1. offline complete backup taken 2 days ago. database was in archive mode.
    2. today i lost my system data file, and also lost my all archived files.
    3. i started up the database but, the following error was generated.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 135338868 bytes
    Fixed Size 453492 bytes
    Variable Size 109051904 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF'
    4. i copied the system data file from backup and wrote the following statement, to recover the database.
    SQL> recover datafile 1;
    ORA-00279: change 2234434 generated at 07/15/2009 10:52:10 needed for thread 1
    ORA-00289: suggestion : C:\B\ARC00051.001
    ORA-00280: change 2234434 for thread 1 is in sequence #51
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    now i don't have any archive file. is there any chance to recover the database ?
    R e g a r d s,
    Asif Iqbal
    Software Engineer,
    Lucky Tex, Karachi,
    Pakistan.

    now i don't have any archive file. is there any chance to recover the database ?If no archive log files are available you can't recover the datafile.You need to have all the archives from the time of offline backup was taken till the system datafile is lost.
    Anand

  • How can i use Unix database in java?

    How can i use Unix database in Java?
    Message was edited by:
    JPro

    I have not a clue about FoxPro, but the db then is FoxPro and not Unix. The better question would be "How do I connect to FoxPro DB running on Unix with JDBC?".
    My answer to that would be, search the Internet for a JDBC driver.

  • How can I get Connection(Database Connection)on my backing bean

    hello guys!
    How can I get the Database Connection on my managed bean?
    I want to use this connection for my reports.
    thanks a lot!
    alvin

    Alvin,
    You can access the data provider through ADF the binding. The data provider represents the business service you use. Once you have a handle to this you can get the connection.
    You don't mention the business service, so I cannot help you more than this. If it is ADF BC, have a look at http://download.oracle.com/docs/html/B25947_01/toc.htm and the stored procedure section. Steve Muench explains a trick to access the "real" JDBC connect used by ADF BC
    Frank

  • How can I create a database connection to Cloudscape database in 9iJDeveloper?

    How can I create a database connection to Cloudscape database in
    9iJDeveloper?
    thanks.

    Hi,
    I assume you have a JDBC driver for Cloudscape.
    1. In the IDE System Navigator, expand the Connections Node.
    2. Right-click on the Database Connection and choose New
    Connection .. .
    3. Click pass the welcome screen.
    4. In Step 1, name your connection and choose "3rd party JDBC
    Driver"
    5. Follow the rest of the steps and provide username/password,
    class name and URL, test and you should be ready to go.
    Good luck.

  • DB Console can't connect to Database

    To all,
    Trying to get a test instance of 11.1.0.7 up in VM Ware on OEL 5. Instance and OEM installed fine--I've dropped and recreated my repository, but OEM still can't see the database. Here is the error stack I see in the emoms.log:
    2009-03-04 01:52:06,110 [HTTPThreadGroup-11] WARN jdbc.ConnectionCache _getConnection.353 - Got a fatal exeption when getting a connection; Error code = 170
    02; Cleaning up cache and retrying
    2009-03-04 01:52:13,059 [HTTPThreadGroup-7] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = https://rac1.sys.com:3938/emd/ma
    in)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: Io exception: Socket read timed out)
    2009-03-04 01:52:13,205 [HTTPThreadGroup-4] ERROR conn.ConnectionService verifyRepositoryEx.887 - Invalid Connection Pool. ERROR = Io exception: Socket read
    timed out
    2009-03-04 01:52:20,935 [HTTPThreadGroup-5] ERROR conn.ConnectionService verifyRepositoryEx.887 - Invalid Connection Pool. ERROR = Io exception: Socket read
    timed out
    2009-03-04 01:52:21,112 [HTTPThreadGroup-11] ERROR conn.ConnectionService verifyRepositoryEx.887 - Invalid Connection Pool. ERROR = Io exception: Socket read
    timed out
    2009-03-04 01:52:21,134 [EMUI_01_52_21_/console/aboutApplication] ERROR svlt.PageHandler handleRequest.639 - java.lang.IllegalStateException: Response has al
    ready been committed
    java.lang.IllegalStateException: Response has already been committed
    Any thoughts? emctl status output below:
    test1 /U00/app/oracle/product/11107/db_1/rac1.sy.com_test1/sysman/log> emctl status agent
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.7.0
    Copyright (c) 1996, 2008 Oracle Corporation. All rights reserved.
    Agent Version : 10.2.0.4.0
    OMS Version : 10.2.0.4.0
    Protocol Version : 10.2.0.4.0
    Agent Home : /U00/app/oracle/product/11107/db_1/rac1.sy.com_test1
    Agent binaries : /U00/app/oracle/product/11107/db_1
    Agent Process ID : 32520
    Parent Process ID : 32490
    Agent URL : https://rac1.sy.com:3938/emd/main
    Repository URL : https://rac1.sy.com:1158/em/upload/
    Started at : 2009-03-04 01:35:36
    Started by user : oracle
    Last Reload : 2009-03-04 01:38:08
    Last successful upload : (none)
    Last attempted upload : (none)
    Total Megabytes of XML files uploaded so far : 0.00
    Number of XML files pending upload : 80
    Size of XML files pending upload(MB) : 15.03
    Available disk space on upload filesystem : 41.57%
    Data channel upload directory : /U00/app/oracle/product/11107/db_1/rac1.sy.com_test1/sysman/recv
    Last attempted heartbeat to OMS : 2009-03-04 02:06:44
    Last successful heartbeat to OMS : unknown
    Agent is Running and Ready
    Edited by: jdanton on Mar 4, 2009 11:08 AM
    Edited by: jdanton on Mar 4, 2009 11:09 AM

    Oracle 11g.
    I have the same error
    [HTTPThreadGroup-11] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = https://server:3938/emd/main)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: Io exception: Socket read timed out)
    Any one have found a solution to the problem.
    _Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can I updte Oracle database from 9.2.0.1 to 9.2.0.4?

    I want to use DM4j in JDeveloper 9.2.0.4, and it requires Oracle Database 9.2.0.4. I'm using Windows XP professional to be Database Server, so can I update my database. Someone here said he/she did this update, is it under windows platform?

    Thanks, I have update it by installing the path, and now I got the screen to generate code. However, when I run the generated code, it appears following error message:
    ClassificationMBTestOne.ClassificationModelBuildTestOne odm kknd jdbc:oracle:thin:@dba.ifsm.umbc.edu:1521:oracle9i
    Debugger connected to local process.
    Initialization Phase:
    Data Mining Server:
    JDBC URL: jdbc:oracle:thin:@dba.ifsm.umbc.edu:1521:oracle9i
    Username: odm
    Login Phase:
    Created data mining server
    Completed login
    Cleanup Phase:
    Removed function settings object: ClassificationModelBuildTestOne
    No prior mining model object to be removed: ClassificationModelBuildTestOne
    Removed mining task: ClassificationModelBuildTestOne
    Data Setup Creation Phase:
    Created NonTransactional PDS
    Input schema: ODM_MTR
    Input table: CENSUS_2D_BUILD_UNBINNED
    Mining Settings Creation Phase:
    Saved MiningFunctionSettings
    Name: ClassificationModelBuildTestOne
    Model Build Task Phase:
    Invoking Model build.
    Logout Phase:
    Completed MiningServer logout
    End: Fri Apr 16 11:50:11 EDT 2004
    oracle.dmt.odm.task.MiningTaskException: Failed to enqueue task "ClassificationModelBuildTestOne".
         at oracle.dmt.odm.task.MiningTask.execute(MiningTask.java:433)
         at ClassificationMBTestOne.ClassificationModelBuildTestOne.createModel(ClassificationModelBuildTestOne.java:1305)
         at ClassificationMBTestOne.ClassificationModelBuildTestOne.buildClassificationModelBuild(ClassificationModelBuildTestOne.java:412)
         at ClassificationMBTestOne.ClassificationModelBuildTestOne.main(ClassificationModelBuildTestOne.java:544)
    Exception breakpoint occurred at line 550 of ClassificationModelBuildTestOne.java.
    oracle.dmt.odm.task.MiningTaskException:

  • Can we use oracle database Instead of Cloudspace?

              hi there,Can we use oracle database instead of Cloudspace with the current implementation?
              If possible can you please send me the example
              1.ra.xml
              2.weblogic-ra.xml
              files for connection to oracle. i would really appreciate any support.
              thanx, raghu.
              

              Prasen,
              Could you tell me what specifically should I use for Oracle database instead of
              jdbc:cloudscape:rmi:CloudscapeDB;create=true.
              Can I use jdbc:weblogic:oracle for jdbc:cloudscape:Commerce? I am not familiar with
              Cloidscape URLs and drivers.
              Thanks,
              David
              prasen <[email protected]> wrote:
              >Raghu,
              > It depends upon your implementation of ResourceAdapter, particularly
              >your managedConnectionFactory. In the example we
              >supplied(BlackBoxNoTx.rar) it(database specific parameters) is being
              >passed to the ManagedConnectionFactory as one of its config-properties.
              >
              >Also ResourceAdapters have nothing to do with Databases. It just happens
              >that in the supplied example a Database Connection is being exposed as a
              >ResourceAdapter.
              >
              >Now if you want to use oracle database you may want to look into teh
              >source code of BlackBoxNoTx.rar's implementation.
              >
              >Hope this helps.
              >
              >regards,
              >prasen
              >
              >raghu wrote:
              >>
              >> hi there,Can we use oracle database instead of Cloudspace with the current
              >implementation?
              >> If possible can you please send me the example
              >> 1.ra.xml
              >> 2.weblogic-ra.xml
              >> files for connection to oracle. i would really appreciate any support.
              >> thanx, raghu.
              

  • Can we specify limit on the number of records to be fetched?

    Can we specify limit on the number of records to be fetched from the database?
    I have millions of records in my DB and I want to fetch say some 50,000 latest records to optimize the performance of reports.
    Is it possible in any version of Crystal Reports?
    Regards,
    Amrita

    Hi Amrita
    Do you have any groups in your report.  If yes then this is what you need to do: 
    1) Insert a section below on the Details section so that there is a Details A and Details B.
    2) Create the following formulas:
    @Formula1
    WhilePrintingRecords;
    NumberVar Number := 0;
    @Formula2
    WhilePrintingRecords;
    NumberVar Number;
    Number := Number + 1;
    3) Place @Formula1 in the Group Header. Format the formula to Suppress.
    4) Place @Formula2 in Details A. Format the SECTION (not the formula) to Suppress.
    5) Format the Details B section to conditionally Suppress by selecting the X+2 button INSTEAD of the selecting the Suppress box. This launches the conditional formatting Formula Editor.
    6) Enter this formula:
    {@formula2} > 3
    When you preview the report you will only see 3 records per group.
    Let us know if you need any further help with this.
    Regards
    Girish Bhosale

Maybe you are looking for