Why is this work not running?

Why is this work not running?
SQL> BEGIN
  2  DBMS_SCHEDULER.RUN_JOB('EXCHANGE_PART_JOB');
  3  END;
  4  /
BEGIN
*
Error in line 1:
ORA-00911: invalid character.
ORA-06512: in "SYS.DBMS_ISCHED", line 150
ORA-06512: in "SYS.DBMS_SCHEDULER", line 441
ORA-06512: in line 2
This work follow these steps:
CREATE OR REPLACE PROCEDURE Exchange_Partition IS
Sql_Exchange VARCHAR2(2000);
BEGIN
Sql_Exchange := 'ALTER TABLE HR.GPS_LOG_HIS EXCHANGE PARTITION '||
'udp_part'||TO_CHAR(SYSDATE-1/24,'YYYYMMDDHH24')
||' WITH TABLE HR.GPS_LOG';  
EXECUTE IMMEDIATE Sql_Exchange;
END;
/
Use the following program:
BEGIN
  DBMS_SCHEDULER.create_program (
    program_name        => 'exchange_part_prog',
    program_type        => 'STORED_PROCEDURE',
    program_action      => 'EXCHANGE_PARTITION',
    --Use a database directory to replace the OS directory.
    number_of_arguments => 0,
    enabled             => TRUE,
     comments            => 'Program to exchange partitions for hr.gps_log_his table or other tables
                             use a shell script.');
END;
/
Use the following code to create the work:
BEGIN
  DBMS_SCHEDULER.create_job (
    job_name      => 'exchange_part_job',
    program_name  => 'exchange_part_prog',
    schedule_name => 'exchange_part_hourly_schedule',
    enabled       => TRUE,
    auto_drop     => false,
    comments      => 'Job defined to exchange partitions for gps_log_his table or orhter tables.');
END;
/

Ok

ORA-14099: all rows in the table are not eligible for the specified partition
Cause: There is at least one line in the non-partitioned table which does not qualify for the partition specified in the PARTITION of EXCHANGE ALTER TABLE
Action: Ensure that all the lines in the segment qualify for the partition. Perform the operation table alter with the NO CHECK option. Run ANALYZE table VALIDATE on that partition, namely the invalid rows and delete them.

I think you should check the data in gps_log, some lines must belog to another partition?

Concerning
Peter

Tags: Database

Similar Questions

  • Why double click works not for Firefox in Windows 7 (Firefox 15.0.1) type files?

    If I'm in the Windows 7 Windows Explorer double-click the name of a file that is mentioned as being a Firefox file by its file type symbol, it should be launched. But this does not happen. "If I select 'Open with' > Firefox" in the file context menu, nothing happens. But if I select another browser, the file will be launched.

    Make sure that Firefox is always the default browser.

    Try to undo and redo Firefox as default browser.

    Make a different browser like IE browser by default and then let Firefox do it again.

  • The effect: Arc does not work. Why is this is not an electric arc my object?

    I try my object in InDesign CC 2015 to the CRA, but the effect does not change my object at all. How can I solve this problem?

    Thank you ALL for your help and suggestions. I found a solution that seems to be very fast and as easy as my way of doing things. Solution: I saved my InDesign as a PNG file, brought arch-Warp-effect in Illustrator, and it WORKED! He did a magnificent job in CRA - ing the label as a whole. Hooray! Thank you!

  • Why my console is NOT running as a storage node

    Help!

    I created a minimal console for the test script to run as a storage node, with my own classes in the classpath.

    Unfortunately, it does not act as a storage node, even if I have it modeled on the script of the console in the coherence/bin directory.

    The symptom of failure, is that my application, running on a virtual machine Java of incompatible storage, fails with "storage is not configured."

    If instead of the console, I have performed as a storage node a jvm with the same command line options, except with my own mainline than dumping the cache, the application loops in the other jvm works.

    The console works as a client node and is able to use my custom of the classpath variable classes. That's why she participates in the cluster (the entire cluster is running on my PC).

    I guess there is something simple wrong here, but it escapes me.

    Thanks in advance

    Run the command
    / Java/SDK_EE/JDK/bin/Java
    -cp ' / tmp/rvcinf-test/bin;... /... /.. /Dist/rvcicache.jar;... /... /.. /lib/coherence.jar'
    Server-Xms256m-Xmx512m
    -Dtangosol.coherence.management = all - Dtangosol.coherence.management.remote = true
    -Dtangosol.coherence.distributed.localstorage = true - Dlogfile = newspapers/runsvrx - coherence.log
    com.tangosol.net.CacheFactory

    How does the Java storage node working
    / Java/SDK_EE/JDK/bin/Java
    -cp ' / tmp/rvcinf-test/bin;... /... /.. /Dist/rvcicache.jar;... /... /.. /lib/coherence.jar'
    Server-Xms256m-Xmx512m
    -Dtangosol.coherence.management = all - Dtangosol.coherence.management.remote = true
    -Dtangosol.coherence.distributed.localstorage = true - Dlogfile = newspapers/runsvrx - coherence.log
    test. MainlineStorageNode


    Notes:
    My courses in: / tmp/rvcinf-test/bin and... /... /.. /Dist/rvcicache.jar
    Shown on multiple lines for readability - was executed in a single line (this is a release of bash after set - x)
    Coherence3.4.1/407

    Published by: mesocyclone on September 18, 2009 23:10

    Hello

    The CacheFactory console does not automatically all cache services. If you join the cache service that your application uses the console, for example:

    Map (?): cache foo
    2009-09-19 20:55:07.606/6.305 Oracle Coherence GE 3.6/480  (thread=main, member=1): Loaded cache configuration from "file:/Users/rhlee/work/coherence/env_configs/v2/coherence-cache-config.xml"
    2009-09-19 20:55:07.779/6.478 Oracle Coherence GE 3.6/480  (thread=DistributedCache, member=1): Service DistributedCache joined the cluster with senior service member 1
    ...
    

    It should work.

    Thank you
    -Rob

  • Why does this work?

    I am not and will never be a professional Web Designer.  I'm just trying to introduce some css in our existing (endangeredspecies.com) Web site, it seems better to use as an addition internal to the existing head on our existing Web site.

    But I have problems.  Is what I added to our existing code - and the background color code works, but the h1, h2, p codes do not tumble down in the html body.

    < head >

    < title > < /title > endangered species

    < style type = "text/css" >

    H1 {make-size: 24pt; do-family: "Comic Sans MS": color: #FF0000 ;}}

    H2 {make-size: 15pt; do-family: "Comic Sans MS": color: Red ""}

    p {make-size: 10pt; do-family: "Comic Sans MS": color: #EEEEEE ;}}

    < / style >

    < body style = "" background-color: #55035F; ">"

    < / head >

    You have errors in your css include the {{after h1 and you have a double point: instead of a semicolon; after your declaration of font style.}}

    This is how it should be:

    H1 {make-size: 24pt; do-family: "Comic Sans MS"; color: #FF0000; text-align: center ;}}

    H2 {make-size: 15pt; do-family: "Comic Sans MS"; color: red; text-align: center ;}}

    p {make-size: 10pt; do-family: "Comic Sans MS"; color: #EEEEEE ;}}

  • Simple question: why is this table not dragging randomly?

    Hi, the following load only the second member of the array "koan".  No idea why it isn't random loading swf?  (Could this be a problem with the 'var' index?... when it is changed manually in code from 0 to another number played the swf change; but still not at random.)  Thank you...

    create the function for mixing table

    function shuffle(a:Array) {}

    for (var = ivar. Length-1; Ivar > = 0; Ivar-) {}

    var p = Math.floor (Math.random ()) *(ivar+1);

    var t = a [ivar];

    a [ivar] = a [p];

    a [p] = t;

    }

    };

    This code shows how to load SWF (but they are for some reason not randomized/mixed):

    var: index: uint = 0;

    var koan_loader:Loader = new Loader();

    koan var: Array = ['swfs/koans/koan_1.swf","swfs/koans/koan_2.swf', 'swfs/koans/koan_3.swf', 'swfs/koans/koan_4.swf', 'swfs/koans/koan_5.swf', 'swfs/koans/koan_6.swf', 'swfs/koans/koan_7.swf', 'swfs/koans/koan_8.swf', 'swfs/koans/koan_9.swf', 'swfs/koans/koan_10.swf', 'swfs/koans/koan_11.swf', 'swfs/koans/koan_12.swf'];

    Shuffle (KOAN);

    koan_loader. Load (new URLRequest (koan [index]));

    MovieClip (this).koan_loader_mc.addChild (koan_loader);

    koan_loader. Load (new URLRequest (koan [index]));

    return an is how the finction shuffle returns the array mixed at the request of koan it... = shuffle (koan);  is essentially koan = table (a) returned by the shuffle feature.  In this case koan is to have himself mixed and replaced with this mixed version.

  • Why youtube fullscreen works not smoothly but IE11 work?

    Since the update to Win 10 YouTube videos fullscreen works rough but works smoothly in IE11 & Edge? I would rather continue to use Firefox.

    You can check if there is an update for your display driver graphic card and search for hardware acceleration of related issues.

    Do you use the HTML5 media player or Flash Player base?

    Do both players have this problem?

    Video player Flash from YouTube:

  • Satellite L755 - 16 M - Webcam doesn't work not running not Win 10

    MI webcam does not work after installing Windows 10.

    Any solution available?

    Can you please post full model name and the model number of machine to ypur?

  • Why my sliders work not develop?

    All of a sudden, I can't manually adjust shadows, black, white, etc.. They're ready for me and not phase the picture when I move them. They go back to what he has set for me.

    I got 5 Lightroom and suddenly, he was doing this and then I upgraded to Lightroom 6 and it's always the same way. A somehow, I hit something and can not find how to get it back?

    Help, please!

    Lightroom - Novice

    Hi sarahl,.

    Please reset the preferences of Lightroom 6 and check if that helps.

    Press the shift + option keys immediately after you restart Lightroom and select Preferences reset in the dialog box.

    If the steps above did not help, check is that your images are not lacking in the Lightroom Catalog.

    Kind regards

    Mohit

  • Why my panels work not in CC 2014

    I made my own panels in CC, but they do not work in 2014 CC. Miss me them.

    Are you talking about a space of custom work, or actual panels with Configurator?  If the Alumni preferences, then go > sync settings.  If the latter, then the Flash panels no longer work in 2014 of CC.  Check out any of the multiple threads on Extensions in gray.

  • Why is this does not add to my amount?

    Here is the code I have, with the result below. I want this query to return only the 2 lines for each of the orders of work below so that it adds the amount worked (200 + 150 + 95). Is that what everyone else sees what Miss me? Thank you!
    SELECT  
            WORK_ORDER.SITECODE
          , WORK_ORDER_NUMBER AS "WO #"
          , WORK_ORDER.partno
          , WO_PRIORITY AS "PRIORITY"
          , QTY_WORK_ORDER AS "WO QTY"
          , QTY_FINISHED
          , TRUNC(STOCK.DATE_TRAN) AS "TRANS DATE"
          , STOCK.QTY_WORKED AS "QTY WORKED"
    
    FROM
      WORK_ORDER,
     (SELECT 
                  sitecode
                , partno
                , SUM(QTY_CHANGE) AS QTY_WORKED 
                , DATE_TRAN
           FROM STOCK_TRAN 
         WHERE SITECODE = 'FCI' 
           AND STOCK_TRAN_CODE = 'P'
          AND TRUNC(DATE_TRAN) = TRUNC(SYSDATE - 2)
         GROUP BY sitecode, partno, DATE_TRAN ) STOCK
         
     WHERE stock.sitecode = work_order.sitecode
          AND stock.partno  = work_order.partno
          AND WORK_ORDER_TYPE = 'K' 
          AND WORK_ORDER.SITECODE = 'FCI'
          AND QTY_FINISHED > 0
    
         
         AND WORK_ORDER.PARTNO ='270069'                  
               
        
     ORDER BY WORK_ORDER_NUMBER DESC 
    Site       WO         Kit        Priority  WOQTY Qty Fin  Trans Date  Qty Changed
    FCI     2009501     270069     H     2000           1045     8/16/2011     200
    FCI     2009501     270069     H     2000           1045     8/16/2011     150
    FCI     2009501     270069     H     2000           1045     8/16/2011     95
    FCI     2009500     270069     H     2000           2000     8/16/2011     200
    FCI     2009500     270069     H     2000           2000     8/16/2011     150
    FCI     2009500     270069     H     2000           2000     8/16/2011     95 

    Solution of Azhar will get what you need, but this one is more simple. Subquery just trunc date_tran in your interior.

    SELECT
            WORK_ORDER.SITECODE
          , WORK_ORDER_NUMBER AS "WO #"
          , WORK_ORDER.partno
          , WO_PRIORITY AS "PRIORITY"
          , QTY_WORK_ORDER AS "WO QTY"
          , QTY_FINISHED
          , TRUNC(STOCK.DATE_TRAN) AS "TRANS DATE"
          , STOCK.QTY_WORKED AS "QTY WORKED"
    
    FROM
      WORK_ORDER,
     (SELECT
                  sitecode
                , partno
                , SUM(QTY_CHANGE) AS QTY_WORKED
                , trunc(DATE_TRAN) date_tran
           FROM STOCK_TRAN
         WHERE SITECODE = 'FCI'
           AND STOCK_TRAN_CODE = 'P'
          AND TRUNC(DATE_TRAN) = TRUNC(SYSDATE - 2)
         GROUP BY sitecode, partno, trunc(DATE_TRAN) ) STOCK
    
     WHERE stock.sitecode = work_order.sitecode
          AND stock.partno  = work_order.partno
          AND WORK_ORDER_TYPE = 'K'
          AND WORK_ORDER.SITECODE = 'FCI'
          AND QTY_FINISHED > 0
    
         AND WORK_ORDER.PARTNO ='270069'                  
    
     ORDER BY WORK_ORDER_NUMBER DESC
    
  • Label and Format data binding work when running in JDev, but not deployment...

    Hello world:

    We run JDeveloper 10.1.3.42.70
    JHeadstart 10.1.3.2.51
    Our Oracle 10 g database is.

    I've been shooting some modifications of an existing Web page. Changes in which I remove an element of the page, or remove a box, this works fine running within JDeveloper (execution ViewController right-click menu arrow) and in the later deployment.

    But what I feel is anything in EO/VO data links - such as the format of a digital or a label behave differently when running in JDEV, then running deployed.

    When I change a label, or in a digital format in the folder of the local editor control tips entity/View, then run the application using the 'performance' within JDeveloper arrow, the changes appear as I expect.

    But I deploy this application, then run and formats and the old labels appear, but the new withdrawal of parts or elements is such that I wait for him. The new formats of labels / is displayed when the server is restarted. I'm testing if we can bounce the app, or bounce the container, but I wonder why these properties of the editor view/entity control Hint may not behave in the same way as other changes (deletion of point or region).

    I tried the model of cleaning & rebuild each time. I tried to clean the ViewController and rebuild each time. I closed my browser and deleted all the cache, then re-opened to make sure that I didn't put one old cached.

    After searching this forum, I tried the check from the "Bind prompt element to ADF BC control indication"Label text? '" under Tools - Preferences - settings of Jheadstart. Who hasn't made a difference.

    I do not understand why these changes form appearing when I run inside the JDEV app, but not when I deploy this application until the server is stopped. I hope certainly that I did not restart the server whenever I want to re - deploy.

    Does anyone have any suggestions? To try to understand what is happening here, I would also like to know where the text is generated when I make a change to a format or label. I can find references to the link in several files, for example ("#{bindings.") PersonLastName.label}'), but where is the actual location of the file that contains the label of 'Name' that I put in the entity control tips Editor folder in the "Text of the label" box?

    Is there a setting on the server? Is there something else I'm supposed to do?

    I appreciate any assistance.

    Mary
    U

    Mary,

    As long as the app server JAVA virtual machine is running, the adf business components are not reloaded. There is no mechanism for reloading available for business components on a JAVA virtual machine running. So, I'm afraid you will have to continue to restart the server. This also occurs when you run the application in JDev. She always starts a new OC4J instance, that's why you see the changes immediately JDev.

    Steven Davelaar,
    JHeadstart team.

  • gotoAndPlay: why the habit of this work - it should be simple!

    Why does this work:

    gotoAndPlay ("CS1_2A");

    but this is not:

    var destFrame:String = "CS1_2A";
    gotoAndPlay (destFrame);

    var destFrame:String = "CS1_2A";
    _root. gotoAndPlay (destFrame);

  • Select inside a select statement is not running

    Can you please explain to me why the bottom is not run and what we need to do to run this kind of scenario.

    My second REGEXP_LIKE variable comes from another table

    Select

    * de

    EMP

    WHERE

    NOT REGEXP_LIKE(ename, select 'LA| AR' from dual

    )

    Because online select statement needs to be surrounded by square brackets so that the result is regarded as a value.

    SQL > ed
    A written file afiedt.buf

    1 Select
    2 of PEM
    3 * WHERE NO REGEXP_LIKE (ename, (select ' THE |)) AR' double))
    SQL > /.

    EMPNO, ENAME, JOB HIREDATE DEPTNO COMM SAL MGR
    ---------- ---------- --------- ---------- -------------------- ---------- ---------- ----------
    7369 SMITH CLERK 7902 DECEMBER 17, 1980 00:00:00 800 20
    7499 ALLEN SALESMAN 7698 20 FEBRUARY 1981 00:00:00 1600 300 30
    7566 JONES MANAGER 7839 2 APRIL 1981 00:00:00 2975 20
    7788, SCOTT, ANALYST, 7566 19 APRIL 1987 00:00:00 3000 20
    PRESIDENT OF KING 7839 17 NOVEMBER 1981 00:00:00 5000-10
    7844 TURNER SALESMAN 7698 1981 - SEP - 08 00:00:00 1500 0 30
    7876 ADAMS CLERK 7788 23 MAY 1987 00:00:00 1100 20
    7900 JAMES CLERK 7698 3 DECEMBER 1981 00:00:00 950 30
    7902 FORD ANALYST 7566 3 DECEMBER 1981 00:00:00 3000 20
    7934 MILLER CLERK 7782 23 JANUARY 1982 00:00:00 1300 10

    10 selected lines.

    However, why not just make...

    Select *.

    WCP

    If NOT of REGEXP_LIKE (ename, ' THE |) AR')

    /

  • Why my pc does not work no matter what .exe? I couldn't even run diagnostics

    Why my pc does not work no matter what .exe? I couldn't even run diagnostics

    Hi SteliosArmenis,

    Thank you for keeping us posted on the State of the question.

    I see there is that the antivirus installed on the computer could not detect infections. To ensure that the computer is clean, we can run a thorough scan using Windows Defender in offline mode.

    I suggest to download Windows Defender Beta offline to a flash drive, CD, DVD or USB and then perform the steps.

    The articles explain how to create a disk and run the scan.

    NOTE: the program must not not to be run / run from the office.

    http://Windows.Microsoft.com/en-us/Windows/what-is-Windows-Defender-offline

    http://Windows.Microsoft.com/en-us/Windows/Windows-Defender-offline-FAQ

    Note: the data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.

    Hope the information is useful. If you need help with this problem, feel free to post you question in the forum. We will be happy to help you.

Maybe you are looking for