Separate status of jobs

Hi, I was looking for assistance regarding a request that I need to write to give me all the jobids that have not been closed, based on the date max. Here is my table create and insert query:

CREATE TABLE "SOL_HOURS" 
   ( "AGENT_NAME" VARCHAR2(100 BYTE), 
 "TOTAL_HOURS" VARCHAR2(100 BYTE), 
 "DAYS_DATE" DATE, 
 "JOBID" NUMBER, 
 "STATUS" VARCHAR2(10 BYTE)
   )

Insert into SOL_HOURS (AGENT_NAME,TOTAL_HOURS,DAYS_DATE,JOBID,STATUS) values ('HUMPTY','04:00:00',to_date('25-APR-15 00:00:00','DD-MON-RR HH24:MI:SS'),1234,'Open');
Insert into SOL_HOURS (AGENT_NAME,TOTAL_HOURS,DAYS_DATE,JOBID,STATUS) values ('HUMPTY','08:30:00',to_date('27-APR-15 00:00:00','DD-MON-RR HH24:MI:SS'),1234,'Open');
Insert into SOL_HOURS (AGENT_NAME,TOTAL_HOURS,DAYS_DATE,JOBID,STATUS) values ('HUMPTY','08:00:00',to_date('28-APR-15 00:00:00','DD-MON-RR HH24:MI:SS'),1234,'Closed');
Insert into SOL_HOURS (AGENT_NAME,TOTAL_HOURS,DAYS_DATE,JOBID,STATUS) values ('HUMPTY','08:00:00',to_date('29-APR-15 00:00:00','DD-MON-RR HH24:MI:SS'),1234,'Closed');
Insert into SOL_HOURS (AGENT_NAME,TOTAL_HOURS,DAYS_DATE,JOBID,STATUS) values ('HUMPTY','08:00:00',to_date('30-APR-15 00:00:00','DD-MON-RR HH24:MI:SS'),5678,'Open');
Insert into SOL_HOURS (AGENT_NAME,TOTAL_HOURS,DAYS_DATE,JOBID,STATUS) values ('HUMPTY','08:30:00',to_date('01-MAY-15 00:00:00','DD-MON-RR HH24:MI:SS'),5678,'Open');

My output should look like:

AGENT_NAME | DAYS_DATE | JOB_ID | STATUS

HUMPTY | 1 MAY 15 00:00:00 | 5678 | Open

So the output will look through the jobids, find those whose status is open, and if this is not a match for the closing jobid status then will display me the result.

Seems simple, but can not work around my head as to how to write, if someone could give advice please.

Thanks in advance.

SQL> select *
  2    from (
  3          select s.*
  4               , count(distinct status) over(partition by agent_name, jobid) cnt
  5               , row_number() over(partition by agent_name, jobid, status order by days_date desc) rno
  6            from sol_hours s
  7         )
  8   where cnt = 1
  9     and status = 'Open'
 10     and rno = 1;

AGENT_NAME                TOTAL_HOURS               DAYS_DATE      JOBID STATUS            CNT        RNO
------------------------- ------------------------- --------- ---------- ---------- ---------- ----------
HUMPTY                    08:30:00                  01-MAY-15       5678 Open                1       1

SQL>

Tags: Database

