foreign key with the apps table

Hello world

I created a custom table and I want to create a foreign key with per_all_people_f.

Code:
ALTER TABLE xxsshr.xxsm_sshr_hr_approver
ADD CONSTRAINT fk_person_id
FOREIGN KEY (person_id)
REFERENCES HR. PER_ALL_PEOPLE_F (person_id)

However, I get ora-00942: table or view does not exist.

We use 11.5.10 and g 10 dB

Thanks for any help...

Elmer

The XXSSHR account will need reference and select the privileges (and maybe others) on the PER_ALL_PEOPLE_F table. The ALTER TABLE statement must be run under the account XXSSHR after the above privileges are granted.

HTH
Srini

Tags: Oracle Applications

Similar Questions

  • How can I make sure that changes in a primary key (in the parent table) would also appear directly in the FOREIGN KEY in the child table?

    Forgive my question. I am very new to Oracle.

    How can I make sure that changes in the key primary supplier_id (concerning the supplier table) would also appear directly in the FOREIGN KEY (supplier_id) in the products table?

    Is that not all the primary key and FOREIGN KEY on?

    My paintings:

    I created 2 tables and connect to apply in the data base referential integrity, as I learned.

    CREATE TABLE - parent provider

    (the numeric (10) of supplier_id not null,)

    supplier_name varchar2 (50) not null,

    Contact_Name varchar2 (50).

    CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)

    );

    CREATE TABLE - child products

    (the numeric (10) of product_id not null,)

    supplier_id numeric (10) not null,

    CONSTRAINT fk_supplier

    FOREIGN KEY (supplier_id)

    REFERENCES beg (supplier_id)

    );

    I inserted the following text:

    INSERT INTO provider

    (supplier_id, supplier_name, contact_name)

    VALUES

    (5000, 'Apple', 'first name');

    I expect that the supplier_id (5000) to the provider of the table also appears in the products table under key supplier_id having the same value which is 5000. But this does not happen.

    How to get there?

    Thanks in advance!

    Hello

    What is a foreign key in Oracle?

    A foreign key is a way to ensure referential integrity in your Oracle database. A foreign key means that the values of a table must appear also in another table.

    Ok!??

    What is now the right way to implement referential integrity in your Oracle database that the values of a table must also be included in another table?

    A foreign key referential integrity indeed enfore in ensuring that the value in the child table must have a corresponding parent key (otherwise you will encounter an error, as evidenced by "SomeoneElse"). However, it will never automatically insert a row in the other table.

    If you are looking for a solution that automatically inserts a record in the other table, maybe you should go for triggers:

    See:

  • Delete data table Parent and child data automatically delete or the value null in the foreign key of the child table.

    Oracle 10g

    Hi gurus

    I test_mst table that has a primary key test_mst.test_id, I detail table test_dtl which has test_dtl.test_id of foreign key, now I have that I want to use the delete statement in test_mst then it should also remove the constraint of her child or null in test_dtl.test_id, can again do in oracle 10g?

    Thanks in advance

    Hi Mit.

    example of cascade

    create table bill(
      bill_id number not null primary key
    )
    ;
    create table bill_item(
      bill_item_id number not null primary key,
      bill_id number references bill(bill_id) on delete cascade
    )
    ;
    insert into bill values (1)
    ;
    insert into bill_item values (1, 1)
    ;
    delete bill
    ;
    select * from bill_item
    ;
    drop table bill_item purge
    ;
    drop table bill purge
    ;
    
    Table BILL created.
    Table BILL_ITEM created.
    1 row inserted.
    1 row inserted.
    1 row deleted.
    
    no rows selected
    
    Table BILL_ITEM dropped.
    Table BILL dropped.
    

    exemplary null

    create table employer(
      employer_id number not null primary key
    )
    ;
    create table employee(
      employee_id number not null primary key,
      employer_id number references employer(employer_id) on delete set null
    )
    ;
    insert into employer values (1)
    ;
    insert into employee values (1, 1)
    ;
    delete employer
    ;
    select * from employee
    ;
    drop table employee purge
    ;
    drop table employer purge
    ;
    
    Table EMPLOYER created.
    Table EMPLOYEE created.
    1 row inserted.
    1 row inserted.
    1 row deleted.
    
                                EMPLOYEE_ID                             EMPLOYER_ID
    --------------------------------------- ---------------------------------------
                                          1                                       
    
    Table EMPLOYEE dropped.
    Table EMPLOYER dropped.
    
  • Foreign keys of a logical Table

    Hi all

    I want to know in what scenarios, we create the foreign key of a logical Table. Once we have create the foreign key for the logical table, this means he automatically substitute if joins are here.


    Physical table A, B (without physical joins)

    Logic table A, B (B (Sun)--> (Fact) A logical join)

    created the foreign key in the logical table A with b. (A.1 = B.1)

    The RPD will generate sql with A.1 = B.1 join condition for the reports.

    I tried to create the logical foreign key for table logical, I couldn't see any option from the table. Here is his
    http://Tinypic.com/r/jq1gkz/6


    Thank you

    Virat

    In general when we go to the complex joins in the physical layer, we opt for logical foreign key joins in layer MDB, best examples is SCD Type II.

    Physical table A, B (without physical joins)
    --> You must have a physical join so that it can be override by layer MDB

    created the foreign key in the logical table A with b. (A.1 = B.1) the RPD will generate sql with A.1 = B.1 join condition for the reports.
    --> Yes, you can see this join in the physical BI query.

    I tried to create the logical foreign key for table logical, I couldn't see any option from the table. Here is his
    --> 2 cases: 1) you must remove existing logical joins 2) you could not have involved physical layer.

    Hope this helps
    Let me know for questions

    Published by: Srini VIEREN on 18 January 2013 13:29

    BTW: You got a very good reputation, why don't update you your profile to see your name instead of a number

    Published by: Srini VIEREN on 18 January 2013 13:29

  • First database with Oracle 12 c and Entity Framework 5: no foreign key in the EMD Associations

    We have an updated database implemented in Oracle 12 c R1. When attempting to reverse engineer the EMD of the DB using Visual Studio 2013 with ODAC 12 c Release 2 and Oracle developer Tools support all we get are entities with no association, despite multiple foreign keys defined in the database. There, of course, no navigation property in both entities. No error or warning messages are displayed and activate us the option "include foreign keys in the model columns.

    Does anyone have any idea why this might happen?

    If you use files PDB (pluggable database), there is a known bug (17474322) to generate an EDM with foreign keys in a PDB file. This is probably the question you are running in.

  • foreign key referencing the table in different schema

    I create a foreign key for the table in the schema A a table to diagram B.

    I do that by grant references (column name) on the name of the table to username;


    is there any drawback/disadvantage in the creation of foreign keys referencing tables in another schema?

    Not as such, no.

    Generally, you want to check a second time when you are in this kind of situation that the two tables really belong in different schemas. It should be relatively rare to find a child table that belongs to a different schema than the parent. Sometimes, but it should be an exception, not the rule.

    Justin

  • How to fill out the table foreign key to the primary key form

    Hi all

    I'm stuck in this problem for 3 days, and I'm about to research and implement solutions on the internet.

    I have two tables

    create table prim (a number primary key, b varchar2 (100));

    create table CHILD (a number references (a) prim, varchar2 (100)) c;

    I created a page for PRIM table.

    = page name form on PRIM2

    I have manually two columns for the CHILD table to know

    P26_A_1 (for the primary key in the CHILD table)

    P26_C (for the column in the CHILD Table c)

    now when the user clicks on the button CREATE, a row must be inserted into the child table.

    I want to assign the P26_A to P26_A_1 during the validation process, so that a line must be inserted into the PRIM table as well as in the CHILD table.

    How to do this?

    I downloaded my application page in https://apex.oracle.com

    my workspace identifiers are inferior to

    name of the workspace = IMBERT

    username = demo

    password = demo

    kindly guide me.

    Thank you.

    Hello

    I created a new page (page 30) similar to your page and added the insertion of the child. It just check the page and code. It works now, when you insert the prim file is triggered a second trial which inserts the child record manually.

    On page 26 it was some sort of mistake, was easier to create a new as it was almost a standard form.

    Concerning

    Bottom

  • Several foreign key joins between two tables

    Hello

    I have a question about the creation of a repository.

    I have a date and a fact dimension. The fact table has about 10 columns in foreign key to the date Dimension.

    In this case I should create 10 aliases to create joins in the physical layer and MDB or y at - it another way to handle this situation.

    I ask this question because 10 aliases can get very confusing for me at the later stage of time when creating reports.

    With the help of OBIEE 10.1.3

    If you want to see in the industry as
    End date, start date, date etc. nearby
    you need to create 10 aliases for this purpose in the physical layer, make them drag in MDB and model, and then drag to the area of topic

    Score pls correct/good

  • Renaming of the foreign keys in the relational model

    Hello


    I'm new to the Data Modeler, we use v 3.0.0.66.5 and Oracle 11 g, and I am trying to build a logic and a relational model for a new application.

    We always call our primary keys as the ID, this causes me a problem with my names of foreign keys in the relational model, as they show as ID #. Is it possible to add the abbreviated of the table of the foreign key?

    Thanks in advance

    Sue

    Yes it is.

    Take a look at the tools > preferences, select Data Modeler > naming Standard > model, you can specify the standard you want to use for your foreign key. You can apply this designation to existing models and all new created FK uses the same model. To apply the standard to existing templates, select the relational model in the browser, right-click to display the context menu and select the menu "apply Naming standards... ».

    Sue

  • This identifier apple has not yet been used with the App store.

    I bought my macbook pro to my brother and always used without my Apple ID and then I decided to restore the macbook to the factory because of some problems with the performance setting, when I hit install OS X Yosemite on the disk, it asks you to login Apple ID and when I try to login with my account , he says "this identifier Apple has not yet been used with the App store" Please check your account information, when I hit "see" nothing happens and it of kind of stuck and makes me restart the process and enter my apple ID and password. "

    I don't know what the problem is and now I can't open my macbook to use

    Because the computer has been configured using Apple ID of your brother, it is bound to this ID. If you have never downloaded Yosemite, you can not install it. Ask your brother to insert his Apple ID, so you can get the computer operational again. Then, go to the App Store, sign in with your ID and check the purchases tab to see if the Yosemite is an option. If this is not the case, download El Capitan and see if it will install. If you want to do a clean install, quit the installer and the program below allows you to create a bootable USB key. Boot from it, wipe the hard drive and then install El Capitan. When you restart normally it will be your computer. See also the link for sale.

    Bootable USB Flash Drive-Diskmaker X

    Sale of old Mac (4)          Apple support

  • Problems when I want to update my complete system Mavericks using a USB key with the installation program.

    I want to "Refresh" my Mavericks home cleaning system and I still have a USB key with the complete installation program.

    With this USB key, I installed successfully already before Mavericks. Now, I want to repeat the installation by booting from USB key. But when the installation starts early an alert appears, said something like "... the verification failed - something is changed on the volume...". "and the cant of the installation continues.

    I've archived the original "OS X Mavericks installieren.app" from the app store and I have properly prepared another USB key using the terminal app, referencing the original installer, but I still get this alert when I try to install with this new USB.

    It is necessary for me to work with the Mavericks, because it's the latest version of the system on which I can run Adobe Creative Suite CS6 correctly. With the later versions of OS X, I get problems on my Mac Pro (end of 2008).

    I wonder what could happen with my first USB data, as I have already installed Mavericks successfully with it under the same conditions and after that he never touched the stick again so far. What can I do? What is the reason for this? Y at - there a site where I can get help or advice to solve the problem or if necessary can I re-download an Installer 'fresh '?

    Thank you and what is Berlin

    You can make a bootable USB to install using this free program that will do all the work for you. Try running disk utility/repair disk be before installation.

    Bootable USB Flash Drive-Diskmaker X

  • I just bought the last Apple TV - I can't seem to connect with the App Store and Siri is completely useless. This is an example of how Apple is unable to produce a useful product?

    I just bought the last Apple TV - I can't seem to connect with the App Store and Siri is completely useless. This is an example of how Apple is unable to produce a useful product?

    Hello

    Be sure to follow the instructions in this article to support > set up your Apple TV (4th generation) - Apple supported

  • Does anyone know how to display along with the app on the Mac App Store in the Sierra of MacOS?

    Does anyone know how to display along with the app on the Mac App Store in the Sierra of MacOS?

    I've just updated to Sierra. Since the upgrade did several reboots. When I discover an app the side also shows "4 +" or similar and I click on the note to view reviews and ratings of customer, a blank screen appears. Everyone knows this or have a way to solve this problem?

    I see even here in Seattle, so I think the question is about the end of Apple.

    By the end of 2012 Mac minis, macOS?  Watch 38 mm silver AL, watchOS 3; iPad 2 Air & iPhone 6 + iOS 10.0.1;  Apple Airport Express

  • Remote control/software Apple TV with the App Store problems

    Seems ridiculous that a Sept 2016 4th Gen apple TV purchase has the same problems of connectivity with the App store. Impossible to connect, or even choose App store, or spare parts offline, erratic, glitch and acts as a problem of distance, but seems to be a software problem or interface. Obvious corrections or ideas to stabilize or least to increase connectivity to app store with 4th Gen Apple TV/remote control?

    No problem of connectivity with a 4th getting Apple TV remote here... Sorry, you encounter this problem with it.

    See if there is something that will help that you haven't tried in this article to support > set up the Apple TV Remote - Apple supported application

  • "this identifier apple is still used with the app store - 3times deducted from my credit card.

    I am trying to connect to the iStore, but I receive the following message: "" this identifier apple is still used with the app store.

    I following the registration process, but nothing happened just 3times deducted from my credit card...

    I filled the fields are all required and still does not work, just my credit card losing ~ $7 Dollar (2.2 dollar every time with the following msg: ITUNES ITUNES.COM/BILL.) COM READ) I don't want to spend more money for a simple registration... Thanks for help.

    They are fresh from holding temporary store, your card issuer should remove in a few days or more: on the payment card's authorization in the iTunes Store - Apple Support

    A card having a chance to be accepted it must be registered with the same name and address (including the format and spacing etc) that you have on your iTunes account and have been issued by a bank in the country where you are (and, therefore, the country that sits on your iTunes account). If it is you can check with the card issuer to see if it is them who are in decline. Or do you have another card you could try?

    Or to create a new account without giving details of the payment: create an iTunes Store account, App Store and iBooks Store without credit card or other method of payment - Apple Support

Maybe you are looking for