Newbie question... pointers needed

Hi all,
Environment: Weblogic 6.1 SP2 Sun Solaris, Oracle 8.1.7
We've a large table where we need to assure that only one person at time
updates certains rows of it.
Currently we're using direct connections from the client with "select for
update" but we are suffering from the performance penalty of establishing
these connections instead of using connection pools... and this is driving
weblogic to a halt. Also there are a lot of connections to the database and
some of them might be stalled from killed clients
What's the best way to implement this type of code efficiently?
TIA,
Pedro Ortigão

My suggestion would be to use a connection pool, but I am not sure I
understand you situation well enough to come to that conclusion.
If you want to have only One person update a row at time. My suggestion,
and this is just one idea, would be to create a Singleton Class that has a
Synchronized list (or hashtable, or what ever would be easiest) of row keys
that are being updated. Only one user would be able to lock and unlock
a row at a time, but I don't think this will be a problem unless it takes a
long time to add something to your list of locked rows.
public class LockedRows
private LockedRows()//can't be instantiated outside this class
public static boolean isRowLocked(int rowId)
//if the rowId is in the list return true
//else return false
public static synchronized lockRow(int rowId)
//add to your list
public static synchronized unlockRow(int rowId)
//remove from your list or tree or hashtable
just an idea.
"newsgroups.bea.com" <[email protected]> wrote in message
news:[email protected]..
Hi all,
Environment: Weblogic 6.1 SP2 Sun Solaris, Oracle 8.1.7
We've a large table where we need to assure that only one person at time
updates certains rows of it.
Currently we're using direct connections from the client with "select for
update" but we are suffering from the performance penalty of establishing
these connections instead of using connection pools... and this is driving
weblogic to a halt. Also there are a lot of connections to the databaseand
some of them might be stalled from killed clients
What's the best way to implement this type of code efficiently?
TIA,
Pedro Ortigão

