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.

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.

  • 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

  • Can Bootcamp and Parallels share the same Windows applications and data?

    I'm looking at getting an Intel iMac which will let me throw away my old PC - Yeah!
    I will have a couple of Win apps that I will need to hang on to (Quicken - Quicken for Mac is horrible, but that's another tghread). Anyway, can Bootcamp and Parallels share the same Windows applications and data?
    My thought would be to allow my wife to access Quicken from Parallels and not have to reboot. She will only need lightweight access and the overhead of running virtualization wouldn't impact her. I, on the other hand, would want to occasionally boot natively into Windows and run the same application with the same datafile. Is this possible?
    Thanks and looking forward to joining the MacIntel world!

    Thanks for all of the freplies. I suspected that BootCamp and Parallels could not shar ethe same partition, but wanted to verify. To address some of the other posts:
    Re: Quicken vs MoneyDance - I looked at MoneyDance a while back and while it is comparable to Quicken for Mac, it isn't comparable to Quicken for Windows (ergo, Quicken for Mac isn't comparable to Quicken for Windows!). But, as I said, that is a topic for another thread!
    Re: Using Bootcamp/Parallels for only one app: I actually have several apps that I still need access to on Windows. I work with many business applications than only run/are supported on Windows as well as receive some complex Office documents which Office for Mac cannot handle. Quicken (for Windows 2007) was just the best example of a consumer app where I could see wanting access from both OS X and Windows.

  • Will Verizon Stop encrypting sim cards for iPhones so users can talk and surf at the same time?

    Will Verizon stop encrypting iPhone sim cards so users can surf and talk simultaneously?

    I can prove that this is not the case. I travel abroad monthly and have sim cards for these 2 countries i frequent and i can surf and talk at the same time. The claim that it needs another antenna does not support my findings. Can we be more transparent please. As a costumer i find it highly inconvenient to have to hang up a call with someone just to access an email.
    >> Personal information removed to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • Can itune and ipad have the same user name?

    Setting up new ipad, can ipad and itunes have the same user name being my email? 

    What do you mean by "user name"? They can, probably will, use the same iTunes Apple ID, if that's what you're asking.

  • Can I change two devices of my Id and assign new id's and still access the same cloud.

    After ISO8 my sons iPad rings when I receive a call. I have two 5c's and an iPad under one apple id. Can I assign a new id to my wife's phone and my son's iPad and then all of use the same cloud under the new update? Will my wife lose her contacts? Im thinking what I need to do is start both devices from scratch and assign new id's with different emails and then add them to family sharing. Am I correct here, I just want to verify before attempting so I do not lose anything or create unnecessary backlash in my direction. Thank you for any assistance

    If your goal is to stop your son's iPad from ringing when you receive a call, all you need to do is go to Settings>FaceTime on his iPad and turn "iPhone Cellular Calls" off.

  • Can two datasources point to the same database?

    Can two unique datasource names point to the same MS Access Database?

    I got handed a directory of files to set up two coldfusion sites on a new server. What I have is two websites which both have a gallery page with identical contents, see Jembetat.com and SaharaAfricanGallery.com. In the the files I got in the Jembetat directory I have a single database "jembetat.mdb", in SahraAfricanGallery directory I have two databases "jembet.mdb" and "sahara.mdb" The Jembetat site refers to a dsn titled "Jembetat_accesscf_jembetat" pointing to the "jembetat.mdb"  and the sahara site to a dsn titled "sahara20049216_accesscf_jembetat". Interestingly enough I believe all three databases are identical. Currently I am pointing the jembetat dsn to the jembetat database in the sahara directory and the sahara dsn to the sahara database in the sahara directory. In my mind however if the client makes a change on one website then he would have to manually change it on the other unless I point poth dsn to the same directory.

  • Can several computers/users access the same profile?

    I want to share my zotero database with others. Is that possible? (All of them with the same access level)

    Sal,
    As this article in the Apple Knowledge Base explains the trick is to move the iTunes Music folder, not the entire iTunes folder, to "a publicly accessible location" and I believe they mean to suggest C:\Documents and Settings\All Users\Documents\My Music as a good place.
    It is important that the iTunes Library files remain in Sal's Documents and Sal's Wife's Documents.

  • Mail on iMac not accessing MS Exchange server but both iPhone and iPad access the same account with no problems.

    I have been using an iPhone and iPad to access my work emails via our MS Exchange server for a number of years now with no problems at all.  I recently replaced my home PC with an iMac (first Mac I have owned) but cannot get it to communicate with the exchange server.  I've checked and re-checked the information on the iMac and my iPad - I even deleted the mail account on the iPad and input the details concurrently with setting up on the iMac - but the Mac will not access the exchange server.
    I receive the message "The Exchange server "---------------" rejected the password for user "------"  Enter you password again or cancel."  I am using the correct password.  iPad and iPhone are logging on using that password fine.  iMac just ends up repeating this message.
    Our IT support at work assure me that there is no reason from their end for it not to work, and reasonably point to it working using the iPhone etc.
    I'd be extremely grateful if anyone can provide a solution to this basic, but extremely frustrating, little problem.

    iPhone and iPad use a different way of accessing the server.
    I don't know the exact details, but we are using Zarafa instead of Exchange and have the same problem:
    iPhone and the likes can connect to Zarafas z-push interface, which is some identical interface to the native Exchange interface, while the desktop e-mail application tries to interface with the web front end (via http) of the server.
    These are completely different setups and it depends on the actual installation of the server to get this going.
    So, you will most likely need different access parameters for the desktop - and the web mail feature has to be enabled on the Exchange server.
    In my opinion using the web mail interface is just silly. On the other hand, the native protocol has less features comparedto the web front end, so you are somehow stuck with sins of the past.
    Good luck!

  • Can multiple XP users access the same iTunes library?

    Because I'm having a REALLY hard time getting that to work at all. I've moved my entire iTunes folder into 'Shared Documents' so that all users should be able to access it and changed the option in iTunes Preferences to the correct 'all users' path, but iTunes still tries to find the info in 'my' (sal's) documents instead of 'all.'
    Anyone figure this out, or does it somehow break the EULA and isn't supported? The wife and I just want to use the same library since we're on one computer. Seems silly to not allow a user with admin rights to allow other users access.
    Thanks,
    Sal
      Windows XP  

    Sal,
    As this article in the Apple Knowledge Base explains the trick is to move the iTunes Music folder, not the entire iTunes folder, to "a publicly accessible location" and I believe they mean to suggest C:\Documents and Settings\All Users\Documents\My Music as a good place.
    It is important that the iTunes Library files remain in Sal's Documents and Sal's Wife's Documents.

  • Can two networked Macs access the same mailbox in Mail?

    I recently purchased an iMac G5 and have it networked with my flatpanel iMac G4. I would like to be able to open Mail on either Mac and have them both read the same mailbox. Is this possible without having to use/purchase another email application?

    Firefox doesn't do email, it's strictly a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • Using more than one PU and PC for the same database

    I have a scenario described here: [http://www.seamframework.org/Community/UsingTwoParallelNestedConversationsWithParentAtomicConversation|http://www.seamframework.org/Community/UsingTwoParallelNestedConversationsWithParentAtomicConversation]
    which uses Seam, EJB3, JPA, Hibernate, Richfaces (modalPanel) and JSF.
    The question I have is the following:
    is there any negative consequence (memory consumption, performance hit, etc.) of using more than one persistence unit in the persistence.xml that points to the same EntityManagerFactory? I was thinking of having one PersistenceContext (Seam-managed PC - an extended PC which is conversation-scoped) which uses one PU and reserving the other PC for the modalPanel forms and backing beans (SFSBs).
    The reason I needed to use this solution/approach is so that when using Hibernate MANUAL flush with SMPC, I can achieve isolated synchronization of the PersistenceContext without updating values in the modalPanel forms and vice versa.
    Any tips on best practices or alternative solutions? thx.
    persistence.xml snippet:
       <persistence-unit name="boBETS">
          <provider>org.hibernate.ejb.HibernatePersistence</provider>
          <jta-data-source>java:/boBETSDatasource</jta-data-source>
          <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
             <!-- <property name="hibernate.hbm2ddl.auto" value="validate"/>   -->
             <property name="hibernate.show_sql" value="true"/>
             <property name="hibernate.format_sql" value="true"/>
             <property name="hibernate.generate_statistics" value="true"/>
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/boBETSEntityManagerFactory"/>
             <property name="hibernate.default_catalog" value="boBETS"/>
             <property name="hibernate.default_schema" value="dbo"/>
          </properties>
       </persistence-unit>
       <!-- using boBETS2 for ListValueParamAction for now! trying to isolate the em.flush() such that we can achieve atomic conversations for the
       base form as well as the popup form! -->   
       <persistence-unit name="boBETS2">
          <provider>org.hibernate.ejb.HibernatePersistence</provider>
          <jta-data-source>java:/boBETSDatasource</jta-data-source>
          <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
             <!-- <property name="hibernate.hbm2ddl.auto" value="validate"/>   -->
             <property name="hibernate.show_sql" value="true"/>
             <property name="hibernate.format_sql" value="true"/>
             <property name="hibernate.generate_statistics" value="true"/>
             <property name="jboss.entity.manager.factory.jndi.name" value="java:/boBETS2EntityManagerFactory"/>
             <property name="hibernate.default_catalog" value="boBETS"/>
             <property name="hibernate.default_schema" value="dbo"/>
          </properties>
       </persistence-unit>What happens if I were to have 10 PUs and 10 PCs in the same app? Whether they're all pointing to same DB or not. What's the consequence of using "too many"?

    Yes, you can use multiple iCloud accounts in multiple User Accounts on one computer, but, as you know not multiple iTunes Match accounts. Keep in mind that the two services are not the same.
    Since you've posted your question to the iTunes Match forum, which it really doesn't pertain to, you might want to also post it to the iCloud on my Mac forum.

Maybe you are looking for

  • How to repaint a JTextArea inside a JScrollPane

    I am trying to show some messages (during a action event generated process) appending some text into a JTextArea that is inside a JScrollPane, the problem appears when the Scroll starts and the text appended remains hidden until the event is complete

  • Help with texting problem

    My wife and I have cell phones under the same Verizon plan.  She can initiate texts to my phone and I can reply.  However, text msgs that I send to her are "not delivered".  I am able to successfully send new text messages to other iphones.  Anyone k

  • Drag and drop tabs not working

    Dragging and dropping tabs no longer works. I cannot drag a tab out to a new window or reorder the tabs. This used to work and is a very nice feature. Reordering bookmarks by dragging them around also appears to be broken. Disabling plugins or resett

  • SQL Dev 1.5.4+: Scripting DDL and data dumps?

    In SQL Dev 1.5.4, can I script a DDL and data dump? If not, what about 2.0? If not 2.0, has anyone requested this functionality so I can vote for it? I find it frustrating that, while doing a Database Export, I can't even pre-declare (e.g. save) the

  • Extended Classic PO Replication Issue

    We currently use the extended classic scenario for SRM 4.0 and ECC 5.0.  After a recent system refresh purchase orders currently no longer replicate to the ECC system in our Q system.  I've confirmed that the RFC destinations are set up as well as ma