Accessing the same database file using different handles/cursors

Will there be any problems accessing the same database file using different DB handles in a transactional environment? We have implemented a process which have multiple transient threads coming up and initiating DB opens and read/write operations to the same database file using different handles and cursors?
Can this potentially create any problems/bottlenecks? Can someone suggest the best way to deal with this scenario?
Thanks in advance.
SB

Hi,
Berkeley DB is well suited to the scenario you describe. You need to ensure that Berkeley DB is configured correctly for transactional access, the best information describing the requirements is in the Reference guide here:
http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp.html
If there will be multiple threads operating concurrently, then you will need to design your application to detect and deal with deadlock situations.
Regards,
Alex Gorrod
Oracle Berkeley DB

Similar Messages

  • Installing multiple instances accessing the same database

    Hi,
    I want to install two different instances of Oracle 10g in two different machines which will access the same database which will be stored in the shared storage.
    Is it possible to install them without installing RAC? The instances will be one active and the other passive, so the services will be up in one server and down in the other and the switching (shutting down one server and starting up the other) will be manual.
    Two servers will be running Linux and clustered in Linux level.
    Does Oracle offers this solution without installing Clusterware software?
    Thank you

    > The instances will be one active and the other passive, so the services will be up in one server and down in
    the other and the switching (shutting down one server and starting up the other) will be manual
    Missed this part as I was thinking proper cluster and RAC.
    This is neither. Yes, this can be done using two servers and shared storage.
    Is it a good idea? Not really. As this configuration does not provide redundancy at physical database level. You loose that storage.. bye-bye database. Does not matter whether you have a 100 backup servers that can be used.
    Thus the business reasons that you are trying to meet with this config have to be clarified and expectations determined.
    Separate servers using Data Guard will be a far more superior solution in many respects.

  • Is it possible to have two DADs that access the same database?????

    Hello,
    Is it possible to have two DADs that access the same database?
    One DAD would be password protected with Authentication mode Per Package and the other DAD would not require a password/login
    If it is possible can you also give suggestions about how to do this
    Thanks
    Doug

    I HAD THE SAME PROBLEM WITH SHARING MY LIBRARY WITH MY SON. WHAT I DID WIAS CREATED A LIBRARY FOR HIS USE ONLY. IN ITUNES CLICK--FILE--NEW PLAYLIST AND THIS SHOULD ADD AN UNTILED PLAY LIST IN YOUR SIDE BAR. CLICK ON IT AND RENAME IT. HE CAN KEEP ALL OF HIS MUSIC IN THIS LIBRARY. SELECT ALL OF HIS MUSIC FROM YOUR LIBRARY AND DRAG IT INTO HIS. ONCE THIS IS DONE YOU CAN THEN REMOVE HIS SONS FROM YOU PLAY LIST. MAKE SURE YOU ONE REMOVE IT FROM YOUR PLAY LIST AND NOT DELETE THE FILE.
    HOPE THIS HELPS
    G4   Mac OS X (10.3.9)  

  • Cannot open 2 Virtual Machines at the same time to access the same Database

    Folks,
    Hello.
    I am installing Oracle Database 11gR2 RAC system using 2 Virtual Machines (rac1 and rac2) on the top of VMPlayer 3.
    The VM rac1 and rac2 run correctly when one of them is shutdown.
    Their locations are F:\VM_RAC\rac1 and F:\VM_RAC\rac2.
    While rac2 is running, I open rac1. But this error message comes up:
    Error: "Cannot open the disk F:\VM_RAC\sharerac\asm1.vmdk or one of snapshot disks it depends on. Reason: failed to lock the file."
    While rac1 is running, I open rac2. But this error message comes up:
    Error: "Cannot open the disk F:\VM_RAC\sharerac\asm1.vmdk or one of snapshot disks it depends on. Reason: failed to lock the file."
    The 2 error messages are the same. This means I cannot open 2 VMs rac1 and rac2 at the same time. When we run RAC system, we have to open 2 machines or more than 2 machines at the same time so that all machines can access the same Database Server.
    My question is:
    Can any folk tell me how to have rac1 and rac2 run at the same time ?
    Thanks.

    You need to disable disk locking, which ordinarily is performed by the first VM to prevent any other VMs from corrupting your vmdk files via uncoordinated writes. You will have to shutdown both of your VMs and edit the *.vmx flat file for each, adding lines like the following (settings taken from workstation 6, but should be nearly identical settings for VM Player 3.x):
    http://crosbysite.blogspot.com/2007/10/clustering-in-vmware-workstation-6.html
    scsi1.sharedbus = "Virtual"
    disk.locking = "false"
    diskLib.dataCacheMaxSize = "0"
    diskLib.dataCacheMaxReadAheadSize = "0"
    diskLib.dataCacheMinReadAheadSize = "0"
    diskLib.dataCachePageSize = "4096"
    diskLib.maxUnsyncedWrites = "0"
    A few comments:
    - your shared disks (scsi1) must be on a separate virtual scsi bus than the boot disk (scsi0), to allow setting the sharedbus flag as seen above.
    - you must also ensure the cache parameters and unsynced writes settings are set to guarantee that all IO is immediately flushed to the vmdk file so the other VM can immediately access the latest version of data.

  • What permission is needed for a login to access the restored database(backup from different server)

    what permission is needed for a login to access the restored database(backup from different server)
    frequently reach the situation, when vendor restores a database, but he cannot access it unless I remap or add his login to the restored database. What permssion can grant the vendor so that he can but only can access the database he restored, not all other
    databases.

    Hi George,
    According to your description, When you move a database from one server that is running SQL Server to another server that is running SQL Server, a mismatch may occur between the security identification numbers (SIDs) of the logins in the master database
    and the users in the user database. As other post, you can use the sp_change_users_login stored procedure to map SQL Server logins. Also , you can use the following statement after doing the restore database. It will
     fix the mis-mapped SID inside the restored DB.
    ALTER USER <username> WITH LOGIN = <username>
    For more information, you can review the following article.
    http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/do-you-still-use-sp_change_users_login/
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to set Different applications running on the same computer to use different Gateways?

    Dear All,
    I would like to have different applications running on the same computer to use different Gateways (both gateways are in the same subnet).
    Is it possible in Windows7 with / without a third-party utility?
    Current scenario & requirements:
    I have two internet connections. Both are in the same subnet (192.168.1.0/24) and connected to the same LAN switch
    Gateway for the first connection is 192.168.1.1
    Gateway for the second connection is 192.168.1.2
    I need to set my chrome browser & google talk to use the gateway 192.168.1.1
    I need to set my IE & skype to use the gateway 192.168.1.2
    Is it possible? Answers are appreciated!!
    Regards,
    Anees

    Hi,
    I agree with Bill. Gateway is essentially an IP address for one network to other networks. For example, you have two networks: network A and network B, to make the two networks communicate with each other, you must go through Gateway. That is, as long
    as you set Gateway, then you can make the two networks communicate with each other. The ip address for Gateway is the ip of device with routing enabled. One host machine can own multiple gateways. 
    Andy Altmann
    TechNet Community Support

  • I have written a binary file with a specific header format in LABVIEW 8.6 and tried to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

    I have written a binary file with a specific header format in LABVIEW 8.6 and tried  to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

    I can think of two possible stumbling blocks:
    What are your 8.6 options for "byte order" and "prepend array or string size"?
    Overall, many file IO functions have changed with LabVIEW 8.0, so there might not be an exact 1:1 code conversion. You might need to make some modifications. For example, in 7.1, you should use "write file", the "binary file VIs" are special purpose (I16 or SGL). What is your data type?
    LabVIEW Champion . Do more with less code and in less time .

  • Can CF and ASP Access the Same Database?

    Hello. I'm about to go into beta with a ColdFusion 8 site I
    just wrote, and I've just realized there could be a problem I
    haven't anticipated. There's another site, written in ASP, which
    will accessing the same data at the same time. The data are in
    FoxPro for DOS, which (if I have the terminology right) is a 'file
    server' database. Both my site and the ASP site will be accessing
    it through ODBC. I will be accessing it on a read only basis, and I
    believe the ASP site accesses it read only as well. However, other
    employees in the company are constantly accessing it read/write.
    The ASP site has been already up and running for some time,
    and the office manager (it's a small company) finds that he is able
    to avoid conflicts by first stopping the ASP server each morning,
    then starting FoxPro, then re-starting the ASP server. (I do not
    mean the IIS server, but a little EXE written by the ASP
    programmer, which puts up its own little window with 'start' and
    'stop' buttons on it.)
    However, I find that on my own PC, using the free Developer
    version of ColdFusion and accessing my site as localhost, if a DBF
    (database file) is opened in FoxPro (even if no one is currently
    writing to it), then my CF web site cannot access it, and vice
    versa. That is, if I start FoxPro first and open the DBF of
    interest, my web site can't access that DBF. And conversely, if I
    access it first via my web site, then FoxPro can't access it. In
    other words, the solution which works for the office manager and
    his ASP site does not work for me with CF on my local PC.
    Will matters be different in their system, where I will be
    installing my site tomorrow, along with the Standard version of CF
    8? If it matters, the FoxPro data and the Web server will be
    different boxes linked by a network. The operating system is
    Windows 2003 if I recall correctly.
    Should I be saying 'Oops!' right about now?
    I can probably come up with a workaround by having FoxPro
    write a record to an alternate DBF every time the DBF of interest
    to my site is updated, but will I have to do this?
    Thanks for your help.

    paross1 wrote:
    > there probably isn't
    > much that can be done with a database that probably
    isn't designed for multiple
    > simultaneous transactions.
    >
    > Phil
    >
    Not much that can be done to make the database robust and
    handle
    simultaneous transactions. But you could wrap all your CFML
    that
    accesses this resource in named <cflock ...> tags so
    that they are
    single threaded, thus restricting CF to one access at at
    time. Then
    wrap all of this up in a <cftry><cfcatch...>
    blocks to gracefully handle
    when the database is locked up by some other user/process.
    You will still have many times when the CF application will
    not be able
    to access the resource do to locking issues, but it will
    handle this
    gracefully and not just FAIL.
    Of course this will have serious performance, throughput and
    scalability
    consequences. But I suspect if you are using something like
    FoxPro you
    are not building an application expected to handle heavy
    load.

  • Deploying 2 entity beans in the same jar file using jboss

    i have beans namely savings entity bean, checkings entity beans and teller session beans, i'm trying to deploy it with in the same jar file. but im getting an error 'savings bean : bean expects one persistance-type'. i hope someone could help me about this. its urgent. thanks

    Although I am not super familiar with Jboss, my guess is that looks like the ejb xml sheet is not specifying the persistance type correctly for an entity bean. Take a look at your ejb xml sheet or post it if necessary.
    -Dat

  • What is the best way to work on the same InDesign file in different locations?

    I'm the creative director for an in-house creative department. We produce 37 catalogs and a multitude of print and electronic advertising each year, plus a variety of other items. Our problem is that we have two locations. In the current set-up, if I want someone at one location to work on a project but the files are at the other location, I have someone at the one location package all the materials involved with that project and either upload them to DropBox or copy them to an external drive and ship it. Not very efficient.
    We have servers at both locations but there are different files at each location. I'm able to remote from my computer into a computer at the other location, but if everyone were to do that we would need double the number of CC subscriptions and computers, and it would bog down the internet connection that the entire company uses. I'm also connected to the server at the other location (again, over the internet) and have opened InDesign files that reside on the server there and tried to work on them here (over the internet) but that is much slower than remoting in.
    The only way I can think of to alleviate this problem is to run duplicate servers at each location, but this would be an update and back-up nightmare (unless I'm missing something). Is anyone operating this same way and, if so, how are you dealing with it?
    We can't be the only company that works like this. Maybe I'm just missing something.
    Thanks,
    Lloyd

    We have servers at both locations but there are different files at each location. I'm able to remote from my computer into a computer at the other location, but if everyone were to do that we would need double the number of CC subscriptions and computers, and it would bog down the internet connection that the entire company uses. I'm also connected to the server at the other location (again, over the internet) and have opened InDesign files that reside on the server there and tried to work on them here (over the internet) but that is much slower than remoting in.
    One tiny thing bothers me about your setup. And you said it above, you would need double the number of CC subscriptions and computers. Are you using two people to access under the same CC subscription. Even if they are working in two different time zones, it is technically violating the rules and spirit of the rules of being able to install on two machines at the same time.
    You're allowed to install for two machines for one person working at the office and then at home. One person wouldn't be in two different locations at the same time.
    Meanwhile, regards your problem, I remember reading about a system many years ago that was pretty simple. It was based on an old newspaper/magaizine system of "who has the folder." (Created before computers) In the old days, if someone was working on a file, they left a folder with their name in its place.
    In the computer age, one person, working on a file, would move it to their desktop. Then, they would leave an empty folder with that document's name where it had been as well as their initials. So if I took "Shoes and Socks Fall 2015.indd" out, I would leave a folder named "Shoes and Socks Fall 2015_smsc" in its place.
    And if it was necessary for me to have the images, I would make a copy of them onto my machine so I wouldn't tax the network. Then when I was finished, I would copy the file back to the server. The links should show up. If not, we could relink later.
    With the empty folder on the server, anyone could tell who is working on a project. So if they were late getting it back, you could email them.
    It relies on the people being disciplined enough to make the folders, move the docs, etc. But since you've ruled out all the systems for companies with dumb employees, you're going to have to make them follow the rules.

  • Accessing the same mail from 2 different accounts?

    I have two accounts set up on my Mac: Adminstrator (under which all my email accounts live); and a separate "writing" account where I do...what else...WRITING.
    Is there any way to alter the mail preferences to allow complete access to the administrator's email from the writing account? This would allow me to check/send email using the SAME email accounts from either mac account (so I'd see the same inboxes and email folders and their assorted messages).

    It can (you might want to ask whomever handles your accounts if they have considered IMAP. POP is simply not as flexible. Many major email providers use it as well as private ones. Gmail, MobileMe, AOL are all IMAP.)
    Set both accounts up with the same information. Go into both of them and go to Mail > Preferences > Accounts > Advanced and ensure that "Remove copy from server after retrieving a message" is NOT checked. Otherwise you won't get all the messages in both places.

  • CAN ONE HAVE THREE COPIES OF THE SAME DATABASE AND USE THEM ALTERNATLEY IN LIGHTROOM TO SEARCH FOR KEY WORDS, ETC?

    I have two back ups and a traveling copy of my work.  Each is 4 terabites and growing.  I want to apply keywords to he images in Lighroom, copy the new information to the other two drives which are backups and use any of the three in any of three computers.  The keywords are installed in all three computers, but how does the computer know it is a different hard drive without keying in all three hard drives.

    If each drive is set up exactly the same, with all image paths concurrent, you should be able to substitute the .lrcat with the newly keyworded info. into any one of them and that should bring in all info with a minimum of work. However, it does require diligence in keeping good track of which catalog is the "Master".

  • Is it possible to give multiple users the same email account using different individual user ids/passwords (iMS 5.1)?

    Hence, a manager could let one or more assistants access the manager's email. Also one could set up a group email account and multiple users with different id/passwords could process/manage the account.

    Yes, look in the admin guide for the shared folders section. This in essence allows you to delegate permissions of individual mail folders to other users.
    The functionality is being enhanced for iMS 5.2 due out shortly according to iPlanet.

  • Export & Import in the same DataBase

    Hi,
    I'm trying to export and import in the same DataBase but in different User/Tablespace, the imp procces create the objects in the same Tablespace of the export. What can I do to create a copy of a schema in the same database?
    Thanks. JEA

    I am not sure if I am reading your question correctly, Create a new user in your database.
    Use the command line (DOS) command 'exp80 username/password@hoststring'
    there are a number of parameters here, you can find their meanings online if you search for 'export ORACLE command line parameters', I don't know what your requirements are but you have to set the FILE parameter with the name of the file you wish to store your output in(ext should be .dmp).
    To import, use imp80 and log on as the new user you created then the following parameters need to be set:
    File= your file name
    SHOW = n
    IGNORE = n
    GRANTS = y
    ROWS = y
    FROMUSER = old user name
    TOUSER = new user name
    TABLES = *
    I hope this helps.
    SE

  • Context Sensitive Help: Creating Links to the same .htm file

    Hi Everyone,
    My Help Context Sensitive application requires the exact name
    of the .htm file to
    bring it up. However, previously different fields on the
    application used to have
    different .htm file, associated with them. However now, I
    have them all within
    the same .htm file. But, I have to still keep the old links.
    As a results, I have to
    keep copying the same .htm file into different names to use
    the previously
    established link.
    Is there anyway, I can link all these .htm files to one .htm
    file (call it origin.htm)
    such that while the application still finds the old .htm
    files, bu they are linked to
    orgin.htm such that a required modification be only done in
    origin.htm file.
    I hope, I have been clear in expressing what I need.
    thanks Alot.

    Hi Oufi
    One way you could accomplish this is by converting each of
    these .HTM files to something called a
    redirect page. You can read more about redirect pages in the
    article linked below:
    Click
    here to read the article
    Sincerely... Rick

Maybe you are looking for

  • How to install windows 8 on mac

    I just bought windows 8 pro and am trying to install in on my windows. I have previously installed windows 7 via bootcamp but just deleted the partition because I want to start over from scratch with windows 8. I understand bootcamp needs to be updat

  • Service desk integration with 3rd party tool

    Hi all, I've problems understanding the setup of connecting a 3rd party service desk tool with solman itsm. So far it's clear that I need to activate and configure the service provider and consumer in soamanager. The webservice then will be called by

  • What is the "best" feature phone to upgrade?

    I am due for my upgrade on my current phone (which I love most of the time) my LG EnV 3 which I have had for 2+ years. Upon learning that Verizon discontinued the EnV series I was really upset, especially since the only good phones left are smartphon

  • Toolbar placement in 9.x Standard within IE8

    I'm having a bit of difficulty with the configuration of a 3rd-party Acrobat plugin (msi installation package) and a custom registry value provided by the vendor that enables the enable the 'Comments and Markup' toolbar, for the Acrobat plugin in IE8

  • Extra request reaching the servlet

    Hi, I have written a servlet which returns me some html code that I display in the browser. The servlet is working fine. My problem is with the HTML code that sends POST request to the servlet. When the first POST request is send to the servlet, all