Plan Table Script

Hi,
Please kindly send me the Plan Table CREATE TABLE script for Release 9.0.1.0.0
Since I have only client on my machine, i have not found the script in my local folder.
Regards
Ashish

Hi,
You need to run $ORACLE_HOME/rdbms/admin/utlxplan.sql from server.
Nicolas.

Similar Messages

  • Unable to drop or truncate a plan table

    Hi guys,
    I was trying to execute 'Explain Plan' on one of my query. However, when I tried to drop the plan table, i was prompted that the table or view does not exists:
    QL> EXPLAIN PLAN FOR
    2 SELECT * FROM ORDERS WHERE TO_CHAR(O_SHIP_DATE, 'YYYY')='2005' AND O_STATUS='PROCESSING';
    Explained.
    SQL> SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    Plan hash value: 1275100350
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 648 | 46008 | 725 (5)| 00:00:09 |
    |* 1 | TABLE ACCESS FULL| ORDERS | 648 | 46008 | 725 (5)| 00:00:09 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
    1 - filter("O_STATUS"='PROCESSING' AND
    TO_CHAR(INTERNAL_FUNCTION("O_SHIP_DATE"),'YYYY')='2005')
    14 rows selected.
    SQL> TRUNCATE TABLE PLAN_TABLE;
    TRUNCATE TABLE PLAN_TABLE
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select count(*) from plan_table;
    COUNT(*)
    6
    Any idea what went wrong? Thanks in advance.

    Ok, I managed to find the scripts to recreate the plan table. Now it works again. Cheers.

  • Alter table script for wrong database version

    When we generate an alter table script by connecting to a database, the scripts that get generated are for database version 7.3.
    Furthermore we cannot update the field "oracle version" for the database we created.
    When we choose a database version from the pulldown box and try to save it, the field is blank again.
    We are on Designer 9 on a oracle 10g database and we try to alter the table in a oracle 10g database.

    I had this error last night while applying a patch to 6.0. However in my case the version was 21 versus a required version of 23.
    As far as i know 6.1 is not compatible with the 5 db schema, so you will need an update / migration plan for the db also.

  • Operations are not getting despatched in capacity planning table

    Hi Experts,
    I am using capacity planning table (Graphical) to level the capacities and sequence the process orders. The start date of my orders are very well in future and sufficient capacities also is available in resources. But when I go to CM25 and select one order and click on despatch, system is not despatching it. This is the case for almost all the overall profiles.
    The surprising factor is, this function was working fine earlier without any issues. I havent done any changes in configs which will affect capacity planning.
    What can be the reason for this? Any thoughts please?.
    One more thing. Is there any option to avoid the capacity planning step if Iam using R/3 and manage it by some other way?
    Appreciate your earlier reply
    Thanks & Regards
    Prathib

    Most likely you didnt define the rowsource key properly. Please look under <install>/errors folder for any file there.
    Also, please read the documentation. There is information there about how to troubleshoot a loading problem. Please always read the documentation and we would appreciate feedback on the documentation.
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/iop_user_guide/frameset.htm?launch.html

  • Error message in capacity planning table

    Hi,
    I am  using REM planning table.I enter the planning table by giving the selection criteria of Plant and production line.
    System is giving following error message,
    the error message and dignosis of the error message is given here.
    'No prod. dates for material MTI_FERT011, version 0001, production line 2279'
    Message no. REMPT315
    Diagnosis
    The planned order has no production dates for the combination of material, production version and production line you specified.
    This may be as a result of the following, for example:
    The planned order was scheduled but not using the production line you selected. (The production line is determined by the production version you entered in a planned order.)
    Procedure
    One possibility of finding out what is causing the problem is:
    To access the planned order from the detailed dialog box in the table via "Change" and reschedule the planned order. Check the scheduling log by choosing "Goto --> Scheduling log". More information is displayed in the log's warning or error messages.
    But which master data to be corrected is not known.
    Experts please guide me.
    Regards,
    Ravindra

    Hello,
    I had the same error while working with the REM planning table, despite the consistency of the data.
    Another cause that can lead to the error message REMPT315 is that in the production version detailed screen, "Planning data" table you have entered the routing next to rate-based planning. You must enter the routing (number of the group and the group counter) on the line detailed planning.
    After that, choose check again and try to introduce new quantities in the planning table. It worked for me!
    Irina

  • In which table scripts and smartforms are stored

    in which tables scripts and smartforms are stored
    eg scripts in tadir.

    Hi this may be of some help.
    SD
    SALES ORDER/ENQUIRY/QUOTATION
    Output type         : BA00
    ScriptForm Name     : RVORDER01
    Driver Program Name : RVADOR01
    smartform name
    DELIVERY NOTE
    Output type         : LD00
    ScriptForm Name     : RVDELNOTE
    Driver Program Name : RVADDN01
    smartform name      : LE_SHP_DELNOTE
    Smartform Driver Pgm: RLE_DELNOTE
    INVOICE
    Output type         : RD00
    ScriptForm Name     : RVINVOICE01
    Driver Program Name : RVADIN01
    smartform name      : LB_BIL_INVOICE
    Smartform Driver Pgm: RLB_INVOICE
    MM
    PUCHASE ORDER/RFQ/CONTRACT
    Output type         : NEU
    ScriptForm Name     : MEDRUCK
    Driver Program Name : SAPMF06P
    smartform name      : /SMB40/MMPO_L
    smartform driver program: /SMB40/FM06P
    GOODS RECEIPT
    Output type         : WE01
    ScriptForm Name     : WESCHEINVERS1
    smartform name      : /SMB40/MMGR1_A
    smartform driver program: /SMB40/M07DR
    GOODS ISSUE
    Output type         : WA01
    ScriptForm Name     : WA_SCHEINVERS1
    smartform name      : /SMB40/MMGI1_A
    smartform driver program: /SMB40/M07DR
    FI Forms
    Account Statement   : F140_ACC_STAT_01
    Cheque Printing     : F110_PRENUM_CHEK
    Balance Confirmation: F130_confirm_01
    Dunning Form:         F150_DUNN_01
    check the link below it provides steps to convert sap scripts to smartforms
    http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf
    SMARTFORMS -Driver Program
    PO: /SMB40/FM06P
    SO: /SMB40/RVADOR01
    GR: /SMB40/M07DR
    with regards,
    Hema Sundara.
    pls give points if u find this helpful.

  • Getting table script using dbms_metadata.get_ddl, but with clob field

    So, Oracle 11g R2..
    I'm using dbms_metadata.get_ddl to get table scripts and it's working fine..
    now, I have a table with clob field, and it's not working... I got an 'missing right parenthesis (ora-0907)' error...
    I could paste a script that I got, but I don't think it makes any sense..
    does anybody have some experience on using this package on clob tables?
    tnx

    this is script that I got... it's long, and it looks like it's not good
    CREATE TABLE "COMMON"."TEST_AAA2"
       (    "ID" NUMBER(10,0),
        "TEKST" VARCHAR2(200 CHAR),
        "UPDATESTAMP" DATE,
        "OBJEKAT" CLOB,
         CONSTRAINT "TEST_PART_PK2" PRIMARY KEY ("ID")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "USERS"
      ALTER INDEX "COMMON"."TEST_PART_PK2"  UNUSABLE ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS  LOGGING
      STORAGE(
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMMON_DATA"
    LOB ("OBJEKAT") STORE AS BASICFILE (
      ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
      NOCACHE LOGGING
      STORAGE(
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))
      PARTITION BY RANGE ("UPDATESTAMP")
    (PARTITION "P_201012"  VALUES LESS THAN (TO_DATE(' 2011-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMMON_DATA"
    LOB ("OBJEKAT") STORE AS BASICFILE (
      TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
      NOCACHE LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
    PARTITION "P_201101"  VALUES LESS THAN (TO_DATE(' 2011-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMMON_DATA"
    LOB ("OBJEKAT") STORE AS BASICFILE (
      TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
      NOCACHE LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
    PARTITION "P_201102"  VALUES LESS THAN (TO_DATE(' 2011-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMMON_ARCHIVE"
    LOB ("OBJEKAT") STORE AS BASICFILE (
      TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
      NOCACHE LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
    PARTITION "P_201103"  VALUES LESS THAN (TO_DATE(' 2011-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMMON_DATA"
    LOB ("OBJEKAT") STORE AS BASICFILE (
      TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
      NOCACHE LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
    PARTITION "P_201104"  VALUES LESS THAN (TO_DATE(' 2011-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMMON_ARCHIVE"
    LOB ("OBJEKAT") STORE AS BASICFILE (
      TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
      NOCACHE LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
    PARTITION "P_201105"  VALUES LESS THAN (TO_DATE(' 2011-06-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMMON_DATA"
    LOB ("OBJEKAT") STORE AS BASICFILE (
      TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
      NOCACHE LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
    PARTITION "P_201106"  VALUES LESS THAN (TO_DATE(' 2011-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMMON_ARCHIVE"
    LOB ("OBJEKAT") STORE AS BASICFILE (
      TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
      NOCACHE LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
    PARTITION "P_201107"  VALUES LESS THAN (TO_DATE(' 2011-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMMON_DATA"
    LOB ("OBJEKAT") STORE AS BASICFILE (
      TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
      NOCACHE LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
    PARTITION "P_MAXVALUE"  VALUES LESS THAN (MAXVALUE)
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "COMMON_DATA"
    LOB ("OBJEKAT") STORE AS BASICFILE (
      TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
      NOCACHE LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS )

  • Xml file to table script

    Hi all,
    I would be thanks you and greatful if someone can help me to create a table script.
    I have an XML file with PK and FK relationship.
    I also have a DTD file.
    I want to create tables in Oracle Database from XML or DTD file.
    Thanks in Advance
    Saaz

    You might want to take a look at registerSchema (http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xmlsch.htm#sthref9696) with genTables set to TRUE. This would let you use the DTD to create a table structure within Oracle. This may or may not be what you are looking for but you didn't provide many details.
    That's 10.2 documentation so use the edition for your version of Oracle

  • Plan table output

    Hello guys,
    I am on a 9.2.0.7.0, and i am trying to get explain plan for one select that is reading some table through the db link at the remote sight.
    Unfortunately, i am getting this output :
      1* select * from table(dbms_xplan.display)
    PLAN_TABLE_OUTPUT
    | Id  | Operation            |  Name       | Rows  | Bytes | Cost  | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT     |             |       |       |       |        |      |
    |   1 |  REMOTE              |             |       |       |       | TESTI1 | R->S |
    Note: rule based optimization
    9 rows selected.remote database is 10.2.0.4.0
    Can you reccomend me something?
    Why can't i see normal output from the plan table, what to do to see it ?
    Also , i could'nt find anywhere in the docs the meaning for R->S...
    thanks

    thanks for your time to reply
    @Kartrick
    -so can we say that the only way to see that plan would be to connect to that remote instance with that db link user and run it there?
    @ravikumar
    -this woried me to... so optimizer mode on that remote 10.2.0.4.0 is choose, so can we say that this query is attacking remote table with RBO plan ?

  • Question on Plan Table

    Hi,
    This is the Explain Plan for one of my SQL queries
    PLAN_TABLE_OUTPUT
    | Id  | Operation            |  Name       | Rows  | Bytes | Cost  | Inst   |IN-
    OUT|
    |   0 | SELECT STATEMENT     |             |   101 |  7676 |    60 |        |
    PLAN_TABLE_OUTPUT
       |
    |   1 |  SORT ORDER BY       |             |   101 |  7676 |    60 |        |
       |
    |   2 |   NESTED LOOPS OUTER |             |   101 |  7676 |    50 |        |
       |
    |   3 |    VIEW              |             |   100 |  2400 |     5 |        |
       |
    PLAN_TABLE_OUTPUT
    |   4 |     UNION-ALL        |             |       |       |       |        |
       |
    |   5 |      REMOTE          |             |       |       |       | MKTG   | R-
    S ||   6 |      REMOTE          |             |       |       |       | MKTG   | R-
    S ||   7 |    REMOTE            |             |     1 |    52 |     1 | MKTG   | R-
    S |PLAN_TABLE_OUTPUT
    Note: cpu costing is off, PLAN_TABLE' is old versionI am concerned about the note "cpu costing is off"
    Does this mean my optimizer is RBO?
    Moreover, what is the cost cloumn in the explain plan table meant by?
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE 9.2.0.6.0 Production
    TNS for HPUX: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    I did 'select cpu_cost' from v$sql_plan;'
    The column results in NULL values.
    Thanks
    Rajiv

    Hi Justin,
    I ran into some serious problem here.
    As per the suggestions given, this is the modified query
    SELECT   x.rep_date,
                   x.certificate_id,
                   x.member_kit_flag,
                   y.enabled_date,
                   y.disabled_date,
                   TRUNC(y.creation_date) - TRUNC(x.rep_date) days,
                   y.csg_account_no
              FROM (SELECT /*+ DRIVING_SITE(pt_gift_cert_referrals) */ a.*,
                           /*+ DRIVING_SITE(pt_cd_mailings) */ b.member_kit_flag,
                           to_date(b.shipment_date,'dd MON YYYY') rep_date
                      FROM pt_gift_cert_referrals@mktg a,
                           pt_cd_mailings@mktg b
                     WHERE a.cert_mailing_id = b.cert_mailing_id
                       AND to_date(b.shipment_date,'dd MON YYYY') >= '22-AUG-2003'
                    UNION ALL
                    SELECT /*+ DRIVING_SITE(pt_gift_cert_referrals) */ a.*, /*+ DRIVING_SITE(pt_certificate_referrals) */
                           'Z' member_kit_flag,/*+ DRIVING_SITE(pt_cert_stage_log) */
                           to_date(b.creation_date,'dd MON YYYY') rep_date
                      FROM pt_gift_cert_referrals@mktg a,
                           pt_cert_stage_log@mktg b
                     WHERE a.cert_event_id = b.cert_event_id
                       AND SUBSTR(b.process_type, 1, 14) = 'CLUBDISH DAILY'
                       AND to_date(b.creation_date,'dd MON YYYY') >= '22-AUG-2003') x,
                   pt_certificate_referrals@mktg y
             WHERE x.certificate_id = y.certificate_id(+)
          ORDER BY rep_date,
                   x.certificate_id;Unfortunately, the query resulted in NO rows.
    no rows selected
    Elapsed: 00:02:31.03
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=60 Card=101 Bytes=76
              76)
       1    0   SORT (ORDER BY) (Cost=60 Card=101 Bytes=7676)
       2    1     NESTED LOOPS (OUTER) (Cost=50 Card=101 Bytes=7676)
       3    2       VIEW (Cost=5 Card=100 Bytes=2400)
       4    3         UNION-ALL
       5    4           REMOTE*                                            MKTG.WOR
                                                                           LD
       6    4           REMOTE*                                            MKTG.WOR
                                                                           LD
       7    2       REMOTE* (Cost=1 Card=1 Bytes=52)                       MKTG.WOR
                                                                           LD
       5 SERIAL_FROM_REMOTE            SELECT /*+ */ "A2"."CERTIFICATE_ID","A2"."GI
                                       FT_CSG_ACCOUNT_NO","A2"."CERT_PROMOT
       6 SERIAL_FROM_REMOTE            SELECT /*+ */ "A2"."CERTIFICATE_ID","A2"."GI
                                       FT_CSG_ACCOUNT_NO","A2"."CERT_PROMOT
       7 SERIAL_FROM_REMOTE            SELECT "CERTIFICATE_ID","CSG_ACCOUNT_NO","EN
                                       ABLED_DATE","DISABLED_DATE","CREATIO
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            338  bytes sent via SQL*Net to client
            234  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
              0  rows processedThe thing more bothering is, optimizer is not using the DRIVING_SITE hint
    Previous Execution Plan was....
    6742176 rows selected.
    Elapsed: 03:15:20.07
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=53 Card=100 Bytes=76
              00)
       1    0   SORT (ORDER BY) (Cost=53 Card=100 Bytes=7600)
       2    1     NESTED LOOPS (OUTER) (Cost=50 Card=100 Bytes=7600)
       3    2       VIEW (Cost=5 Card=100 Bytes=2400)
       4    3         UNION-ALL
       5    4           REMOTE*                                            MKTG.WOR
                                                                           LD
       6    4           REMOTE*                                            MKTG.WOR
                                                                           LD
       7    2       REMOTE* (Cost=1 Card=1 Bytes=52)                       MKTG.WOR
                                                                           LD
       5 SERIAL_FROM_REMOTE            SELECT "A2"."CERTIFICATE_ID","A2"."GIFT_CSG_
                                       ACCOUNT_NO","A2"."CERT_PROMOTION_ID"
       6 SERIAL_FROM_REMOTE            SELECT "A2"."CERTIFICATE_ID","A2"."GIFT_CSG_
                                       ACCOUNT_NO","A2"."CERT_PROMOTION_ID"
       7 SERIAL_FROM_REMOTE            SELECT "CERTIFICATE_ID","CSG_ACCOUNT_NO","EN
                                       ABLED_DATE","DISABLED_DATE","CREATIO
    Statistics
              0  recursive calls
             14  db block gets
              0  consistent gets
          14173  physical reads
              0  redo size
      112195379  bytes sent via SQL*Net to client
        3146621  bytes received via SQL*Net from client
         449480  SQL*Net roundtrips to/from client
              0  sorts (memory)
              1  sorts (disk)
        6742176  rows processedAny help on this would be greatly appreciated.
    Thanks
    Rajiv

  • Explain Plan Table

    Hi,
    I have created the plan_table using utlxplan.sql but still i am getting the error:
    ORA-02404: specified plan table not found          
    Is there something else to be done to get it fixed?
    please suggest.
    Regards
    Arpit

    As Lukasz suggested check the table privs between the schema where the table was created and the user trying to use it. Also make sure there's a synonym for the user using explain plan to get to the plan table easily; a public synonym might work best

  • PLAN TABLE

    To see the current statement getting executed im using the session browser utility in TOAD. And to find the plan of the query im going to the view plan tab. But in that tab it saying the plan table is not available. I created the plan table from $ORACL_HOME/rdbms/admin/utlxplan.sql for the user. But even then im not able to see tha explain plan.
    I also changed the plan table in TOAD from TOAD_PLAN_TABLE to PLAN_TABLE in view-->options-->General. But still im not able to see the explain plan

    Okay, so back to basics: you need to identify whether this is a problem with Toad... or with your PLAN_TABLE. So, just for a moment, ditch toad.
    Test one: Connect to the database via SQL*Plus as the user you trying to use to explain the query in Toad. Then issue:
    SELECT OBJECT_NAME, OBJECT_TYPE, OWNER
    FROM ALL_OBJECTS
    WHERE OBJECT_NAME = 'PLAN_TABLE';[pre]
    What's the output (and what's the user you're connecting as)?
    Message was edited by:
            Joseph Crofts
    Oops - missed a line from the SQL statement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Planning table

    Hello,
    In planning table MF50 , the row 'not yet assigned ' is displayed from where we can assign plnd orders to any Packign line.
    But when i assign the qty from this row to any other packing line the qty from 'not yet assigned ' is not getting deducted . What settings i need to do ?
    Also can i assign by default some planned orders to any packing line.
    Regards
    ShankarR

    Dear,
    In MF50 select the row of 'not yet assigned and press Shift + F1 period you want then assign the quantity then use copy function and check. Tere you will get Truck symbol click on it you will get assign quantity.
    When you try to assign 50% or less of the quantity to any version, system is taking the correct values in assigned and not yet assigned rows. But when you try to assign more than 50% to any version, system is taking only the assigned quantity as assigned and remaining quantity which is not yet assigned, is not displayed. For that use the OSS note 1104677
    Hope it will help you.
    Regards,
    R.Brahmankar

  • Use of Planning Table (MF50) in Capacity Levelling with Production Order

    Hello Experts
    I wish to know that is it possible to perform Capacity Levelling in planning table (tcode MF50) with respect to a Production Order ? It is known that MF50 is used in Repetitive manufacuring to do the capacity levelling with respect to Planned orders. But in our discrete manufacturing scenario we want to use planning table to the capacity levelling with respect toa Production order.
    Any clue or help pertaining to this will be highly appreciated.
    Thanks in advance
    Regards
    Jayanta

    Dear ,
    MF50 is does the cacapcity leveling based on mateail -run schedule order (planned order ) where as in discrete manufacturing , when you run the MRP ,  MRP system assume Infinite Capacity  and schedule the order as per your selection in MD02(2,1,3,3,2)  and then you convert those planned order to Production order .Here you checkied the Capacity in Production Order level .
    In stanadrd SAP  , it is not possible to use MF50 for discrete production order.
    In discrete order or process order ,  do the caapcity leveling , there are seperate planning table available based on Over all Capacity Profile and Schedule type .This can be done  in following way :
    1.CM31-Production Order Wise -Tabular
    2.CM23-PO wise -Graphical
    3.MC88: Ruf Cut Planning
    Work Centre Wise : CM21 -Graphical , CM22-Tabular Planning Table .
    Make sure the below set up before  you carry on the Capacity leveling :
    .Define time profile in OPD2.
    Define the strategy profile in OPDB
    Define the Overall profiles in OPD0.
    In OPJK  maintained check capacity with SAPSFCG013 profile for your production order type
    In OPU3 , scheduleing parametre s: Generate Capacity , Scheduling Type , Automatic Log ,Start date in Past as per your req.
    In OPJU , chekc the contol tab of the scheduleing as per OPU3
    In OPKP- Production scheduling paranmeters assing the overall capacity profile -SAPSFCG013  with finte scheduling tick.
    Master Data :
    1.Materials Master define the Production scheduler and production scheduling profile
    2.Work Center - Define the capcity planner group,activate checkbox Relevant for Finite sceduling,on the capacity header define the shift timings,break timings and unit of measure,no of individual capaity, enter formula for scheduling in capacity view.
    3.Routing - enter the values for the standard values. Use control key with scheduling.
    Hope this will help you .
    Regards
    JH

  • Planning user not found in Planning Tables

    Hi,
    I have provisioned the user in shared services and then ran the provisionsuser.cmd utility as well. This user has different issue, has access to all Business Rules and Planning also but not able to run the BR's and not able to see them in planning.
    When I ran a query to check the existance of user in HSP_Object, this user didn't find but able to login into planning and EAS console as well.
    Please help me why this user is not in HSP_OBJECT table.
    Thanks in advance for your help.
    Regards,
    UB

    If the user can log into the planning application then they will exist in the planning tables.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for