Multiple running queries at the same time

Hi!
I looked around (and RTM) for this but didn't find anything, so I'm asking here.
I have quite a few long running queries (data loading and such things, warehousing stuff), and I need to be able to run multiple queries/statements at the same time. In TOAD I can do this, start a procedure and while it is running I can do SQL statements in another session tab (it supports threaded sessions - it starts queries in their own background thread/session).
When I start a long running procedure or query in SQL Developer I can not do anything until the procedure execution finishes. Is there any way (setting/preference) to enable SQL Developer to be able to run multiple queries at the same time?
I really would like to move away from TOAD, but this is a major showstopper for me.
Thanx for any tips.
Alex

Hi!
This post is going to be a little longer, but I have to clarify things out.
I did not mean to throw any wild accusations, because I did my fair share of RTFM and searching the help. I can tell you that if you put any of these in the help search box:
session
non shared
non-shared
connection
concurrent <- I guess this one should yeld something
multiple
spawn
you won't find anything usefull, the article that comes closest, is this:
"Sharing of Connections
By default, each connection in SQL Developer is shared when possible. For example, if you open a table in the Connections navigator and two SQL Worksheets using the same connection, all three panes use one shared connection to the database. In this example, a commit operation in one SQL Worksheet commits across all three panes. If you want a dedicated session, you must duplicate your connection and give it another name. Sessions are shared by name, not connection information, so this new connection will be kept separate from the original."
It does not mention any spawning of non-shared connections from the current one, nor it does mention using a accelerator key combo. But since there could be written something about it, I guess you could call it a documentation bug, because it does not provide any clue to this functionality. The help is definitely of no help in this case. As you can see, I do not throw accusations without trying to find out something first. I guess if someone is not as deep into SQL Developer as you are, there is no way for him/her to know this.
OK, I tried your suggestion, and (sadly) it does not work as I suppose it should.
Here's what I did:
- start a new connection, and enter the following code in SQL Worksheet:
declare
j number;
begin
for i in 1..1000000
LOOP
j := sin(i);
end LOOP;
end;
As you can see, it doesn't do much besides holding the connection busy for a while when executed.
- start a new non-shared connection from the first one using CTRL-SHIFT-N (as you suggested) and put the following statement in the new SQL Worksheet (with "__1" appended to connection name)
select sysdate from dual;
- go to the first SQL Worksheet and execute the procedure
- while the procedure is executing, go to the second SQL Worksheet and hit F9.
The sysdate is returned as soon as the first SQL Worksheet finishes and not any sooner. It may run in separate session, but the result is not returned before the other session is finished doing what it is doing. I guess the correct behaviour would be to return the sysdate immediately.
I verified this behaviour repeating it 3 times starting with a new instance of SQL Developer, each time connecting to another schema and spawning the new non-shared session. The database used was Oracle 10.2.0.3 EE on RHEL 4 UPD3.
The concurrent execution lacks concurrency. The statements might be executed concurently on the database (i did not went the extra mile to verfiy this), but the returning of results is just not independent of other sessions. To the end user this is as much concurrent as it is serial execution.
I hope developers get this issue straightened out soon, as I said, I'd love to move away from Toad, but I'll have to wait until they fix this out.
Is there anything else that can be done to make it behave correctly?
Kind regards
Alex

