Is it a bad idea to use a single read only Connection?

I am developing a client/server application, where each client request executes in a separate thread. Currently i create a new Connection object for ANY database access. I am wondering if there is any advantage changing this, to use a single Connection object for read only access, but still creating new Connection objects for read/write access.
Does anyone have any opinions on this matter?
I am aware that if i go with this approach, and someone causes a SQL exception on the read only connection that it will be closed. Right now this appears to be the main disadvantage to this approach.

I don't like the single, read-only connection idea.ack
A single connection throughout the execution of the
application has several security disadvantages. It is
also less scalable. I've read other problems
associated with it but I none come to mind at the
moment.What are the security implications that you speak of?
I think for the type of application i am developing,database security is not a concern, as all users are able to access the same tables.
Basically in our application, the security is in the application domain, not the database.

Similar Messages

  • Is it a bad idea to use Task.Delay() in a polling function?

    Is the following a bad idea considering the expense of Task.Delay()?
    async void WatchDog()
    while(!bDisposed)
    //check some things
    await Task.Delay(100);
    Hong

    I've not used the DispatcherTimer, so I can't say anything from experience about how efficient it is or not. The few times I needed this sort of functionality in the few WPF apps I've done, I've used Task.Delay() ... I agree that it is certainly
    a handy option. Most of my polling-type of work has been in non-UI situations (Windows Services), creating my own threading (and using Thread.Sleep()).
    Ah, WinRT ... didn't know that was the platform you're writing for.
    I've got no experience with WinRT. I don't know if there's a separate MSDN forum for that, the only thing I could find was a forum for Surface (https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=surfaceappdevelopment),
    but I don't know if posting questions there would help you or not. Probably the WPF forum would work just as well (https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf).
    ~~Bonnie DeWitt [C# MVP]
    http://geek-goddess-bonnie.blogspot.com

  • Is it a bad idea to use Time Capsule to access my iTunes music?

    I'm thinking about putting all of my music on my time capsule and making iTunes access it through that.
    Is this a bad idea for any reason? I'm thinking that there could be a few seconds of delay when playing a song or something, which I don't really mind.
    The other thing I thought is that this could be bad because if my Time Capsule fails, then I lose my music, whereas if I store my iTunes music folder on my computer, it will be backed up by Time Machine, and therefore be in 2 safe locations instead of 1.
    Anybody have any thoughts/suggestions?

    Csound1 wrote:
    Roger Wilmut1 wrote:
    Csound1 wrote:
    That was going to be my riposte,
    You should have posted your riposte post-haste, not post- the posted riposte post that just passed.
    There you go again, my head spins
    But who is on third!?!?!?!?!!?!?!?!?

  • Is it a bad idea to use NVIDIA's "reference driver"?

    Boot Camp set up my iMac with NVIDIA GeForce GT 640M graphics card with driver version 332.28.  NVIDIA has a "reference version" of 334.89.  Since the 640M is of course a mobile chipset they do not provide drivers for it (I never understood why this was) but rely on the manufacturer however they now apparently put out these "reference drivers".  Do you think this is worth a shot?  Has anyone tried them?

    No, it's not a bad idea.
    I heard that in the past years Apple locked the driver from easy updating, but now you can just update as with every other PC.
    For exampe, with Apple stock driver (as of early 2013, I have the GT650M) Battlefield says that I could have problem.
    I always updated and everything worked fine (even if I had a lot of problem with Boot Camp and Windows).
    The update mantains the overclock of the card (as some cards are overclocked by Apple).
    Sorry for my english.

  • Design ideas for retrieving Data for Read Only

    Hi All,
    Currently I am in the process of evaluating different design ideas for the search functionality of my application. I am looking for a best option for retrieving the data by executing some complex sql queries with huge query criteria and showing the single or multiple records to the user. But the data is read only. This may involve pagination if the number of records exceeds the page limit.
    There are various options to implement this like JDBC and JDO or using some persistance framework to retrieve the data objects. Please suggest me about a good option for this.
    Thanks in Advance
    Durga

    Currently I am in the process of evaluating different
    design ideas for the search functionality of my
    application. I am looking for a best option for
    retrieving the data by executing some complex sql
    queries with huge query criteria and showing the
    single or multiple records to the user. But the data
    is read only. This may involve pagination if the
    number of records exceeds the page limit. This can typically be handled with a Fast Reader, though this is a coding ideom rather than a true design pattern.
    http://java.sun.com/blueprints/patterns/FastLaneReader.html
    Please suggest me about a
    good option for this.Apache Lucene is worth considering,
    http://lucene.apache.org/java/docs/

  • Using cache for read only data

    In my application I have to display some read only data (in number of drop down present on several portlets)
    this data might be driven from the database or from some XML/property file.Not decided yet.
    for example : Country /state/City/Zip code etc..
    Kindly let me know how can I implement the same in Weblogic Portal 10.0.
    Do I have to use some third party caching mechanism like Hibernate cache for this
    or
    Weblogic portal do support caching ??
    Please suggest the all possible soultions to implement this.

    Cache cache = CacheFactory.getCache("yourCache"); //any name can be passed, and you can create as many as you want , perhaps by functionality, perhaps by size etc. If you want to configure statically you must use this name in the xml file. If you define it in the xml file , you can administer the cache from Portal Admin
    cache.put("key","value");
    cache.get("key");
    There are other advanced things you can do like Time To live / flushing / auto reload the cache which is all described in the javadoc
    regards
    deepak

  • Using CURRENT_ITEM_NAME in Read-Only Logic??

    Is there a way to get the current item name in the read-only sections? I'm trying to pass the item name to a function to decide if it should be read-only.
    Thanks!
    btw, I'm using version 2.2.0.00.32

    Hi
    I'm trying to do same thing here.
    I've got a db function, called from each item on a page, that is passed the item name and returns a boolean value which determines whether an item is read only or not.
    I'm looking for an APEX system variable/function which will give me the current item name rather than hard code the item name into each individual call.
    Cheers
    Using Apex Version 4.0.1.00.03.

  • How do I create a PDF form for submission that can be used by Acrobat Reader only users?

    I am attempting to create a PDF document in Acrobat Pro with fields that can be submitted (via email) by users using only Acrobat Reader.
    I have tried changing the properties of the 'Submit' button, although I am not sure what I am doing wrong.
    Can anyone please help?
    C.

    I created a form using Adobe LiveCycle and added the submit via e-mail button. One change which I made was in the XML script I changed submission type to pdf, so that thepdf form itself would be e-mailed. This works fine if I use Adobe Pro 8, but when I tried the same using only Adobe Reader 7.0, it would not let me e-mail the form along with a message "This operation is not permitted".
    Any comments?
    Thanks

  • Using "route-target import" only connected routes?

    When using the route-target import, the only routes imported are ones directly connected on one of the other PE routers. How does one get the advertised routes and the connected routes imported?
    PE1 -- PE2
    |
    |
    PE3
    Customer's remote site attaches to PE1 which peers to PE2. PE2 connects to Customer HQ.
    Another VRF (100:110) provides a centralized service that will be used by several different customers. Some of the subnets for this shared service are directly connected to PE2 while other subnets are directly connected to PE3.
    Since PE1 and PE2 were already peered, I thought all that was needed was an import statement to get the routes from the shared service vrf into the customer's vrf.
    PE1:
    ip vrf customer1
    rd 100:105
    route-target export 100:105
    route-target import 100:105
    route-target import 100:110
    When I do a 'show ip route vrf Customer1' the only routes that appear are the ones directly connected to PE2. I then peered PE1 to PE3, creating a full mesh but no other routes appeared in the routing table.
    PE1 -- PE2
    \ |
    \ |
    \ PE3
    I plan to use an export map and import map to filter the networks to the desired ones, but in this example, should not all routes be seen from the shared services VRF (100:110)?
    Thanks!

    Frank,
    Performing the import on one PE doesn't cause that one PE to start advertising the imported prefixes to other member of the same VRF on other PEs.
    If you want the prefixes from the shared services VRF to show up in the customer VRF on all PEs, you need to import RT 100:10 in VRF Customer1 on all PEs.
    Hope this helps,

  • "Upgraded" to 10.7.4. from 10.7.3. Now I get "Firewire unable to detect devices". I'm using a microtek 9800 xl scanner using vuescan with firewire only connection. Please help!

    i've been writing back and forth with Ed Hamrick, the guy who created vuescan for my scanner, since microtek stopped making drivers. he can't figure out the problem either. i can't find answers anywhere online, and i need this scanner working yesterday. i got it to work on my laptop since that's still running 10.7.3, but that's no practical. *** did .4 do that screwed this all up??

    ok, unexpected. i used a firewrire to usb cable instead just to see. that worked! guess that's how i'll go moving forward. hopefully this helps the one other person on this planet that bought this scanner! ;P

  • Using VDBench with read-only filesystem ?

    I wanna run a VDBench session with format, then change the fs to read only and run VDBench again with only read ops..
    Is this thing possible ?
    Right now im getting this error :
    16:41:58.797 localhost-0 : 16:41:58.797 common.failure():
    16:41:58.797 localhost-0 : java.io.FileNotFoundException: /mnt/ibox054/node-1/fs14104394011/no_dismount.txt (Read-only file system)
    16:41:58.797 localhost-0 :      at java.io.FileOutputStream.open(Native Method)
    16:41:58.798 localhost-0 :      at java.io.FileOutputStream.<init>(Unknown Source)
    16:41:58.798 localhost-0 :      at Utils.Fput.<init>(Fput.java:61)
    16:41:58.798 localhost-0 : 16:41:58.798 common.failure(): System.exit(-98)
    16:41:58.798 localhost-0 :      at Utils.Fput.<init>(Fput.java:34)
    16:41:58.798 localhost-0 :      at Vdb.InfoFromHost.checkAutoMount(InfoFromHost.java:978)
    16:41:58.798 localhost-0 :      at Vdb.InfoFromHost.getInfoForMaster(InfoFromHost.java:298)
    16:41:58.798 localhost-0 :      at Vdb.SlaveJvm.getMessagesFromMaster(SlaveJvm.java:212)
    16:41:58.799 localhost-0 :      at Vdb.SlaveJvm.main(SlaveJvm.java:383)
    So it looks like VDBench demands a writable fs to work , even if only read ops exist.

    Thank you for the SUPER fast response!
    File downloaded successfully, but :
    Is it trying to change the vdb_control.file ?
    17:20:11.534 All slaves are now connected
    17:20:12.605 localhost-0 : 17:20:12.605 common.failure():
    17:20:12.605 localhost-0 : Abort requested: java.io.FileNotFoundException /mnt/ibox054/node-1/fs14104394011/vdb_control.file (Read-on
    ly file system)
    17:20:12.606 localhost-0 : java.io.FileNotFoundException: /mnt/ibox054/node-1/fs14104394011/vdb_control.file (Read-only file system)
    17:20:12.606 localhost-0 :      at java.io.FileOutputStream.open(Native Method)
    17:20:12.606 localhost-0 :      at java.io.FileOutputStream.<init>(Unknown Source)
    17:20:12.606 localhost-0 : 17:20:12.606 common.failure(): System.exit(-98)
    17:20:12.606 localhost-0 :      at Utils.Fput.<init>(Fput.java:61)
    17:20:12.606 localhost-0 :      at Utils.Fput.<init>(Fput.java:34)
    17:20:12.607 localhost-0 :      at Vdb.ControlFile.writeControlFile(ControlFile.java:86)
    17:20:12.607 localhost-0 :      at Vdb.FileAnchor.initializeFileAnchor(FileAnchor.java:268)
    17:20:12.607 localhost-0 :      at Vdb.FwgRun.startFwg(FwgRun.java:104)
    17:20:12.607 localhost-0 :      at Vdb.SlaveWorker.doFileSystemWorkload(SlaveWorker.java:264)
    17:20:12.607 localhost-0 :      at Vdb.SlaveWorker.run(SlaveWorker.java:131)
    17:20:12.944

  • Used my card reader to import images, now see "incompatible JPEG" on images in camera

    I have a Canon Power Shot A720 and used the card reader to import photos into the organizer.  Now when I go back to erase some images from the camera I see many, but not all, of my 'once' images blacked out with a grey/white box in the center & a yellow question mark. Under the box it says "incompatible JPEG".  What does that mean?  It's never happened to me before, but I usually import my images directly from the camera.

    Hi,
    I'm not sure I understand your question since it's been a while since I had
    trouble.  When I had the trouble I was downloading from my camera and
    storing them in the Organizer.  My problem came when I edited those images
    and RENAMED them.  I guess the organizer didn't recognize the renamed
    photos?  Those were the images which had the yellow check mark.  I now use a
    card reader only, and I store them in 'Pictures' instead of the PSE
    organizer.  I haven't had any more problems.   I think the Organizer, when
    used properly, would be the best choice.....I just couldn't figure it out!
    Frankly, I just didn't understand the Organizer and was used to my own
    method for storage.  I think that's what messed me up.  I had help from a
    computer technician to retrieve those images, and I haven't had any problems
    since.
    As for deleting images, I only delete images from my camera by using the
    delete on my camera.  I never, never delete from my card/camera by using the
    prompt from my computer, like "do you want to delete these images from your
    camera?"
    Good luck!
    Donna
    I don't if I helped you at all.  You're welcome to write back or hope for a
    really good explanation on the forum boards.

  • Read only text Items uses the maximum width

    Folks,
    I have a form with 3 regions and each region has 6 or more text items each with a different width (40, 30 24, 2...). I am using a Read Only Condition Type on all these items to disable them. I am setting the background color as bgcolor="#DCDCDC" in the Read Only Element Table Cell Attributes.
    All my elements are disabled (Gray color) but with the maximum width of 40 bytes. I don't want a 2 byte text item 40 bytes long and grayed out. How can I set a specific width for individual items in Read only Condition? Please help
    Thanks
    Raje.

    Try this alternative by disabling the HTML Form Item at the required process point.
    I added this JavaScript to the HTML Header of the page which will allow me to disable the required item, plus set its background and color:-
    <script language="JavaScript1.1" type="text/javascript">
        function disableFormItem(p_item, p_background, p_color){
                        disItem = document.getElementById(p_item);
                        disItem.style.background = p_background;
                        disItem.disabled = true;
                        disItem.style.color = p_color;
    </script>In the Region Footer of the Region where my items are located I added this JavaScript code:-
    <script language="JavaScript" type="text/javascript">
       ** Only disable the required Form Items if the Primary Key value is present,
       ** in this case it is P12_UEI. (Won't be present for new records as populated
       ** by on-insert db trigger and sequence.)
       if (html_GetElement('P12_UEI').value > 0)
          disableFormItem('P12_URESI', 'lightyellow', 'black');
          disableFormItem('P12_UZI', 'lightgray', 'black');
          disableFormItem('P12_UBI', 'lightgray', 'black');
    </script> The resulting page is a lot better looking than using the APEX read only text item.
    Regards,
    Phil

  • TS1702 New i phone maps, is backwards, there is no way you can use this app now. bad idea to launch something without doing more research.

    this app you cannot use now, bad idea before releasing it.

    It takes two sides to agree, I seriously doubt it was ever going to happen. Or they have demanded some outlandish amounts as they are trying to do with Motorola Mobility patents.
    I honestly don't think there is anything wrong with the app, there is a lot wrong with the geobase from TomTom. And I'm sure it will be fixed, just like Google Maps was. Do you remember when it was first released?

  • MAX(SummaryNum) +1 bad idea, but how to use sequence part composite column

    Hi,
    My relational mode is as follows
    Policy (policynum PK) has 1:M with Summary (policynum FK, SummaryNum part of PK, other columns part of PK)
    Basically for each policy users can enter notes with SummaryNum 1, 2, 3, 4.... These numbers are shown to the user for tracking purpose. I need to make sure summary notes for EACH policy start with 1 (cannot really use sequence in the table in the strictest sense) and are incremented by 1. The current Oracle form basically creates the next highest possible value of SummaryNum by adding one to the currently available highest value. In brief, it is like a sequence number for summaries of a particular policy in the summary table.
    PRE-INSERT
    SELECT MAX(SummaryNum ) + 1
    FROM Summary
    I am trying to replicate this in ADF BC (using 11g) and know that not using sequencing and adding one to get the next number is a very bad idea due to concurrency challenges (transactional ACID properties). The reasons are as follows.
    •     Using MAX(policy_memo_seq_num) + 1 is not scalable,
    •     It will lead to duplicates in a multi-user environment, whether ADF BC, Oracle Forms, or any other technology
    I also know how to use create a sequence in db, a related trigger, and then set the attribute in EO properties as DBSequence. My challenge is that since SummaryNum is not a primary key, and instead is part of a composite key in my case, how do I make sure that summary notes for EACH policy start with 1 in the Summary Table.
    I appears that i cannot really use sequence in the table in the strictest sense as this will mean that for policies the summaryNum will start from the next available sequence number, but what i really want is to have it start by one for all policies.*
    I would appreciate any help.
    Thanks,

    Not sure if there is a better way, but here is one way. Let's say your table was like this:
        SQL> desc versioned_item
         Name         Null?    Type
         ID           NOT NULL NUMBER
         VERSION      NOT NULL NUMBER
         DESCRIPTION           VARCHAR2(20)and lets say your data looked like this:
        SQL> select * from versioned_item order by id, version
                ID    VERSION DESCRIPTION
              1001          1 Item 1001
              1001          2 Item 1001
              1001          3 Item 1001
              1002          1 Item 1002
              1002          2 Item 1002
              1003          1 Item 1003To select only the rows for the max-version-id, you could do this:
        select id, version,description
        from versioned_item
        where (id,version) in (select id,max(version) from versioned_item group by id)
        order by id
                ID    VERSION DESCRIPTION
              1001          3 Item 1001
              1002          2 Item 1002
              1003          1 Item 1003To capture this as a view object, you'd only just need to paste in the WHERE clause above into the Where clause box of the view object. No need to use expert-mode since you're not changing the select list or from clause.

Maybe you are looking for

  • G4 PowerMac no longer boots from External FireWire Hard Drive

    What would cause a G4 PM to no longer boot from an Ext. FW HD that was working fine yesterday and in fact still mounts fine on the desktop..... but when I go into system pref's and attempt to select the ext. HD (and it does show up as an option to bo

  • Satellite M30-801 - display will not work after hibernation

    Hello everybody, I hope you will help me with this issue. I have a Toshiba Satellite M30-801 and my warranty has finished. A few days ago, my computer had stayed some hours in standby mode. When I restarted the system, the screen continued on black.

  • SSL-Tunneling Problem with Stronghold

    Hello, I installed HTTP-Tunneling between a Java-Client and a WLS 4.5.1SP 13 throuch a Stronghold-Server using mod_wl_ssl.so. But when I'm trying to connect via HTTPS (port 443) to the Stronghold, the plugin is no longer working correctly. I get the

  • BDC commit work issue.

    Hi all, Im facing a issue in BDC: In a loop there is a select query called and if sy-subrc = 0 the call transaction using mode N is called in the next step. first time if the sy-subrc is ne 0 then call transaction is done which updates( considered as

  • Wrv210 intermittent wifi on mac's

    i recently purchased a wrv210 router. it's got the latest (2.0.0.11) firmware. my windows based computers seem to work off the wifi without problem but my two mac's (an imac and a macbook pro) have intermittent wifi connection. they connect for some