How to view a parent-child relationship on the Command line (cmd)

Hi
I'm a newbie. I'm trying to insert some values using a small application into an oracle db table and I got this message:
"java.sql.SQLException: ORA-02291: integrity constraint (DATA.SYS_C002764) violated - parent key"
From my point of view(thinking) I'm trying to insert data into a child table which references a parent table.
My Q is how can I see which table(s) are involve here per command line? What type of querry if any can I give onto the cmd line to see the relationships of tables which references each other? I'll really much appreciate your respond. Thanks in advance!

Hi,
Go to application navigator, model node by clicking on the entity, in the structure panel you'll see the list of defined constraints.
But you better give relevant names to your database constraints. I create them at the database level, example
for a primary key of table emp: DEPT_PK, foreign key in child table dept: DEPT_EMP_FK
When you create the entity in jdev, the ide will use those names and it will be easier to identify them.
Regards
Frederic

Similar Messages

  • How to use GL Parent Child relationships in Discoverer?

    Subject: How to used GL Parent Child relationships in Discoverer?
    How to use GL Parent Child relationships in Discoverer?
    Please let me know how to incorporate the parent -child relation ships exsiting in GL Accouting flexfield Segments in Discoverer for drill downs? we have GL - BIS views installed.
    How to create the specific Parent -child relationship hierarchies in Discoverer from the FND_* tables?
    Please help.
    Thanks.
    KS.

    Hi,
    I'm also trying to implement this. If you have come any further in solving this any hints would be much appreciated...
    regards,
    AJ

  • How do I identify parent/child relationship

    How do I identify parent/child relationship in Designer?

    turn your object into a symbol, and place multiple instances of it on the artboard, when you edit the symbol all instances will update.

  • How do i create a database template from the command line?

    Hi,
    As part of implementing a backup and recovery strategy for a client (including disaster recovery) I want to automate the creation of a database template From an Existing Database (Structure as well as data) via a script that will run every night.
    The background to this is that we will also be using RMAN to take backups of the database concerned but the client does not want to wait while an RMAN backup is restored and so wants an additional level of insurance in the form of a ‘standby’ clone database.
    The idea is that nightly we will run a script that creates a database template from the Existing Database (Structure as well as data) and then transfers the 2 files involved e.g. DB_data_included.dbc and DB_data_included.DFB across to a standby server where they can be used to recreate the database in the event of us needing to after e.g. a complete server failure.
    So I have a couple of questions about this that I would be very grateful if something could answer for me:
    1)     Is it possible? That is, can a database template be created from some utility by supplying a series of parameter=value pairs on the command line?
    2)     If yes how do I go about it, what utility do I use (the emca utility?). and what parameters do I need to supply on the command line to create the template?
    3)     The intention is that the script to create the template will run in the early hours of the morning when no-one is using the database but what state does the database need to be in when the template creation script runs i.e. up, down, mounted and does the creation of a template affect the state of an already up database i.e. if I kick off the template creation script and the database is up will it switch it into mount mode or anything like that? My concern here is that I want to make sure I understand exactly what is going on so that no users or connected external systems are affected?
    Thanks in anticipation of someone being able to guide me on what to do or what documentation to read.
    Also if you require any clarification on what i'm asking please post up your query and i'll respond ASAP.
    Kind Regards,
    George Johnston
    OCP 9i DBA

    Sybrandb,
    Firstly thanks for you reponse.
    However, I don’t agree that dbca only creates empty databases otherwise why does the option to create a template from an existing database (structure as well as data) exist in the dbca wizard?
    I have performed a test case where I have a created a database template including data on one 10g server. I have then used the files generated to recreate that database on a separate server. When the new database is started it is an exact copy of the original. So it’s not empty at all , it’s exactly what the client wants.
    So I don’t agree that I’m gaining zero.
    Why is this approach doomed to fail?
    There a number of reasons why I “just set up a proper standby database”
    1.     Time – I’m on a customer site in a tight engagement where the customer wants maximum value for money. I don’t have standby database skills and the customer isn’t willing to pay for me to learn on the job so please understand the tight circumstances I’m working in.
    2.     Availability – As far as I know the client is running 10.2.0.3.0 standard edition. Correct me if I’m wrong but is standby db available in that edition. Where do I look to check V$OPTION.
    On the RMAN duplicating a database front it’s an area I haven’t used before but I will take a look at it.
    Also please revisit the context of my original posting where I state
    The background to this is that we will also be using RMAN to take backups of the database concerned but the client does not want to wait while an RMAN backup is restored and so wants an additional level of insurance in the form of a ‘standby’ clone database.
    So please understand that this a quick fix that the client wants developed in the minimum time possible in ADDITION to a full nightly RMAN backup being taken.
    In an ideal world I’d have the time to follow best practice but in the real world of on-site customer support I just need to get the job done operating under the customer imposed constraints.
    Many Thanks,
    George Johnston
    OCP 9i DBA

  • How can I put a "esc" character in the command line of the Iinstrument I/O Assistant?

    Hello
    I'm trying to prepare a VI for a device (Ultrasonic detector) connected to my RS-232 serial port, and which requires commands and enquires in the format
    The problem is very simple....since is a non printable character, how can I put it in the command line of the Instrument I/O Assistant???
    Best regards
    Massimiliano

    Hello Massimiliano,
    Thanks for contacting National Instruments.
    To answer you question, the best way to do what you are looking to do is to use the instrument I/O Assistant to generate whatever you want the code to do without the non-displayable characters, then once the Instrument I/O Assistant block is on the block diagram, then right click on the Assistant block and select to open the front panel. You will want to choose to convert it to a standard VI, which will allow you to change the code that has been auto generated. In order to add non-displayable characters to this code you follow the knowledgebase link below.
    http://digital.ni.com/public.nsf/websearch/77c8f61d36f5a23086256634005acb38
    Hope this helps!
    Regards,
    Steven B.
    Applications
    Engineering
    National Instruments

  • Parent Child Relationship in the table to be queried.

    Hi guys,
    I have the below query.
    Table 1:
    Column_name Reference
    Value1 Value1
    Value2 Value1
    Table 2:
    Column_name Attributes(child Elements)
    Value1 Child1
    Value1 Child2
    Now my query is to retrieve records as below using both the tables.
    Value1
    Value1.Child1
    Value1.Child2
    Value2
    Value2.Child1
    Value2.Child2
    How can I get such ?
    Regards,
    SQL Developer.

    Hi,
    As Alex said, you should have tried by joining them.
    With Parent As (
    select 'Value1' p_col1,'Value1' P_col2 from dual union all
    select 'Value2','Value1' from dual),
    child as (
    select 'Value1' c_col1,'Child1' c_col2 from dual union all
    select 'Value1','Child2' from dual)
    -- End of sample data
    select p_col1,null c_col2 from parent
    union
    select p_col1,c_col2 from parent,child
    where p_col2=c_col1
    order by p_col1,c_col2 desc
    PRAZY@11gR1> /
    P_COL1 C_COL2
    Value1
    Value1 Child2
    Value1 Child1
    Value2
    Value2 Child2
    Value2 Child1
    6 rows selected.
    Elapsed: 00:00:00.03Regards,
    Prazy

  • How do I create parent/child relationship between objects? so that if I change one, I change all

    I have multiple instances of an object, and I would like to make any changes that I put on one of these objects to perpetuate and change on the other instances of the object

    turn your object into a symbol, and place multiple instances of it on the artboard, when you edit the symbol all instances will update.

  • How to run jFram created by Netbeans in the command line or Jcreator

    Dear Friends
    I have designed a fram in Netbeans and the fram have many Jbox and Jcheck Boxes and Text areas. Net beans uses it is oun library. However after I used the facilities and finished the design I am looking to run it in faster IDE, such as Jcreator.
    The problem is that Netbean uses its library and Jcreator is not identifying it. My question, How to have it working else outside netbeans.
    here is the main problem, not sure how to have it available out side netbeans,ext such as
    getContentPane().add(jTextField11, new org.netbeans.lib.awtextra.AbsoluteConstraints(860, 120, 50, 20));
    Thanks for any help

    Dear Friends
    I have designed a fram in Netbeans and the fram have
    many Jbox and Jcheck Boxes and Text areas. Net beans
    uses it is oun library. However after I used the
    facilities and finished the design I am looking to
    run it in faster IDE, such as Jcreator. This is bullshit. You shouldn't run apps from within an IDE. And there's certainly no speed difference for your app.
    The problem is that Netbean uses its library and
    Jcreator is not identifying it. My question, How to
    have it working else outside netbeans.Import the library orjust use standard classes.

  • How do I reset Safari (clear cache) from the command line?

    I have a macmini that runs in Safari in kiosk mode. I would like to be able to ssh into it and clear the browser cache. I don't have access to the system via a keyboard or mouse. Which files do I need to edit? Do I need to restart Safari after I make changes?
    J

    I have a macmini that runs in Safari in kiosk mode. I would like to be able to ssh into it and clear the browser cache. I don't have access to the system via a keyboard or mouse. Which files do I need to edit? Do I need to restart Safari after I make changes?
    J

  • How to start firefox in safe mode from the command line

    This is for Window XP, firefox 19

    Hello jjfirefox77
    "C:\Program Files\Mozilla Firefox\firefox.exe" -safe-mode
    thank you

  • How can I package an HTML5 panel from the command line?

    I am able to use the Eclipse Extension Builder plugin to export a ZXP file, but for our build process we will need to do this from the command line.  Is this possible?

    Edit: Adobe has fixed the links and the downloads are now available.
    The links to the Windows downloads do not seem to be active anymore.  Is there somewhere else we can get these?
    http://labs.adobe.com/downloads/extensionbuilder3.html

  • Question about File Content Conversion and parent-child relationships...

    Hello!
         I have read probably every blog, article and SAP Help document on the topic, but I am stuck on this one.  I am trying to convert a General Ledger flat file to an IDoc using the classic file --> IDoc scenario.  The setup is done and working, but the IDocs are formatted incorrectly and I believe at least part of the reason is how I am converting the file content. 
    The root of my problem is that the flat file has a parent-child relationship between the document header and the document item and I want to maintain that since the IDoc type (FIDCCP01) has the same structure in the BKPF and BSEG segments.
    Here is the flat (non-XML) file layout that is coming into the file adapter:
    FileHeader
    DocumentHeader
    DocumentItem
    DocumentHeader
    DocumentItem
    and so on (until the number of documents is complete
    I would really like the content to be converted so that the line items stay under their parent document headers like this:
    <FileHeader></FileHeader>
    <DocumentHeader>
       <ItemHeader>
       </ItemHeader>
    </DocumentHeader>
    <DocumentHeader>
       <ItemHeader>
      </ItemHeader>
    </DocumentHeader>
    But I keep getting this, where it lists the document headers first (one after another), and then all of the line items after the document headers like this:
    <FileHeader></FileHeader>
    <DocumentHeader></DocumentHeader>
    <DocumentHeader></DocumentHeader>
    <DocumentHeader></DocumentHeader>
    <ItemHeader></ItemHeader>
    Is is possible to maintain that parent-child relationship from the flat file and pass it over to the XML?
    Thanks,
    John

    Hi,
    Check some links on FCC.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani
    Reward points if Helpful

  • Aviod Update of 2 related fields in Parent Child Relationship

    Hi,
    I have 2 Entity Beans in Parent Child relationship.
    The update on the fields of one Entity Bean is causing an update on the fields(Database Column which is having the same) of the other bean
    Is their anyway I can aviod that.
    Please do suggest me if incase u have any solution for the same.
    - Rajeeb

    Hi,
    I have 2 Entity Beans in Parent Child relationship.
    The update on the fields of one Entity Bean is causing an update on the fields(Database Column which is having the same) of the other bean
    Is their anyway I can aviod that.
    Please do suggest me if incase u have any solution for the same.
    - Rajeeb

  • Work Order and parent/child relationship

    I have been looking into the vision instance. There is an Asset-Rebuildable relationship, that is Forklif and it's battery. If there is a work order on the forklik "replace battery" can this be done automatically, or is this all manual.
    1. When I pick the new battery from stores the S/N of the battery is associated with the forklif (automatic I tested this)
    2. When I say "remove the old battery" should't the old battery parent/child relationship between the parent be broken and a child work order "charge" for the battery be logged. I could not reproduce that, but queried that this is what happens in vision. Are all these supposed to be manual?
    Regards

    From this plan, we can't easily get the parent child relationship like autotrace. Is there a way to get like autotrace?
    SELECT * FROM table(DBMS_XPLAN.DISPLAY);
    Plan hash value: 3693697345
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | TQ |INOUT |PQ Distrib |
    | 0 | SELECT STATEMENT | | 1 | 117 | 6 (50) | 00:00:01 | | | |
    | 1 | PX COORDINATOR | | | | | | | | |
    | 2 | PX SEND QC (ORDER) |:TQ10003 | 1 | 117 | 6 (50) | 00:00:01 | Q1,03 | P->S | QC (ORDER) |
    | 3 | SORT ORDER BY | | 1 | 117 | 6 (50) | 00:00:01 | Q1,03 | PCWP | |
    | 4 | PX RECEIVE | | 1 | 117 | 5 (40) | 00:00:01 | Q1,03 | PCWP | |
    | 5 | PX SEND RANGE |:TQ10002 | 1 | 117 | 5 (40) | 00:00:01 | Q1,02 | P->P | RANGE |
    |* 6 | HASH JOIN | | 1 | 117 | 5 (40) | 00:00:01 | Q1,02 | PCWP | |
    | 7 | PX RECEIVE | | 1 | 87 | 2 (50) | 00:00:01 | Q1,02 | PCWP | |
    | 8 | PX SEND HASH |:TQ10001 | 1 | 87 | 2 (50) | 00:00:01 | Q1,01 | P->P | HASH |
    | 9 | PX BLOCK ITERATOR | | 1 | 87 | 2 (50) | 00:00:01 | Q1,01 | PCWC | |
    |* 10| TABLE ACCESS FULL | EMP | 1 | 87 | 2 (50) | 00:00:01 | Q1,01 | PCWP | |
    | 11 | BUFFER SORT | | | | | | Q1,02 | PCWC | |
    | 12 | PX RECEIVE | | 4 | 120 | 3 (34) | 00:00:01 | Q1,02 | PCWP | |
    | 13 | PX SEND HASH |:TQ10000 | 4 | 120 | 3 (34) | 00:00:01 | | S->P | HASH |
    | 14 | TABLE ACCESS FULL | DEPT | 4 | 120 | 3 (34) | 00:00:01 | | | |
    Predicate Information (identified by operation id):
    6 - access("E"."DEPTNO"="D"."DEPTNO")
    10 - filter("E"."ENAME"='hermann')
    ---------------------------------------------------

  • How do I change my password on the command line?

    How does a user change their password on the command line in 10.4? This user is not an admin. I can try "passwd" and it asks for my old password, and then new password. Then it just says "Sorry" and does not change my password.
    Thanks!

    Is the user able to change the password from "System Preferences" > "Accounts" - i.e is the problem specific to the command line? If the user is unable to change their password at all, and the Mini has an Intel processor, they may be affected by the issue described here:
    http://docs.info.apple.com/article.html?artnum=304703
    Other users have posted here indicating that reinstalling the 10.4.8 update using the "combo" updater as suggested in the article has resolved the issue for them...

Maybe you are looking for

  • Error message in itune 10.4.0.80

    this is a message I've seem for at least a few upgrades since v10 iTunes was not properly installed. If you wish to import or burn CDs you need to reinstall iTunes. Wich of course, I've done at least 50 times. Emptied temp files, reinstalled windows,

  • Windows laptops can't connect to Macbook Pro shared internet when WEP security is on

    As the title states, my Windows laptops can't connect to Macbook Pro shared internet when WEP security is on.  My iPhone has no problem asking for the password when I try to access the shared internet my MacBook Pro on Mountain Lion is sending, but m

  • Latency Between Outputs After Project Conversion From Logic Pro 9

    hiya! i am experiencing a bizarre kind of latency – between outputs. for example, audio assigned to stereo outs 13-14 will leave my system 120 or so ticks after audio assigned to mono outputs 3 or 4. sometimes mono outputs are out of sync with one an

  • Java to SAP Connectivity

    I am currently using RFC calls to talk to SAP, it is very slow, can you please tell me what are the most efficient ways to communicate with SAP for a web based application (Websphere Commerce)

  • 0GLACCEXT HIERARCHY NOT DISPLAYING IN REPORT

    HI ALL we have used virtual cube 0figl_v10 for our report in order to get the 0glaccext hierarchy we have loaded the hierarchy and we see it is fine when seen through maintain hierarchies but when in bex report we are not able to seee the hierarchica