Similar Messages

  • Newbie question but need some advice!!!

    Hi,
    I Have Flash CS3 and am constructing an SWF for a presentation that will be shown on a TV
    The presentation is a large video file with audio already edited and finished
    Additionally i need a news ticker across the bottom of the screen to disaply scrolling text like news, events etc.
    I'm not too familiar with actionscrip but i was thinking about running the video (FLV) into embedded video in the flash file, and then putting the scrolling ticker over this?
    I can get any ticker that pulls from an XML and the embedded video i can already do
    The only problem is how do i get the SWF to play full screen? what measurements should i use? is there a standard?
    It will be running on a windows 7 laptop and hooked up to a 42" LCD TV
    Or is there a better way of doing this completely?
    Any advice would be greatly appreaciated!
    Cheers
    G

    Thanks for the advice
    Unfortunately I dont have After Effects and the ticker will be changing every few days so the XML will be a definite need rather than static.
    As for the fullscreen issue - I somehow need to get the SWF to play fullscreen on the laptop without browser window bars as this will then be connected to TV and VGA output used
    I assume I can just open the SWF in Flash Player and set to full-screen yeah?
    I suppose I can mess with stage sizes to fill the screen as much as possible first so englargement is kept to a minimum

  • Newbie questions, help needed, please

    I am pretty new to Oracle Application Express. I have two problems when I try to create Page with type of "Report and Form". I hope you guys could help me out:
    (1) When I create Pages with the type of "Report and Form", the first column, primary key does not show up in the report page. Why?
    (2) When the table has two primary keys, I have problem when I click the button to go to form page from report page to update the record. It always show error said "Fetch returns more than one rows". How can I tell the application that I have two primary keys?
    Thanks,
    Lee

    Put in "HTML Expression [Insert column value]" part of field which will be a link:
    a href = f?p=&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::NO::PX_PK1,PX_PK2:'+'#PK1#'+','+'#PK2#')">Edit< /aput in previous sentence "<" in front and ">" on the end and remove blank before "/a" - otherwise you'll not see the content but real link!!!!!
    where :
    <li>"&APP_ID." is the page in which you want to open and start edit</li>
    <li>"PX_PK1,PX_PK2" are items on that page (probably hidden) tha will represent primary key</li>
    <li>"#PK1#" and "#PK2#" are primary key values on current page (from table grid represent with query "SELECT PK1,PK2,...from MyTable"</li>
    P.S.
    I read somewhere that life with Appex should be much easy when people should use PK base on one coulmn (sequence).
    To ensure PK on those fields create UNIQUE index on those two fields and in table define NOT NULL on those two columns.
    When you get expireienced you'll know the benefit of this advise

  • Newbie Question:  How much computer do I need?

    Newbie Question:
    I would like to use MainStage 3 in a live performance environment to play bars, parties, etc.  I'm not looping, using it to playback recordings, processing outboard equipment or vocal processing.  I want to stop carrying Rolands, Nords, Korgs, etc and get to a controller and a rack with a Mac Mini in it.
    I tested a download of Mainstage 3 on my home Mac Mini (late 2012, 3.5 Ghz i5, 4GB RAM, 500GB drive) and it seemed to run fairly well.  $30 well invested so I trekked forward... I purchased a Mac Mini (late 2009,  2.52GHz Core 2 Duo, 6GB RAM, 128GB SSD) for $200.  I started to do more elaborate keyboard setups to see how the CPU would hold up.  It typically runs from 30% to 50% of capacity (CPU and Memory)  It actually boots and runs better than the i5.  I hear the occasion gitch, but it actually seems to be getting better in time (or I'm rock and roll deaf.
    I got a rack, an Airport Express, a Radial USB interface and a Nektar Panorama P6.  It's starting to get expensive, but I'm emboldened by the actual quality for the sound and the flexibility of arranging for live performance.  What used to take me two and three keyboards to play, I can now fit on one performance patch.
    OK, now the question... am I at the limits of this little Core 2 Duo?  Should I upgrade the i5 with more RAM and a bigger SSD and use that?  Should I get a new(er) i7 and bite the $1,500 bullet for the additional RAM and SSD?
    I see that most of you are running pretty nice Macbook Pros with i7 and lots of everything.  My needs are modest; am I OK? 
    BTW, I want to run a Mac Mini in a box because I don't want to carry a laptop out in the open.  If I was doing bigger shows I wouldn't care but I play some rowdy bars and constantly have folks hanging off me while I'm playing.  It's fun, but hard on gear.  If you can't drop it or dip it in beer, it won't last long where I work.
    Matt Donnelly

    Rule of thumb: newer and faster is better. But, depending the complexity of your needs you may be OK with an older Mac. Some glitches that happen in a live performance are due to loss of communication with USB or Firewire inputs, so make sure they're secure. I recently upgraded from a 2010 Mac Mini 2.6 dual core with 16 GB RAM, which was used live for nearly four years, to the latest Mac Mini 3.0 i7 with 16 GB RAM and a 500 GB SSD. I was getting an occasional stuck note with the older one. The new one is rock solid. Some of my patches may have up to a dozen channel strips mapped to three keyboards. The Mini is mounted in a rack next to a MOTU Ultralite Hybrid. It is a good idea to map a panic button on your keyboard to controller # 123(all notes off). Also, you might want to invest in a battery backup power supply(APC, Cyberpower, etc.-$40-$60) to protect your Mac against power loss, which can damage you hard drive.

  • Total Newbie Question ... Sorry :-(

    I know it's a windows thing, and I am now converted to Mac but I gotta know this because it's doing my head in. It's a complete stupid green gilled newbie question.
    When installing new programs on a Mac can you create shortcuts to the programs on the Dock? I did what I THOUGHT it would be, i.e I made an Alias and stuck it in the dock, but on rebooting my Mac later on, in place of the shortcuts where 3 question marks which when clicked on did absolutely nothing???
    Help?
    A.L.I
    Windows XP Pro Desktop, Macbook Pro, 60GB iPod Video   Mac OS X (10.4.5)   OS X

    You aren't installing something from a dmg file are you? The dmg is a disk image – kind of a virtual CD. So when you double click the dmg and then get the little disk/hardrive/custom icon on your desktop that is the same as if you had mounted a CD. You then need to drag the application off of that "CD" into your application folder. Then it is truly installed.
    You can then "eject" the icon your your desktop. This is what happens when you shutdown and without remounting the image your dock shortcut can't find the original.
    Just a thought.

  • Newbie Question. just installed IE7.. how do I set up a local host to preview sites?

    Sorry for the newbie question... but it's been a long time since I have done this
    Thanks!

    Just define your site in DW as always.  For a static site, that's all you need to do.

  • Illustrator issues questions--I need help

    Illustrator CS4, MAC OSX 10.5.8...
    After struggling off and on for a few months with Illustrator, I'd like to be able to confirm a few things, so I know I'm not insane.
    1. Canvas/Pasteboard. Is there not an easy way to change that a bit so I can see more difference between the artboard and background? I found a workaround using transparency grid color and then putting a white picture block on the artboard (on a locked layer underneath). This is at least acceptable for various things. Is there some setting I'm missing?  Mostly I'd just like to change the color of the canvas so it stands out more.(And I'd rather have my own choice than whatever the preset tends to be because these blaring white/light screens are killer on the eyes...)
    1a. How do I save a "blank" version of the canvas set up I made so my "colorized" canvas  comes up in new documents? Is there a way to set a default document?
    1b. Is there a way to make the canvas a bit smaller?
    2. Scrolling. When I select an object and want to move it up the page/artboard, AI doesn't seem to scroll to the area I'm trying to get to. Is there a setting I'm missing or accidentally checked/unchecked? I have to go to the scrollbar and click that and move the item screen-by-screen up the page (alternatively, zoom out, etc.)
    2a. I noticed earlier today when trying to sort out text issues (point text, specifically) when I rotated a box... as soon as my cursor hit the edge of the document, the window view practically scrolled out of the universe! Why would it scroll to an out-of-view place in this instance and not scroll when I'm trying to drag an item to an out-of-view place in the document?
    3. I have tons of legacy Freehand 7 files. A decade's worth (not to mention apps prior to that for another decade). Every piece of text comes in as a "text area" box (ordinarily not a problem). But not a one of them shows all the text. I understand this is an issue with legacy files of all types (saving out old FH7 files as an older version of AI yields the same results.)
    Pages are cluttered with red + everywhere. Never mind the time sink, does AI have any way to "snap to" regarding a text area box to the text? How do you get multiple text boxes/objects to line up and be the same size? I'm not seeing H x W spec boxes to enter numerics in for text area boxes (as a start). Do I need to use grids or guides for this?
    4. Whatever tool I'm using persists and doesn't change to a regular arrow when I go to click a scrollbar. Program glitch?
    5. How do I set a default font? Or a default doc to open with the desired font preset in it?
    6. When saving out a graphic to be used in another app, is there no "save selection as.."? Or do I need to open a new doc, paste and save from there for each thing? (My master documents for some frequently used items tend to have many items)
    I know these are really newbie questions, but what used to be 5 minute tweaks in the past (in Freehand) now turn into all-day ordeals trying to figure out what I consider to be just the basics. So I'm not really learning about all the features and aspects of AI at this point.
    Can anyone confirm some of the stuff above or point out what I've missed?
    Thanks

    Hello Scott:
    Thanks for reassuring me I'm only partly insane
    Thanks also for the tip on setting up a default document. I'll pursue that tomorrow when I'm a little less bleary....
    Scrolling-- I have a group (or object selected) and I'm just dragging it along, but it doesn't go farther than the edge of the doc.
    I'm a whiz with a trackball, but useless with a scroll wheel.
    Ugh on the no default font thing.
    Magnifier glass icon on the scrollbar... well, it's disorienting but I'll live.
    I see the "save as" and "save a copy"-- but I don't see a "save SELECTION"? Where is that?
    Hmmm, yeah, I have some words but I don't think "turd" was one of them  lol. Too mild for this 16-hour day.
    Admittedly, I've been more than a little shocked with AI. 

  • Domain name settings - Newbie question

    Sorry for a newbie question!
    I am already pointing a domain name to web hosting for email account. Now, I need an application server to run ERP software and Oracle, and installing Solaris and Oracle need a domain name.
    If I point my domain name to the server, how do I receive emails from web hosting???
    Install an email server to the application server instead? What can I do if I want the same domain name? Any option?

    Setting up a mailserver and making sure it doesn't suddenly turn into a spambox is not something you do with the use of a few commands. I suggest to dive into the Solaris admin guide on docs.sun.com and read up on e-mail and network services.
    If that is asking too much of your time you'll be better off getting your ISP to handle all this for you.

  • Domain Name settings in Solaris - Newbie question

    Sorry for a newbie question!
    I am already pointing a domain name to web hosting for email account. Now, I need an application server to run ERP software and Oracle, and installing Solaris and Oracle need a domain name.
    If I point my domain name to the server, how do I receive emails from web hosting???
    Install an email server to the application server instead? What can I do if I want the same domain name?

    Your questions are completely off-topic for the forum.
    These SunOS forums are for questions on <i>"how do I install my OS"</i>
    You particular question is in the <i>"how can I install Solaris while using the CD drive"</i> forum.
    So, if you had a question on how to edit the /etc/inet/hosts file to establish a FQDN on the computer, then it might be appropriate for the forum.
    Unfortunately, I don't have a clue on where to redirect you, except perhaps to the Sun Java Enterprise System suite of applications?

  • Newbie question - XML version, searching by artist

    Probably quite a common problems - apologies for newbie questions.
    I've changed the URL of my MP3s in my XML to a new location and refreshed my feed. Is there a way of seeing what version of the XML iTunes is using? (it takes around 24 housr to refresh, right?)
    Also, when I'm searching for my podcast by author it's not coming up (<channel><itunes:author>) - is there a reason for this or a way to get it to show up when people search for the artist, other than doubling it in the title? (This works by the way, but I'd prefer not to!)
    Thanks.

    you can do it in just one loop, going through all the image
    tags in index_content and for each tag fill the values of all four
    arrays
    for (i...) {
    get the appropriate child of index_content
    first_array[ i ] = value of first tag
    second_array[ i ] = value of second tag
    no need for multiple loops.
    flash has functionality for xml files, but it helps to write
    a little wrapper around it, to simplify programming, especially if
    you work with xml a lot.. I wrote my for work, so I can't show it
    to you, but it's not very complicated to do

  • SG200-08 Newbie Questions

    I have recently purchased the SG200-08 Smart Switch, but I have a few "newbie questions" about it as I get started using it.
    The on board firmware shows 1.0.1.0. Is that the latest firmware to the switch?
    Do I need to enable IPv6 Auto Configuration and DCHPv6 in my switch settings to be ready for IPv6 as my ISP rolls it out down the road?
    How do I go about changing the switch's username? I was able to easily change the password, but having issues getting the username to change.
    Do I need to do anything about the LLDP-MED settings? What exactly is that?
    How do I confugure the System Time Settings so the switch functions in my time zone (USA Central Time)?
    Thanks a bunch for any assistance!

    Hi Nathan,
    My guess is that NAT is already on - you have one public IP address from your ISP. Your router will use NAT (network address translation) to allow multiple clients (and either dynamically assign them private IPs via dhcp or you set them statically) to connect to the internet using the one public IP. It also sounds like your RV042G is assigning both ipv6 and ipv4 addresses, and theres nothing wrong with that. Unless you have specific information re: ipv6 from your isp, however, I would suggest not worrying about it until you hear from them. Are your macs connected to the router via the SG200 switch? If so, it looks like its passing ipv6 just fine.  UPnP is something completely different - thats with opening ports like you mentioned - its a way that your devices can communicate with the router to automatically enable the proper port forwarding for the device/application.
    Regarding the username, create a new user account. I don't think you can edit the cisco user, but try deleting it after creating and testing a new user account..
    I'm not familiar with the Polycom system, but I would leave the settings as default unless you are using true IP phones (rather than an ATA adapter). From a quick google of the polycom device, I don't think you will gain anything from LLDP/CDP as the handsets use regular cordless phone freqs. With my setup, we use cisco IP desk phones and cordless wifi phones, CDP makes life easy as the cisco access point, wifi phones, cisco switch, and cisco desk phones (connected via ethernet) see each other and know what they're dealing with automatically.
    I don't see the SNTP setting for unicast / broadcast that you're looking at. For the switch to get the time from a sntp server, under administration -> time -> sntp settings, add a server, and then back on time-> system time, enable sntp server as the main clock source. What are you using as your sntp source? Do you have an internal sntp server? You don't need to enable dhcp on the sntp server.
    May I also point you to the two manuals, I think they may be helpful:  RV042G  & SG200
    Hope thats helpful.
    Best,
    David
    Please rate any helpful posts.

  • WebDynPro Newb question

    Hey All,
    I need to begin working with WebDynPro. I have a couple of Newb questions:
    1) I need to jump right in fairly quickly, so can anyone suggest any good documentation that could help me get the basics down about working with WebDynPro?
    2) I loaded a Sample WebDynPro project into NetWeaverDev Studio, but I am unable to export this to our instance of EP on our Development Server. For a .par file its easy to do exports, but I can't for the life of me find where i go in NetWeaverDev Studio to do an export of a WebDynPro project. When I goto export in the WebDynPro perspective, it appears to only want to allow me to export locally, but I need to push to a different server. Can anyone help me with this?
    I appreciate any advice and suggestions. Thanks All!!
    Take care,
    -Kevin

    Hey Rich,
    I have the Engine setup, but I do not get prompted for the SDM password, do I need to configure that somewhere? I get the following error when trying to deploy:
    <i>Jul 15, 2005 10:13:17 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [004]Deployment aborted
    Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !</i>
    Thanks,
    -Kevin

  • Newb Question for burning DVD/CDs

    I have an external DVD writer on my iMac.
    I got the thing last month and an completely new to Apple (sorta)
    Now how do I make a data CD and DVD?
    On Winblows XP all I need to do is select the files, right click and click on SEND FILES TO CD for making data CDs.
    However for DVD I need 3rd party software.
    Will iDVD do the trick?
    Thanks for the looking at this simple newb question.
    GeekyBoy

    Now how do I make a data CD and
    DVD?Drag the files to the icon of the
    blank CD/DVD that appears in the
    Finder.However for DVD I need 3rd party
    software.You might want to try Patc
    hBurn.Will iDVD do the
    trick?No, iDVD is only for making video
    DVDs and it requires a G4 processor.
    Thanks for the tip Duane.
    I was just reading abotu burning CD on another site. It mentions about what you said, drag the files to the CD.
    However I am reading in my profiler that burning is NOT supported by OS X on this CD/DVD writer.
    Will Patchburn or any other software overcome this?
    Thanks

  • MailServer Newbie Question..

    So my first time i setup a Mail Server with Mac OS X Server.
    Everything works like a charme. I can send and receive emails internally. That means
    i can send and receive emails from mac to pc and vice versa. Now my question.
    How do I setup the Server to catch my external eMail adresses and send it to my internal account.
    And how do I setup to send throw my server to the rest of the world without getting banned and
    blacklisted
    I how someone can write a small tutorial for me or can post a link for this newbie question.
    Thanx in advance..
    mike
    P.S.: Sorry for my bad English. But I am from Germany

    how to configure the server to accept mail for my own domain ?
    Any domain you want to receive mail for goes into the Local Host Aliases pane (in Advanced-> Hosting tab). However, you said that you can already send and receive internally so presumably you have it set up for a domain already? If this is not the same domain as you want to use, just change whatever settings you are using to your real domain. You can then test sending and receiving internally for your own domain but without changing your external (public) mail provider. When you are ready to change your outside mail server for your own one, get the public MX record changed so that all external mail starts getting directed to your own server.
    how to get the public DNS record (MX Record)
    If you have a 'real' domain then someone is hosting your DNS for that domain. THis is probably whoever you bought the domain from. You need to get them to change your MX record (or the IP address for the host name record which the MX points to - see my first post).
    Is it really impossible to catch the external email-accounts with the server via pop.
    my idea behind that is to synchronize the external email accounts with the email accounts on the server..
    I have never really looked into getting a mail server to use a pop download from another external mail server - it may be possible by manual configuration but it never made sense to me. Why have two mail servers in a 'chain'? Basically, the public will see only one server responsible for your mail (via MX record) - you have to decide whether you want to leave this with your external provider or take the responsibility yourself.
    Your configuration for the incoming mail seems to me like you would change the
    external email server completely to my internal server.. right ??
    Correct. Once the public MX record is changed then all other mail servers will send to your server and not your current provider. You can always revert back by changing the MX record back to your existing provider (as long as your account is still open).
    -david
    Message was edited by: David_x

  • Newbie question: SQLj, jdevelopper

    Hi,
    I'm a real newbie with SQLj and jDevelopper, and I have the following question:
    I need to build a web application, a kind of supervision software, to display and change some values stored in a remote database under Oracle 8.1.7.
    I think that I can take advantage of SQLj in my case (in fact, I have already created a minimal application which is able to apply some basic request to the database).
    But I would like to know what is the standard way to work with SQLj and applets, knowing that my database contains ~ 40 tables.
    How would you organize sqlj classes ? One for each table ?
    Any help and suggestions, hyperlink, doc really appreciated !!
    Thks,
    Eric

    Hi Gaara,
    I think you can find what you need here (JPublisher)
    Regards
    Peter

  • MEGA-Newbie Question

    This has to be the most newbie of all newbie questions. Interestingly enough, it is the one that is most rarely answered in a non-technical way that the novice can understand.
    What exactly do I need Motion for? What, in common-sense, regular-language terms, does it do?
    My manuals tell me how to do all the things it does. But they assume I am an experienced editor (I'm an experienced filmmaker, but only just started working in editing) who already knows all the things that CAN be done and only wants to know HOW to do them in Motion. This is not me.
    So, say I am making a 90-minute HDV feature music doc. I have footage, I have stills. I will need captions, titles and text on screen. I will need an end credit roll. What is it I will probably want Motion to do for me that FCP can't do on its own?
    I'd appreciate an answer in somewhat non-technical language that addresses the practical use -- from a filmmaker's point of view -- of this no doubt amazing program.
    Thank you.

    hi Paul,
    You are right you can do much of the things Motion does in FCP, but Motion takes them further and often makes them easier to do.
    Briefly whereas FCP is generally for editing moving pictures from rushes to a coherent whole, Motion is used to composite or layers of moving pictures to make a new coherent whole picture.
    So i plain words, you can meld different sources of video, stills text and other sources together to make a new end peice. You can animate text, warp pictures, create fires, smoke, hide bits ( masking), animate graphical elements. In short whenever you need to layer up multiple sources of imagery Motion is your man. Sure FCP can handle a lot of this, but Motion is designed specifically and only to do this, and does it very well. ( You would not want to edit in Motion!)
    In your 90 minute example you could do it all in FCP and make it look very nice. But you might need to go the extra mile with the title sequence, perhaps the captions will have some kind of generic strap line ( lower third) under All these things could be done easier and better in motion. However you would not want to import the whole 90 minute programme into Motion and start throwing captions on it. Rather you would want to build each element ( strap line, animating titles, opening sequence etc) in Motion and then import them into FCP for the final mastering. Motion is for short sequences, and FCP is used to collect them all into one programme.
    I make music commercials for a living, do all the cutting on FCP and build all the graphic elements in Motion, take a look at my site for some examples if you'd like,
    http://www.moojoose.co.uk
    Hope this helps you
    regards
    adam

Maybe you are looking for

  • Error 1075: The dependency service does not exist or has been marked for deletion

    Windows 7 Pro laptop will not connect to corporate domain. Multiple identical twin laptops have no problem. Best suggestion so far has been to leave the domain and rejoin it, BUT the relevant buttons are grayed out and the comment says "Note: The ide

  • No camera raw jpg previews in finder

    I have two macs with the same OS and one displays jpeg previews of my camera's raw files in the finder and one doesn't. Apparently all the software is up to date and I have "show icon preview" clicked in the finder settings. Anyone know where I can c

  • BW CRM Report unavailable

    Hi gurus I am actually in the process of identifying the CRM Lead Analysis Reports in BW. I have identified most of the queries, but Win/Lost Leads reports is not seen in the business content. When i checked in the sap help site the reports is very m

  • How to transfer data between a multi-thread dll build with LV7 and MS C++, using envent programing method.

    It is easy to transfer data between a simple input/output dll build with LV and an external code like C++, but when data are available inside a loop running in the dll(in fact thread running in LV); How can I read them or receive an handle pointer to

  • " Error in Web-Intelligence Report "

    Hai Friend's, I am having a Issue. I have created Two Variable's :: Initial Date final Date Measure Object -- calAmount I have to calculate two thing's to create :: Initial Value,Final value. initial Value =Initial Date(CalAmount) final value = final