Similar Questions

  • Oracle has no status DBMS_SCHEDULER jobs?

    Hi all

    How to check the failure status for tasks scheduled using DBMS_SCHEDULER jobs

    What are the errors that are reported?

  • vCenter DB moved to another server - missing jobs?

    Hello.

    I just moved our virtual Center / Manager Update databases to a new server - which went well and vCenter 4.1 is being run again - but what comes to my mind, it is that the rest of this guide:

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1004382 

    ... There will be 3 jobs in "SQL server agent job list:

    Last day stats rollup

    Last month...

    Last week...

    BUT, when I look at the old server has the same 3 jobs over these:

    Cleanup task event

    TopN day

    TopN last month

    TopN since one week

    TopN for a year

    No longer needed? Either lack just in the link above?

    Hey Chrmol - I just stumbled upon a problem similar < < I guess it's the same question > >.

    I moved my VC DB to another server and made to recreate jobs for the postponement of his performance stats. I forgot to check my vCenter in front DR, but when I did today, I noticed that the jobs that you have mentioned exist in a vCenter nine 4.1 DB as opposed to a DB from 4.0 to 4.1 upgrade. I saw warnings under vCenter Service status as jobs were not cleaning all the data.

    I solved the problem by running queries for all work on my upgraded DB VC. Now the two DBs have the same jobs such as topn spent the day, etc.

    Queries are named job_blah, blah_mssql.sql. I ran all but Annex 1, 2 & 3 (perf stats) and this has created the same jobs as the new vCenter 4.1 DB.

    The path to the sql queries is file://\\%vCenterServer%\c$\Program Files\VMware\Infrastructure\VirtualCenter Server

    Not sure if you are still working on it, but I thought I'd bring it just in case where.

    ___________________

    A +, EASD, MCP, MCSA, MCSE, MCTS, MCITP, MCDBA, NCDA, VCP4

    If you find this or any other answer useful please consider giving points by checking the correct or helpful answer.

  • If I click on "PIN to the browser" the sensitive axis is unselected and vice versa. I need object "PIN at the top of the browser" and 'sensitive pine' work at the same time. Any suggestions?

    In the latest version of muse to adobe, I have me against "PIN at the top of the browser" and 'sensitive pine' work at the same time.

    Now if I choose an object and the axis 'browser', "sensitive pine" is unselected and vice versa.

    The need is for the header with the logo and menu bar to be pinned to the top of the browser, so that the page scrolls in the header bar.

    Now when I click on the sensitive left axis for the logo and the sensitive right pin for the navigation bar, the "pin at the top of the browser" gets deselected.

    Any suggestions or workarounds will be appreciated.

    Kind regards

    Vijay

    Hi all

    Thanks for that bring to our attention. We will consider adding this feature in the future.

    RyanDoyle - it's an interesting hack you have found! Unfortunately, I wouldn't count on that it works like this in the future, as a bug which is to operate. If you drag the screen to change the width of the browser as a Muse, you'll see that the behavior of the elements in the status button (a menu, for example) is different from when exported. However, if you make a small change to your hack, so it should always work: set button "width sensitive" State instead. In addition, I don't see why all parts must be in separate to this job state buttons, but I've only tried a simple example myself.

    An another workaround I used is to create another, more breakpoint. For example, if I have a menu that is pinned to the top left of the browser in the dots stop, then in a breakpoint, I would pin in the center top of the browser. Normally, I wouldn't add more breakpoints, but there is a way that I found to work around the problem. Ryan workaround is perhaps the best way to go if you take my advice and use a status button sensitive width instead of the width of the browser.

    Hope this helps,

    Anna

  • 1720-smart hard drive detects failure immient

    product name - Z420 HP workstation LJ449AV

    OS - Windows 7 64 bit

    mistake - then the system startup it shows this error

    1720-smart hard drive detects failure immient

    Failed disk: SATA0 (gray)

    In the absence of capital: #B8

    change the status of job worth its rebooted automatically

    only 2 months before our company bought this system, please provide a solution

    The hard drive is faulty and must be replaced. It seems that the computer was purchased about two months ago and is still under warranty. Please contact HP Customer Support in your region to demand service guarantee.

    Please send Bravo

  • HP Laser Jet CM1312nfi MFP: No compatible Twain installed device

    Hello

    I hope someone can help please. Yesterday, I was using my printer color Laser Jet CM1312nfi MFP multifunction scan a few pages. The analysis went through fine without problem like so many others before. No changes have been made to the system and I am the only person using the computer and the printer.

    About 45 minutes after the last scan, I went to scan another page when I got this message:

    "No Twain compatible device installed, please install one and try again.

    The scanner wouldn't work. I tried restarting the computer and the printer on and outside, does not. I thought that maybe there was a problem with the machine itself or a loose cable or connection but the machine still print documents.

    I tried to use HP printing and doctor Scan and it does not work. He guided me to several pilots. I downloaded and tried one called "CM1312series-win7-full-solution-AM-EMEA1-v5.1". The installation will not fully cross and reverses. The same thing happens when I try to reinstall the original software that I used to use the scanner a few years back.

    Can anyone help?

    Thank you

    Thank you

    I finally solved the problem the next day after several hours of frustration.

    I would like to uninstall the driver software, disconnect the USB cable, and restart the computer. After the reboot, I would try one of the options mentioned previously. At some point, the installation process asked me to reconnect the USB cable and then click on the button 'OK' or 'Continue' in the dialog box for installion.

    However, I noticed that as soon as I plugged in the USB cable, but before I could click the button, Windows would automatically begin to install a driver. That would be doing the same thing. He would install components 6 or 7, 4 or 5 would move to print successfully. A separate status dialog box would jump to the top showing these parts installed. A green check mark appears beside the print functions. However, 2 components dealing with sweeping would not install properly. These components would get a red X next to them.

    During this time, I would have clicked on the button 'OK' or 'Continue' in the dialog box for installion. After a few minutes, the installation abort itself and I would end up having to uninstall the driver and restart everything again.

    Finally, he appeared on me that 2 separate facilities are taking place at the same time. What finally solved the problem after uninstalling the driver and restart again, I started the original installation process, but when I was asked to connect the USB cable, I first disconnected the computer from the internet and then connected the USB cable.

    Before I could click on the "Continue" button, I noticed that the separate installation process began again. Immediately, I clicked the X in this dialog box to put an end to this facility. I then clicked 'Continue' on the installation dialog box desired and it finally all settled. Once it is installed, I reconnected it the computer to the internet and the scanner now worked.

    Thanks for your advice in any case.

  • HP F2G72A stapler: stapler HP F2G72A accessory

    The accessory of stapler HP F2G72A is installed on a HP M605n laserjet printer.
    The device is recognized in the configuration of the printer such as unit name ' stapler 500 leaves HP LaserJet/electric stackers "."
    It is configured in output tray 3, 500 sheets, top tray.
    There is no specific administration/manual to use the device, so I have to go through third-party accounts online of how the functions of the device.
    Currently, this electric stacker works only as a different output tray, manage 500 sheets. Printing of different users are stacked that one way, there is no ability to distinguish the output printed to the different user.
    But according to several online reports, the electric stacker supposedly serves a more important function. Apparently, the printed output are assumed to be positioned to the left or to the right to keep them separate.
    Print jobs are supposed to be sorted into different piles (note, it is the unique output tray, F2G72A, not the model who has separated output bins) in this unique outlet store.

    Here's what's own HP site:
    When a stapler/tray is installed, the product is automatically rotates images printed on all paper sizes 180 °.

    But no matter what I try, output from different users out in only the one direction, furrowed not as stated in the previous statement.
    Any help that can be provide would be much appreciated.
    Thank you.

    >> ... When a stapler/tray is installed, the product is automatically rotates images printed on all paper sizes 180 °.

    >> ... But no matter what I try, output from different users out in only the one direction, furrowed not as stated in the previous statement.

    I suspect (but I don't know for you) that you are misinterpreting this statement.

    I think it's a warning that printed images of all the pages will be rotated (in exactly in the same way for each job), which could be important if certain types of paper (for example the letterhead, preprinted or Prepunched) are used.

    I don't think that there is no likely parameters of causes the output of the work to be "crossed".

    There may be (I don't know) the driver settings for:

    • Cause jobs to be stapled (so separated, although it will be possible for the jobs of less than a certain number of pages).

    or:

    • Cause consecutive jobs will be offset (between 5 and 10 mm) by 'jogging '.
  • Problems with Vista OS SP2 after automatic updates: using OneCare; application of integrated keylogger HP CPU "HP SDP" made by IBM in Durham, North Carolina (?); corrupted Samsung print driver downloaded from the website of the company

    Entered possible hacker:

    1. techie OneCare WINS access - probably not unauthorized and do not believe it causes always provided a quality service, but they have had access in the past.

    2 HP technicians - have had access to my computer once - did a good job with computer crash (not sure cause), but tried to sell me more HP products when I have no money...

    3. after the technicians HP did good job with crash, started to have pop-ups keep HP application that appeared as an add-on that works without permissions on my computer. Google the name of the HP SDP application > recovered information said program is IBM in North Carolina. Called them. Nobody gives any information on the program until I got ahold of a person who gave me the phone to techie Dept. It took all day. Not have not yet contacted technology because they have closed before I could call.

    4. called HP to inquire about the search info from HP SDP. on his goal? HP said he works as a keylogger you sell stuff. But what was weird is after the system crashed and repaired, there was one day that he has opened three times in ten minutes! The behavior of the application has changed after my OS has been repaired. Then after that I indicated HP where I found information on this program, the program disappear from the list of "run without permissions" in internet options explore > manage add-ons > run without the permissions list

    5. one day, I'm working on a word document, and the printer stops abruptly, impression. No amount of turn, or by clicking 'Cancel' will get doc from the printer queue. MS literature said this could be a security issue. The printer says "printing of documents", but no printing at my end.

    This problem is compounded when I delete browsing history and try to refresh the internet Explorer. That activity seems to take pieces of the program Samsung printer with it, even if I had excellent results in the past with Samsung printers and their downloads, and I never had the damaged printer driver to exercise this activity in the past.

    If I didn't have a short term in the Court of appeal in a week, I would say it's a question of OS, or program problem, but it's as if something falls down as soon as another issue is fixed and the unusual behavior of the computer, more timing and the purpose of the brief to me 90% sure that this is a pirate or a virus the surplus of the Samsung driver deleted pieces being left on my machine after uninstall.

    Dear Karena R,.

    Thanks a lot for your excellent advice. The Techies MS OneCare fixed the popup of HP before I read your message. (I was remiss to check my email...). I'll follow the instructions you sent me and am running the OneCare security right now, online scanner that I already know an excellent and effective tool because it has repaired my MS operating system and programs after that I accidentally deleted parts of the operating system by removing a .dll file, I need or such a thing! I also wanted to thank you for the information about the object of the HP SDP pop-up window. I saved your instructions on how to remove this case, the pop up appears again. One thing I noticed is that, after removal, some keys on my keyboard don't work, and I've read that other HP users encounter the same problem with the keys on the keyboard. The keys that seem to be affected are the keys that automatically open and close the door of the CD burner. Not a problem, because it is another way to open and close the drawer. It's one that HP must improve. In regards to your advice on the printer driver you have been 'right on' new! I reinstalled the driver using my own CD (not the latest driver, but one that works!) I think that the problem with the update of the Samsung driver that I downloaded from the Web site doesn't have some kind of problem. It is very unusual for a driver to Samsung, because I got excellent results with printers Samsung and free updates downloaded from their Web site. The first Samsung printer I had worked so well, for so long as the small rubber roller that takes the paper and it feeds through the printer wore out until the printer is, literally in a 100,000 pages printed after that I bought for about $80.00 dollars! So, I went out and bought another one, and that's what I use now. The printer works fine now, except for some reason, the icon in my taskbar notification area, allow to check the printer the status of jobs, cancel or repeat printing as before. Once. from time to time, a job stuck in the queue for the printer and will not erase unless I unplug the printer from the central unit. Nor will it print. But since I reinstalled the driver, this has happened only once. With the downloaded update, it happened all the time. It is possible that my OS is misconfigured, but I started to run the routine tune ups and analyses using OneCare and unless I used to defragment. I learned that the defragmentation of the hard disk too can cause problems also. The last thing is, I think that sometimes, tiny files needed to run my OS and files other programs can be sent to my temporary folder by accident. MS still once, All_Knowing computer, somehow recognizes the files I need and pushes me to ignore them, but perhaps it does not work for non-Microsoft like Adobe programs. I will use the link in your message to run the fix with the printer driver just to see if it works. If it is not the case, I can always reinstall the driver with my CD that came with the printer. Thanks for the excellent and informative tips and forgive me if I do not respond sooner!

    Sincerely,

    E-mail address is removed from the privacy *.

  • Not connected. Connections are available. I am connected to the internet but, and all this shows is gray bars with the yellow connection star on them.

    I am connected to the internet, but it is said in the toolbar not connected and connections are available. There is only 1 link and I'm connected to it. How can I change display green bars, instead of grey bars with a yellow star?

    As the title says.
    It's weird, and I think that this is the reason why some of my programs connect properly?
    Does anyone have a solution to fix this problem?

    Hi DamienDwyer,

    1. are you referring to the status of job internet bar?
    2 when the problem started?
    3. have you made changes on the computer recently?

    Method 1
    Try troubleshooting of network running.

    Use Network Troubleshooter event logs to solve network problems
    http://Windows.Microsoft.com/en-us/Windows7/use-Network-Troubleshooter-event-logs-to-solve-network-problems

    Method 2
    check the status in safe mode with network and display the results.

    Start your computer in safe mode
    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Method 3
    I suggest you try the steps from the following links:

    Windows wireless and wired network connection problems
    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Wireless network card: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/wireless-networking-frequently-asked-questions

  • SQL query to search for the line that contains the identifier for each consecutive group

    Hello

    I'm on 11.2.0.3 Enterprise Edition.

    I have a strange request here - do not know if this is possible without going to procedure...

    Given these data of the sample:

    create table test_status (
      status varchar2(10),
      revision_id number,
      revision_timestamp timestamp);
    
    insert into test_status values ('PROPOSED', 1, systimestamp);
    insert into test_status values ('PROPOSED', 2, systimestamp);
    insert into test_status values ('PROPOSED', 3, systimestamp);
    insert into test_status values ('ACTIVE', 4, systimestamp);
    insert into test_status values ('ACTIVE', 5, systimestamp);
    insert into test_status values ('PROPOSED', 6, systimestamp);
    insert into test_status values ('PROPOSED', 7, systimestamp);
    insert into test_status values ('ACTIVE', 8, systimestamp);
    insert into test_status values ('ACTIVE', 9, systimestamp);
    insert into test_status values ('FINISHED', 10, systimestamp);
    insert into test_status values ('FINISHED', 11, systimestamp);
    insert into test_status values ('FINISHED', 12, systimestamp);
    

    Gives me:

    SQL> select *
      2  from test_status
      3  order by revision_id;
    
    
    STATUS     REVISION_ID REVISION_TIMESTAMP
    ---------- ----------- -----------------------------
    PROPOSED             1 25-SEP-14 04.49.47.954000 PM
    PROPOSED             2 25-SEP-14 04.49.47.962000 PM
    PROPOSED             3 25-SEP-14 04.49.47.966000 PM
    ACTIVE               4 25-SEP-14 04.49.47.969000 PM
    ACTIVE               5 25-SEP-14 04.49.47.972000 PM
    PROPOSED             6 25-SEP-14 04.49.47.976000 PM
    PROPOSED             7 25-SEP-14 04.49.47.979000 PM
    ACTIVE               8 25-SEP-14 04.49.47.982000 PM
    ACTIVE               9 25-SEP-14 04.49.47.987000 PM
    FINISHED            10 25-SEP-14 04.49.47.991000 PM
    FINISHED            11 25-SEP-14 04.49.47.996000 PM
    FINISHED            12 25-SEP-14 04.49.48.000000 PM
    
    
    12 rows selected.
    ws selected.
    

    I want to get this result:

    STATUS     REVISION_ID REVISION_TIMESTAMP
    ---------- ----------- ----------------------------
    PROPOSED             3 25-SEP-14 04.49.47.966000 PM
    ACTIVE               5 25-SEP-14 04.49.47.972000 PM
    PROPOSED             7 25-SEP-14 04.49.47.979000 PM
    ACTIVE               9 25-SEP-14 04.49.47.987000 PM
    FINISHED            12 25-SEP-14 04.49.48.000000 PM
    

    Then query the table ordered by Revision_Id, I would get the line containing the highest revision for each consecutive group of status values.  I am able to get the line containing the highest revision for each separate status, value, but I can't deal with the scenario where a state value reappears later.  In the case of the real world, it is a workflow and I need to take into account the fact that an element through the workflow may be redirected to the back front she proceeds forward again.

    Hope it makes sense.

    Thank you

    John

    Hi, John,.

    John OToole (Dublin) wrote:

    Hello

    I'm on 11.2.0.3 Enterprise Edition.

    I have a strange request here - do not know if this is possible without going to procedure...

    ...

    Do not no stinkin' procedure:

    WITH got_grp_id AS

    (

    SELECT the status, revision_id, revision_timestamp

    ROW_NUMBER () OVER (ORDER BY revision_id)

    -ROW_NUMBER () (PARTITION STATUS

    ORDER BY revision_id

    ) AS grp_id

    OF test_status

    )

    SELECT status

    MAX (revision_id) AS revision_id

    MAX (revision_timestamp) DUNGEON (DENSE_RANK LAST ORDER BY revision_id)

    AS revision_timestamp

    OF got_grp_id

    GROUP BY status, grp_id

    ORDER BY revision_id

    ;

    For an explanation of the technique of Difference sets used here, see

    Analytic Question lag and lead and/or

    Re: Ranking of queries

  • expdp crashes after reaching 99% with - wait for a message unread on the broadcast channel

    Here's what I do:

    I export a complete database of PeopleSoft on Solaris 10 using EXPDP.

    I am performing the task as the SYSTEM user and dumping out standard time and labor in a log file.  The $TODAY is just a variable export stamp date.


    It's my run line:

    expdp PARFILE DUMPFILE=psptst.$TODAY.f%U.dmp USERID = SYSTEM expdp.par = / * logfile = expdp_$ ORACLE_SID. $TODAY.log

    My parfile looks like this:

    DIRECTORY = data_pump_dir

    FULL = Y

    PARALLEL = 8

    CONTENT = ALL

    exclude = pattern: "IN (select username from dba_users where useridentifier < 54)" "

    I'm running the command on the same server where the database is located, I have plenty of space.  The server is a Solaris M5000 with 64 GB of RAM, a lot of CPU power and it is the only database running here.  I also close the database and he grew up in restricted so mode nothing else can connect to it since this export is for the migration to Linux and 11.2.  The current database is 11.1.0.7.5.

    My short for export until that strikes it full to 99% then crashes just for hours, and never ends.  I checked the TOAD jobs and all the worker nodes are ASSETS, but the dump file, the file log and standard file are all NO more.

    Here is the output of STAT when I connect to the use of data pump:

    Export > stat

    Job: SYS_EXPORT_FULL_01

    Operation: EXPORT

    Mode: FULL

    Status: EXECUTION

    Bytes processed: 145,006,844,064

    Completion percentage: 99

    Current parallelism: 8

    Number of job errors: 0

    Empty the file: /ora_exports/psptst/psptst.2013.Oct.14.1814.f%u.dmp

    Empty the file: /ora_exports/psptst/psptst.2013.Oct.14.1814.f01.dmp

    bytes written: 27,062,280,192

    Empty the file: /ora_exports/psptst/psptst.2013.Oct.14.1814.f02.dmp

    bytes written: 23,638,007,808

    Empty the file: /ora_exports/psptst/psptst.2013.Oct.14.1814.f03.dmp

    bytes written: 10,316,234,752

    Empty the file: /ora_exports/psptst/psptst.2013.Oct.14.1814.f04.dmp

    bytes written: 14,783,823,872

    Empty the file: /ora_exports/psptst/psptst.2013.Oct.14.1814.f05.dmp

    bytes written: 22,908,686,336

    Empty the file: /ora_exports/psptst/psptst.2013.Oct.14.1814.f06.dmp

    bytes written: 23,083,012,096

    Empty the file: /ora_exports/psptst/psptst.2013.Oct.14.1814.f07.dmp

    bytes written: 23,221,575,680

    Empty the file: /ora_exports/psptst/psptst.2013.Oct.14.1814.f08.dmp

    bytes written: 57,970,688

    Worker status 1:

    Process name: DW01

    Status: Pending JOBS

    2 worker status:

    Process name: DW02

    Status: Pending JOBS

    Status of worker 3:

    Process name: DW03

    Status: Pending JOBS

    Worker status 4:

    Process name: DW04

    Status: Pending JOBS

    Worker status 5:

    Process name: DW05

    Status: Pending JOBS

    Worker status 6:

    Process name: DW06

    Status: Pending JOBS

    Worker status 7:

    Process name: DW07

    Status: Pending JOBS

    Status of worker 8:

    Process name: DW08

    Status: Pending JOBS

    The status of all the expectations of workers are "wait message unread on the chain."  The said master worker, "the db file sequential read" as he wait status.

    I have tried this with a value of 4 and 16 parallel and get the same result.  I also tried with no parallel set and get the same result after 2 hours it crashes just indefinitely.

    I noticed that once the + treated bytes: 145,006,844,064 hit that number he stops just whatever the parallel level set.  I checked and the MAX_DUMP_FILE_SIZE database is set to unlimited.

    There is no old jobs in the dba_datapump_jobs and the status of my job is RUNNING.


    The alerts log is clean just redo log rolls that I expect.


    This has me scratching my head as it appears that the job runs just forever, but don't go no where.

    With the help of the Support of Oracle solution has proved to be something very simple.

    The statistics of the SYSTEM were stale, once updated the EXPDP stole!

    I ran these DBMS (as SYSDBA) positions:

    EXEC DBMS_STATS. GATHER_FIXED_OBJECTS_STATS (NULL);
    EXEC DBMS_STATS. GATHER_DICTIONARY_STATS;
    EXEC DBMS_STATS. GATHER_SYSTEM_STATS;

    The export not only of finishes, he's even faster than before. It has exported the entire base (450GB) in about 1 hour and 15 minutes (in the past, it took more than 3 hours).  I used a parallel framework 16.

  • need help on improving speed expdp

    I just tested a 3.5 GB table export, it took almost 1 and a half hours.

    Read the logs files here:

    Export: Release 11.1.0.7.0 - 64 bit Production Saturday, April 28, 2012 22:27:53

    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    ;;;
    Connected to: Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With the partitioning, Real Application Clusters, OLAP, data mining
    and Real Application Testing options
    Start "SYSTEM". "" SYS_EXPORT_TABLE_01 ": System / * parfile = exp_t454.par
    Current estimation using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 22,59 GB
    Object type TABLE_EXPORT/TABLE/TABLE processing
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS of treatment
    Object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment
    . . exported "ADMIN". "" T454 "3,833 GB 3340156 lines
    Main table 'SYSTEM '. "" SYS_EXPORT_TABLE_01 "properly load/unloaded
    ******************************************************************************
    Empty the file system set. SYS_EXPORT_TABLE_01 is:
    /U01/export/admin_migration/exp_admin_t454_01.dmp
    /U01/export/admin_migration/exp_admin_t454_02.dmp
    Work 'SYSTEM '. "" SYS_EXPORT_TABLE_01 "conducted at 23:55:15


    my file by looks like this:
    tables is admin. T454 DIRECTORY = data_pump_dir dumpfile=exp_admin_t454_%U.dmp logfile = parallel exp_admin_t454.log = size 3 = 5000 m compression = all

    in the Middle expdp, I ran a State of the work and got this:

    admin1 expdp system $ attach = SYS_EXPORT_TABLE_01

    Export: Release 11.1.0.7.0 - 64 bit Production Saturday, April 28, 2012 22:49:04

    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Password:

    Connected to: Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With the partitioning, Real Application Clusters, OLAP, data mining
    and Real Application Testing options

    Job: SYS_EXPORT_TABLE_01
    Owner: SYSTEM
    Operation: EXPORT
    Creator privs: TRUE
    GUID: BEC5BBC2966860B0E0430AEC944B60B0
    Start time: Saturday, April 28, 2012 22:28:07
    Mode: TABLE
    Instance: admin1
    Max parallelism: 3
    EXPORT parameters of work:
    Value of the parameter Name parameter:
    System CLIENT_COMMAND / * parfile = exp_t454.par
    COMPRESSION OF ALL THE
    Status: EXECUTION
    Bytes processed: 0
    Current parallelism: 3
    Number of job errors: 0
    Empty the file: /u01/export/admin_migration/exp_admin_t454_%u.dmp
    size: 5,242,880,000
    Empty the file: /u01/export/admin_migration/exp_admin_t454_01.dmp
    size: 5,242,880,000
    bytes written: 4 096
    Empty the file: /u01/export/admin_migration/exp_admin_t454_02.dmp
    size: 5,242,880,000
    bytes written: 28 672

    Worker status 1:
    Process name: DW01
    Status: Pending JOBS

    2 worker status:
    Process name: DW02
    Status: EXECUTION
    Schema of object: admin.
    Object name: T454
    Type of object: TABLE_EXPORT/TABLE/TABLE_DATA
    Filled with objects: 1
    Total items: 1
    Finish lines: 1 695 732
    Parallelism of worker: 1

    Export >


    The database version is 11.1.0.7 and os is aix.

    I wonder what I can do to speed up the expdp. I have to do a migration towards expdp a database of 1 TB soon.

    Thanks in advance.

    Trace enable pl according to this Doc MOS - it may show the cause of why it is so slow.

    Import/Export DataPump setting TRACE - How to Diagnose Oracle Data Pump [ID 286496.1]

    I also opened a SR with support. Seems to be a bug any. Expdp on this database has always been slow?

    HTH
    Srini

  • AS2 Drag and Drop - completion response

    I do a drag and drop alphabet learning game. There are 27 Movie Clips (letters) in total that are able to drag.  I made sure 12 Movie clips will drop in a specific DropZone, while the rest will just snap back to their original position.

    I want to do is create a completion response which moves to a separate screen 'Good Job!' when all 12 Movie Clips have been droped in the DropZone.  How can I do this?  I searched online for more help, but nothing seems to be particularly relevant.

    Thank you!

    Avoid putting code "on the" points at all costs... you will learn a bad habit if you start to do that.

    What you have would be something like the following.  I don't know if this code refers to the 12 pieces that you mention, but I hope you can see the logic and apply for them.

    var dropCount = 0;

    {food1_mc.onRelease = food1_mc.onReleaseOutside = Function ()}

    stopDrag();

    If (this ._droptarget == ' / DropZone4 ') {}

    this.onTarget = true;

    _root. DropZone4.gotoAndStop (2);

    dropCount += 1;  Add 1 to dropCount

    if(dropCount == 12) {}

    gotoAndStop ("goodjob");  go to the section called goodjob

    }

    } else {}

    this.onTarget = false;

    _root. DropZone4.gotoAndStop (1)

    }

    }

  • Ask stealing a query

    Hi Solomon et al.,.
    I am grateful to Solomon in this forum that gave me this query... I am a novice in oracle... I ask Salomon or one to explain this request related sup of co...

    delete employee_stat1 e1
    where 2 =)
    SELECT count (distinct e2.emp_status)
    of employee_stat1 e2
    where e2.emp_key = e1.emp_key
    and e2.emp_status in ('P', 'C')
    )

    Here, I need to under stand why use '2' in 'where 2 ='... What does this number "2"... When I use different number, it gets me results have...

    The main query selects an employee (one at a time). Assume that this employee has used key K. Then the subquery selects all employees with employee key K and 'P' or 'C' status and calculates number (separate status). This count can be:

    (1) 0 - when there is no employees with employee key K and status 'P' or 'C ',.
    (2) 1 - when among all employees with employee key K there are employees with the status 'P' and no employees with the status 'C' or vice versa
    (3) 2 - when there is among all employees with employee key K employees are employed with the status 'P' and 'C' status

    As you can see, WHERE 2 = subquery clause will result in TRUE only when the employee has the same key used as employees with the status 'P' and 'C' status Then these employees will be deleted.

    SY.

  • Slow IMPDP

    My database is Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi.

    I use impdp to import tables with the LOBs. Due to the restriction of space, I'm importing directly without creating dump files.

    Impdp userA@db network_link = db_link_name content = data_only NOLOGFILE = y parallel = 16 table table_A =.

    The table that I am importing has 30 GB of data. Curretly it is important at the rate of 1 GB in 1 hour. I say this based on the reduction of dba_free_space.

    The exit status of impdp interactive mode is:

    Import > status

    Job: SYS_IMPORT_TABLE_01
    Operation: IMPORT
    Mode: TABLE
    Status: EXECUTION
    Bytes processed: 0
    Current parallelism: 16
    Number of job errors: 0

    Worker status 1:
    Status: EXECUTION
    Schema of object: IAMAIN
    Object name: IA_BRCHR_VRSN
    Type of object: TABLE_EXPORT/TABLE/TABLE_DATA
    Filled with objects: 1
    Total items: 1
    Parallelism of worker: 1

    2 worker status:
    Status: Pending JOBS


    My question is:

    * 1. Change the parallelism not had no effect on the rate of import? Is relevant to the parallel option when I use the network_link without the dump as file above? *

    * 2. My current parallelism in 16 but my worker parallelism is 1 whatever that means? *

    * 3. A tip to improve performance? *

    I appriciate any input. Thanks for reading.

    PL see if these MOS Docs can help you

    Checklist for Slow Performance of Export Data Pump (expdp) and Import (impdp) (Doc ID 453895.1) DataPump
    https://supporthtml.Oracle.com/EP/faces/secure/km/DocumentDisplay.JSPX?ID=453895.1&h=Y

    Import/Export DataPump setting TRACE - How to Diagnose Oracle Data Pump (Doc ID 286496.1)
    https://supporthtml.Oracle.com/EP/faces/secure/km/DocumentDisplay.JSPX?ID=286496.1&h=Y

    HTH
    Srini

Maybe you are looking for