Foreign key Error Message ORA - 01430

I have a LSU_INTER_RESOURCES_T table name. I would like to add a constraint foreign key with the following command:

ALTER table lsu_inter_message_t
Add constraint inter_message_id_fk
inter_request_id lsu_inter_requests_t (inter_request_id) ON DELETE CASCADE REFERENCES;

The system returned the error message:
ORA - 01430: added column already exists.

If I drop the inter_request_id column I'll lose data, and when I create the constraint it places the column at the end of the table. Data loss is not a problem now because the table has no data, but down the line, I see that there is a real problem.

I would like to have the foreign key defined in the sequence column, I chose when I designed the tabular presentation. IE I want to all key columns placed at the beginning of the table online.

Can I move the column after that I have set it and how this is done? Is this a feature of 10g?

Thank you, Ned

Try

alter table lsu_inter_message_t
add constraint inter_message_id_fk
foreign key(inter_request_id ) REFERENCES lsu_inter_requests_t(inter_request_id) ON DELETE CASCADE;

Tags: Database

Similar Questions

  • Error message ORA-01722 loading data from text file

    Hi all

    I want to load data into the table 'dh_healthcare '.

    with the columns:

    ...

    NUMBER OF RMI,

    NUMBER OF KUM,

    ...

    Loading data with the APEX data workshop, I got the error message ' ORA-01722: invalid number. "

    For example, ALEXIS has the following values:

    1.99

    6.49

    4.14

    ...

    KUM:

    139,30

    51.32

    165,23

    ...

    I tried to put the precision and scale in the column definition, but the same error message appears.
    When I changed the data type of these columns in VARCHAR2 (60) the data loaded without error message.

    Someone at - it an idea to solve the error?

    Thank you

    Ben

    This has to do with the settings of NLS Session about the decimal separator and the group separator.

    How you load the data in the table determines where and how you set the Session variables.

    MK

  • Error message ' ORA-12547: TNS: lost contact "in dbca

    Background info: I am building a cluster RAC test 11.2.0.3 running on a hardware IBM pSeries with AIX 6.1 operating system level. I need to create a cluster, and then adding a new node later practice. Due to availability limited hardware, my initial cluster will be node 1 and I'll add additional nodes later.

    I installed successfully grid Infrastructure. GI and ASM are online and seem to function normally. Today, I installed the 11.2.0.3 database software. Now, I'm trying to create a test using DBCA database. After you have entered all the information database (SID information, where must reside files db, sizing of memory, etc.), the creation of the database starts, then immediately emits the error message ' ORA-12547: TNS: lost contact. "

    I searched MOS (Metalink) and also reviewed a few sites using Google. All the information indicates that this problem most often occurs when you try to connect to an existing database using sqlplus. I have not found that everything about this error message when the database was created.

    Does anyone have advice on how to troubleshoot the problem? Can you point me to some documents that could help with this issue?

    Any help is appreciated. Thank you!

    Search MOS for "ORA-12547 dbca" and you will get a few hits - see if those who help.

    PL also spent the last 100 lines in the Setup log - http://docs.oracle.com/cd/E11882_01/install.112/e24332/app_ts.htm#i1090466

    HTH
    Srini

  • integrity of foreign key error

    I had the departments and officials from two tables
    employee table has a foreign key that is a primary key in the departments table
    IE department_id
    every time I try to delete records from the employee table using the department_id IE a foreign key
    then it displays error
    but when I do it through other constraints then the lines are to remove
    so why can't delete lines in the employees table using department_id which is a foreign key in the employees table
    and the primary key for the departments table?

    guys, it's really easy when you really look at the error message:

    The violation is not the FK on employees.department_id. (the name will be EMP_DEPT_FK)
    The violation is against the FK hr.dept_mgr_fk which refers to the column manager_id (employee id) in the departments. When you try to remove all dept 50 employees, you also try to remove the service manager, but which is not allowed due to the FK of departments. Try this:

    update departments set manager_id = null where id = 50;
    delete from employees where department_id = 50;
    

    Bjoern

  • MERGER into slider throws the error message: ORA-01747

    Hi guys,.
    I'm new in PL/SQL and I'm taking the last row of a database table and add the same data in another table with the same structure, but for the ancestors of the current employee. Something like:

    Day EmpID LOB (key fields)
    12-1007-29

    EmpID has 24 and 95 ancestors. That's why in the destination table I have to insert (or update of status and idforum if these three key areas already exists):

    EmpID LOB day
    24 1007 29
    95-1007-29


    There are 4 tables:

    X - table base;
    Y - destination table (same structure as X);
    Z - the relationship between the employee and ancestor;
    W - plays the role of a temporary table, but is a real table - only for the MERGER;
    ============================================================================================
    create or replace
    PROCEDURE INSERT_PARENTS AS
    BEGIN

    DECLARE
    EMP_VAR NUMBER (38.0). -employee
    NUMBER OF ANCESTOR_ID; -relative of the employee
    NUMBER OF LOB_VAR; -LOB
    NUMBER OF DAY_VAR; -date of
    NUMBER OF FORUMID_VAR; -Idforum
    STATUS_VAR VARCHAR2 (20); -Status
    Parents of CURSOR
    IS
    SELECT ancestor_key FROM Z WHERE member_key = EMP_VAR; -This slider will go through all the ancestors of the employee

    Number EMPROWID_VAR; -It's the key to the table Y (destination table)

    BEGIN
    -extract the last line of the table of database variables

    SELECT EMPL_KEY in the EMP_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
    SELECT LOB_KEY in the LOB_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
    SELECT DAY_KEY in the DAY_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
    SELECT IDFORUM in FORUMID_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
    SELECT STATUS in STATUS_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);

    SELECT NVL (Max (EMPROW_ID), 0) + 1 in EMPROWID_VAR OF Y; -initialize the key to the table max + 1 of the existing key Y


    Parents OPEN.

    LOOP
    EXTRACT the parents in ANCESTOR_ID;

    EXIT WHEN parents % NOTFOUND;

    EMPROWID_VAR: = EMPROWID_VAR + 1;
    -the value of the new key for Y
    INSERT w (emprowid_var, lob_var, ancestor_id, day_var, forumid_var, status_var)
    VALUES (EMPROWID_VAR, LOB_VAR, ANCESTOR_ID, DAY_VAR, FORUMID_VAR, STATUS_VAR); -prepare the source for the MERGE statement


    -merge data between 2 tables:
    -If a parent already exists in the destination, to update just idforum and the new status
    -If that parent does not exist in the dest table, will be inserted with the status ' U/R '.

    MERGE TO Y Dest
    USING the W
    WE (Dest.LOB_KEY = Surce.LOB_VAR AND)
    Dest.EMPL_KEY = Surce.ANCESTOR_ID AND
    Dest.DAY_KEY = Surce.DAY_VAR)

    WHEN MATCHED, THEN update to SET (Dest.FORUMID = Surce.FORUMID_VAR,
    Dest.STATUS = Surce.STATUS_VAR)

    WHEN NOT MATCHED THEN INSERT (Dest.EMPROW_ID, Dest.LOB_KEY, Dest.EMPL_KEY, Dest.DAY_KEY, Dest.FORUMID, Dest.STATUS)
    VALUES (Surce.EMPROWID_VAR, Surce.LOB_VAR, Surce.ANCESTOR_ID, Surce.DAY_VAR, Surce.FORUMID_VAR, ' U/R');

    END LOOP;
    END;

    END INSERT_PARENTS;

    When I try to run this procedure (compile) I get this error message:

    Error (53,37): PL/SQL: ORA-01747: invalid column, table.column, or user.table.column specification

    Can you tell me where I am doing wrong? (I'm pretty sure that it's in the Merge statement, but what is it?)

    Thanks in advance.

    Published by: petresion on November 19, 2011 14:02

    without the paintings I never would have found

    MERGE INTO y dest
    USING w surce
    ON (dest.lob_key = surce.lob_var AND dest.empl_key = surce.ancestor_id AND
    dest.day_key = surce.day_var )
    WHEN matched THEN
      UPDATE SET dest.forumid = surce.forumid_var,
                 dest.status = surce.status_var
    WHEN NOT matched THEN
      INSERT ( dest.emprow_id,
               dest.lob_key,
               dest.empl_key,
               dest.day_key,
               dest.forumid,
               dest.status)
      VALUES ( surce.emprowid_var,
               surce.lob_var,
               surce.ancestor_id,
               surce.day_var,
               surce.forumid_var,
               'U/R');
    
  • Please, I have the following question on the foreign key and the ora-00904

    Thanks in advance!

    I created the table:

    Create the Department table
    (
    DNAME varchar (15) NOT NULL,
    deptID number (5) NOT NULL,
    Primary key (dname, deptid)
    )

    then...

    Create table Manager
    (
    MgrID number (10) not null,
    Not null, name varchar (10)
    Start_date date not null,
    Primary key (mgrid),

    CONSTRAINT fk_department
    FOREIGN KEY (dname, deptip)
    Department of REFERENCES (dname, deptid)
    )

    Trying to create the table with the constraint, it yeilds one:

    ORA-00904: "DNAME": invalid identifier
    +.. .with an asterisk under "dname" in line: FOREIGN KEY (dname, deptip) +.

    I tried joining my name of the column with quotation marks ("" "); capitalized for consistency; and we tried creating and editing then - all to nothing will do. I also tried to use the user interface with Oracle Express Edition and the moment where I click on create, the same error appears. Could someone help please straighten out me up - was this threat for four days.

    Thanks again!

    Hello

    Welcome to the forum!

    Columns that will reference the other table must be declared just like all the other columns; including the names in a FOREIGN KEY constraint is not auotmatically define them.
    It works:

    CREATE TABLE Manager
    (       mgrid          NUMBER (10)     NOT NULL,
         Name          VARCHAR (10)     NOT NULL,
         Start_date      DATE          NOT NULL,
         dname          VARCHAR2 (15),               -- New
         deptid          NUMBER (5),               -- New
    PRIMARY KEY (mgrid),
         --
    CONSTRAINT fk_department
    FOREIGN KEY           (dname, deptid)
    REFERENCES department (dname, deptid)
    );
    

    (assuming that the departments table, you posted, there).

    Is there a reason why you use VARCHAR instead of VARCHAR2?

    In the departments table, do you really need both dname and deptid in the primary key? For example, if you have a line with name = "ACCOUNTING" and deptid = 10; is it possible that you could have another line with deptid = 10 and some different dname, say 'REASEARCH '? It is more common to only have a deptid as primary key and have columns in the foreign key constraints that reference.

  • error message: ORA-01422:

    Hi all

    When executing a package, I got an error message:

    ERROR on line 1:
    ORA-01422: exact fetch returns more than number of lines


    I wrote an exception to the too_many_rows, who took care of the mistake, but my question is the exception made condition get connected anywhere?



    Thank you

    Hello

    user12296910 wrote:
    can you please give an example how to save error message?

    EXCEPTION
         WHEN  TOO_MANY_ROWS
         THEN
              errm := SQLERRM;
    
              INSERT INTO  my_error_log
              (      error_log_id
              ,      proc_name
              ,      user_name
              ,      error_dt
              ,      error_msg
              )
              VALUES
              (      error_log_id_seq.NEXTVAL     -- error_log_id
              ,      'MY_PROC'          -- proc_name
              ,      USER               -- user_name
              ,      SYSDATE               -- error_dt
              ,      errm               -- error_msg
              );
    

    In practice, you would probably want to a separate procedure to do the Insert, and you call this procedure of article of EXCEPTION.

  • Unauthorized product key error message... Windows XP

    So it's the first time he asked me to activate my windows xp in 5 years, when I turned on my computer first.  I have downloaded Microsoft Genuine Advantage Diagnostic Tool and this is what came:

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->
    Release status: not activated
    Validation code: 1
    Code of Validation caching: n/a
    Windows product key: *-* - XQ2CX - 2PW33-HHHFT
    The Windows Product Key hash: liWJvN6s0sMtcrL0U7frjIv6jf0 =
    Windows product ID: 76477-OEM-2162012-47914
    Windows Product ID Type: 3
    Windows license Type: OEM System Builder
    The Windows OS version: 5.1.2600.2.00010300.3.0.hom
    ID: {757204F7-94D7-4514-9E8F-5408C268ECB8} (3)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: 1.7.69.2 recorded,
    Signed by: Microsoft
    Product name: n/a
    Architecture: n/a
    Build lab: N/A
    TTS error: n/a
    Validation of diagnosis: 025D1FF3-230-1_025D1FF3-238-2_025D1FF3-258-3
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a
    Version: n/a

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-230-1_025D1FF3-238-2_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files\Mozilla Firefox\firefox.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {757204F7-94D7-4514-9E8F-5408C268ECB8}1.9.0027.05.1.2600.2.00010300.3.0.homx 32*-*-*-*-HHHFT76477-OEM-2162012-479143S-1-5-21-515967899-1177238915-725345543the system manufacturer,System Product NameAmerican Megatrends Inc. 0501 20050826000000.000000 + 0003CCB3D770184A16704090409Time(GMT-05:00) Standard is03109

    License data-->
    N/A

    Windows Activation Technologies-->
    N/A

    --> HWID data
    N/A

    Activation 1.0 data OEM-->
    BIOS string matches: Yes
    Marker of the BIOS string: 15840:ASUSTeK Computer Inc.
    Marker of OEMBIOS string. DAT: N/a, hr = 0x80004005

    Activation 2.0 data OEM-->
    N/A

    "Feldster" wrote in message News: ca87ef49-4a52-4b56-8e5e-c220bd346907...

    Thank you for the recommendation of belarc, it is a good program.  However, when the entry microsoft told me I have an invalid product keep... I would like to refute that by saying the only way I could have MSE's I have a legitimate copy of xp.  Any other suggestions?  I'm about to switch to linux...

    This key seems to have been plastered all over the internet (I don't check before)- and seems to be a key of SP3 installation by default, which means that it can never be activated.
    You have to find the key that came with your package.
     
    MSE will be installed on a system not activated Fortunately - it checks Validation, no activation.
    Any machine that is in the grace period will be validated (by design).

    --

    Noel Paton | Nil Carborundum Illegitemi | CrashFixPC | The lazy three fingers

  • Error message: ORA-00821: specified value sga_target 4 M is too small

    Hi all

    My database instance is down, when I'm trying to start, it throws an error:
    ORA-00821: sga_target 4 M value is too small, you must be at least 28 M

    The problems began when erroneous changed sga_target for some values without specifying the unit.
    My question is, how can I solve this problem, so that the database instance is down? I use spfile

    I tried to start the instance with pfile (start pfile='D:\oracle\product\10.2.0\admin\orcl\pfile\init.ora') it throws errors:
    LRM-00109: could not open parameter file "D:\oracle\product\10.2.0\admin\orcl\pfile\init.ora".
    ORA-01078: failure in the treatment of system settings


    Please someone help me

    Concerning
    Sadik

    Hello

    What you can do in this case and you do not have a good pfile, you can proceed as follows:

    1. find the spfile, normally in the directory of $ORACLE_HOME/dbs
    2. a copy of the spfile to be sure will not be damaged.
    3. on unix command prompt: string - a > newpfile.ora
    4. check with the newpfile.ora editor and change. The pfile file will contain all of the settings and you must change the SGA_TARGET value to a height of 400M or more. Smaller values can be made, but are not advised to 10 gr 2 or higher.
    5. try start the database using the newpfile.ora update.

    Hope this will solve your problem.

    Best regards, Gerwin

  • Reinstalled Windows Vista, and now I get a product key error message when I try to enter.

    try to put the product key in after a reinstall it won't let me

    I had to reinstall vista on my computer, and then he told me to buy anouther product key I do not understand why. can someone help

    Your machine was manufactured before the release of Windows Vista.

    The COA sticker is of a type that cannot be used on computers that were shipped with preinstalled Vista - so this key has been moved from another machine and is not valid on this one.

    For which version and edition of WIndows is the slot machine license, * according to the COA sticker on his case? *

  • Get your product key error message is invalid

    I use a mac with VMWare Fusion. I had Windows Vista installed, then upgraded to Windows 7 sometime ago. I have been for the most part, however, using my mac without access to windows. For the first time in awhgile, I tried to open windows to be educated that I needed to update, so I did. Then I asked my key productr and got the following response: your product key is not valid. need original key product, not upghrade or words to that effect. What should I do?

    Doug

    Have you tried to restart by phone?

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

    Please run the Microsoft Genuine Diagnostics Tool then copy and paste the results into an answer here for further analysis:
    http://go.Microsoft.com/fwlink/?LinkId=52012

  • Error Message ORA-31043: Element 'person' no globally defined in the schema

    Hi all

    We recorded 2 documents xsd as follows...
    DECLARE
       lc_test_xsd   CLOB;
    BEGIN
    
       lc_test_xsd   := '<?xml version="1.0" encoding="UTF-8"?>
    
    <schema 
        xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:tns="http://www.xyz.com/cicat/types/basictypes/2/0" 
        targetNamespace="http://www.xyz.com/cicat/types/basictypes/2/0" 
        version="2.0">
        
        <simpleType name="LastNamePrefix">
            <annotation>
                <documentation>
                    Additional word to last name (name prefix) corresponding to SAP HR Core 
                    Table T535N; V.
                </documentation>
            </annotation>
            <restriction base="tns:String255" />
        </simpleType>
        <simpleType name="CountryID">
            <annotation>
                <documentation>
                    Codes for the representation of country names according to ISO 3166.
                </documentation>
            </annotation>
            <restriction base="string">
                <maxLength value="2" />
            </restriction>
        </simpleType>
        <simpleType name="LocationCode">
            <annotation>
                <documentation>
                    Code of a location, e.g. Fe, Wa2 or Kor.
                </documentation>
            </annotation>
            <restriction base="string">
                <maxLength value="4" />
            </restriction>
        </simpleType>
        <simpleType name="GenderCode">
            <annotation>
                <documentation>
                    Code of the gender: male, female, unknown. Unknown is used if the value is 
                    unknown or must not be stored due to legal restrictions.
                </documentation>
            </annotation>
            <restriction base="string">
                <enumeration value="male" />
                <enumeration value="female" />
                <enumeration value="unknown" />
            </restriction>
        </simpleType>
        <simpleType name="String255">
            <annotation>
                <documentation>
                    String with 255 characters max
                </documentation>
            </annotation>
            <restriction base="string">
                <maxLength value="255" />
                <minLength value="1" />
            </restriction>
        </simpleType>
        <simpleType name="RB-CostCenter">
            <annotation>
                <documentation>
                    Cost Center
                </documentation>
            </annotation>
            <restriction base="string">
                <minLength value="3" />
                <maxLength value="6" />
            </restriction>
        </simpleType>
        <simpleType name="OrgUnitName">
            <annotation>
                <documentation>
                    Name of the Organizational Unit
                </documentation>
            </annotation>
            <restriction base="string">
                <minLength value="1" />
                <maxLength value="18" />
            </restriction>
        </simpleType>
        <complexType name="StringMCA">
            <annotation>
                <documentation>
                    Multi Country String. Strings, which must be stored in ASCII code and 
                    country specific. The subelement ASCIIString contains the string encoded
                    with ASCII. The subelement countrySpecificString allows country specific
                    encoding.
                </documentation>
            </annotation>
            <sequence>
                <element name="asciiString" type="tns:String255" minOccurs="0" />
                <element name="countrySpecificString" type="tns:String255" />
            </sequence>
        </complexType>
        <simpleType name="OrgUnitID">
            <annotation>
                <documentation>
                    ID of the Organizational Unit
                </documentation>
            </annotation>
            <restriction base="unsignedInt">
                <totalDigits value="8" />
            </restriction>
        </simpleType>
        <simpleType name="GlobalID">
            <annotation>
                <documentation>
                    Global unique identifier of persons at xyz
                </documentation>
            </annotation>
            <restriction base="unsignedInt">
                <totalDigits value="8" />
            </restriction>
        </simpleType>
        <simpleType name="CiCatPersonID">
            <annotation>
                <documentation>
                    CI-CAT Identifier of Persons (CiCat-PID). Unique identifier of a person
                    in CI-CAT
                </documentation>
            </annotation>
            <restriction base="unsignedInt">
                <totalDigits value="20" />
            </restriction>
        </simpleType>
        <simpleType name="CiCatAccountID">
            <annotation>
                <documentation>
                    CI-CAT Identifier of AD Accounts (CiCat-Ben-Sid). Unique identifier of 
                    AD Accounts in CI-CAT.
                </documentation>
            </annotation>
            <restriction base="unsignedInt">
                <totalDigits value="20" />
            </restriction>
        </simpleType>
        <simpleType name="PersonnelActionTypeCode">
            <annotation>
                <documentation>
                    The operation that was performed on the person: entry, data change,
                    re-entry (into company), exit (out of company)
                </documentation>
            </annotation>
            <restriction base="string">
                <enumeration value="entry" />
                <enumeration value="data change" />
                <enumeration value="re-entry" />
                <enumeration value="exit" />
            </restriction>
        </simpleType>
        <simpleType name="ContractStatus">
            <annotation>
                <documentation>
                    Contract Status: active, inaktive, resigned, retired
                </documentation>
            </annotation>
            <restriction base="string">
                <enumeration value="retired">
                    <annotation>
                        <documentation>
                            End of contract relationship because of retirement
                        </documentation>
                    </annotation>
                </enumeration>
                <enumeration value="resigned">
                    <annotation>
                        <documentation>
                            End of contract because of quitting
                        </documentation>
                    </annotation>
                </enumeration>
                <enumeration value="inactive">
                    <annotation>
                        <documentation>
                            Incactive contract relationship, e.g. motherhood, suspension
                        </documentation>
                    </annotation>
                </enumeration>
                <enumeration value="active">
                    <annotation>
                        <documentation>
                            Normal contract status
                        </documentation>
                    </annotation>
                </enumeration>
                <enumeration value="deleted">
                    <annotation>
                        <documentation>
                            Contract physically deleted in the source system
                        </documentation>
                    </annotation>
                </enumeration>
            </restriction>
        </simpleType>
        <simpleType name="KnownAssociateCode">
            <annotation>
                <documentation>
                    Describes status of person to xyz: internal/external/fixed-term
                </documentation>
            </annotation>
            <restriction base="string">
                <enumeration value="External" />
                <enumeration value="Internal" />
                <enumeration value="Fixed Term" />
                <enumeration value="unknown" />
            </restriction>
        </simpleType>
        <simpleType name="AssociateCode">
            <annotation>
                <documentation>
                    Describes status of person to xyz: union of known values plus free string 
                    for not yet known types
                </documentation>
            </annotation>
            <union memberTypes="tns:KnownAssociateCode string" />
        </simpleType>
        <simpleType name="KnownExternalRelationType">
            <annotation>
                <documentation>
                    Describes relation (contract relation) of external person to xyz:
                    contractor/customer/supplier/subsidiary/selfregistered
                </documentation>
            </annotation>
            <restriction base="string">
                <enumeration value="Contractor" />
                <enumeration value="Customer" />
                <enumeration value="Supplier" />
                <enumeration value="Subsidiary" />
                <enumeration value="Selfregistered" />
                <enumeration value="unknown" />
            </restriction>
        </simpleType>
        <simpleType name="ExternalRelationType">
            <union memberTypes="tns:KnownExternalRelationType string" />
        </simpleType>
        <simpleType name="ValidityState">
            <annotation>
                <documentation>
                    If an attribute was taken over by an authoritative source such as HR-MDS or 
                    WOM. Set to "Valid" to indicate that the value was taken over from the 
                    source and is therefore valid. Set to "Invalid" if the source indicates the
                    value is no longer value, e.g. because it got deleted. Otherwise set to 
                    "Unknown", e.g. when the value was entered manually.
                </documentation>
            </annotation>
            <restriction base="string">
                <enumeration value="Valid" />
                <enumeration value="Invalid" />
                <enumeration value="Unknown" />
            </restriction>
        </simpleType>
        <complexType name="HrPersonnelId">
            <sequence>
                <element name="hrSourceSystem">
                    <annotation>
                        <documentation>
                            Name of HR source system
                        </documentation>
                    </annotation>
                    <simpleType>
                        <restriction base="string">
                            <minLength value="1" />
                            <maxLength value="20" />
                        </restriction>
                    </simpleType>
                </element>
                <element name="hrPersonnelId">
                    <annotation>
                        <documentation>
                            ID of person in HR source system
                        </documentation>
                    </annotation>
                    <simpleType>
                        <restriction base="string">
                            <minLength value="1" />
                            <maxLength value="20" />
                        </restriction>
                    </simpleType>
                </element>
            </sequence>
        </complexType>
        <complexType name="AccountType">
            <annotation>
                <documentation>
                    Types of Accounts: Three main categories are known: Person, resource or 
                    service account. A person account represents a single natural person. A 
                    resource account represents a resource such as a printer, a computer or a 
                    meeting room. Service Accounts represent everything else. The can be used 
                    for example for technical users or group accounts. Both resource and service 
                    accounts have an owner that is responsible for them. Each account type has 
                    subtypes for further categorization.
                </documentation>
            </annotation>
            <choice>
                <element name="personAccount" type="tns:PersonAccountType" />
                <element name="resourceAccount" type="tns:ResourceAccountType" />
                <element name="serviceAccount" type="tns:ServiceAccountType" />
            </choice>
        </complexType>
        <simpleType name="KnownPersonAccountType">
            <annotation>
                <documentation>
                    Pre-defined types of Person Accounts
                </documentation>
            </annotation>
            <restriction base="string">
                <enumeration value="Office" />
                <enumeration value="Admin" />
                <enumeration value="Test" />
                <enumeration value="unknown" />
            </restriction>
        </simpleType>
        <simpleType name="PersonAccountType">
            <union memberTypes="tns:KnownPersonAccountType string" />
        </simpleType>
        <simpleType name="KnownResourceAccountType">
            <annotation>
                <documentation>
                    Pre-defined types of Resource Accounts
                </documentation>
            </annotation>
            <restriction base="string">
                <enumeration value="Room" />
                <enumeration value="PC" />
                <enumeration value="Printer" />
                <enumeration value="unknown" />
            </restriction>
        </simpleType>
        <simpleType name="ResourceAccountType">
            <union memberTypes="tns:KnownResourceAccountType string" />
        </simpleType>
        <simpleType name="KnownServiceAccountType">
            <annotation>
                <documentation>
                    Pre-defined Types of Service Accounts
                </documentation>
            </annotation>
            <restriction base="string">
                <enumeration value="Group" />
                <enumeration value="Machine" />
                <enumeration value="Support" />
                <enumeration value="System" />
                <enumeration value="unknown" />
            </restriction>
        </simpleType>
        <simpleType name="ServiceAccountType">
            <union memberTypes="tns:KnownServiceAccountType string" />
        </simpleType>
        <simpleType name="ActionType">
            <annotation>
                <documentation>
                    Defines the action that was performed on the object.
                </documentation>
            </annotation>
            <restriction base="string">
                <enumeration value="Create" />
                <enumeration value="Update" />
                <enumeration value="Delete" />
            </restriction>
        </simpleType>
        <simpleType name="LegalEntityId">
            <annotation>
                <documentation>
                    ID of a legal entity
                </documentation>
            </annotation>
            <restriction base="unsignedInt">
                <totalDigits value="8" />
            </restriction>
        </simpleType>
    </schema>
    ';
    
       DBMS_XMLSCHEMA.REGISTERSCHEMA (schemaurl   => 'BasicTypes.xsd',
                                      schemadoc   => lc_test_xsd);
                                      
      DBMS_OUTPUT.PUT_LINE('BasicTypes.xsd registration successfully completed');
    EXCEPTION WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('BasicTypes.xsd registration failed '||SQLERRM);
    END;
    /

    See for example the effect of elementFormDefault of http://www.liquid-technologies.com/Tutorials/XmlSchemas/XsdTutorial_04.aspx for details.

    The fix:

    >


    ...

    >

    I hope this helps!

  • Foreign key DML error

    My apologies if this has been answered here already, but I did some research and could not find a matching problem.

    I have a table called messages, defined as follows:

    < pre >
    -set the table
    (Messages) CREATE TABLE
    ID NUMBER CONSTRAINT pk_messages_id PRIMARY KEY,
    title VARCHAR2 (255),
    body VARCHAR2 (4000).
    created_at TIMESTAMP,
    removed_at TIMESTAMP
    );
    < / pre >

    And I have a table of junction, called organization_messages, defined as follows:

    < pre >
    CREATE TABLE organization_messages)
    organization_id VARCHAR2 (12),
    message_id NUMBER,
    CONSTRAINT fk_org_message_id
    FOREIGN KEY (message_id)
    Messages of REFERENCES (id)
    ON DELETE CASCADE
    );
    );
    < / pre >

    I did this so that when a message is deleted, the join in organization_messages line would be deleted automatically, via the ON DELETE CASCADE.

    I got your basic DML processing going on for the messages table in the APEX, but now that I've added the foreign key, I get this when I try to delete a line of messages:

    < pre >
    ORA-02291: integrity constraint (PASSPORT. FK_ORG_MESSAGE_ID) violated - key parent not found
    Error failed to update org assignments.
    Ok
    < / pre >

    What is the problem? Treatment of DML supplant triggers or the cascades? This work should and I don't have to put in place of the page process to remove lines to join first table... I have it back?

    Thanks for the pair of eyes ;-)

    Billy

    Hello

    AFAIK, using the option delete cascade is the method to use (of course, you can do all this "manually" but that shouldn't be necessary). The only thing I can think is that something is executed on the table organization_messages that can interfere with normal sql features - perhaps another page process and/or a trigger on a table?

    Andy

  • RunDLL error message: "Werconcpl.dll is not a valid Win32 application" keeps reappearing

    Hello

    I have a Windows 8 operating system and about 2 weeks, I've loaded my computer and an error titled, "RunDLL" appears indicating:

    "There was a problem starting.

    C:\Windows\system32\WerConCpl.dll

    C:\Windows\system32\WerConCpl.dll is not a valid Win32 application. »

    This error message is always popping up to date.

    More information:

    -Another error will appear again once every 30 seconds or so, no matter if I press OK to close. That said, if I left my computer alone for long periods, fifty, maybe even a hundred of these messages would pile on my desk.

    -Many sources I've found seem to point to the idea that the cause of this is a process, probably malware, is set to run this WerConCpl.dll file at startup.  I have not all antivirus programs before that happened. But shortly after that, I installed Malwarebytes and I performed complete tests on Windows Defender and Malwarebytes. Initially, there are some questions that Malwarebytes had found and quarantined, but nothing on Windows Defender. I also tried to clean with a program of free registry: CCleaner. None of them were able to resolve the problem.

    -I then went to my task manager to start Services. I disabled some third-party services that I use, but it is not necessary to start. Other than that, I have not found all third-party programs that are strange or unusual. The rest were associated with my internet (wide com) and bluetooth devices, or Microsoft and Intel.

    -J' tried the solution that others used by running the command line as administrator and in typing "sfc/scannow". However, this does not work, and this error in the following line: "could not Windows Resource Protection start the repair service".

    -I can't do a system restore because I had already done the restore points, which was a bad idea on my part. However, system restore services have problems with the shadow copy of Volume and not more time to work in any case.

    * At the same time where this problem occurred, when looking for the solution to this problem, I found that a number of other things had stopped working on this laptop. I will not list all of them because it's a fairly large list, but this include services such as the Windows Installer Service, Windows Update services, and Windows store. I could do separate posts for all these but I feel like the root of these problems is related to this key error message.

    * If this can help, at his request, I could type in a list of all service issues and error messages associated with them. In general, they can be irrelevant to the topic of this post.

    Thanks for reading this,

    Samxratts

    Hi Sam,

    First of all, I want to thank you for providing the detailed information about this.

    In this scenario, I would suggest trying the following methods and check if it works for you.

    Method 1:

    Start safe mode and check if the same problem persists. If the issue is not still in Mode without failure, then place the computer in a clean boot state and check which program third party/app is causing this problem.

    Step 1: Safe boot mode.

    See the following article from Microsoft Help to start safe mode.

    http://Windows.Microsoft.com/en-us/Windows-8/Windows-startup-settings-safe-mode

    Step 2: put the computer in a clean boot state in order to determine what third party/PPP program is causing this problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7 or Windows 8 / 8.1:
    http://support.Microsoft.com/kb/929135 
    Note: After the boot minimum troubleshooting step, see the "How to reset the computer to start as usual after a clean boot troubleshooting" section in the link provided to return the computer to a Normal startup mode.

    Method 2:

    Create a new user account and check if it helps. This is to check if the problem is caused due to any user profile related issues or not.

    See the following article from Microsoft Help to create a new user account.

    http://Windows.Microsoft.com/en-us/Windows/create-user-account#create-user-account=Windows-8

    Please reply with the status of the issue so that we can better help you.

  • Then try to connect to oracle, I got this error message. zone area not...

    Error message
    ORA-00604: error occurred at recursive SQL ORA-01882 level1: region of the zone could not be found.

    Today, I downloaded developer sql 3.0.04.34.
    Everything was the same, but I couldn't connect oracle server with above message.

    Here is my experience...

    customer
    window7
    Java
    java version "1.6.0_20.
    Java (TM) SE Runtime Environment (build 1.6.0_20 - b02)
    The Client Java VM (build 16, 3 - b01, mode, mixed share)
    window timezone; bangkok
    local window; Korean
    SQL developer zone; idk
    local developer SQL; Korean
    Oracle
    windows 2003 Server
    9i
    regional settings; idk
    before I got here, I googled this problem.
    There are 2-3 solutions, but it did not work.

    1 set the regional settings to the file sqldeveloper.conf
    AddVMOption - Duser.timezone = "+ 07:00"
    2 " set the regional settings to the file ide.conf
    AddVMOption - Duser.timezone = "+ 07:00"
    please help me. "
    Thanks in advance.

    You can find more tips on your research: ora-01882 "zone schedule region not found" with 3.0.03.97 but not 3.0.03.45

    Hope that helps,
    K.

Maybe you are looking for