Similar Messages

  • Problem running multiple folder actions at the same time

    Hi,
    Does anyone have some experience running multiple folder actions at the same time?
    I've written a Applescript folder action that processes some files. When adding some files, the script starts and all goes well. The processing of each file takes a few minutes, but all files are processed correctly.
    However, when adding some new files to the dropfolder, while the folder action is all ready processing other files dropped a few minutes earlier, the process that is all ready running immediately aborts and the folder action is relaunched on the new files, leaving the old files for what they are...
    The same problem occurs with multiple folders, each having a folder action attached. When dropping files in "Folder A", the script starts processing. But if someone droppes files in "Folder B", The script of folder A aborts, and the script of folder B starts processing. When adding more files to the folders, the result is the same. In some casses, when the last dropped files are processed, the os continues where the operation was aborted on the previous files. But this not always happens. To make things worse, when you remove the items from the folders afterwords, the folder actions starts running again on items no longer present in the folder !!!!
    Does anyone know how I can prevent the folder action being aborted when new files are dropped and placing the new files in "Hold", until the previous files are processed? How can I prevent a folder action being aborted when a item is dropped into another folder?
    I've written a small script to test this behaviour. Just create one or more folders and attach the script below. Drop a item into the folder, wait a few seconds and drop another one in the same or another folder. To monitor what happens please check the console.
    on adding folder items to this_folder after receiving added_items
              set FolderName to this_folder as string
              set ItemName to added_items as string
              repeat with theIncrementValue from 1 to 15
      delay 2
                        do shell script ("logger \"Folder: " & FolderName & "  -  Item: " & ItemName & "  -  Step: " & theIncrementValue & "\"")
              end repeat
              do shell script ("logger \"Folder: " & FolderName & "  -  Item: " & ItemName & "  -  Done...\"")
    end adding folder items to
    Thanks for any feedback.

    That is pretty much the way Folder Actions work, especially since AppleScript is not multi-threaded.  If you are using them as some intermediate step in a workflow, you might rethink the way you are handling the files (for example, use a droplet instead).  Other options would be using launchd to watch a path or a shell script on a different thread.

  • How to make two PCs (one local, one remote) control the same running vi at the same time?

    Hi Labviewers,
    I have a vi running, and two PCs are monitoring it, one is local and another one is remote.
    I can see the remote front panel at the remote machine by using application property node, but it seems only one of the two PCs has the control of the running VI at the same time.
    Is there any way to make the two PCs both have the control of the same vi at the same time?  Switching back and forth the control between two PCs is really annoying.
    Thanks a lot for any help.
    Anne

    What exactly are you trying to control?
    Perhaps another approach? You could use "Shared Variables" from LV 8.0 and have a copy of the writer VI on each of the control PCs edit the value on the host PC. But as soon as I post, someone is going to talk about multiple writers to shared resources being a bad idea.... so just be careful or you may try to edit a value that has already been changed.
    Matt Holt
    Certified LabVIEW Architect

  • How do I view multiple inbox folders at the same time in Mail?

    I want to configure Mail to show me multiple inbox folders at the same time. I want to be able to split the screen and show in the top section unread messages, then messages I've marked with label A, then messsges I've marked with label B, then everything else in my inbox (like using the multiple inbox feature in Gmail). Is this possible?

    Just figured it out - I can select multiple messages as you suggested when I am not in full screen mode.
    So once I come out of full screen mode - then the multiple windows open.
    QED

  • How to open multiple hotmail accounts at the same time ?

    Hi,
    Seems maybe normal for some people but I coming from internet explorer and with this explorer I was able to open multiple hotmail accounts at the same time, by default firefox can't do that, is there some setup to modify to open these at the same time ?
    Thanks in advance for any help.
    (Version updated 3.6.8)
    Regards,
    Chris

    You can look at one of these if you want to sign on with different identities at the same time:
    * CookiePie: http://www.nektra.com/oss/firefox/extensions/cookiepie/
    * CookieSwap: https://addons.mozilla.org/firefox/addon/3255
    * Multifox: http://br.mozdev.org/multifox/ - Different logins at the same time

  • Prevent Jobs Running Twice at the same time

    Hi all, I would like to know if they are any ways to prevent a release job to run twice at the same time. For exemple, if  I create a job to run every 5 minutes and the job did not finish after 5 minutes, the scheduler will start the same job agains.  This situation causing us bad issues.
    I double check the job start conditions in sm37 but I found nothing special.
    Thanks for help

    Hi Marc,
    We use a workaround. We have asked our abap developpers to write a small utility report which checks if the job it is part of is already running and aborts the job if it is the case.
    When we need a job which must absolutely run only once at the same time, we just add this utility as first step.
    Regards,
    Olivier

  • Multiple iTunes open in multiple 'user accounts'- at the same time

    We have three people in our family, each with their own iPod/iphone, we sync our iPod/iphone on the same computer but in different ‘user accounts’ in xp.
    Now the problem is ; only one iTunes program can run at a time, so if one person is downloading a podcast and another logs into their user account then they can’t open iTunes because it is open in another user account already.
    There must be a way to run multiple iTunes at the same time in different user accounts?
    Anyone?
    I’m running XP on an i7 machine

    Welcome to AD!
    Sadly, there is not a way to do this.
    http://support.apple.com/kb/TS1969?viewlocale=en_US

  • Can I control iTunes via the the remote on multiple iOS devices at the same time?

    Hi, I know this is probably a no brainer but I have an iPad and an iPhone on one apple id both with the remote app on them. Problem is the app only seems to run on my iPad at the moment! Ideally it would run on both and on a third iPhone (my wifes and different apple id) at the same time so that we could all control the music... Is it possible?

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"? Ones with a green checkmark are solved.

  • Is there a way to rename multiple Itunes songs at the same time

    Is there a fast way to rename multiple Itunes songs at once, instead of renaming one song inside Itunes at a time? For example; So I can select multiple songs at once and rename each songs Genre all at the same time? Without needing to rename song by song?
    Casey Computer

    You can click on multiple songs, and change info in the Get Info > Info screen.  This applies to most fields EXCEPT Name.  iTunes has never allowed the simultaneous change of Name of multiple songs, presumably on the grounds that it is usually an error to do so.
    Regarding Genre, yes, this can be changed for multiple songs at once, using the Info tab of Get Info.

  • How do you change multiple songs genre at the same time

    How do you change multiple song's genre at the same time with out during them one a time in ITunes  on Windows 8?

    You can select a range of songs by selecting the first, then holding shift when clicking on the last. You can ctrl+click to add or remove from the selection. Once you have a selection press Ctrl+I to Get Info. Type in the new Genre and press OK.
    tt2

  • Multiple users draw at the same time

    Hello there,
    I am very sorry if this is the wrong place for posting this question.
    I am trying to create a java2D application where multiple users can collaborate to draw on canvas (at the same time from two or more machines). The first user should act as a server and all other users should be the clients. I want the drawing to occur in real time. I have some ideas (like using Monitors and java synchronization) on how to do it but I am not sure if this is the right way to approach such a problem.
    Also I know that I will need something like a Buffer to store changes and a way of communication...
    I would appreciate it if anyone could help me. Guidance or a simple example that can help me to understand the logic behind it so I can develop it myself.
    Thanks in advance for your time...

    I've implemented this project to provide "whiteboard" capability to an existing chat client. The "model" for the drawing was an SVG document (rendered using Apache Batik) and the communication between clients was the SVG (XML) snippets and their location in the document.
    Only difference is that one-to-one was supported with clients. One-to-many required a server-side component, but there's no reason one client couldn't have acted as the server.
    So my recommendation is SVG, then your communication layer is really a simple XML document editing protocol. Our protocol is here but was never approved as a XEP by the XMPP council. The date's wrong; that protocol was updated as recently as 2008.

  • How to upload multiple .CSV files in the same time.

    Hi Legends,
    Can anyone please help me to resolve my issue?
    This is very urgent and critical.
    Description:
    We have two users.1)edw_user_dump
    2)prd_udm.
    We need to upload the xx.csv file at the same time for these two users in oracle forms.
    we have differentiated .csv file name based on the user names.
    the main problem is in the sql loader command the xx.csv file name is created but the data is not captured in the server (kentucky) .
    Below is my code for the upload.
    -- To delete the Part_Mast.log file from the client
    DECLARE
    pid WEBUTIL_HOST.PROCESS_ID;
    v_result PLS_INTEGER;
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    BEGIN
    v_result := WEBUTIL_HOST.Get_return_Code(pid ) ;
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    END;
    DECLARE
    l_success boolean:=FALSE;
    l_bare_filename varchar2(100):=NULL;
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    BEGIN
    -- Delete the content of the log and bad file
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    --host('cat /dev/null > /tmp/Part_Mast.bad');
    -- Upload the data file to Application Server
    l_bare_filename := v_username||'_'||substr(:FIC_SOURCE,instr(:FIC_SOURCE,'\',-1)+1);
    l_success := webutil_file_transfer.Client_To_AS_with_progress
    (clientFile => :FIC_SOURCE
    ,serverFile => '/tmp/'||l_bare_filename
    ,progressTitle => 'Upload to Application Server in progress'
    ,progressSubTitle => 'Please wait'
    ,asynchronous => false
    ,callbackTrigger => null
    IF l_success THEN
    NULL;
    ELSE
    null;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    host('cat /dev/null > /tmp/EDW_CF_IO_UPLOAD.bad');
    end;
    BEGIN
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    v_password varchar2(30) := GET_APPLICATION_PROPERTY(PASSWORD);
    v_connect_string varchar2(30) := GET_APPLICATION_PROPERTY(CONNECT_STRING);
    a_host varchar2(500);
    BEGIN
    a_host :='/tmp/'||v_username||'_'||'"CF615 IO Upload.csv"';
    host('sqlldr '||v_username||'/'||v_password||'@'||v_connect_string||' '|| 'control=/home/edw_bis/ctl/GLB_CF_IO_UPLOAD.CTL'||' '|| 'DATA=a_host'||' '|| 'LOG=/tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log SKIP=1 errors=200000 DIRECT=FALSE');
    dbms_output.put_line(a_host);
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    EXCEPTION
    WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    end;
    DECLARE
    al_id3 ALERT;
    al_button Number;
    BEGIN
    edw_user_dump.SANM_PRC_MERGE_CF_IO_UPLOAD(:global.v_plsql_res,:global.v_ins_rec,:global.v_upd_rec);
    IF NVL(:global.v_plsql_res,0) = 0 and (:global.v_ins_rec !=0 OR :global.v_upd_rec != 0 ) then
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,' Process Completed Successfully!'||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec);
    al_button := SHOW_ALERT( al_id3 );
    ELSIF (:global.v_plsql_res IN(-1,0) or :global.v_plsql_res > 0) and (:global.v_ins_rec =0 and :global.v_upd_rec = 0 and :global.v_del_rec =0 ) then
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,' Process Failed. Please Download the Log File '||CHR(10)||' Rows Failed : '||:global.v_plsql_res||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec);
    al_button := SHOW_ALERT( al_id3 );
    ELSE
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,'Please Download the Log File '||CHR(10)||' Rows Failed : '||:global.v_plsql_res||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec );
    al_button := SHOW_ALERT( al_id3 );
    END IF;
    EXCEPTION WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    host('rm -rf /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    end;
    Thanks in advance!
    Thanks,
    Madhusudhanan

    Madhusudhanan,
    A couple of observations. First; always list your exact Forms version (eg; 10.1.2.0.2 not 10g R2). In most cases, the solution is different depending on the Forms version. Second; why must you use Forms to kick off a SQL Loader process? This is a server-side process and should be initiated by a server side process. If you absolutely must use Forms to kick off the process, again we need your Forms version in order to offer any solutions. Based on your code sample, I can asusme you are at least using Forms 9i becuase you are using WebUtil.
    Is your Database and Application Server the same physical computer? If they are not, this would explain why your HOST command isn't working because HOST runs against the Application Server not the Database server.
    Third; have you considered using and External Table (if your RDBMS version supports them) for each of the files you are attempting to upload? In this instance, it would be helpful to know your RDBMS version as well. External Tables can be a little frustrating to set up the first time, but as with any new construct you use - it gets easier the more you use it.
    Fourth; are you getting any errors in your log file(s)? If so, what are the errors? Please list the full error message if you have one.
    Finally, with respects to your statement:
    Posted: Mar 18, 2011 2:30 PM - Madhu This is very urgent and critical.>
    You have to understand that forum contributers are all volunteers - this is not our full-time job. If your issue is truely urgent I suggest you open a Service Request (SR) with Oracle Support! ;-)
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Can ADF keep multiple pages open at the same time?

    My company is currently developing an application to upgrade a client's FORMS system to one based on ADF. One of our client's biggest complaints with the new technology is that he can't work on many tasks at the same time, because our application can't work with "tabs" or "different windows", like Forms can with the "open form ()" function.
    Currently, we use a page called "main.jspx" with the main menu and a region under it, where we load all the "jsff" pages, which do all the different tasks in their systems (like autorizeBuyOrder.jsff, createNewOrder.jsff, etc...).
    Right now, I can only have one "jsff" page loaded on the region at once, and I wanted to make my application able to load and keep track of as many as the user wants. I was thinking on something like a tabs system, or multiple windows system. Does ADF provide any elegant way to do this? Any material you can recommend me?
    Much appreciated,
    Daniel

    Daniel Kaiser wrote:
    Hm, yes, this looks like it could be a possible solution for my problem. I'm gonna try to apply this to my app and get back to you. Thanks for the helpful answer!If you will have any questions on the application of the UI Shell template, then it is better to ask they here
    ADF UI Patterns & Best Practices

  • Getting data from Multiple cDAQ racks at the same time.

    I need to combine an 8 port cDAQ rack and a 4 port cDAQ rack and was hoping someone can help.  I do not need the signals to be synced up exactly, but I can’t handle the 50ms delay that I have now.  The signals on the 2nd rack is more for customer reference and the 1st rack is doing all the real analyzing.
    I need to collect samples at 500hz or every 2ms and I collect 25 samples giving me a chunk of data every 50ms.  The DAQmx tasks seem to pull at the same time, therefore the cDAQ2 In chunk is always 1 scan behind causing a 50ms delay.
    Is there a better way to pull this data without having such a large delay?  I did not see anything in the examples that apply to my particular application and hardware.
    Thanks,
    Doug

    Each task will begin sampling data as soon as you start each task, so in order for each task to be synced, you want each start task to occur at as close to the same time as possible.  One way to try to do this is to put the start tasks together in a sequence structure.  This will ensure all your cofiguration steps for both tasks are complete before you start sampling.  How long are you runnig your application for?  If its not that long, I wouldn't worry about one of your chassis running faster than each other.  If you think that is becoming a problem, there are ways to diagnose that, but that would take a significant amount of effort.
    I have included a snippet of how you can try starting your tasks together
    Applications Engineer
    National Instruments
    Attachments:
    start tasks together.png ‏21 KB

  • Is it possible to airplay my extended desktop to multiple apple tv at the same time

    Hi
    I am looking to do video distribution in the venue I work in thrue multiple apple tv. The Idea is to use AirPlay and to send my extended desktop to about a dozen apple tv at the same time. is it possible to do it ???

    Winston is correct you may want to consider a multiplexer its what places like bars restaruants usse when the wat several tvs to use the same imput. is cheaper then several apple tvs hers one at $132.74 i have never used it but searced google and found it would give you up to 8 tvs of one HDMI signal.
    http://www.cablewholesale.com/products/hdmi-products/hdmi-switch/product-41h1-08 1hd.php?utm_source=GoogleShopping&utm_medium=organic&zmam=54972865&zmas=1&zmac=1 &zmap=41H1-081HD

Maybe you are looking for

  • Edit customisation in Business graphics is not working

    Hi Experts, I created business graphic UI element of chart type "Speedo meter" . I am trying to chnage the colors of the chart by using 'EDIT CUSTOMISATION' .When i change the clors in preview colors are chnaging but when i test my application it is

  • Displaying a popup

    HI   I have a selection screen which has the button 'No of entries' at the application toolbar. when user clicks on it on the basis of selection in screen the data is fetched. now i want to show the the number of entries as a popup which will only ha

  • Reinstalling Photoshop

    I have a default message when opening Photoshop:"One or more files in the Adobe Application Support folder, necessary for running Photoshop, are missing.  Please run the Photoshop installer and re-install Photoshop". However since having had a new Gr

  • Is it possible to upgrade or change the memory of your iTouch? Like from 8gb to 32 gb

    My itouch's memory 8gb is not enough for me. I need at least 32 gb do you guys think it can be upgraded or  maybe changed.

  • Installing new flash player?

    Please can someone help me? I've been trying to install the new flash player 11.7 for days and it refuses to install. I have internet explorer 9 64-bit, windows 7. I've tried everything that everyone has said. I've turned off my firewall, enabled scr