Ошибка ora 02291 integrity constraint

I am creating a database that is trying to access values from a foreign key. I have created two following tables

CREATE TABLE Component(
    ComponentID varchar2(9) PRIMARY KEY
    , TypeID varchar2(9) REFERENCES TypeComponent(TypeComponentID)
)

INSERT INTO Component VALUES(192359823,785404309)
INSERT INTO Component VALUES(192359347,785404574)
INSERT INTO Component VALUES(192359467,785404769)
INSERT INTO Component VALUES(192359845,785404867)
INSERT INTO Component VALUES(192359303,785404201)
INSERT INTO Component VALUES(192359942,785404675)


CREATE TABLE TypeComponent (
    TypeComponentID varchar2(9) PRIMARY KEY
    , Type_Description varchar2(30) CONSTRAINT Type_Description 
        CHECK(Type_Description IN('Strap', 'Buckle', 'Stud')) NOT NULL
)

INSERT INTO TypeComponent VALUES(785404309, 'Strap')
INSERT INTO TypeComponent VALUES(785404574, 'Stud')
INSERT INTO TypeComponent VALUES(785404769, 'Buckle')
INSERT INTO TypeComponent VALUES(785404867, 'Strap')
INSERT INTO TypeComponent VALUES(785404201, 'Buckle')
INSERT INTO TypeComponent VALUES(785404675, 'Stud')

These are the two tables. Component and TypeComponent. Component is the parent entity to TypeComponent, and I am trying to run the following INSERT statement:

INSERT INTO Component VALUES(192359823,785404309)

but it is giving me the error

This is the session that I have so far in Oracle SQL dev

ORA-02291: integrity constraint violated – parent key not found error occurs when a foreign key value in the child table does not have a matching primary key value in the parent table, as stated by a foreign key constraint. You try to insert a row into a child table that does not have a corresponding parent row. The column value you supplied for the child table did not match the primary key in the parent table.

You try to insert or update a row in the child table. The value in the child table’s reference column should be available in the parent table’s primary key column. If the primary key column does not have a value, the row cannot be inserted or updated in the child table. The parent key’s integrity constraint was violated.

The value of the child table’s foreign key column should be the same as the value of the parent table’s primary key column. If the value does not exist in the parent table, an error ORA-02291: integrity constraint violated – parent key not found will be thrown.

Cause

A foreign key value has no matching primary key value.

Action

Delete the foreign key or add a matching primary key.

The Problem

When two tables in a parent-child relationship are created, a referential foreign key constraint is generated and enforces the relationship between the two tables. The value of the foreign key column in the child table is decided by the value of the primary key column in the parent table.

A value that is not available in the parent table cannot be inserted or updated in the child table. If you try to insert or update a value in the foreign key column of a child table, Oracle will throw the parent key integrity constraint violation error.

create table dept
(
 id numeric(5) primary key,
 name varchar2(100)
);

create table employee
(
  id numeric(5) primary key,
  name varchar2(100),
  deptid numeric(5) references dept(id)
);

insert into employee values(1,'Yawin',1);

Error

Error starting at line : 17 in command -
insert into employee values(1,'Yawin',1)
Error report -
ORA-02291: integrity constraint (HR.SYS_C0012551) violated - parent key not found

Solution 1

If the integrity constraint is violated, knowing the parent and child tables involved in the foreign key relationship is important. The parent and child table names, as well as the column names, may be retrieved using the integrity constraint name. The parent table, child table, parent column name, child column name, and integrity constraint name will be shown in the following sql query.

select r.constraint_name Foreign_key_constraint,
    p.owner parent_owner, p.table_name parent_table, pc.column_name parent_column_name, 
    r.owner child_owner, r.table_name child_table, rc.column_name child_colum_name
from user_constraints p
join user_cons_columns pc on p.owner=pc.owner 
        and p.table_name=pc.table_name and p.constraint_name = pc.constraint_name
        and p.constraint_type='P'
