How to find partitioned tables whose loading may fail with ORA-14400 error

Hi,
We have several partitioned tables. Sometimes, when partitions are not created for that month, we get this error
ORA-14400 inserted partition key does not map to any partition
May I know if there is any script or sql which I can use to find out tables which may fail for loading if DBA won't create partitions in next 2 weeks?
Thank You
Sarayu K.S.

Sure, you can:
1.Look in DBA_TAB_PARTITIONS by partition_name if you use a particular naming convention, where owner = <your_owner> and table_name = <your_table_name> and partition_name = <your_expected_partition_name>
2. Without going by partition name, you could use dba_tab_partitions and instead check that there is a partition for your table with a high_value you are expecting to use. Be aware that the high_value is a long datatype, so you will likely need to convert it to a varchar2.
3. Before your big load, you could also insert one row into the destination table with the new partition key that will be used, and trap errors with an exception handler. Roll it back if it succeeds.
4. Many partitions could be created in advance to avoid the constant monitoring of new partitions.
5. Or you could also look into switching to interval partitioning if you are on 11g and get out of the business of having to create partitions manually.

Similar Messages

  • "Object Browser" Table Query "Drill Up" Fails with ORA-00942

    I feel I have tested this capability in an earlier release of apex and it worked flawlessly... :)
    but currently it is not. :(
    It seems to be a problem with [ APP_ID=4500 Page=46 ].
    To Duplicate the error...
    Note: This example assumes "Sample Application" is loaded to the workspace.01) Logon as an APEX developer.
    02) Click on "SQL Workshop"...
    03) Click on "Object Browser"...
    04) Click on table "DEMO_ORDERS"...
    05) Click on "Data" [ between "Table" and "Indexes" ]...
    06) Click on "Query" [ below "Table" ]...
    07) Select "Show" in "Drill Up and "Drill Down Links"...
    08) Select "Check All"...
    09) Click the "Query" button...
    10) Once the result is displayed...
    Click on the demo_customers in the first "Drill Up" column.
    ...after the click in "step 10" above...
    the following error will be return.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Current Table/View: DEMO_CUSTOMERS
    4500_46_RET_TO_QUERY
    failed to parse SQL query:
    ORA-00942: table or view does not exist
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    "Drill Up" or "Drill Down" both fail with this message.
    I am currently running apex version 3.2.0.00.27 and also confirmed that the error occurs in the current apex demo website... which is currently at version 3.2.1.00.11.
    Thanks in advance... :)
    v/r
    RJones

    Jason ORCL wrote:
    I think you misunderstood.
    I call the apps API from custom code.
    It runs the API with no issue. It fails when it tries to access the HR table. So APPS cannot access HR.
    Are you saying I need to modify APPS code?? That is not likely. Are you saying I need to create a public synonym for an HR table for APPS? That seems unlikely also...OK, looks like there is a typo in your first post and the object name is IRC_ASSIGNMENT_STATUSES.
    From eTRM, I see the following:
    TABLE: HR.IRC_ASSIGNMENT_STATUSES
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=IRC_ASSIGNMENT_STATUSES&c_owner=HR&c_type=TABLE
    APPS.IRC_ASSIGNMENT_STATUSES
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=IRC_ASSIGNMENT_STATUSES&c_owner=APPS&c_type=SYNONYM
    So, this indicates that apps user should be able access this table without a prefix.
    SQL> show user
    USER is "APPS"
    SQL> desc IRC_ASSIGNMENT_STATUSES
    Name                                      Null?    Type
    ASSIGNMENT_STATUS_ID                      NOT NULL NUMBER(15)
    ASSIGNMENT_ID                             NOT NULL NUMBER(15)
    ASSIGNMENT_STATUS_TYPE_ID                 NOT NULL NUMBER(15)
    STATUS_CHANGE_DATE                        NOT NULL DATE
    STATUS_CHANGE_REASON                               VARCHAR2(240)
    LAST_UPDATE_DATE                          NOT NULL DATE
    LAST_UPDATED_BY                           NOT NULL NUMBER(15)
    LAST_UPDATE_LOGIN                                  NUMBER(15)
    CREATED_BY                                NOT NULL NUMBER(15)
    CREATION_DATE                             NOT NULL DATE
    OBJECT_VERSION_NUMBER                     NOT NULL NUMBER(9)Thanks,
    Hussein

  • How to find the table relationship between BSEG-BELNR with CE11000 table.

    Hi,
    Please help me to find out the table relationship between BSEG with CE11000 table.
    I have BSEG-BELNR value.
    Thanks in Advance
    Shankar

    Hello,
    BAsically the relationship can be foundon the basis of cost centre it will be good if you paste the structure ce11000.
    I have worked on it and as far i as i can recall it contain value fields right...like vv205,vv305 etc?
    Provide me more details.
    Are you preparing some reconcillation report for costing based COPA or Account based COPA..?
    Hopefully will help you out..
    Regards,
    Nabheet

  • TSQL code that causes table data to be deleted rather than fail with a compilation error

    Afternoon,
    I recently did this by accident and it felt as though it should have failed with a compilation error rather than run
    A query of the form
    delete from jobs
    where id in
    select id from calibrations
    will delete all rows in the jobs table when the id column exists in the jobs table, but not the calibrations table. This should fail with a compilation error.
    the following sql can be used to generate a test database to show the problem
    USE [test]
    GO
    /****** Object:  Table [dbo].[calibrations]    Script Date: 28/11/2014 13:32:59 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[calibrations](
        [JobId] [int] NULL,
        [textfield] [nvarchar](50) NULL
    ) ON [PRIMARY]
    GO
    /****** Object:  Table [dbo].[jobs]    Script Date: 28/11/2014 13:32:59 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[jobs](
        [Id] [int] NOT NULL,
        [Name] [nchar](10) NULL
    ) ON [PRIMARY]
    GO
    INSERT [dbo].[calibrations] ([JobId], [textfield]) VALUES (1, N'something')
    GO
    INSERT [dbo].[jobs] ([Id], [Name]) VALUES (1, N'a         ')
    GO
    INSERT [dbo].[jobs] ([Id], [Name]) VALUES (2, N'b         ')
    GO
    INSERT [dbo].[jobs] ([Id], [Name]) VALUES (3, N'c         ')
    GO
    INSERT [dbo].[jobs] ([Id], [Name]) VALUES (4, N'd         ')
    GO
    INSERT [dbo].[jobs] ([Id], [Name]) VALUES (5, N'e         ')
    GO
    INSERT [dbo].[jobs] ([Id], [Name]) VALUES (6, N'f         ')
    GO
    Simon
    simon

    will delete all rows in the jobs table when the id column exists in the jobs table,
    but not the calibrations table. This should fail with a compilation error.
    Hello Simon,
    That's a bug in your T-SQL Statement, not in SQL Server. The Statement as it is valid and column "id" exists, so why should it fail on compilation?
    And that is the reason why we always should use full qualified object name, e.g. like
    delete from jobs AS J
    where J.id in
    select SUB.id from calibrations AS SUB
    and this Statement should fail on compilation.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to find Obsolete Tables?

    Hi!
      Can Anybody tell me how to find Obsolete tables in a ABAP System (like in 4.7B,6.0 etc)?
      Or if u have list of obsolete tables in any version,please send me.
    -Aruna

    You may have an overview wirth Solution Browser tool (at the solution point of view) in order to compare functionality between your current system and the ERP 2005.
    at:
    http://solutionbrowser.erp.sap.fmpmedia.com/
    You can get the detailed release information from the following link.
    http://service.sap.com/releasenotes.
    A release note is a brief explanation of new features or changes to the system since the last software release. A release note typically describes a new function or an existing function that has been enhanced or changed.
    I hope this helps.
    Reward Points If helpful
    Regards
    Vasanth

  • How to find the tables of datasource

    Hi
    can anyone tell me how to find the tables from where the datasource is extracting data?
    I have a datasource 0CO_PC_ACT_02 which i thought was extracting data from MBEW, but my MBEW table has only around 1000 records but while scheduling the data load of infopackage my PSA shows more than 4000 records.
    How does this happen?
    Thanx in advance
    Sujai

    Hi,
    yes it is mainly MBEW as well as MBEWH (history of MBEW); in adition you have some article ledger data (table ckmlhd) from which some records could be added; MARV as well...
    You can check in function module KKBW_XBEW_BW_GET_DATA_IS1 all the details.
    hope this helps...
    Olivier.

  • HOW TO  FIND OUT TABLE DESCRIPTION FROM JDBC?

    HOW WILL FIND OUT TABLE DESCRIPTION FROM JDBC?

    Have a look at ResultSetMetaData
    getColumnCount()
    getColumnName(int)
    getColumnTypeName(int)
    getColumnDisplaySize(int)
    ***Annie***

  • How to find out table name for the field in the webUI

    Hi.
    I am in CRM2007.
    So i go to the transaction code    BSP_WD_CMPWB
    In that i provide the component name as CRM_UI_FRAME.
    I press the Test button.
    So, it opend the WebUI.
    I want how to find out table of the particular input field?
    I mean from which table the data is retrived how to find out?
    When i enter some thing in the input field how to find out in which table that data is stored?
    By pressing F2 on the input field it opend View and Component Name.
    I want find out table of that particular field. How to find it?
    If anybody know about this explain it with Screen shorts if possible.
    Thank You.
    Krishna. B.

    hi
    goto tx genil_model_browser. Suppose you want to find fields reated to your order header eg sold to name. In component set write all and press F8. Then goto access object and in access object click on node BTAdminH. Click on attribute structure. Here you will find structure and attributes. If you click relationship then you will see all the relationship wrt btadminh. open any r/s that you require. and click on other object and attribute. You will get to know the structure.
    Best regards
    Pankaj kumar

  • How to find the tables in OM

    Hi All,
    How to find the tables in Oracle order mangement and what are the links of the tables in oracle OM
    Thanks & Regards
    srikkanth.M

    How to find the tables in Oracle order mangement and what are the links of the tables in oracle OMeTRM
    http://etrm.oracle.com
    Thanks,
    Hussein

  • How to find full tables hierarchy in schema

    Hi,
    How to find the table hierarchy list from oracle schema by using Reference Key constraint?
    In my schema I am having many tables, approximate 4000 and from there I needs to get a single list which should be based in the Foriegn key based (Parent tables should be first then child tables)
    Regards
    Anee

    You can start with this
    select A.table_name children,
             B.TAble_name Father
    from DBA_CONSTRAINTS A,
            DBA_CONSTRAINTS B
    WHERE A.CONSTRAINT_TYPE = 'R'
         And B.Constraint_name = a.r_Constraint_name

  • How to find the tables corresponding to a particular field in datasource.

    Hi Experts,
    There are lot of extra fields in the structure like MCEKKN as compared with the table EKKN. The data in these fields are coming from some other table.
    So can u tell me how to find these tables corresponding to these fields?
    Let me be more clear..
    I want to know that the data in the datasource like 2LIS_02_ACC are coming from lot of tables.
    How can I find those tables corresponding to each field in the extraction structure.
    I have tried with ST05...as well as by filling setup tables in debbugging mode..but I am still in lot of confusion.
    Please try to help me....U will get good points in response.
    Thanx.
    Vinod.

    Hi Vinod,
    Why are you trying to enhance the extractor because the steps you are following is tio enhance the structure
    <i><b>like transferd one of the field from pool to selection criteria</b></i>
    If you want to see only the fields of the extractor and from which table it is coming you just have to see the pool only.
    There in the lef you have the fields which are already present  in the extractor and in the right you have the avaialbale fields present.
    Also in the two selection pools if you will see carefully you will find in each selection pool
    "Table name" and then the "field name" and then description of the field data type and length.
    Like in case of 2lIS_13_VDITM you will find all the fields coming from VBRK and VBRP and VBUK.
    Just check it you will get an idea.
    In this way you can find that which field in the extractor is coming from which of fields of the table.
    I think this is what you want to know.
    If not clear then do reply
    Thanks

  • How to find which table is not being used ?

    Hi,
    I am in need of releasing space from the common schema we have. i have been permitted to drop the tables which has not been used for the last three months.
    Can anyone please suggest how to find the tables that has not been used for a given amount of time.
    Thanks and Regards.
    Rajib

    i have been permitted to drop the tables which has not been used for the last three months.Can I just chip in an observation on this premise? It's not unusual for systems to have processes that run quarterly or even annually. You need to be very careful about dropping "unused" tables - you might just kill your organisations end of year reporting system.
    Is buying more disk space really not an option?
    Cheers, APC

  • How's this partition table for my server?

    How's this partition table for my server?  Web/DNS/DHCP/Mail Server.
    hdd1: ~8gb total
    /boot - 100mb
    swap - 1gb
    / - rest of drive
    hdd2: ~155gb total
    /var - whole drive
    This is a Compaq ProLiant 5500 server with 10 drives.  Will most things be installed inside /var or what?

    Zetsumei wrote:Web/DNS/DHCP/Mail Server.
    Web = /srv
    DNS = /var
    DHCP = /var
    Mail = Depends which package you use. I use postfix and told it to use /srv
    I would half your swap, reduce /var and put the extra space into /srv
    Also create a separate /tmp and /home to prevent accidental or deliberate DoS attacks by filling your / partition
    Here's what I use on my Web / DNS / FTP server:
    Filesystem Size Used Avail Use% Mounted on
    /dev/xvda 493M 176M 317M 36% /
    /dev/xvdc 31M 674K 29M 3% /boot
    /dev/lvmData-home 62M 26M 34M 44% /home
    /dev/lvmData-usr 2.0G 848M 1.1G 45% /usr
    /dev/lvmData-tmp 496M 20M 451M 5% /tmp
    /dev/lvmData-srv 1.5G 769M 667M 54% /srv
    /dev/lvmData-var 496M 231M 241M 49% /var
    /dev/lvmData-pacman 384M 303M 82M 79% /var/cache/pacman
    /dev/lvmData-backup 5.5G 4.6G 565M 90% /mnt/backup

  • How to find an table for storing the employee salary

    hi,
           how to find an table for storing employee salary .. In which table those details are stored .. Please reply me.
    regards,
    kumar

    Hi,
    You can see the basic salary details from table -pa0008.If you can see the payroll data,then its not stored in transparent table.its in cluster.For viewing that,you can see through transaction code - pc_payresult.
    Regards,
    Manoj.

  • How to find the tables

    Could any one tell me how to find the tables for this Datasource 0GLACCEXT_T011_HIER and theExtract structure is  ROHIEROS.But I did'nt see any fields on it.
    In the Extract structure there is only one fields is OLTPSOURCE.
    Could any one explain me how  this hierarchy data get populated into BW. Its very urgent
    Thanks in advance
    Taj

    http://help.sap.com/saphelp_bw33/helpdata/en/64/032de5ff014c4c86bc15272216a5e2/frameset.htm
    table RFDT.. check the link
    and also http://help.sap.com/saphelp_erp2005vp/helpdata/en/af/6837bb0e954b7ab47aca5d9fce1101/frameset.htm
    null

Maybe you are looking for

  • CANNOT import RAW files from CANON 40D to Lightroom 1.2

    My color setup in 40D is sRGB my system is windows XP but when I want to import files from my CF card it will show the message: some import operation were not performed. the files use an unsupported color mode. pls tell me how to solve this problem~

  • Content Type Description is not adding on list

    Hello I have some custom content type on site level and each content type I have different description. When I add content type manually  in existing document library, description is also coming for added content type. But when I add content type pro

  • Change Material Number using BAPI_PO_CHANGE, PO OrderUnit reset to base UoM

    Hi Experts, I am using IDOCs and BAPI_PO_CHANGE to update PO's in SAP (as PO's are created/maintained in an external system and interfaced to SAP). This works fine except for a change in the material number, the PO Order Unit is getting reset to the

  • IS  XE  BETTER

    Hi, am wondering if express edition is preferbale to enterprise edition. And how can I increase the size of the space. Message was edited by: user539979

  • Conversion problem ... Please help or guide ..

    I am trying to build a change calculator and I just need help in converting for example $10.099999999999994 to $10.10. This is not for display purposes but for calculation purposes. Is it possible? Please guide me Thanx Sunny