Opening database multiple times

According to the documentation each time I want to open a database I need to create a new instance of Database. If I have the database in an environment I have to create a new instance of Environment then environment.opendatabase(). Is there a perference on which way is better? Is it wise to have multiple threads to call openDatabase()?

Hi Radical,
The Database handle is free-threaded (thread-safe) so long as the database is opened in a free-threaded environment; so, if you want to perform reads from multiple threads on a database that has been opened within an environment that is free-threaded there's no logic in reopening the database in each of those threads (a thread of control already instantiated the Database handle, which is concurrently usable by the threads in the address space).
If this is not the information you were interested in please expand on what you're actually trying to perform.
Regards,
Andrei

Similar Messages

  • Is it possible to copy the same database multiple times simultaneously?

    This is the setup of my environment.
    I have a 'master' database that contains the full schema plus some pre-populated data such as default settings. When database schema changes are made, they get made to the master database. When a new customer signs up for the service, I make a copy of this
    master database (using SMO) that will now be the database containing all of the customer's information. The database is rather large, and the copy operation can take a couple minutes.
    Everything works fine as expected, unless I try to provision two new customers at the same time. It appears that Azure only allows for one DB copy operation at a time. Is there a way to allow for copying the same database multiple times simultaneously?
    Thanks for you input. I understand that this is likely not the optimal setup, and that there is many better ways of doing this, but I am somewhat heavily invested in the current process and I would like to find out how to make it work if I can.

    BTW, you can do this programatically by using PowerShell (https://msdn.microsoft.com/en-us/library/ee210569.aspx), SqlPackage (http://www.benday.com/2012/12/18/deploy-a-sql-server-database-projects-dacpac-with-sqlpackage-exe/)
    or the SQL Server binaries for .NET (http://www.vijayt.com/Post/Deploying-a-data-tier-application-in-SQL-Azure-programatically)
    Hope this helps.
    Alex

  • Sub reports access database multiple times

    Hello,
      I have a crystal report created with a main and 2 sub reports. The data source is a stored procedure. when ever I ran/refresh  the report it access the database 3 times(first for main report and 2 times for 2 sub reports).
      There is a big single query been executed and stored procedure returns the result. Even though the result set is same the report should not access database multiple times.
       Is there any options or properties I have to select or missing. Is there any solution to resolve this connectivity issue.
    Thanks in advance.

    Hi,
    Each report will each have their own separate connection to the database.  In your case it will create 3 connection: one for the main report and one for each of the subreports.  If you use sureports, there's no way around this. 
    Also take into account where the subreports are on the main report.  If you have them in the detail or group sections the subreports will generate a new instance each time it runs.  So you may have not 3 connections but one for each record or group in the report. 
    I've had to design similar reports and needed to do it without subreports.  I wrote a stored procedure that generated two sets of records: detail and summary.  I grouped the data on the report based on their record type (Detail or Summary).  I found this also made the report faster. 
    Good luck,
    Brian

  • How to control the opening form multiple times

    Greetings to all,
    I used Open_Form to open the form in my 'Menu.mmb'.
    My Question is:
    How we control the opening of a form from multiple times?
    Ex:
    In my menu.mmb I used OPEN_FORM.If we open the form,which was already opened ,I want to stop the form to open. How to do this?
    Thanks,
    Bhujendra

    pls try with
    FIND_FORM('EMPDETAILS1');
    OPEN_FORM('C:\INH\EMPDETAILS1');
    jeneesh                                                                                                                                                                                           

  • Why do I have to open firefox multiple times before it will open

    When I go to open Firefox initially it either takes a long time to open but most times it will not open and I have to click the icon again sometimes more than twice. Then it will open multiple times.
    The second thing is that the back arrow will often send me back two pages or more?

    You need to be patient when opening Firefox, once your click, wait and it will load.
    As for the back button sending you back, it may be due to the website you are visiting. You can also try the following troubleshooting method:
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".
    :[[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Possible Bug - Opening help multiple times

    I'm working on a fairly complex illustration with >60 layers and 520Mb inside Photoshop.  I have been getting stuck when adjusting a previously set layer style (Bevel & Emboss).  As I tried to adjust a slider, IE would open with a 404 error, about a dozen times in rapid succession.  I had to be very quick with the Escape key to break out of the loop, and it took me a few tries because every time I deleted all the IE screens and made the CS6 window active, the error would happen again.
    Unfortunately I can't make it happen again.
    Win 7 64bit

    Uh oh, that sounds like an old bug resurrected.  Every version since time began has done that at one time or another.
    I always figured it was latent corruption causing the event loop to go astray.  The corruption was as likely to have come from the video driver as anywhere, because it could come and go on the very same machine without any updates or changes to Photoshop, with the only thing changed being the Windows environment.  I personally have seen it happen once or twice with Photoshop CS5, and only with ATI display drivers from late in 2011.  It stopped when I reverted to Catalyst 11.7 and has never occurred with 12.3.
    Come to think of it, when I saw it in CS5 it was exactly as you said, Trevor - adjusting a slider in a layer style.
    -Noel

  • Is it possible to open window with FPM embedded multiple times in a dialog?

    Hi,
    Is it possible to open a web dynpro window whose view embeds the FPM_GAF_COMPONENTu2019s FPM_WINDOW multiple times in dialog window?
    I have a web dynpro component WDC1 which use FPM_GAF_COMPONENT and provide the component configuration for FPM.
    Thereu2019s a WINDOW1 (with View1) in WDC1 which has a view container and the FPM_GAF_COMPONENTu2019s FPM_WINDOW is embedded.
    I have a button in WDC1 which create a new dialog window by calling if_wd_window_manager->CREATE_WINDOW as code below.
          lo_window = lo_window_manager->CREATE_WINDOW(
              MODAL                = ABAP_TRUE
              WINDOW_NAME          = 'WINDOW1'
              TITLE                = 'Test opening FPM multiple times'
              CLOSE_BUTTON         = ABAP_TRUE
    *          BUTTON_KIND          =
    *          MESSAGE_TYPE         = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
    *          CLOSE_IN_ANY_CASE    = ABAP_TRUE
    *          MESSAGE_DISPLAY_MODE =
    *          DEFAULT_BUTTON       =
              IS_RESIZABLE         = ABAP_TRUE
    It works for the first time when I click the button, a dialog window opens with my FPM GAF stuff.
    But when I click the button the second time after closing the dialog window, it generates a dump with error message saying u201CComponent Usage Group MESSAGE_AREA_USAGES Already Existsu201D.
    In ST22, the dump was generated in WDDOINIT of view u201CMAINu201D on FPM_GAF_COMPONENT which looks to me like the message manager is already created in the first time.
      lr_component = wd_comp_controller->wd_get_api( ).
      lr_usage_group = lr_component->create_cmp_usage_group(
                           name            = 'MESSAGE_AREA_USAGES'
                           used_component  = 'FPM_MESSAGE_MANAGER' ).
      wd_this->mo_message_area_usage = lr_usage_group->add_component_usage( 'MESSAGE_AREA_USAGE' ).
      wd_this->mo_message_area_usage->create_component( 'FPM_MESSAGE_MANAGER' ).
    I tried to remove the component usage of FPM in my WDC1 or delete  the component directly, hoping that this will clear the memory , but doesnu2019t work, only bring more different dumps  which make this look like a wrong direction as I am interfering the lifecycle of FPM itself.
    Can anyone share some ideas here? Thanks in advance.
    Best regards,
    Beiyang
    P.S. The FPM GAF works fine when I open the window in new browser (by calling if_wd_window_manager->create_external_window).

    Hi ,
    Currently I am facing same problem could you please let me know how you resolved your issue.
    Thanks in advance.

  • Is it possible to perform multiple RECOVER DATABASE UNTIL TIME ?

    Hi,
    Can I perform multiple roll forwards of transactions on a hot backup of a database?
    I want to make a copy of my live oracle database to use on a temporary test server.
    I intend to copy the hot backup and transaction logs onto the test server and then roll forward to a certain point in time.
    My question is: Can I do multiple roll forwards with the instruction
    RECOVER DATABASE UNTIL TIME
    when I don't start the database after the first time I rolled forward?
    Regards,
    Pasquale

    If you are on 10g and are collecting flashback logs you can flashback a database backwards, open the database read only to look around, and then flashback backwards/forwards until you open the database resetlogs to finalize the flashback.
    -J

  • Photoshop is opening multiple times...WHY??? (please help).

    When I double click on an image (from Bridge for example) to open in Photoshop it will open up CS6 and then sometimes when I open another image, instead of opening up in the same open Photoshop program, it will open up an additional Photoshop program.  Both CS6, Version 13.0.6 x64.  Super frustrating when sitting with a client and trying to add an image to a document and it opens up in a different program...   Is there a way to see where Photoshop is opening from?  Why would CS6 be opening multiple times???
    I don't think I noticed this happening before I upgraded to Mavericks (yes, this has been happening for a while).  I also have a back-up program called SuperDuper that mirrors my system on a separate hard drive.  Could Photoshop be opening from there, too?
    Thanks for any possible help!
    Deron

    Use Lion Recovery to reinstall the Mac OS X.

  • I was trying to open a project in adobe flash pro cc and it said there was an error opening the project. I have tried multiple times with no success, however all my other projects open and work fine

    I tried multiple times, but still couldn't open my project. All my other projects open and work fine. Please help, it is important.

    You will most likely get better help in Flash Professional
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • I am using Windows 7 Home Premium 64-bit OS.  I've never had this problem before... today I opened iTunes and it prompted me to download the newest version.  I use iTunes all the time and have updated it multiple times with no issues.  During the installa

    I am using Windows 7 Home Premium 64-bit OS.I've never had this problem before... today I opened iTunes and it prompted me to download the newest version.  I use iTunes all the time and have updated it multiple times with no issues.  During the installation process it gave me an error message that said: 
    Runtime error! 
    Program C:\Program Files\iTunes.exe
    R0634
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    I quit the installation, uninstalled iTunes and rebooted my computer.  I now receive a similar message with a slight difference:
    Runtime error! 
    Program C:\Program Files (x86)...
    R0634
    An application has made an attempt to load the C runtime library incorrectly.
    Please contact the application's support team for more information.
    I did not leave anything out from the error message.  It doesn't point to a specific file, it just ends with "(x86)..."  Every time I boot up my computer, this error message pops up on my desktop.
    How do I repair this issue?  I have found multiple suggested solutions but am unsure which one is the best, and I don't want to try a bunch of different things for fear I may make the problem worse.  I would like to try and fix this myself if possible but I need to know if that is really possible or if I need to take my computer to someone for repairs.  Any suggestions will be greatly appreciated!!

    Hi lustyln,
    I'm having a little trouble understanding all of what you are trying to explain. From what I can tell, it sounds like your PC has a lot of software problems and you want to know what is supposed to be there and what isn't.
    For reference, here are your product specifications:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01893242&lc=en&product=4043282
    To get your PC software back to how it was when it was first purchased, run a system recovery:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c01867418&lc=en&product=4043282
    I hope this helps.
    ...an HP employee just trying to help where I can, but not speaking on behalf of HP.

  • Dps file automatically opening multiple times when working on another file in the same folio?

    dps file automatically opening multiple times when working on another file in the same folio? Can anybody please help

    Can you try resetting your preferences first and see if that helps - see Troubleshooting 101: Replace, or "trash" your InDesign preferences

  • JFrame opening multiple times - strange bug

    Hi there
    I'm having this problem whereby a window (a JFrame) is opened multiple times - it works as follows:
    - I've got one JFrame which is opened via a button in my main JFrame (I'll call it JFrame 1)
    - A second one is opened from within the first in a similar way (JFrame 2)
    - The first time one opens JFrame 1 one can open and close JFrame 2 fine as many times as one wants
    - But when one closes JFrame 1 (this with JFrame 2 closed) and then reopens it (JFrame 1) and then clicks the button to open JFrame 2, JFrame 2 then opens twice - except one of them contains no components while the other contains everything it is meant to
    - The same thing happens as many times as I close JFrame 1 - except that when it is closed again JFrame 2 opens 3 times, then 4 and so on
    This is what I have for JFrame 1 (the actionlistener in the main window just calls showDebateRound(int roundID):
    public void showDebateRound(int roundID) {
            JFrame roundWindow=new JFrame("Round Draw");
            roundWindow.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
            showRoundTitle.setFont(new java.awt.Font("Dialog", 1, 18));
            showRoundText.setColumns(20);
            showRoundText.setEditable(false);
            showRoundText.setRows(5);
            showRoundScroller.setViewportView(showRoundText);
            //showRoundPrint.setEnabled(false);
            //work out the title
            showRoundTitle.setText("Round: "+getRoundTitle(roundID));
            //work out the draw output
            showRoundTexts = "Motion: "+round[roundID].getMotion()+"\n\n";
            for (int i=0;i<debateCount;i++) {
                if (debate.getRoundID()==roundID) {
    showRoundTexts=showRoundTexts+"Prop: "+team[debate[i].getTeamOneID()].getTeamName()+"\nOpp: "+team[debate[i].getTeamTwoID()].getTeamName()+"\n\n";
    showRoundText.setText(showRoundTexts);
    //layout
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(roundWindow.getContentPane());
    roundWindow.getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(showRoundScroller, javax.swing.GroupLayout.DEFAULT_SIZE, 410, Short.MAX_VALUE)
    .addGroup(layout.createSequentialGroup()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(showRoundTitle)
    .addComponent(showRoundDrawLabel))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 78, Short.MAX_VALUE)
    .addComponent(showRoundPrint)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(ShowRoundEnterResults)))
    .addContainerGap())
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(showRoundTitle)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(showRoundDrawLabel))
    .addGroup(layout.createSequentialGroup()
    .addGap(31, 31, 31)
    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
    .addComponent(ShowRoundEnterResults)
    .addComponent(showRoundPrint))))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(showRoundScroller, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)
    .addContainerGap())
    roundWindow.pack();
    roundWindow.setVisible(true);
    //debate round only actionlisteners
    ShowRoundEnterResults.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    enterResults();
    }JFrame 2 is constructed in the same way as JFrame 1
    Does anyone have any idea why this could be happening? I can post more code if need be. Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    hiding the form is probably more efficient than creating a new one each timeI rather think OP's both hiding the form and creating a new one each time.
    I would really like to know why it is not workingYeah, so would I.But where's the code that brings up the second JFrame? the actionListener.actionPerformed of the button that opens it?
    Better still, post a SSCCE limited to the minimum code that shows the problem.
    {color:#0000ff}http://homepage1.nifty.com/algafield/sscce.html{color}
    db

  • The finder is opening multiple times 30  as well as creating 40 to 50 files at random while reading mail.

    The finder will open multiple times 30 plus as well as create 40+ blank file folders on the desktop at random. Please help!

    Use Lion Recovery to reinstall the Mac OS X.

  • My iTunes has stopped working out of nowhere. When iTunes is opened it displays "iTunes has stopped working" and windoes automatically closes it saying it will look for a soluton. What do I do? I have un-installed it and re-installed multiple times.

    My itunes has stopped working out of nowhere. When I open iTunes a message appears stating "iTunes has stopped working." and windows closes iTunes sayng it will look for a solution. I have Windows 8.1 64-Bit and have been using iTunes 11.1 (or the newest one out there). I have un-installed and re-installed multiple times. The same message continues to pop up.

    Hi biazonmg,
    Thanks for using Apple Support Communities.  If iTunes is unexpectedly quitting when you open it, this article has steps to isolate and troubleshoot that:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Cheers,
    - Ari

Maybe you are looking for

  • Is it possible to calculate the sum of charactristics in Reporting

    Hi Experts, i have both master data as well as transaction data,generally we can get the overall result of transaction data,but in this case i need the overall result of master data also,please give steps to precedes EX:        ID   VALVE    C1    C2

  • Web-Based Game Skill System

    Hello everyone, I am currently developing a web-based game website using Coldfusion 8 and MS SQL. Until recentely, things have been going well. But I am now stuck on a small issue of using an in-game skill system. The way it works (or will work) is t

  • Since this last update (7.1.4) I can't edit in iPhoto

    I just want to crop, constraining to 4X6. As soon as I hit apply, the picture disappears, replaced sometimes by tv snow, or just white. I tried rebuilding the library, it didn't help, it made things worse. Now, when I'm editing in Photoshop Elements

  • Plugin not found

    Hello !!! I'm having a little problem with java! I have to install java virtual machine version 1.4.2_07 in various computers with many operational systems! All Windows... 98,XP,2K and Me. but we have lots of problems with win98 . When the installati

  • Techno-Isel controller

    Hello, We have a Techno-Isel motion controller (servo) and would like to use LabVIEW to control this system. Techno offers no LabVIEW drivers for their products. Does anyone have experience with their systems? Thanks for your help. Mark