Drop system generated constraint

Hi All,
In a table I am having primary key called abc_pk for column. Mistakenly i have given the same name for foreign key as abc_pk and executed. As of me if same name for constraint then oracle will generate own constraint name such as sys_co4537.. if it is wrong correct me...
if oracle itself generated constraint name then how to find constraint correct constraint name....
case 1: if it single database i can find it in corresponding table with reference key..as (sys_co4537)
case 2: If i am having more than 2 database then it difficult to find because each database will create different name...
pls suggest me how to drop sys_* constraint from different database..
Thanks & Regards
Sami

Hi All,
select * from USER_CONSTRAINTS
where table_name=<<table_name>>
by getting the constraint name, you can drop the constraint by
alter table <<table name>> drop constraint <<constraint name>>;By using above statments user needs to select the constraint name, after that needs to drop it. Instead of that user needs to run as script.. so i have created as block script
as
DECLARE
V_CONSTRAINT_NAME VARCHAR2(30);
BEGIN
SELECT CONSTRAINT_NAME INTO V_CONSTRAINT_NAME FROM USER_CONSTRAINTS WHERE TABLE_NAME = 'ABC' AND R_CONSTRAINT_NAME='ABC_PK';
EXECUTE IMMEDIATE 'ALTER TABLE DEPOSIT_ACCOUNT_INTEREST DROP CONSTRAINT '|| V_CONSTRAINT_NAME;
EXECUTE IMMEDIATE 'ALTER TABLE DEPOSIT_ACCOUNT_INTEREST ADD CONSTRAINT ABC_FK FOREIGN KEY (XXX_ID) REFERENCES DEPOSIT_ACCOUNT XXX_ID) DEFERRABLE INITIALLY DEFERRED';
END;I think this might me usefull to some one..
Thanks & Regards
Sami.

