Configure berkerly db more than one database

I am now trying to write an application, I use berkerly db java edition.
now I want two database to save different thing, since the memory is limited,one database's data should all be in memory, the other database can do disk I/O. should I use two environment and create the two database separately or I create the two database in the same environment, which one is more effective and can save more memory.
Chould anyone tell me how to configure the two database(like the cache size) using some sampling code... Thanks a lot!

The above suggestions are good. You might also consider using a link table from MS Access to have the linking done right inside MS Access. 
If you can store your access mdb file on the server where your Oracle database resides this will greatly reduce your network traffic.  If the MS Access database must reside on a different machine it can still work but the gains won't be as great.  Still, this is an efficient way to do this if you can.
To create a link table in MS Access choose, New, then 'Link Table'. In the Link dialog that appears you can choose ODBC.  I recommend using the SQORA driver from Oracle that is installed with SQL Plus.
If you have to link in Crystal Reports instead you still can. However, all data from the Oracle table and Access table will be pulled to the client that hosts Crystal Reports and sorting will be done on the Crystal client.
You definitely have some good options though.

Similar Messages

  • How to configure EM Grid Control for more than one databases?

    Hi,
    I'm configuring EM on Oracle 10gRel1 on Linux. I have more than one databases in the server, and I want use IE at my PC to monitor the databases on Linux server. I can configure and access the Grid Control Console by emca for first database, but cannot configure for the second one, unless I remove the first one configurration. How can I configure EM for more than one databases?
    Thanks.

    Thank you everybody.
    Yes, I'm talking about DBConsole rather than Grid Control (sorry for misuse the term). I managed to set up DB Console for every DB in the same Linux box (10Rel1). What I did is:
    1) stop db console and agent with emctl
    2) remove repository with RepManager
    3) config with emca
    Then I can monitor individual databases from my PC (but have to login with different port).
    I'm thinking mybe I should use Grid Control instead.

  • How to configure html db on more than one database

    Hi
    how can we configure one html db on more than one database.
    I have tried to configure the DAD.conf file. Also i have tried to do it by virtual hosting.
    can anyone mail a DAD.conf file.
    Ahanks
    Ameya

    This is easy and the internet is full of examples. Here is what I used (replace the strings in ## with your values):
    CREATE LINK STATEMENT:
    create database link #YOUR_LINK_NAME#
    connect to #USER_WITH_REQUIRED_ROLES_ON_REMOTE_DB# identified by #USER_PASSWORD#
    using ' #TNS_NAMES_ENTRY_FOR_THAT_CONNECTION#';
    ALTERNATIVELY:
    create database link #YOUR_LINK_NAME#
    connect to #USER_WITH_REQUIRED_ROLES_ON_REMOTE_DB# identified by #USER_PASSWORD#
    using '(DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST = #YOUR_HOST#)(PORT = 1531))
    (CONNECT_DATA =
    (SID = #YOUR_TNS_SID#)
    After creating a link you reference the tables using the following syntax:
    table_name@link_name
    Denes Kubicek

  • How to install Runtime Platform for more than one database on one machine

    Hi,
    What the docs loosely call Runtime Platform Service is in my opinion a combination of
    A) a bunch of software (installed under an ORACLE_HOME)
    B) the actual service process
    My question: if I have more than one databases on one machine, each containing an OWB Runtime, am I correct in assuming that I have to install the Runtime Platform software only once, but there will be a separate service process running for each database, each adressing the same Runtime Platform software? So under ORACLE_HOME nothing is kept that refers to a particular database?
    Jaap.

    Yes, we use such a configuration on our site. We have one OWB ORACLE_HOME and uses up to 4 instances. Each instance has its own Runtime Service Process running.
    Regards, Silvio

  • Can I use more than one database connections in a jdeveloper project?

    I use jdeveloper version 9.0.4.0 (build 1407),Can I use more than one database connections in one jdeveloper project?

    9.0.4 is a fairly old version, so you may only find a few people who know how it worked.
    Assuming you're using ADF BC, once known as BC4J, once know as JBO, in the project, and that the architecture hasn't changed much, then the answer is only 1 connection per project.
    Programmatically you're free to use as many connections via JEE as you see fit, but ADF BC is limited to one connection.
    CM.

  • How to backup more than one database using powershell

    I am Trying to backup more than one database using the following script but no luck. I want user to type on command line the database they want to backup, e.g all databases that have "test" at the front like test.inventory, test.sales so i want
    user to type test.* and it backs up all databases related to test. Here is the script
        #$date = Get-Date -Format yyyyMMddHHmmss
        #$dbname = 'test.inventory'
        $dbToBackup = "test.inventory"
        cls
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoExtended") | 
        Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo") 
        | Out-Null
        [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoEnum") | Out-
        Null
        Add-Type -AssemblyName "Microsoft.SqlServer.Smo, Version=10.0.0.0, Culture=neutral,   
        PublicKeyToken=89845dcd8080cc91"
        $server = New-Object Microsoft.SqlServer.Management.Smo.Server($env:ComputerName) 
        $server.Properties["BackupDirectory"].Value = "C:\_DBbackups"
        $server.Alter()
        $backupDirectory = $server.Settings.BackupDirectory
        #display default backup directory
        "Default Backup Directory: " + $backupDirectory
        $db = $server.Databases[$dbToBackup]
        $dbName = $db.Name
        $timestamp = Get-Date -format yyyyMMddHHmmss
        $smoBackup = New-Object ("Microsoft.SqlServer.Management.Smo.Backup")
        #BackupActionType specifies the type of backup.
        #Options are Database, Files, Log
        #This belongs in Microsoft.SqlServer.SmoExtended assembly
        $smoBackup.Action = "Database"
        $smoBackup.BackupSetDescription = "Full Backup of " + $dbName
        $smoBackup.BackupSetName = $dbName + " Backup"
        $smoBackup.Database = $dbName
        $smoBackup.MediaDescription = "Disk"
        $smoBackup.Devices.AddDevice($backupDirectory + "\" + $dbName + "_" + $timestamp +   
        ".bak", "File")
        $smoBackup.SqlBackup($server)
        #let's confirm, let's list list all backup files
        $directory = Get-ChildItem $backupDirectory
        $backupFilesList = $directory | where {$_.extension -eq ".bak"}
        $backupFilesList | Format-Table Name, LastWriteTime

    Or i am using this script which backs up everything except tempdb but dont know how to modify this so that it backs up up all test related databases
    Is there a way that i use test.*
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | out-null
    $s = new-object ("Microsoft.SqlServer.Management.Smo.Server") $instance
    $bkdir = "C:\_DBbackups" #We define the folder path as a variable 
    $dbs = $s.Databases
    foreach ($db in $dbs) 
         if($db.Name -ne "tempdb") #We don't want to backup the tempdb database 
         $dbname = $db.Name
         $dt = get-date -format yyyyMMddHHmm #We use this to create a file name based on the timestamp
         $dbBackup = new-object ("Microsoft.SqlServer.Management.Smo.Backup")
         $dbBackup.Action = "Database"
         $dbBackup.Database = $dbname
         $dbBackup.Devices.AddDevice($bkdir + "\" + $dbname + "_db_" + $dt + ".bak", "File")
         $dbBackup.SqlBackup($s)

  • VS 2005 CR integrated report connection with more than one database

    Hello,
    I am using VS 2005 to make a reporting application. I am using the Crystal Reports Viewer and I need to know how to integrate the report login information for more than one database. Here is the VB code I have for one connection:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Partial Class _Default
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            ConfigureCrystalReports()
        End Sub
        Private Sub ConfigureCrystalReports()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
            myConnectionInfo.DatabaseName = ""
            myConnectionInfo.UserID = ""
            myConnectionInfo.Password = ""
            myConnectionInfo.ServerName = ""
            Dim reportPath As String = Server.MapPath("CleaningReport.rpt")
            CrystalReportViewer1.ReportSource = reportPath
            SetDBLogonForReport(myConnectionInfo)
        End Sub
        Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo)
            Dim myTableLogOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
            For Each myTableLogOnInfo As TableLogOnInfo In myTableLogOnInfos
                myTableLogOnInfo.ConnectionInfo = myConnectionInfo
            Next
        End Sub
    End Class
    I am new to visual basic and really appreciate any help.
    Thanks

    Hi Steve,
    Test by creating  one more function ConfigureCrystalReport1() and pass the details for database 2.
    I am not sure there is any sample for this however you can have a look to samples [here|https://www.sdn.sap.com/irj/boc/samples]
    Regards,
    Shweta

  • More than one database driver has been used

    Hi everyone, I just want to link 2 tables, one in Oracle and the second is in Access, is this possible? Please help, tahnks a lot.
    I got this message:
    "More than one database driver has been used in this report. If you want to change the database drivers use Database/Set Location.
    Please make sure that no SQL Expression is added and no server-side group-by is performed"
    This is the query generated:
    SELECT "A"."Field_in_A"
    FROM   "OracleDB"."A" "A"
    SELECT `B`.`Field_in_B`
    FROM   `AccessDB` `B`

    The above suggestions are good. You might also consider using a link table from MS Access to have the linking done right inside MS Access. 
    If you can store your access mdb file on the server where your Oracle database resides this will greatly reduce your network traffic.  If the MS Access database must reside on a different machine it can still work but the gains won't be as great.  Still, this is an efficient way to do this if you can.
    To create a link table in MS Access choose, New, then 'Link Table'. In the Link dialog that appears you can choose ODBC.  I recommend using the SQORA driver from Oracle that is installed with SQL Plus.
    If you have to link in Crystal Reports instead you still can. However, all data from the Oracle table and Access table will be pulled to the client that hosts Crystal Reports and sorting will be done on the Crystal client.
    You definitely have some good options though.

  • Creating more than one database user in oracle cloud

    I hv created an adf application, in which there are 4 models. each model is connected to different database user, where SID is same for all user. These users have some number of tables, which are used as entity and view in model project in adf application. My query is:
    I hv activated oracle cloud service for database and java. i want to deploy my adf application on cloud. so, how can i create more than one database user in cloud as i do in oracle db 11gr2? So that my all models will be connected to different database user in cloud.
    Also, which service name should i use in model.jpx? I hv used mydb as service name on my local machine.
    pls, help me to go ahead!!!!!!!!

    Hi Ajaykumar,
    To ensure you receive an accurate response to your query, I believe it would be best raised on the Oracle Java Cloud Service forum, here:
    Oracle Java Cloud Service
    Regards,
    Hilary

  • Startup issue when having more than one database on machine

    Startup issue when having more than one database on machine:
    I’ve installed two databases.
    When I shutdown one of the database and try to start it up using
    Startup pfile=’…location..’;
    I get ora-12514: TNS: listener does not currently know of service rquirest in connect descriptor
    when I try it again after 3 seconds, I get a new error, ora-01041: internal error. Hostdef extension doesn’t exist
    Shutdown and Startup gave no problems when I had one database. Why am I getting problems when I have two databases?
    I’m using: show parameter pfile|spfile; to make sure I have the right parameter locations, so the error shouldn’t be from location.
    I’ve never installed two databases on one machine, so maybe I’m making a first-timer’s error.
    Anyone know how to get this working, i.e. starting and stopping DB without issues?
    Using oracle 11gR2 on Windows 7 64bit, all is working normal.
    Thanks,
    Ayman
    Edited by: aymanzone on Jun 15, 2011 9:27 AM

    aymanzone wrote:
    my oracle_sid is set to the name of one of my databases
    echo %oracle_sid%
    shows me the name of my first database.
    Still not working though.
    When I start the services of both databases using Services, I can connect and run queries from both of the database.
    Edited by: aymanzone on Jun 15, 2011 11:47 AMFirstly ... the Oracle Service for the instance should be started for the DB you are trying to connect or start.
    Next ... from the command prompt:
    set oracle_sid=<Instance_Name>
    sqlplus sys as sysdba
    startup pfile='location of the respective db pfile'
    Now, if you want to start or connect to another DB which is on the same server (again assuming the Service is STARTED) ...
    From the same command prompt session or other ....
    set oracle_sid=<Other_Instance_Name>
    sqlplus sys as sysdba
    startup pfile='location of the respective db pfile'
    Edited by: Srikanth on Jun 16, 2011 12:27 AM

  • How can i connect more  than one database

    i would like to connect more than one database one my laptop
    now i have database one and sid=ddms
    and i would another such as sid=ddmf
    how can i connect two database on the same my laptop

    I am not sure what you mean by after built? Are you trying to export data from one database and import it into another? If so, export it using data pump making sure you have the correct ORACLE_SID. Also be sure both database have to same character set. Then change the ORACLE_SID to other database, and run data pump to import the data into the other database. Hope that makes any sense...

  • Connect to more than one database?

    Hi,
    Is there a way to connect to more than one database from Oracle form (one form)? If yes, what's the best practice to do it?
    Saad,

    hi
    u can modify Tnsnames.ora for that
    example:
    test1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = IP Address)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = test1)
    test2=
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = IP Address)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = test2)
      )

  • While connecting to more than one database

    what shold i do while connecting to more than database...
    shold i implement it using serializable class
    or shold i pass the connection object a session variable
    give me some exaple for connecting to more than one database..
    sreekanth

    Sometimes you can use Connection.setCatalog(...) to switch.

  • Connect to more than one Database from portal

    I need to reach more than one database from my portal. How is this done?

    You have several options depending on what you want to do with the data.
    1) Omniportlet: you can specify on a per portlet instance basis to what DB you want to connect (JDBC).
    2) Programmatic Java portlet: you can create as many JDBC connections as you like.
    3) DB links: you can build data-driven portlets on database objects, accessed via DB links.
    4) Programmatic PL/SQL portlet: you can build programmatic PL/SQL portlets on database objects, accessed via DB links.
    Peter

  • Updating more than one database...

    I am looking at a scenario were we, each time a change is made to several different caches, needs to update both a legacy database (main frame, non-relational = actually hierarchical) that are used by several large batch applications (that will be converted one by one over time to use the application built on top of the cache) as well as a new database (modern hardware & OS, relational, organized in a quite different way than the legacy database!).
         The sync requirements are:
         * It is REALLY bad if only one database get updated but not the other!
         * The legacy database can be about 5 minutes behind the cache
         * The new database is only used for making the cache persistent (it is fully loaded to cache at system startup) and has really no requirement at all on how much behind the cache it can be as long as data is never lost (we will use backup count = 1).
         Updating the legacy database is NOT straight-forward and will require some data transformations to be performed. They can either be done in the legacy system (if we send the change info using some safe messaging for instance) or in the new environment if we want to update the old database directly.
         A factor complicating things further is that the legacy system have some consistency requirements on the data (in particular when creating new objects that has relationships to each other, you may think about order / order row even if this is not the kind of application we have in mind).
         For performance reasons (and since it seem from another thread that partial writes is a bigger problem with write through) we would probably like to use write behind to update the new database.
         Anybody who have some experience of similar situations and can give some suggestions on how to best go about it?
         Best Regards
         Magnus

    I may also add that our current thinking is to use a "write beside" pattern for the legacy system and a write-behind pattern for the cache to update the new database. An XA transaction will then be used to make sure that both or neither the old system and the cache gets updated. Does this sound like a reasonable solution?
         Best Regards
         Magnus

Maybe you are looking for

  • Store Wouldn't Let Me Use Coupon?!?

    I'd appreciate any help that could be offered on this.  I went into the BB in Newington, NH yesterday to purchase the MacBook Air 13" for the advertised price of $899.99.  I recently moved and had a 10% off coupon that was with my change of address f

  • About loading modular applications

    Hi guys.. I have some question about the Module class.. I know it's a great feature and I truly thank Adobe guys for this new awesome class but it seems to me that each loaded application (i.e. modular applications surrounded by <mx:Module> and </mx:

  • ALV USING OBJECTS

    I AM USING LVC_T_FCAT. BUT I CAN GET THE TOTAL IN ALV REPORT DISPLAY. PLS, SOMEBODY HELP

  • Keyboard control in Captivate 8?

    Hello, I am new to Captivate. If I have two buttons labeled "Next" and "Back" and have actions assigned to each, Next would be "Go to the next slide" and Back would be "Go to the previous slide" with "Enter" assigned for keyboard control it kind of s

  • My ipod wont reply to touch

    the screen on my ipod is frozen, the home button and lock botton work but i cant unlock the device. i can move the accessability icon and use that but i can get into my ipod to use it. i dont know what happened. one minute i was using it to play musi