How to continue working while database function running ?

Hi,
i have database function in oracle that do a mass database updating.
this function takes about 10-15 min to work.
i need to start it by user.
anyway, my problem is that:
i need to start this function, but continue of working in the application, and when the function is finish to have the return value that tell me if it succeeded or not.
now when i start this function, i can't continue to work with the application.

use the THREAD Object.

Similar Messages

  • Using an own function in a select how can i set that the function run once?

    Hi
    Using an own function in a select how can i set that the function run once, not in every row?
    Please help me
    Thanks
    Viktor

    Something like this ?
    SQL> select * from dept;
        DEPTNO DNAME                          LOC
            10 ACCOUNTING                     NEW YORK
            20 RESEARCH                       DALLAS
            30 SALES                          CHICAGO
            40 OPERATIONS                     BOSTON
    SQL> create or replace function ret_name (deptnum in number) return varchar2
      2  is
      3     name    varchar2(50);
      4  begin
      5     select dname into name
      6     from dept
      7     where deptno=deptnum;
      8     return name;
      9  exception
    10     when no_data_found then
    11             return('Not existent deptno');
    12* end;
    SQL> /
    Function created.
    SQL> select deptno, decode(rownum,1,ret_name(deptno),null) dname from dept;
        DEPTNO DNAME
            10 ACCOUNTING
            20
            30
            40
    SQL>

  • Continue working while RAID-1 rebuilds?

    I've just had to rebuild a RAID-1 set on my Xserve (running 10.3 — upgrading to 10.5 soon as this is done) and I'm wondering if anyone can confirm for me 100% that it's OK to continue working on the server while the RAID-1 set rebuilds (as it's an ETA of 5+ hours for the rebuild and people need to keep working)?
    Thanks,
    Kristin.

    Hi Kristin
    I got the r and i right this time! Apologies. Thank you for the feedback and you are more than welcome!
    Do you mind if I give you some further advice?
    +". . . so I can start the 10.5 upgrade from 10.3 . . ."+
    Don't do it. Start with a fresh/clean install. Choose Advanced. Don't configure anything using the Server Setup Assistant apart from the network details. When prompted for DNS name and hostname, consider this bit carefully. What you decide at that point will have a major impact afterwards. If you have a registered domain - use that. Although you may not be interested in external access at this time, you may be in the future?
    It sounds counter-intuitive but start at the end to begin at the beginning. Do you understand the distinction?
    Get everything up-to-date before configuring anything: services, users, groups etc. Start with DNS. Even if all you want is AFP start with DNS. Get this bit right and you will have few problems. Don't use POSIX permissions. Stick with Access Control Lists (ACLs). Don't combine them either. Don't be tempted to apply permissions using the Finder. Don't be tempted to log in network users using any server-based admin account. Use strong passwords. Important if you want Mail Services.
    Whatever you learnt with 10.3 Server is OK . . . for that time. However . . . some of it no doubt will be useful but be prepared to ditch a lot of it. Leopard Server is different in many, many ways.
    Read as much of the Server Admin Manuals as you can:
    http://www.apple.com/server/macosx/resources/
    Learn as much as you can about DNS and possibly LDAP. You may not want LDAP now but in the future? You will at some point have to use the command line. Get comfortable with it, as soon as possible. It may seem scary at first but if you go slowly and carefully you should be OK? Test, test and test again. Implement a clearly defined and effective back-up strategy. One that you can confidently restore from. It's not enough to just back-up. It's a waste of time/resources if the first time disaster strikes all you recover is a sack of s&*$e. Use more than one back-up device, if budget and time allows.
    Consult these forums. There are some amazing people on here offering advice and assistance for free. Use them whenever possible. It's probably the best education you'll get regarding OSX Server specifically and servers, networking etc in general.
    There is lots more but I think that will do for now.
    Tony

  • How can i have a second function running while Threat.sleep is active?

    HI,
    I am not that familiar with the Threat.sleep class, and here is my question:
    Is it possible that you can execute something else while Threat.sleep is pausing a function, if so, how is it possible?
    If not is there an another way how i can let a function wait for a specifi amount of time dou it makes it move and douring this period, is it possible that an other function executes?
    Thanks,
    betlor

    [url http://java.sun.com/docs/books/tutorial/essential/threads/index.html]Using Threads

  • How to continue working on a project if I export the materials?

    Hi, I am making a web series and came accross a problem.
    My computer's hard drive is almost full. I am trying to cut the raw footages and the finished copy of an episode to an external hard drive.
    I can paste the raw footages and the finished copy of the episode. The problem is that I cannot cut the editing software's "edit" part (the program that  I can use to edit my episode which I can change) cannot be taken away on an external hard drive. iMovie can only seems to export completely the finished video and not the "edit". The problem is that It is like a Word document  that  can only be  exported and see the uneditable finished copy that I can copy to anywhere and not have the document that  I can always change. That document is like sealed on this computer.
    I want to export the "editing" part of the video, which means the file that  when opened in iMovie, I can see the clips and the texts or any other edits that I have. Not just the finished video. But it seems that if I export out all the raw clips that I imported from the camera into an external drive, the "edit" part of a video will be gone. As if to edit a video, I need to always have the raw clips in that same folder at all time and even if I export them out and re-put them in, I still need to re-put the video part back into the iMovie program.
    What I want to learn is how to take the file of unfinished iMovie file and put it on an external drive and then back into another computer and open the iMovie program on that computer and when opened this file, I can continue editing my video. Right now, I cannot take out my raw clips from the computer into an external drive since if I do, the program's import part will be blank and all clips will be black and I then will need to re-put in the clips.
    Is there a way of taking an unfinished iMovie project and put it on an another computer and open that file to continue editing?
    And more importantly, is it necessary that I have the raw clips inside the import folder at all time or else the footage of that clip go missing on my project?
    Isn't there a way of like "embed image" way of that I can still delete a clip of the raw footage and my project will save the edited version of a clip in another folder?
    My camera is Sony Handycam HDR CX110
    I hope you can understand my questions and please answer them quickly. Thanks.

    See my post here on how to do this.
    https://discussions.apple.com/docs/DOC-4141

  • Backup while database are running in replication mode

    We have to devise the stratgey for backup and restore of database which are involed into repliation e.g. master database and snapshot database

    I am sorry, but all of the iPad content is gone now. With no backup, there is no way to retrieve anything. You cannot backup now either. Use recovery mode, restore your iPad and download your content again and start all over. You have no choice.

  • How long has my database been running?

    Hello,
    For audit i need calculate how long has my production database been running.
    I searched in this and others forums a command or query that show me this information but I did not find an answer.
    any help is appreciated
    regards.
    JP

    Hi,
    You can get from AWR report ... if you have generated , alert log too and mainly v$instance...
    - Pavan Kumar N

  • Frame does not refresh while Thread is running

    Hi all,
    following problem:
    I have two frames - a "search" frame and a "main" frame.
    When I double click an item in the search frame, the item should be loaded an displayed in the main frame - that works well so far.
    but when i try to load larger objects the two frames do not refresh nor respond, although I use a thread to load my objects.
    Has anyone an idea how to get that working (the users want to continue working while objects are loading...otherwise they'll slay me!)
    i use following thread structure:
    private void startLoadThread(final String l3, final String selection) {
    Thread t = new Thread(new Runnable() {
         public void run() {
    //here is the load method...
         CustomerMaintenanceApplication.chnpanel.loadBigNodesAsThread (l3, selection);
              t.start();
    Thank you very much....

    hi bill,
    i'm eager for that main-frame joke.... :-D
    yes it is a JFrame and no, I didn't read the Tut.
    because i'm running out of time...!
    any hints for me??
    Thanks,
    HendrikUch, that was it (the joke, that is). Anyway, hongmeng handed you the tut and the answer I was alluding to.
    ~Bill

  • Working while repairing disk permissions?

    Is it ok to do remedial tasks while repairing disk permissions, such as surfing the net, checking email,etc? As long as I'm not installing anything or making system changes?
    Thanks,
    Wesley

    yes, it's quite ok to work while repair permissions runs.

  • Database is running slow

    How do I check why database is running slow? I got a complaint from user saying that database is slow, How do I check which process is taking to long?
    Select * from v$version;
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE     11.2.0.2.0     Production"
    TNS for HPUX: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    Hi,
    Do you have Enterprise Manager configured? Using EM is the best and the easiest way to see what's wrong with your database.
    Otherwise, if the performance is slow since last few minutes, you can use Active Session History (ASH) Reports to check the top queries. Also you will notice the top wait events in the same.
    If the performance issue is consistent over last few hours, you better check AWR & ADDM reports. These will give you a better insight and way to find out if there are any performance issues. From the Top wait events, you can see if the bottleneck exists in the database or external to the database.
    If there's a query that's suddenly performing badly, you can first try to gather it's stats of the tables involved.
    Regards,
    Rizwan Wangde
    Sr. Oracle DBA
    http://rizwan-dba.blogspot.com

  • How gsm modem work?

    Hi all,
    Could any one tell me how gsm modems work while we connecting the pc or pda to a mobile phoe which is connected to internet . is there only a serial connection from the client to server ? or something else

    duplicate post. No need to post the same question multiple times and be patient in waiting for an answer.

  • How can I continue using adobe Pro while OCR is running

    We are using Acrobat Pro X, and deal with scanned PDFs that reach up to 300 pages. While OCR is running, Adobe cant open any other PDF files or let us work in it at all.
    is there a fix or a trick we can use to get around this?

    You can use Adobe Reader for viewing PDF files.

  • I can edit on Premiere Pro 6 files, but after a dozen keystrokes, the space bar and cursor keys stop working while the save function works

    I can edit on Premiere Pro 6 files, but after a dozen keystrokes, the space bar and cursor keys stop working while the save function, render workspace function, export file are still operational. How can I fix it so I may complete my assignment?
    Besides DaVinci Resolve, Adobe Creative Suite 6 is the only software on the machine. I am using Windows 7 Professional 64-bit Operating System on AMD FX 6100 six-Core Processor at 3.31gHz and 32 GB RAM memory. There are two SLI-bridged GTX680 NVidia cards.
    The software was very stable for the last six months, working with 720P proxy files from 2.5K masters (Blackmagic Design Camera). I am working on a feature-length project that exceeds 1000 edits. I have broken the file into 2 one hour segments.
    I have deactivated the software before reinstalling the entire OS from scratch. PP6 was very stable for 48 hours. Then the freezing space bar returns. After a dozen strokes into the project, same problem.  I have made cache files store next to originals, I have deleted preview files if they were corrupted and causing instability. Am I missing something?
    I have Microsoft Security Essentials for virus protection. I double checked the memory for damage/defect. Nothing says that the motherboard or other components are damaged.
    I am in film competition overseas and need to have deliverables in less than a month's time.  I lost the last two weeks troubleshooting and this crisis came at an inopportune moment of the project.
    Any assistance would be greatly appreciated.

    Still getting software freezes but found a way to mitigate for the mean time.
    Upon launching Adobe Premiere Pro, hit CTRL-ALT-DEL to launch TaskManager as well.
    You will want to highlight Adobe QT32 Server.exe
    Right click and select "End Process Tree"
    You will get considerable stability in the program, long enough to get timing of cuts done. Be sure to save often.
    If the program freezes, do not hit Save. You definitely want to avoid saving the corruption into your TimeLine
    CTRL-ALT-DEL to relaunch the TaskManager and highlight Adobe Premiere Pro.exe
    Right-click to "End Process"
    No need to reboot the whole system; just launch Premiere Pro again and continue with the session. Note that your work reverted to Last Save.
    Hope this helps until the bug is fixed.

  • How to identify the environment (database) Apex is running on?

    Hi
    We are going to have 3 environments here: Development, Test and Production (separate databases/servers for each one). As usual, the development process will move applications from Dev -> Test -> Prod.
    On my Apex 3 applications, I would like to visually identify, in some way, to which environment I am currently connected. For instance, displaying the name of the environment on the page header.
    My problem is how to identify what environment Apex is running on. Is there any Apex instance-level property where I can set a string and display it in my applications? Or something like that?
    What is the best way to achieve this? Any suggestions welcome.
    Thanks,
    Luis

    Luis,
    another option is to check the http environment to get this information.
    This is what we use in one of our applications:
       FUNCTION get_environment
          RETURN VARCHAR2
       IS
       BEGIN
          IF LOWER (OWA_UTIL.get_cgi_env ('SERVER_NAME')) IN
                          ('development.opal-consulting.de')
          THEN
             RETURN c_development;
          ELSIF LOWER (OWA_UTIL.get_cgi_env ('SERVER_NAME')) =
                                                       'test.opal-consulting.de'
          THEN
             RETURN c_test;
          ELSE
             RETURN c_production;
          END IF;
       END;Unfortunately, this doesn't work with Oracle XE, thus you might be better off checking the value of: OWA_UTIL.get_cgi_env ('HTTP_HOST')
    Anyway, I would also rather suggest using the table based approach, I use it in most applications now. This way you are more flexible. You can simulate all different settings in the same schema. Also, you can install development and test in the same database.
    Regards,
    ~Dietmar.

  • How to configure Enterprise Manager Database Control (EMDC) to make it work on 2 servers working (primary and standby) under DG rules

    Hello everybody i use Oracle Database EE 11.2.0.4 with DG.
    In those cases i need to get Enterprise Manager Database Control running against DB with no RAC and no DG i perform the following steps:
    I Logon SQLPLUS as user SYS or SYSTEM, and drop the sysman account and management objects:
    DECLARE
    CURSOR c1 IS
    SELECT owner, synonym_name name
    FROM dba_synonyms
    WHERE table_owner = 'SYSMAN';
    BEGIN
    FOR r1 IN c1 LOOP
    IF r1.owner = 'PUBLIC' THEN
    EXECUTE IMMEDIATE 'DROP PUBLIC SYNONYM '||r1.name;
    ELSE
    EXECUTE IMMEDIATE 'DROP SYNONYM '||r1.owner||'.'||r1.name;
    END IF;
    END LOOP;
    END;
    DROP USER mgmt_view CASCADE;
    DROP ROLE mgmt_user;
    DROP USER sysman CASCADE;
    After that i run
    emca -config dbcontrol db -repos recreate
    But what should i do in cases i have 2 servers working (primary and standby) under DG rules?

    Hi ,
    It is not possible to monitor/administer a Logical or Physical Standby database, i.e Data Guard, using Enterprise Manager Database Control.  This is primarily due to the fact that Database Control is designed to monitor 1 database and a Data Guard environment, by definition, includes more than 1 database.
    If you attempt to run emca against a standby Database, you will get an error like (i.e. ORA-01219: database not open).
    Database Control, can, of course, be used to monitor the current Primary database (with no ability to administer or monitor Data Guard related functionality).  In such a case, when failover occurs Database Control must be reconfigured to run on the new Primary database using the commands detailed in Note 278100.1 How To Drop, Create And Recreate DB Control In A 10g Database, section C. Recreate/ReConfig DB Control, Option 2. Recreate the DB Control Configuration Files and Repository.
    Enterprise Manager Grid Control or Cloud Control provides the functionality for viewing, monitoring, and administering primary and standby databases in a Data Guard configuration.
    Reference: Is it Possible to Configure Database Control for a Logical or Physical Standby Database? (Doc ID 315116.1)
    You can use EM 12c cloud control to monitor and manager Standby DB effectively
    Ref to below link for details
    Set Up and Manage Oracle Data Guard using Oracle Enterprise Manager Cloud Control 12c
    Regards,
    Rahul

Maybe you are looking for

  • Where do I find the serial number for my free LR 5.6 that came with my new Leica camera?

    Where do I find the serial number for my free LR 5.6 that came with my new Leica camera?

  • Photo effects in flex app

    HI, I have implemented basic image effects into flex app, such as opacity, darkness etc.  I am looking for some advanced effects such as, paint, cartoon etc, ones you can find in fotoflexer.com or lunapic.com Can anybody suggest something? algorithms

  • Administrative console doesn't seem to work

    I've just installed appserver7 on windows 2000 professional sp2. (256mb, P3 733MHz). Everything seems to work quite fine, application server and administrative server are up. I can connect to localhost:4848, will be asked for passw and login, can get

  • Game with layers

    Hi, I'm trying to develop a little game. It's a simple 3/4 view (top-down view isometric) car game (quite classic I know). But what I'm looking for is how to add different layers in my game. I mean when the car is under a tree, then the car should di

  • Help with painting

    I need to mae 6 buttons: 1,2,3,4,5,6. When I press an button, my red die will show the approriate number and the coputer will also roll it simultaneously. But I have problem why I can't paint inside the string?? Help please!!! Here is one part my pro