Similar Messages

  • System generated index property not generated in database

    Hi,
    I created an offline table by copying it from an (first) online database to my project. The table contains a unique key constraint, which references a system generated index. Now I used this offline table to generate a table in another (second) online database. This all works well except, that the "System Generated" property of the index is "false" and not "true" as in the offline table (and the first online database). When I manually reconcile the same table to the second online database again, there is always a difference shown for this index property. When I try to continue the reconcile process to change this property I get an error message, that the index cannot be dropped because it is obviousely referenced by the unique constraint.
    When I drop the constraint and try to generate the index only I get the following warning message:
    Jan 11, 2012 2:08:59 PM oracle.javatools.db.property.AbstractPropertyManager processDiffs
    WARNING: Unsupported property: systemGenerated
    Is there a way to work around this annoying behavour? Is it possible to change this index property by an ALTER INDEX statement?
    Im using JDeveloper 11.1.2.1.0 (Build JDEVADF_11.1.2.1.0_GENERIC_110907.2314.6081)
    Thanks for help and hints
    Thomas
    Edited by: thmayr on 11.01.2012 05:08

    Hi,
    it might be due to some BUG in RDBMS...
    First Check the Secondary index in TEST system
    Look at the Transport Number in DEV system, If this is having error, then it will show you the error details also,
    If that not moved Properly then you need to create another request for the INDEX and move it again
    See the threads with similar problem...
    Warning: Index does not exist in database system MSSQL
    Index does not exist in database system ORACLE??????
    Re creation of database index
    Hope it will solve your problem...
    <b>Reward Points if useful</b>
    Thanks & Regards
    ilesh 24x7

  • How do I add validation to a system-generated Selection Screen?

    As HR ABAPers know, using the Logical Database approach (I'm using PNPCE) gives you a system-generated Selection Screen.  Part of the specs I have for this report involves making sure that the begin and end dates for the period selected are for a two-week period.  If not, I should display an error message until the user enters a period such that the period (pn-begda and pn-endda) reflect a two-week period.
    The code for the validation is easy enough, and I put it in the AT SELECTION-SCREEN event.  But here's the problem -- the code fires every time the user clicks the "Reporting Period" drop-down box, never giving the user a chance to specify a two-week period.  It fires because pn-begda and pn-endda are still all zeroes.  Even if I select "Other Period" from the drop-down list, the text boxes to allow me to specify the begin and end dates don't appear.
    I've been working on this for quite a while, trying all kinds of things, but I'm spinning my wheels now.  I just want that check to happen when the user clicks the Execute button on the Selection Screen, not when he/she is still trying to enter criteria.  I'm thinking screen field validation for a system-generated Selection Screen has to be a pretty common thing, and there must be a good solution out there.
    Any ideas?

    Rich,
    Absolutely beautiful -- that's exactly what I needed to learn.  Thank you so much.
    Rob, I thought about that.  I even proposed to the users that I could default in a two-week range beginning with today, exactly as you suggested, but they didn't want that.  They felt that this report would more often than not be run to reflect data from two-week periods not necessarily starting today.  Still thought it was a good idea, but that's their call. _
    Again, thanks Rich.  Points awarded.

  • System generated column names

    Version - Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    I see some system generated column names(like SYS_C00009_13061211:44:57$,SYS_C00033_13061211:44:57$) in ALL_TAB_COLS view for a partitioned table, not sure how they got created in the first place and tabledoesn't have any virtual columns. Is it something if we drop a column from table and oracle trying to keep them in the dictionary? when i describe the table these "SYS_C00" columns are not showing.
    I am trying to exchange the partition with staging (similar structure) table, but i end up with this error "
    14097. 00000 -  "column type or size mismatch in ALTER TABLE EXCHANGE PARTITION"
    *Cause:    The corresponding columns in the tables specified in the
               ALTER TABLE EXCHANGE PARTITION are of different type or size
    *Action:   Ensure that the two tables have the same number of columns
               with the same type and size."
    Any suggestions would be appreciated.
    Thanks,
    sg

    I have found my solution to this problem.
    My table is compressed table and when i try to drop some of the columns oracle marking them as unused(SYS_CO with timestamp) instead of dropping them. For partition exchange i have created same number of columns as original table in the same order and marked the "dropped" columns as unused on a temporary table. Now i can able to exchange the partition with out any issues
    Thanks to Jonathan and Connor.
    EXCHANGE PARTITION those pesky columns | Learning is not a spectator sport

  • The table name for the system generated transactions (Retained Earnings).

    Hi Gurus,
    I have a doubt and want to know from U experts there. Hope you won't let me down. The situation is
    I have created a new chart of account in our Oracle Financial. Uploaded 2007 transactions and opened year 2008 and closed all the periods of year 2007.
    When I open a new year Oracle will do internal process transfer R&L balance to Retained Earnings account and make income & expenses accounts to Zero.
    I want to know the system generated entries which table they are stored, this transaction is not in Gl_Balances table.
    Its an urgent plz reply back soon.
    Thanks in advance
    Barkat

    Hello.
    For EBS 11.5.10.2
    Let’s suppose that the last period of you fiscal year is called ‘LAST-2008’ (not adjusting period). If you have an account with a debtor balance of 100 in this period, when you open the following fiscal year you will find an entry of 100 in the first adjustment period of the fiscal year that the ‘LAST-2008’ period belongs to, in the column BEGIN_BALANCE_DR.
    It is clear that if the balance is creditor you will find it in the BEGIN_BALANCE_CR column.
    Hope this helps.
    Octavio

  • Confusion over nested tables and system generated nested tables

    Hi,
    I have been reading other threads about nested tables, naming and updating them etc, but I have what seems
    to me some odd behaviour.
    I modified my schema to set the attribute xdb:maintainDom to be false for a collection and then registered
    the schema with the generate tables option defaulted to true. The result was that I had to add xdb:tableProps
    attributes specifying nested table storage at each element above the collection element, this was because Oracle
    was creating tables at each level. So I have this kind of thing:
    <xsd:element name="BibPt" xdb:SQLType="BIBPT_T"
      xdb:defaultTable="BIBPT"
      xdb:tableProps="NESTED TABLE XMLDATA.PTEES.PTEE_SEC.PTEE STORE AS NESTED_PTEE_SEC
    NESTED TABLE XMLDATA.INVS.INV STORE AS NESTED_INV_BIBPT TABLESPACE BIBLIO">
    <xsd:element name="Ptees" xdb:SQLType="PTEES_T" xdb:tableProps="NESTED TABLE
    XMLDATA.PTEE_SEC.PTEE STORE AS NESTED_PTEE_SEC2">When I did this the nested tables were created, but when I loaded data never had anything in them. Instead
    I found that nestes tables with systems generated names like "SYSNTxxxxxxxxx" has been created that contained
    the data.
    When I registered the schema without the tables being generated, I created a table with this syntax:
    create table poc_wip2 of xmltype
    xmlschema "http://www.derwent.co.uk/wpi.xsd" element "WPI"
    NESTED TABLE XMLDATA."BibPt".PTEES.PTEE_SEC.PTEE STORE AS NESTED_PTEE_SEC
    NESTED TABLE XMLDATA."BibPt".INVS.INV STORE AS NESTED_INV_BIBPT(Thanks to a posting by Sam Monsarrat which showed me this was possible).
    Now I had my named nested tables, which contained the data after it was loaded and no system named
    nested tables.
    So why the difference?
    In the first instance why do my named nested tables stay empty and why does the data go into system
    generated tables I have no control over as regards tablespace placement?
    Is it possible to have a XML schema registered that only generates tables that I have named with the defaultTable
    attribute, rather than all or nothing?
    And last but not least, what's the best approach for this, since I want to be able to access the data via indexes
    on the nested tables.
    Thanks
    Pete

    Hi Pete
    Would you please publish the schema you are using?
    Thanks,
    Tobias

  • How to block changes in system generated Plan orders

    Hi,
    As after MRP RUN we get Planned order generated by the system,  with type LP  , I have a requirement that system generated plan order quanity cannot be cnhage by the user if plan order is generated for quanity 85  user should not make it 100 no quality chnages,  also the manual plan order type LP cannot be create manully it should be creat by system only,  and for manul other type of plan order type should be use,
    How to do this.
    regards,
    zafar

    Hi
    Firming can be used when you don't want certain planned orders to change during subsequent MRP runs.
    Say today you have created certain palnned orders.
    In a normal scenario, when you do the MRP run again, the planned order may get changed if the requirements have changed.
    However as a normal business practice, it is not desired to change the production plans everytime there is a change in the requirement...especially in the immediate future (maybe a week or so).
    We set this as the planning time fence depending on the MRP type settimg in the material master, you may have firm orders.
    MRP will also generate firm planned orders for materials with MRP type P1 to P4.
    In addition to the above, any planned order that is manually changed is also firmed.
    Hope this may help
    Regards
    BRSR

  • System generated cancellation charge but I was out...

    I have a cancellation charge on my final bill that shouldn't be there.
    I spoke to someone at BT and explained that I renewed then cancelled my contract straight away by email within the cooling off period as per consumer protection regulations, before deciding to move to another provider through an approved process.
    He said not to worry as the letters were system generated and to get in contact again to have the charge removed if it appeared on my final bill.
    It did appear on my final and I emailed to get it amended but no-one has done so, or replied to me.
    I've heard there are Mods on here who can move things along a bit.
    Please help!

    Once the Forum Mods have read your post they will post an invite here once you reply to them they will take personal ownership of the problem until resolved
    do not send them a Personal Message as this is the incorrect contact method and cannot be properly tracked also the mod contacted may not be on shift for sometime and this will delay your help
    The forum mods normally reply within3/5 working days after you have contacted them
    They will contact you personally by email or phone
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • How to work around System Generated ID's - GUID?

    Hello Experts:
    We are facing a challenge in our CPROJECTS and CRM modules.
    All the objects are getting assigned a unique 32 character system generated ID which is linked to the actual object. This makes navigation and troubleshooting even more complex.
    My questions are these:
    1. What is the significance of this methodology of assigning System generated ID's (GUID's)? Why do we need these system generated ID's?
    2. How can we convert the objects from internal ID format to external ID format? Is there a function module that would allow us to do that?
    3. All the business content extractors are designed to extract in the internal ID format. What do we do to configure the extractors to use external ID format.
    Any helpful answer will be rewarded.
    Thanks
    MP.

    Hi,
    did you find a workaround concerning this topic? Having the same issue in SRM - BW implementation
    kind regards,
    Steven

  • Do we need to create process chain explicitly nor system generates process

    Hi all,
    Do we need to create process chain explicity in bpc netweaver nor the system generates it internally when we run data managment packages
    thanks
    Pooja

    When you install BPC, there is a set of delivered process chains which are installed as well.  You create the data manager packages from the BPC Excel clicent based on these process chains.  You can of create custom BPC process chains in NetWeaver and create packages from those as well(for example via a How-To guide).   So to answer your question, no, you do not have to create the "standard" process chains, and they are not generated by the system either, they are delivered as part of the BPC installation.
    Regards,
    Rich Heilman

  • System generated emails - how to include a mandatory prefix for all email

    Good morning.
    I have been asked if there was a way to default a Security Classification into the Subject Line of all SAP system generated emails.
    Examples "[UNCLASSIFIED] Please approve Purchase Order 123456" or "[UNCLASSIFIED] Please approve Absence for Fred Smith".
    I can have the individual code of the Programs that generate the Subject Texts but is there a way to have this default for ALL emails?
    Thanks
    David

    Hi David,
    This one sounds like the one for the Basis guy to look at. They should be able to configure (default) this prefix in the EMAIL/SMTP node(s) as viewed in transaction SCOT. The changes should be done from the IMG (SPRO).
    Regards.

  • How to know the system generated password when reseting users password?

    Dear All,
    I have reset password using "genarated new password" in the portal from User admin,but dont want to send a e-mail notification  to end users, instead of that i want to know the system generated password.
    But system doses't shows it.How can I tell what the password is and give it to the user?
    I have a All super admin rols.
    Pleas guide.
    Thanks in advance.

    Basically you can't! If you tell it to generate one, then that's only sent to the user. Why not enter your own random password or let the user pick their own through some sort of self service function?

  • "Error 0001: Fatal Internal Error" in System Generator

    Hi, I get the following error when I try to import data using the model explorer in Simulink. --------------------------------- Version Log ----------------------------------
    Version                                 Path
    System Generator 10.1.1134              C:/Xilinx/10.1/DSP_Tools/common/bin/../../sysgen
    AccelDSP 10.1.1134                      C:/Xilinx/10.1/DSP_Tools/common/bin/../../AccelDSP
    Matlab 7.5.0.342 (R2007b)               C:/Program Files/MATLAB/R2007b
    ISE 10.1.i                              c:/Xilinx/10.1/ISE
    Summary of Errors:
    Error 0001: Fatal Internal Error
         Block: 'xlfsm_controller_simulation_test/Gateway In1'
    --------------------------------------------------------------------------------Error 0001:Reported by:
      'xlfsm_controller_simulation_test/Gateway In1'Details:
    An internal error occurred in the Xilinx Blockset Library.Please report this error to Xilinx (http://support.xilinx.com),
    in as much detail as possible. You may also find immediate help
    in the Answers Database and other online resources at http://support.xilinx.com.Since it is possible that this internal error resulted from an
    unhandled usage error in your design, we advise you to carefully
    check the usage of the block reporting the internal error. If
    errors persist, we recommend that you restart MATLAB.
    -------------------------------------------------------------------------------- When I used the "From Workspace" block in Simulink to import data, the model executed without any errors.  I don't know what am I doing wrong.  I am new to System Generator.  Could someone please give me some help??? Thanks in Advance

    check this discussion
    http://forums.xilinx.com/t5/DSP-Tools/System-Generator-Fatal-Internal-Error-Help-SOLVED/m-p/150010
    http://forums.xilinx.com/t5/DSP-Tools/an-internal-error-occurred-in-the-xilinx-blockset-library/m-p/383207#M7366

  • Reg: Generating  custom number instead of system generated no in ME21n

    Hi Experts,
                      I need to know user exits or Badi to generate custom number instead of system generated number while saving p.o ME21n transaction.
    Regards,
    Vikram.S

    Vikram,
    Instead of doing it programatically , ypu can satisfy your requirement in configuration settings.
    check SPRO with the help of functional consultant.

  • How to get saturation function in system generator

    Hi,
    I use system generator and try to achieve the saturation function by using Xilinx Libary.
    For example, how could i get a function which is similar to the block "Saturation" in normal simulink library.
    The back ground is that i have a PWM signal in my FPGA model. Now i want to cut the negtive value. Or change all the negative value to zero.
    Thank you.

    The gateway in blocks have saturation option for saturation at the ports. For signals internal to the sysgen design, you can use the Convert block which also allows saturation option.
     

Maybe you are looking for

  • Not finding Excel file when Excel Export is done using POI API

    Hi gurus, I am creating a simple application which is having a simple table, and I want to export that table to Excel through POI API's. I followed the Exporting Data from Web Dynpro In Different Formats Using Open Source (POI, JExcel, iText) APIs pd

  • Process Task dependency issue in OIM 11g

    Hello, I created 3 process tasks (Task1, Task2 and Task3) .I would like to trigger Task3 when both Task1 and Task2 get completed status. So what I did is I put both Task1 and Task2 as depedent tasks in Task 3 "Task Dependecy" tab. In this case both T

  • Orphaned Quicktime File on desktop

    Whenever I launch a Final Cut Pro project a random 4k .mov file appears on my desktop. It wont open and when I try to throw it away it says it is in use. Any ideas?

  • Desktop recording with CP-7942

    Hi everybody! ¿Does anyone know if it is possible to use Desktop Recording with IP phone model CP-7942?. I have this configured with CP-7970 and works fine, but with CP-7942 I couldn´t get it to work. However Network recording works without problem w

  • End Scrolling Credits using PS & FCP

    I'm back at this again - after a few years. We've switched our format (this one shot on RED) - PS titles set up as 1920x20000; video sequence is 1920... First when I brought them in they were squished/distorted...when I played with scale & distortion