join user_constraints r on p.constraint_name=r.r_constraint_name and r.constraint_type='R'
join user_cons_columns rc on r.owner=rc.owner 
        and r.table_name=rc.table_name and r.constraint_name = rc.constraint_name
        and r.constraint_type='R'
where r.constraint_name='SYS_C0012551' 
order by p.owner, p.table_name, pc.column_name, rc.position;

Output

Foreign_key_constraint | parent_owner |parent_table | parent_column_name |child_owner | child_table | child_colum_name
SYS_C0012548	HR	DEPT	ID	HR	EMPLOYEE	DEPTID

Solution 2

The value you are trying to put into the child table reference column does not exist in the parent table. You must first enter the value that you intended to insert into the child table into the parent table. After inserting the value as a parent row, you may go back and enter it into the child table.

insert into dept values (1, 'sales');

insert into employee values(1,'Yawin',1)

Output

1 row inserted.

1 row inserted.

Solution 3

You are attempting to insert a row into a child table for which the primary key does not exist in the parent table. Before you enter a child, make sure you have a parent key for that child in the parent table.

insert into employee values(1,'Yawin',1)

insert into employee values(1,'Yawin',1)
Error report -
ORA-02291: integrity constraint (HR.SYS_C0012551) violated - parent key not found


insert into employee values(1,'Yawin',100) -- the value 100 exist in the dept table.

oracle tutorial webinars

ORA-02291

The pleasure of Oracle software is the ease through which information can communicate across multiple tables in a database. Beyond having the ability to cleanly join tables and merge parameters, a number of devices in the software permit the access to and referencing of data from multiple tables, with unique features that allow you to create statements that can render formerly complex database issues with relatively little trouble.

Still, no user is perfect and no database can predict all of the potential errors that can arise during everyday use. In the realm of manipulating data across multiple data tables, a common error that you can encounter is the ORA-02291.

The Problem

ORA-02291 is typically accompanied with the message, “integrity constraint <constraint name> violated – parent key not found”. This means that you attempted to execute a reference to a certain table using a primary key. However, in the process of doing so, the columns that you specified failed to match the primary key. The error can also be triggered when referencing a primary key that does not exist for the table in question. 

Before moving on, we should note a few things about primary keys. A primary key is a field or combination of fields that can distinctly denote a record. It can be established in either an ALTER TABLE or CREATE TABLE statement. A given table can only have one primary key, and none of the fields that populate the primary key can hold a null value. A primary key cannot exceed thirty-two columns.

Now that we have an understanding of primary keys, we can address the error at hand. Often, the error will arise when there is a parent-child relationship between two tables via a foreign key. A foreign key is a method to state that values in one particular table must exist in another. Typically the referenced table is a parent table, while the child table is where the foreign key emanates from. A primary key in a parent table will, most of the time, be referenced by a foreign key in the child table.

The ORA-02291 will be triggered when you attempt to insert a value into the child table (with the foreign key), but the value does not exist in the corresponding parent table. This violates the integrity of the referential relationship, prompting Oracle to issue an error message.

The Solution

In order to remedy this error, you will need to insert the value that you attempted to place in the child table into the parent table first. Once inserted as a parent row, you can go back and insert the value into the child table.

An Example

Let’s say that you first attempted to build the parent-child key relationship:

CREATE TABLE employees
( employee_id numeric (20) not null,
employee_name varchar2(75) not null,
supervisor_name varchar2(75),
CONSTRAINT employee_pk PRIMARY KEY (employee_id)
);


CREATE TABLE departments
( department_id numeric (20) not null,
employee_id numeric (20) >not null,
CONSTRAINT fk_employee
FOREIGN KEY (employee_id)
REFERENCES employee (employee_id)
);

From there, you attempt to place the following in the departments table:

INSERT INTO departments
(department_id, employee_id)
VALUES (250, 600) ;

You will receive an “ORA-02291: integrity constraint violated” error. Since the employee_id value of 600 does not already occur in the employees table, you will have to go back and insert the following into the employees table:

INSERT INTO employees
(employees_id, employees_name, supervisor_name)
VALUES (600);

You can then return to the departments table and finish the key relationship:

INSERT INTO departments
(department_id, employee_id)
VALUES (250, 600);

Looking forward

Working with multiple sets of data tables can seem daunting, and it can be easy to get the references mixed up. Luckily, Oracle alleviates a great deal of stress associated with working in multiple tables at once. Remaining aware of how you are cross-referencing information from table to table can provide a solid foundation to avoiding an error like the ORA-02291. Still, because this problem requires a little bit of background knowledge and coding to solve, it would be advised to speak with a licensed Oracle software consultant if you find yourself continually having issues addressing this error.

PC running slow?

  • 1. Download ASR Pro from the website
  • 2. Install it on your computer
  • 3. Run the scan to find any malware or virus that might be lurking in your system
  • Improve the speed of your computer today by downloading this software — it will fix your PC problems.

    If you have an error integrity constraint in Oracle on your system, I hope this guide will help you.

    ORA-02291 is usually followed by “Integrity message constraint – parent not found”. This means that you tried to reference this table using the primary key, but the posts you specified did not match the primary key type.

    [“Business Unit”: “Code”: “BU059”, “Label”: “IBM Software without GST”, “Product”: “Code”: “SSVSEF”, “Label”: “IBM InfoSphere DataStage”, ” Component” :””,”ARM Category”:[],”Platform”:[“code”:”PF025″,”label”:”Platform”,”Independent”],”Version”:”7.5.1″, “Issue “:””,”Industry”:”code”:”LOB10″,”label”:”Data & AI”]

    APAR Status

  • Closed Due To Error.

  • Error Description

  • Oracle Enterprise considers some constraint violations to be fatalErrors - Most restrictions for both are reported as an integrity error.sqlcode-1. There are several that fall outside the scope:ORA-02290: limits will bethis is the test condition(string.The string)hurtreason: inserted values ​​don't do itsatisfy the given check constraint.Action: N   insert which values ​​violateforced it.ORA-02291: integrity constraint (string-string)wounded foundReason: Guardian Key of the foreign Key value is the sameno primary key value.Action: remove the Australian key or add one that suits you.primary key.Restrictionora-02292: lifetime values ​​(string.string)wounded - foundReason: abstinence of the child. Attempting to remove the value "Mom", "Important" or "Dad".which dependency had on a foreign key.Action: Remove dependencies from duplicate content then parent first orDisable restriction.They must be created to be in the SQL list.oraUpsert code. which, c, according to experts, are more likely to be sent to the failure servicewhich cause a fatal error for encoding.
  • Local Solution

  • 
    
  • Issue Overview

  • ************************************************** ******* * **** IN A RELATIONSHIP:all S **** *********************custom platforms 7.5.1******************************************************* ******************************DESCRIPTION OF THE PROBLEM:The original patch that was deployed in Aprilal has a problem that is notpossible to perform.number of blocks'******************************************************* ******************************RECOMMENDATION:use the current patch number. Conclusion
  • We******************************************************* ******************************
  • Problem: It's Impossible To Reproduce The Look Of This Art. However, A New Patch Is Coming Out.The Last Code That Solved The Problem On The Client's Site.

  • Workaround

  • 
    
  • Comments

  • 
    
  • Information-apar

  • Apar Sys Is Routed In One Or More Of The Following Ways:

  • The

  • APAR Is Redirected By The System To One Or More Of The Following Devices:

  • Correct Information

    What are integrity constraints in Oracle?

  • Fixed Deposit Ratio Name

    WIS DATA

  • Fixed Component ID

    5724Q36DS

  • Applicable Components

  • PSN Levels R751

    UP

  • APAR Number

    JR28935

  • Name Of Component To Report

    What is Sqlstate 23000 integrity constraint violation?

    Error Database error: SQLSTATE[23000]: Violation of the integrity constraint itself means that your hug ‘s_id’ could be a primary key and therefore the system does not allow it to be null.

    WIS DATA

  • Id Of The Specified Component

    error integrity constraint in oracle

    5724Q36DS

  • Disclaimer Reported

    751

  • Status

    CLOSED

  • PE

    Not PE

  • HIPER

    Which action could cause an integrity constraint error?

    No HIPER

  • Special Attention

    No clarification

  • Filing Date

    2008-04-09

  • Closing Date

    2008-10-29

  • Last Year Of Release

    2008-10-29

  • The following example shows a bug, and there are a few fixes we can handle living in Oracle:

    PC running slow?

    ASR Pro is the ultimate solution for your PC repair needs! Not only does it swiftly and safely diagnose and repair various Windows issues, but it also increases system performance, optimizes memory, improves security and fine tunes your PC for maximum reliability. So why wait? Get started today!

    Error

    -- Create
    SQL> main table create cart testprimary(primary key id, name varchar2(10));
    The table has been created.
    -- Table Foregin create SQL> table
    Create testforeign(f_id f_name number, varchar2(10), number, foreign key(p_id) p_id recommendation testprimary(id) );
    the table has been created.

    insert

    What is integrity constraint violated?

    Constraints occur when an insert, update, or delete notification violates a primary key, a key, an external unique evaluation or constraint, or another index.

    — Data in your two tables
    Insert sql> basic test parameters (1, ‘RAM’);
    1 short period created.
    SQL> testprimary to values(2,’RAM2′);
    Insert 1 Creates scratches.
    Pastesql> in Testprimary(3,’RAM3′);
    Feed value 1 created.

    happened
    error integrity constraint in oracle

    — error:
    SQL> remove from where id testprimary is 1 testprimary;
    remove from where=detection 1
    *
    Internet Integrity Discipline, ERROR 1:
    ora-02292: (TEST.SYS_C008202) broken – child record
    found

    Reason
    If we try to successfully delete the data from the maintables, we will first remove the mention table (child table)
    When creating foreign keys, owners can specify an ON DELETE clause to indicate why rows behind the parent table are being deleted.
    ON DELETE If cascading: a row from the parent table is frequently deleted, everything from the child table row related to this short period will be deleted.
    ON DELETE SET NULL: and when the row of the parent row is deleted, all rows from the reference to table 1 to the row of this external content key are set to NULL.

    How do you resolve integrity constraint violated parent key not found?

    chain) parent – dishonored key not found. ORA-02291 Errors. They are related to the fact that the fundamental foreign instrument does not have a primary corresponding key market price. To fix this error, you need to remove the foreign key or add an important matching key. primary key. Violations.

    Option 1: Correct information about table search restrictions in data

    1. Find foreign table key name and column name from invalid constraint name:

    col for multiple owner table names a15
    Collar for a15
    column name column associated with a15
    primary owner pass for a10
    main constraint name col a15
    select for a.constraint_type,a.owner,a.table_name,b.column_name,a.r_owner "PrimaryOwner",a.All_constraints r_constraint_name "primaryconstraintname" from all_cons_columns a where
    A b.CONSTRAINT_NAME = b.CONSTRAINT_NAME and a.constraint_name is OWNER 'sys_c008202';

    c PrimaryOwn table_name column_name PrimaryConstrai- ————– ————— ————— ——————-R —— TEST FOREIGN TEST P_ID TEST SYS_C0082012. The best primary key of the table has now been found.
    Note. Use a longer query exit constraint name and enter the enforcement information key.

    col for table name a15
    Branded collar for working with a15
    column name column for a15
    main owner pass with a10
    Constraint name col is primary for a15
    select a.constraint_type,a.owner,a.table_name,b.column_name,a.r_owner "PrimaryOwner",a."PrimaryConstraintName", r_constraint_name created by a, all_constraints all_cons_columns b where
    A.CONSTRAINT_NAME means b.CONSTRAINT_NAME and a.constraint_name 'SYS_C008201';

    C = TABLE_NAME OWNER COLUMN_NAME PrimaryOwn PrimaryConstrai- —- ———– —- ————— —— ——— TEST ——p PRIMARY IDENTIFICATION TEST3. Now you can get any of our existing rows of numbers in the reverse child that you want to delete in the main table using IN clause query.

    -- I'm only giving you an example, you can also use it to delete data.
    select * from TESTFOREIGN where p_id is selected (when id comes from id testprimary where = 2:1;)

    option You can disableinclude or data with restrictions and operations performed

    Improve the speed of your computer today by downloading this software — it will fix your PC problems.

    What is integrity constraint in Oracle?

    Restrictions A constraint is a declarative means of defining a table rule for a single order. Oracle supports the following set of constraints: a pair of NOT NULL rules bound to null values ​​in another column.

    How do you resolve ORA 02292 integrity constraint violated child record found?

    To solve this problem, you must first allow them to update or delete a value in some child tables, and then be able to delete the corresponding value in the old table. For example, if you planned the following foreign key (child-parent relationship).

    When the below error occurs Ora 02292 integrity constraint violated PK ): child record found?

    The error concludes that “constraint fundamentally violates child element – record found.” This certainly indicates that the user was trying to delete a record from the parent table.Name (which is referred to by the international key), but the record exists in the child cabin.

    How do I disable referential integrity constraints in Oracle?

    Description. After creating a foreign key in Oracle only, you may need to disable the key in the global specific.Syntax. The syntax for disabling a new foreign key in Oracle/PLSQL is: ALTER TABLE table-name CONSTRAINT disable constraint-name;Example.ORA-02292

    What are integrity constraints in database?

    In database management systems, integrity constraints are predefined sets of rules that are explicitly applied to table fields (columns) or associations to ensure the overall validity, value, and consistency of the data present in a database table.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    
     CREATE TABLE DEPARTMENT(
    DEPARTMENTS_ID NUMBER NOT NULL, 
    DEPARTMENTS_OTDEL NUMBER,
    DEPARTMENTS_NAME VARCHAR2(100 BYTE), 
    PRIMARY KEY (DEPARTMENTS_ID)
         );
         
    INSERT INTO DEPARTMENT VALUES('1','1','АДМИНИСТРАЦИЯ');
    INSERT INTO DEPARTMENT VALUES('2','16','КАФЕДРА АГРОНОМИИ');
    INSERT INTO DEPARTMENT VALUES('3','22','КАФЕДРА ИНФОРМАТИКИ');
    INSERT INTO DEPARTMENT VALUES('4','25','ПЛАНОВЫЙ ОТДЕЛ');
    INSERT INTO DEPARTMENT VALUES('5','29','БУХГАЛТЕРИЯ');
    INSERT INTO DEPARTMENT VALUES('6','46','МАТЕРИАЛЬНЫЙ ОТДЕЛ');
    INSERT INTO DEPARTMENT VALUES('7','50','ОТДЕЛ ОХРАНЫ ТРУДА');
    INSERT INTO DEPARTMENT VALUES('8','52','ОТДЕЛ КАДРОВ');
    INSERT INTO DEPARTMENT VALUES('9','66','КАФЕДРА ХИМИИ');
    INSERT INTO DEPARTMENT VALUES('10','92','ХОЗЧАСТЬ');
    INSERT INTO DEPARTMENT VALUES('11','96','КАФЕДРА ФИЗИКИ');
    INSERT INTO DEPARTMENT VALUES('12','97','БИОЛОГИЧЕСКИЙ ФАКУЛЬТЕТ');     
     
    CREATE TABLE POSIT(
    POSITIONS_ID NUMBER NOT NULL,
    POSITIONS_DOLJNOST NUMBER, 
    POSITIONS_NAME VARCHAR2(120 BYTE), 
    PRIMARY KEY (POSITIONS_ID)
         );
              
    INSERT INTO POSIT VALUES ('1','5','ДОЦЕНТ');
    INSERT INTO POSIT VALUES ('2','7','ЗАВЕДУЩИЙ ЛАБОРАТОРИЕЙ');
    INSERT INTO POSIT VALUES ('3','8','ЛАБОРАНТ');
    INSERT INTO POSIT VALUES ('4','9','КАНЦЕЛЯРИСТ');
    INSERT INTO POSIT VALUES ('5','10','ИНЖЕНЕР');
    INSERT INTO POSIT VALUES ('6','12','НАЧАЛЬНИК ОТДЕЛА');
    INSERT INTO POSIT VALUES ('7','14','МАСТЕР');
    INSERT INTO POSIT VALUES ('8','15','ПРОГРАММИСТ');
    INSERT INTO POSIT VALUES ('9','16','ПРОФЕССОР');
    INSERT INTO POSIT VALUES ('10','18','СЛЕСАРЬ-ЭЛЕКТРИК');
    INSERT INTO POSIT VALUES ('11','20','СТАРШИЙ ПРЕПОДАВАТЕЛЬ');
    INSERT INTO POSIT VALUES ('12','22','ЭЛЕКТРИК');
    INSERT INTO POSIT VALUES ('13','100','ДИРЕКТОР');
     
    CREATE TABLE STAFF(
    STAFF_ID NUMBER NULL, 
    STAFF_NOMER NUMBER, 
    STAFF_SURNAME VARCHAR2(100 BYTE), 
    STAFF_NAME VARCHAR2(100 BYTE), 
    STAFF_PATRONYMIC VARCHAR2(100 BYTE), 
    STAFF_DATEBIRTH DATE, 
    STAFF_DATEWORK DATE, 
    POSITIONS_DOLJNOST NUMBER, 
    DEPARTMENTS_OTDEL NUMBER, 
    STAFF_STATUS VARCHAR2(100 BYTE), 
    STAFF_OKLAD NUMBER, 
    STAFF_KEY_MAIN NUMBER, 
    PRIMARY KEY (STAFF_ID),
    FOREIGN KEY (POSITIONS_DOLJNOST) REFERENCES POSIT, 
    FOREIGN KEY (DEPARTMENTS_OTDEL) REFERENCES DEPARTMENT
    );
     
    INSERT INTO STAFF VALUES('1','2061','ГУБИН','АЛЕКСАНДР','МИХАЙЛОВИЧ','30.01.1963','02.09.1995','16','8','Р','1500','2309');
    INSERT INTO STAFF VALUES('2','2072','КОНДРАТЬЕВ','НИКОЛАЙ','НИКОЛАЕВИЧ','28.08.1996','17.06.1996','22','8','Р','1000','2409');
    INSERT INTO STAFF VALUES('3','2081','ШИРЯЕВ','ЮРИЙ','БОРИСОВИЧ','25.01.1961','08.08.1988','16','20','Р','3000','2402');
    INSERT INTO STAFF VALUES('4','2084','ВЕТРОВА','ЛЮДМИЛА','ВЛАДИМИРОВНА','05.12.1951','01.09.1996','97','16','Р','1500','2332');
    INSERT INTO STAFF VALUES('5','2160','НИКИТИНА','МАРИНА','АЛЕКСЕЕВНА','07.02.1955','01.05.1995','50','10','Р','3500','2332');
    INSERT INTO STAFF VALUES('6','2198','ШУЛЬЖЕНКО','НАИНА','ИВАНОВНА','28.07.1969','01.05.1995','52','9','Р','1000','2332');
    INSERT INTO STAFF VALUES('7','2202','ГРЕБЕШКОВА','СВЕТЛАНА','СЕРГЕЕВНА','20.02.1949','01.05.1995','52','12','Р','1500','2397');
    INSERT INTO STAFF VALUES('8','2271','БУРАНОВ','АЛЕКСАНДР','АЛЕКСАНДРОВИЧ','04.06.1941','23.05.1988','25','14','Р','3000','2409');
    INSERT INTO STAFF VALUES('9','2276','ДЕРБЕНЕВ','ВЛАДИМИР','АЛЕКСАНДРОВИЧ','11.03.1960','01.08.2004','92','22','Р','3000','2297');
    INSERT INTO STAFF VALUES('10','2290','ИВАНОВА','ЛЮБОВЬ','АНДРЕЕВНА','20.11.1949','01.08.1996','92','8','Р','1000','2297');
    INSERT INTO STAFF VALUES('11','2297','ГУЩИНА','ТАМАРА','МИХАЙЛОВНА','29.10.1949','18.11.1995','92 ','8','Р','1000','2332');
    INSERT INTO STAFF VALUES('12','2309','ЛАРЦЕВА','ИННА','ВЛАДИМИРОВНА','07.10.1958','01.11.1995','16','7','Р','3000','2372');
    INSERT INTO STAFF VALUES('13','2314','АЛИМБЕКОВ','РУСЛАН','СЕРГЕЕВИЧ','21.06.1970','01.03.2016','92','18','Р','3000','2297');
    INSERT INTO STAFF VALUES('14','2351','БОЧКИН','ВАЛЕРИЙ','АЛЕКСАНДРОВИЧ','20.10.1956','23.05.1988','25','14','Р','1000','2409');
    INSERT INTO STAFF VALUES('15','2353','АНДРИАНОВ','ВЛАДИМИР','ВЛАДИМИРОВИЧ','01.04.1960','01.09.1996','96','5','Р','1000','2414');
    INSERT INTO STAFF VALUES('16','2368','БУШУЕВ','КИРИЛЛ','АНАТОЛЬЕВИЧ','10.11.1972','01.09.1995','29','5','Р','3000','2332');
    INSERT INTO STAFF VALUES('17','2372','АШИРОВ','АНВАР','РАШИДОВИЧ','28.07.1969','01.11.1995','16','5','Р','1000','2332');
    INSERT INTO STAFF VALUES('18','2379','ЗВЕРЕВ','НИКОЛАЙ','ТИМОФЕЕВИЧ','09.02.1960','01.09.1995','46','15','Р','1000','2332');
    INSERT INTO STAFF VALUES('19','2381','АНТОШКИН','ОЛЕГ','ИВАНОВИЧ','29.08.1963','01.09.1993','29','22','Р','1000','2368');
    INSERT INTO STAFF VALUES('20','2382','ЗАЙЦЕВА','РАИСА','МИХАЙЛОВНА','20.04.1983','02.09.1996','29','20','Р','2500','2368');
    INSERT INTO STAFF VALUES('21','2397','СТЕЖКИН','АНДРЕЙ','ВЛАДИМИРОВИЧ','30.09.1973','01.05.2003','52','9','Р','1500','2198');
    INSERT INTO STAFF VALUES('22','2402','ПОВЕТКИНА','НИНА','МИХАЙЛОВНА','20.02.1949','01.09.2010','16','5','Р','1500','2309');
    INSERT INTO STAFF VALUES('23','2409','ОВСЯННИКОВ','МИХАИЛ','КОНСТАНТИНОВИ','11.12.1976','15.01.2010','22','5','Р','1000','2332');
    INSERT INTO STAFF VALUES('24','2414','ВАСИЛЬЕВА','ГАЛИНА','ИВАНОВНА','01.04.1981','01.09.2001','96','5','Р','500','2332');
    INSERT INTO STAFF VALUES('25','2419','КАПЕЛИНА','ДИНАРА','АМИРОВНА','22.12.1971','01.09.1999','16','5','Р','1000','2372');
    INSERT INTO STAFF VALUES('26','2420','ДОБРЫНИН','СЕРГЕЙ','СЕРГЕЕВИЧ','05.01.1962','01.05.1995','50','12','Р','1500','2332');
    INSERT INTO STAFF VALUES('27','2436','ЧЕРНОВА','МАРИНА','НИКОЛАЕВНА','29.08.1974','02.09.1996','22','5','Р','1200','2309');
    INSERT INTO STAFF VALUES('28','2332','СОБОЛЕВ','ИВАН','ИВАНОВИЧ','18.12.1969','01.10.1996','1','100','Р','10000','0');

  • Ошибка ora 01652 невозможно увеличить временный сегмент
  • Ошибка ora 01438 value larger than specified precision allowed for this column
  • Ошибка ora 01422 точная выборка возвращает количество строк больше запрошенного
  • Ошибка ora 01033 oracle initialization or shutdown in progress
  • Ошибка ora 01008 not all variables bound